]>
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 | |
c370783e | 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 *); | |
c370783e | 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 | ||
c370783e | 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 | ||
c370783e | 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] | |
d6c14a4c 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] | |
d6c14a4c 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 | ||
c370783e 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 | |
c370783e 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 |
c370783e 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 | |
c370783e 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) |
c370783e 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 | ||
c370783e RD |
312 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
313 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
314 | /*@@*/ | |
315 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
316 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
317 | /*@@*/ | |
318 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
319 | #define SWIG_From_short PyInt_FromLong | |
320 | /*@@*/ | |
321 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
322 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
323 | /*@@*/ | |
324 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
325 | #define SWIG_From_int PyInt_FromLong | |
326 | /*@@*/ | |
327 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
328 | #define SWIG_From_long PyInt_FromLong | |
329 | /*@@*/ | |
330 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
331 | #define SWIG_From_float PyFloat_FromDouble | |
332 | /*@@*/ | |
333 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
334 | #define SWIG_From_double PyFloat_FromDouble | |
335 | /*@@*/ | |
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 | ||
c370783e 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 | { |
c370783e 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 | ||
c370783e | 370 | // See my_fragments.i |
d55e5bfc | 371 | SWIGSTATICINLINE(int) |
c370783e | 372 | SWIG_AsVal_long(PyObject* obj, long* val) |
d55e5bfc | 373 | { |
c370783e 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; |
c370783e 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 { |
c370783e | 402 | PyErr_Clear(); |
d55e5bfc | 403 | } |
c370783e RD |
404 | if (val) { |
405 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
406 | } | |
407 | return 0; | |
d55e5bfc | 408 | } |
c370783e 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 | ||
c370783e 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 | ||
c370783e RD |
442 | SWIGSTATICINLINE(bool) |
443 | SWIG_As_bool(PyObject* obj) | |
d55e5bfc | 444 | { |
c370783e 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 | } |
c370783e | 454 | return v; |
d55e5bfc RD |
455 | } |
456 | ||
c370783e RD |
457 | |
458 | SWIGSTATICINLINE(int) | |
459 | SWIG_Check_bool(PyObject* obj) | |
460 | { | |
461 | return SWIG_AsVal_bool(obj, (bool*)0); | |
462 | } | |
d55e5bfc | 463 | |
c370783e RD |
464 | |
465 | // See my_fragments.i | |
466 | SWIGSTATICINLINE(int) | |
467 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 468 | { |
c370783e 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 | } | |
c370783e RD |
474 | else if (val) |
475 | *val = (unsigned long)v; | |
476 | return 1; | |
d55e5bfc RD |
477 | } |
478 | ||
479 | ||
c370783e RD |
480 | SWIGSTATICINLINE(int) |
481 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
482 | unsigned long max_value, | |
483 | const char *errmsg) | |
d55e5bfc | 484 | { |
c370783e 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 | } |
c370783e | 491 | return 0; |
d55e5bfc | 492 | } |
c370783e RD |
493 | return 1; |
494 | } | |
d55e5bfc RD |
495 | |
496 | ||
c370783e RD |
497 | SWIGSTATICINLINE(int) |
498 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
d55e5bfc | 499 | { |
c370783e 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 | ||
c370783e RD |
519 | SWIGSTATICINLINE(unsigned char) |
520 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
d55e5bfc | 521 | { |
c370783e 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 | } |
c370783e | 531 | return v; |
d55e5bfc RD |
532 | } |
533 | ||
c370783e | 534 | |
d55e5bfc | 535 | SWIGSTATICINLINE(int) |
c370783e | 536 | SWIG_Check_unsigned_SS_char(PyObject* obj) |
d55e5bfc | 537 | { |
c370783e 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 | } |
c370783e 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* ) | |
c370783e | 584 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
585 | { |
586 | return (value > LONG_MAX) ? | |
587 | PyLong_FromUnsignedLong(value) | |
c370783e | 588 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
589 | } |
590 | ||
591 | ||
c370783e RD |
592 | SWIGSTATICINLINE(int) |
593 | SWIG_As_int(PyObject* obj) | |
d55e5bfc | 594 | { |
c370783e 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 | } |
c370783e | 604 | return v; |
d55e5bfc RD |
605 | } |
606 | ||
c370783e | 607 | |
d55e5bfc | 608 | SWIGSTATICINLINE(int) |
c370783e | 609 | SWIG_Check_int(PyObject* obj) |
d55e5bfc | 610 | { |
c370783e | 611 | return SWIG_AsVal_int(obj, (int*)0); |
d55e5bfc RD |
612 | } |
613 | ||
614 | ||
c370783e | 615 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
616 | PyObject* o2; |
617 | PyObject* o3; | |
c370783e | 618 | |
d55e5bfc RD |
619 | if (!target) { |
620 | target = o; | |
621 | } else if (target == Py_None) { | |
622 | Py_DECREF(Py_None); | |
623 | target = o; | |
629e65c2 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; | |
629e65c2 | 639 | } |
d55e5bfc | 640 | |
c370783e | 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); | |
68e533f8 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 | } | |
d6c14a4c 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 | } | |
b411df4a RD |
674 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
675 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 676 | |
c370783e RD |
677 | SWIGSTATICINLINE(int) |
678 | SWIG_AsVal_short(PyObject *obj, short *val) | |
d55e5bfc | 679 | { |
c370783e RD |
680 | const char* errmsg = val ? "short" : 0; |
681 | long v; | |
682 | if (SWIG_AsVal_long(obj, &v)) { | |
683 | if (SWIG_CheckLongInRange(v, SHRT_MIN, SHRT_MAX, errmsg)) { | |
684 | if (val) *val = swig_numeric_cast(v, short); | |
685 | return 1; | |
686 | } else { | |
687 | return 0; | |
688 | } | |
689 | } else { | |
690 | PyErr_Clear(); | |
691 | } | |
692 | if (val) { | |
693 | PyErr_SetString(PyExc_TypeError, "a short is expected"); | |
694 | } | |
695 | return 0; | |
d55e5bfc RD |
696 | } |
697 | ||
698 | ||
c370783e RD |
699 | SWIGSTATICINLINE(short) |
700 | SWIG_As_short(PyObject* obj) | |
d55e5bfc | 701 | { |
c370783e RD |
702 | short v; |
703 | if (!SWIG_AsVal_short(obj, &v)) { | |
704 | /* | |
705 | this is needed to make valgrind/purify happier. the other | |
706 | solution is throw an exception, but since this code should work | |
707 | with plain C .... | |
708 | */ | |
709 | memset((void*)&v, 0, sizeof(short)); | |
d55e5bfc | 710 | } |
c370783e RD |
711 | return v; |
712 | } | |
713 | ||
714 | ||
715 | SWIGSTATICINLINE(int) | |
716 | SWIG_Check_short(PyObject* obj) | |
717 | { | |
718 | return SWIG_AsVal_short(obj, (short*)0); | |
d55e5bfc RD |
719 | } |
720 | ||
721 | ||
722 | #include <wx/image.h> | |
723 | ||
724 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
725 | char** cArray = NULL; | |
726 | int count; | |
727 | ||
728 | if (!PyList_Check(listOfStrings)) { | |
729 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
730 | return NULL; | |
731 | } | |
732 | count = PyList_Size(listOfStrings); | |
733 | cArray = new char*[count]; | |
734 | ||
735 | for(int x=0; x<count; x++) { | |
736 | // TODO: Need some validation and error checking here | |
737 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
738 | } | |
739 | return cArray; | |
740 | } | |
741 | ||
742 | ||
743 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
744 | char** cArray = NULL; | |
745 | wxBitmap* bmp; | |
746 | ||
747 | cArray = ConvertListOfStrings(listOfStrings); | |
748 | if (! cArray) | |
749 | return NULL; | |
750 | bmp = new wxBitmap(cArray); | |
751 | delete [] cArray; | |
752 | return bmp; | |
753 | } | |
754 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
755 | char* buf; | |
756 | int length; | |
757 | PyString_AsStringAndSize(bits, &buf, &length); | |
758 | return new wxBitmap(buf, width, height, depth); | |
759 | } | |
d55e5bfc RD |
760 | wxSize wxBitmap_GetSize(wxBitmap *self){ |
761 | wxSize size(self->GetWidth(), self->GetHeight()); | |
762 | return size; | |
763 | } | |
764 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
765 | wxMask *mask = new wxMask(*self, colour); | |
766 | self->SetMask(mask); | |
767 | } | |
768 | void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
769 | self->SetWidth(size.x); | |
770 | self->SetHeight(size.y); | |
771 | } | |
b411df4a RD |
772 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
773 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
774 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
775 | if ( !colour.Ok() ) | |
776 | return new wxMask(bitmap, *wxBLACK); | |
777 | else | |
778 | return new wxMask(bitmap, colour); | |
779 | } | |
780 | ||
781 | #include <wx/iconbndl.h> | |
782 | ||
783 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
784 | wxIcon* icon = new wxIcon(); | |
785 | icon->CopyFromBitmap(bmp); | |
786 | return icon; | |
787 | } | |
788 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
789 | char** cArray = NULL; | |
790 | wxIcon* icon; | |
791 | ||
792 | cArray = ConvertListOfStrings(listOfStrings); | |
793 | if (! cArray) | |
794 | return NULL; | |
795 | icon = new wxIcon(cArray); | |
796 | delete [] cArray; | |
797 | return icon; | |
798 | } | |
799 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
800 | ||
801 | ||
802 | ||
803 | return new wxIconLocation(*filename); | |
804 | ||
805 | } | |
806 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
807 | ||
808 | ||
809 | ||
810 | // do nothing | |
811 | ||
812 | } | |
813 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
814 | ||
815 | ||
816 | ||
817 | return -1; | |
818 | ||
819 | } | |
820 | ||
c370783e RD |
821 | SWIGSTATICINLINE(long) |
822 | SWIG_As_long(PyObject* obj) | |
d55e5bfc | 823 | { |
c370783e RD |
824 | long v; |
825 | if (!SWIG_AsVal_long(obj, &v)) { | |
826 | /* | |
827 | this is needed to make valgrind/purify happier. the other | |
828 | solution is throw an exception, but since this code should work | |
829 | with plain C .... | |
830 | */ | |
831 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 832 | } |
c370783e RD |
833 | return v; |
834 | } | |
835 | ||
836 | ||
837 | SWIGSTATICINLINE(int) | |
838 | SWIG_Check_long(PyObject* obj) | |
839 | { | |
840 | return SWIG_AsVal_long(obj, (long*)0); | |
d55e5bfc RD |
841 | } |
842 | ||
843 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ | |
844 | #ifdef __WXGTK__ | |
b411df4a | 845 | wxCHECK_MSG(false, NULL, |
d55e5bfc RD |
846 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); |
847 | #else | |
848 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
849 | #endif | |
850 | } | |
851 | ||
852 | ||
d55e5bfc RD |
853 | void wxRegionIterator_Next(wxRegionIterator *self){ |
854 | (*self) ++; | |
855 | } | |
856 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
857 | return self->operator bool(); | |
858 | } | |
859 | ||
860 | #include <wx/fontutil.h> | |
861 | #include <wx/fontmap.h> | |
862 | #include <wx/fontenum.h> | |
863 | ||
864 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
865 | return self->ToString(); | |
866 | } | |
867 | ||
868 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
869 | static wxNativeEncodingInfo info; | |
870 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
871 | return &info; | |
872 | else | |
873 | return NULL; | |
874 | } | |
875 | ||
876 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
877 | wxFontEncoding alt_enc; | |
878 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
879 | return PyInt_FromLong(alt_enc); | |
880 | else { | |
881 | Py_INCREF(Py_None); | |
882 | return Py_None; | |
883 | } | |
884 | } | |
885 | wxFont *new_wxFont(wxString const &info){ | |
886 | wxNativeFontInfo nfi; | |
887 | nfi.FromString(info); | |
888 | return new wxFont(nfi); | |
889 | } | |
890 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
891 | return wxFont::New(pointSize, family, flags, face, encoding); | |
892 | } | |
5e483524 RD |
893 | wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){ |
894 | return wxFontBase::New(pixelSize, family, | |
895 | style, weight, underlined, | |
896 | face, encoding); | |
897 | } | |
b411df4a RD |
898 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
899 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc RD |
900 | |
901 | class wxPyFontEnumerator : public wxFontEnumerator { | |
902 | public: | |
903 | wxPyFontEnumerator() {} | |
904 | ~wxPyFontEnumerator() {} | |
905 | ||
906 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
907 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
908 | ||
909 | PYPRIVATE; | |
910 | }; | |
911 | ||
912 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
913 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
914 | ||
915 | ||
916 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
917 | wxArrayString* arr = self->GetEncodings(); | |
92379a03 RD |
918 | if (arr) |
919 | return wxArrayString2PyList_helper(*arr); | |
920 | else | |
921 | return PyList_New(0); | |
d55e5bfc RD |
922 | } |
923 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
924 | wxArrayString* arr = self->GetFacenames(); | |
92379a03 RD |
925 | if (arr) |
926 | return wxArrayString2PyList_helper(*arr); | |
927 | else | |
928 | return PyList_New(0); | |
d55e5bfc RD |
929 | } |
930 | ||
070c48b4 | 931 | #include <locale.h> |
d55e5bfc | 932 | |
15817c7e | 933 | wxLocale *new_wxLocale(int language,int flags){ |
070c48b4 | 934 | wxLocale* loc; |
15817c7e | 935 | if (language == -1) |
070c48b4 | 936 | loc = new wxLocale(); |
15817c7e | 937 | else |
070c48b4 RD |
938 | loc = new wxLocale(language, flags); |
939 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
940 | // for the floating point conversions and such to work right. | |
941 | #if PY_VERSION_HEX < 0x02040000 | |
942 | setlocale(LC_NUMERIC, "C"); | |
943 | #endif | |
944 | return loc; | |
945 | } | |
946 | bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){ | |
947 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); | |
948 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
949 | // for the floating point conversions and such to work right. | |
950 | #if PY_VERSION_HEX < 0x02040000 | |
951 | setlocale(LC_NUMERIC, "C"); | |
952 | #endif | |
953 | return rc; | |
954 | } | |
955 | bool wxLocale_Init2(wxLocale *self,int language,int flags){ | |
956 | bool rc = self->Init(language, flags); | |
957 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
958 | // for the floating point conversions and such to work right. | |
959 | #if PY_VERSION_HEX < 0x02040000 | |
960 | setlocale(LC_NUMERIC, "C"); | |
961 | #endif | |
962 | return rc; | |
15817c7e | 963 | } |
d55e5bfc RD |
964 | |
965 | #include "wx/wxPython/pydrawxxx.h" | |
966 | ||
d6c14a4c | 967 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d55e5bfc RD |
968 | wxColour col; |
969 | self->GetPixel(x, y, &col); | |
970 | return col; | |
971 | } | |
d6c14a4c | 972 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d55e5bfc RD |
973 | wxColour col; |
974 | self->GetPixel(pt, &col); | |
975 | return col; | |
976 | } | |
977 | ||
c370783e RD |
978 | // See my_fragments.i |
979 | SWIGSTATICINLINE(int) | |
980 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 981 | { |
c370783e RD |
982 | if (PyNumber_Check(obj)) { |
983 | if (val) *val = PyFloat_AsDouble(obj); | |
984 | return 1; | |
985 | } | |
d55e5bfc RD |
986 | else { |
987 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
988 | obj->ob_type->tp_name); | |
989 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
990 | Py_DECREF(errmsg); | |
d55e5bfc | 991 | } |
c370783e | 992 | return 0; |
d55e5bfc RD |
993 | } |
994 | ||
995 | ||
c370783e RD |
996 | SWIGSTATICINLINE(double) |
997 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 998 | { |
c370783e RD |
999 | double v; |
1000 | if (!SWIG_AsVal_double(obj, &v)) { | |
1001 | /* | |
1002 | this is needed to make valgrind/purify happier. the other | |
1003 | solution is throw an exception, but since this code should work | |
1004 | with plain C .... | |
1005 | */ | |
1006 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 1007 | } |
c370783e RD |
1008 | return v; |
1009 | } | |
1010 | ||
1011 | ||
1012 | SWIGSTATICINLINE(int) | |
1013 | SWIG_Check_double(PyObject* obj) | |
1014 | { | |
1015 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
1016 | } |
1017 | ||
1018 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
1019 | wxRect rv; | |
1020 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
1021 | return rv; | |
1022 | } | |
c370783e | 1023 | |
d55e5bfc RD |
1024 | wxRect wxDC_GetClippingRect(wxDC *self){ |
1025 | wxRect rect; | |
1026 | self->GetClippingBox(rect); | |
1027 | return rect; | |
1028 | } | |
1029 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
1030 | wxArrayInt widths; | |
1031 | self->GetPartialTextExtents(text, widths); | |
1032 | return widths; | |
1033 | } | |
c370783e | 1034 | |
d6c14a4c RD |
1035 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
1036 | self->SetLogicalOrigin(point.x, point.y); | |
1037 | } | |
1038 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
1039 | self->SetDeviceOrigin(point.x, point.y); | |
1040 | } | |
1041 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
1042 | self->CalcBoundingBox(point.x, point.y); | |
1043 | } | |
d55e5bfc RD |
1044 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
1045 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
1046 | } | |
1047 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1048 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
1049 | } | |
1050 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1051 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
1052 | } | |
1053 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1054 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
1055 | } | |
1056 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1057 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
1058 | } | |
1059 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
1060 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
1061 | } | |
1062 | ||
1063 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
1064 | *x1 = dc->MinX(); | |
1065 | *y1 = dc->MinY(); | |
1066 | *x2 = dc->MaxX(); | |
1067 | *y2 = dc->MaxY(); | |
1068 | } | |
1069 | ||
1070 | ||
1071 | #include <wx/dcbuffer.h> | |
1072 | ||
1073 | ||
1074 | #include <wx/dcps.h> | |
1075 | ||
1076 | ||
1077 | #include <wx/metafile.h> | |
1078 | ||
1079 | ||
1080 | ||
1081 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
1082 | self->AddColour(name, wxColour(red, green, blue)); | |
1083 | } | |
1084 | ||
1085 | #include <wx/effects.h> | |
1086 | ||
1087 | #ifdef __cplusplus | |
1088 | extern "C" { | |
1089 | #endif | |
c370783e | 1090 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1091 | PyObject *resultobj; |
1092 | wxGDIObject *result; | |
1093 | char *kwnames[] = { | |
1094 | NULL | |
1095 | }; | |
1096 | ||
1097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
1098 | { | |
0439c23b | 1099 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1101 | result = (wxGDIObject *)new wxGDIObject(); | |
1102 | ||
1103 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1104 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1105 | } |
1106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); | |
1107 | return resultobj; | |
1108 | fail: | |
1109 | return NULL; | |
1110 | } | |
1111 | ||
1112 | ||
c370783e | 1113 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1114 | PyObject *resultobj; |
1115 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1116 | PyObject * obj0 = 0 ; | |
1117 | char *kwnames[] = { | |
1118 | (char *) "self", NULL | |
1119 | }; | |
1120 | ||
1121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
1122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1124 | { | |
1125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1126 | delete arg1; | |
1127 | ||
1128 | wxPyEndAllowThreads(__tstate); | |
1129 | if (PyErr_Occurred()) SWIG_fail; | |
1130 | } | |
1131 | Py_INCREF(Py_None); resultobj = Py_None; | |
1132 | return resultobj; | |
1133 | fail: | |
1134 | return NULL; | |
1135 | } | |
1136 | ||
1137 | ||
c370783e | 1138 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1139 | PyObject *resultobj; |
1140 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1141 | bool result; | |
1142 | PyObject * obj0 = 0 ; | |
1143 | char *kwnames[] = { | |
1144 | (char *) "self", NULL | |
1145 | }; | |
1146 | ||
1147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
1148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1150 | { | |
1151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1152 | result = (bool)(arg1)->GetVisible(); | |
1153 | ||
1154 | wxPyEndAllowThreads(__tstate); | |
1155 | if (PyErr_Occurred()) SWIG_fail; | |
1156 | } | |
1157 | { | |
1158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1159 | } | |
1160 | return resultobj; | |
1161 | fail: | |
1162 | return NULL; | |
1163 | } | |
1164 | ||
1165 | ||
c370783e | 1166 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1167 | PyObject *resultobj; |
1168 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1169 | bool arg2 ; | |
1170 | PyObject * obj0 = 0 ; | |
1171 | PyObject * obj1 = 0 ; | |
1172 | char *kwnames[] = { | |
1173 | (char *) "self",(char *) "visible", NULL | |
1174 | }; | |
1175 | ||
1176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
1177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1179 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
1180 | if (PyErr_Occurred()) SWIG_fail; |
1181 | { | |
1182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1183 | (arg1)->SetVisible(arg2); | |
1184 | ||
1185 | wxPyEndAllowThreads(__tstate); | |
1186 | if (PyErr_Occurred()) SWIG_fail; | |
1187 | } | |
1188 | Py_INCREF(Py_None); resultobj = Py_None; | |
1189 | return resultobj; | |
1190 | fail: | |
1191 | return NULL; | |
1192 | } | |
1193 | ||
1194 | ||
c370783e | 1195 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1196 | PyObject *resultobj; |
1197 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1198 | bool result; | |
1199 | PyObject * obj0 = 0 ; | |
1200 | char *kwnames[] = { | |
1201 | (char *) "self", NULL | |
1202 | }; | |
1203 | ||
1204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
1205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1207 | { | |
1208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1209 | result = (bool)(arg1)->IsNull(); | |
1210 | ||
1211 | wxPyEndAllowThreads(__tstate); | |
1212 | if (PyErr_Occurred()) SWIG_fail; | |
1213 | } | |
1214 | { | |
1215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1216 | } | |
1217 | return resultobj; | |
1218 | fail: | |
1219 | return NULL; | |
1220 | } | |
1221 | ||
1222 | ||
c370783e | 1223 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1224 | PyObject *obj; |
1225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1226 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1227 | Py_INCREF(obj); | |
1228 | return Py_BuildValue((char *)""); | |
1229 | } | |
c370783e | 1230 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 1231 | PyObject *resultobj; |
15817c7e RD |
1232 | byte arg1 = (byte) 0 ; |
1233 | byte arg2 = (byte) 0 ; | |
1234 | byte arg3 = (byte) 0 ; | |
d55e5bfc RD |
1235 | wxColour *result; |
1236 | PyObject * obj0 = 0 ; | |
1237 | PyObject * obj1 = 0 ; | |
1238 | PyObject * obj2 = 0 ; | |
1239 | char *kwnames[] = { | |
1240 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1241 | }; | |
1242 | ||
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1244 | if (obj0) { | |
c370783e | 1245 | arg1 = (byte)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc RD |
1246 | if (PyErr_Occurred()) SWIG_fail; |
1247 | } | |
1248 | if (obj1) { | |
c370783e | 1249 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
1250 | if (PyErr_Occurred()) SWIG_fail; |
1251 | } | |
1252 | if (obj2) { | |
c370783e | 1253 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
1254 | if (PyErr_Occurred()) SWIG_fail; |
1255 | } | |
1256 | { | |
1257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1258 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1259 | ||
1260 | wxPyEndAllowThreads(__tstate); | |
1261 | if (PyErr_Occurred()) SWIG_fail; | |
1262 | } | |
1263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1264 | return resultobj; | |
1265 | fail: | |
1266 | return NULL; | |
1267 | } | |
1268 | ||
1269 | ||
c370783e | 1270 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1271 | PyObject *resultobj; |
1272 | wxString *arg1 = 0 ; | |
1273 | wxColour *result; | |
b411df4a | 1274 | bool temp1 = false ; |
d55e5bfc RD |
1275 | PyObject * obj0 = 0 ; |
1276 | char *kwnames[] = { | |
1277 | (char *) "colorName", NULL | |
1278 | }; | |
1279 | ||
1280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1281 | { | |
1282 | arg1 = wxString_in_helper(obj0); | |
1283 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 1284 | temp1 = true; |
d55e5bfc RD |
1285 | } |
1286 | { | |
eab6e45e | 1287 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1289 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1290 | ||
1291 | wxPyEndAllowThreads(__tstate); | |
1292 | if (PyErr_Occurred()) SWIG_fail; | |
1293 | } | |
1294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1295 | { | |
1296 | if (temp1) | |
1297 | delete arg1; | |
1298 | } | |
1299 | return resultobj; | |
1300 | fail: | |
1301 | { | |
1302 | if (temp1) | |
1303 | delete arg1; | |
1304 | } | |
1305 | return NULL; | |
1306 | } | |
1307 | ||
1308 | ||
c370783e | 1309 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1310 | PyObject *resultobj; |
1311 | unsigned long arg1 ; | |
1312 | wxColour *result; | |
1313 | PyObject * obj0 = 0 ; | |
1314 | char *kwnames[] = { | |
1315 | (char *) "colRGB", NULL | |
1316 | }; | |
1317 | ||
1318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
c370783e | 1319 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
1320 | if (PyErr_Occurred()) SWIG_fail; |
1321 | { | |
1322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1323 | result = (wxColour *)new wxColour(arg1); | |
1324 | ||
1325 | wxPyEndAllowThreads(__tstate); | |
1326 | if (PyErr_Occurred()) SWIG_fail; | |
1327 | } | |
1328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1329 | return resultobj; | |
1330 | fail: | |
1331 | return NULL; | |
1332 | } | |
1333 | ||
1334 | ||
c370783e | 1335 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1336 | PyObject *resultobj; |
1337 | wxColour *arg1 = (wxColour *) 0 ; | |
1338 | PyObject * obj0 = 0 ; | |
1339 | char *kwnames[] = { | |
1340 | (char *) "self", NULL | |
1341 | }; | |
1342 | ||
1343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1346 | { | |
1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1348 | delete arg1; | |
1349 | ||
1350 | wxPyEndAllowThreads(__tstate); | |
1351 | if (PyErr_Occurred()) SWIG_fail; | |
1352 | } | |
1353 | Py_INCREF(Py_None); resultobj = Py_None; | |
1354 | return resultobj; | |
1355 | fail: | |
1356 | return NULL; | |
1357 | } | |
1358 | ||
1359 | ||
c370783e | 1360 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1361 | PyObject *resultobj; |
1362 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e | 1363 | byte result; |
d55e5bfc RD |
1364 | PyObject * obj0 = 0 ; |
1365 | char *kwnames[] = { | |
1366 | (char *) "self", NULL | |
1367 | }; | |
1368 | ||
1369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1372 | { | |
1373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 1374 | result = (byte)(arg1)->Red(); |
d55e5bfc RD |
1375 | |
1376 | wxPyEndAllowThreads(__tstate); | |
1377 | if (PyErr_Occurred()) SWIG_fail; | |
1378 | } | |
c370783e | 1379 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1380 | return resultobj; |
1381 | fail: | |
1382 | return NULL; | |
1383 | } | |
1384 | ||
1385 | ||
c370783e | 1386 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1387 | PyObject *resultobj; |
1388 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e | 1389 | byte result; |
d55e5bfc RD |
1390 | PyObject * obj0 = 0 ; |
1391 | char *kwnames[] = { | |
1392 | (char *) "self", NULL | |
1393 | }; | |
1394 | ||
1395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1398 | { | |
1399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 1400 | result = (byte)(arg1)->Green(); |
d55e5bfc RD |
1401 | |
1402 | wxPyEndAllowThreads(__tstate); | |
1403 | if (PyErr_Occurred()) SWIG_fail; | |
1404 | } | |
c370783e | 1405 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1406 | return resultobj; |
1407 | fail: | |
1408 | return NULL; | |
1409 | } | |
1410 | ||
1411 | ||
c370783e | 1412 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1413 | PyObject *resultobj; |
1414 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e | 1415 | byte result; |
d55e5bfc RD |
1416 | PyObject * obj0 = 0 ; |
1417 | char *kwnames[] = { | |
1418 | (char *) "self", NULL | |
1419 | }; | |
1420 | ||
1421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1424 | { | |
1425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 1426 | result = (byte)(arg1)->Blue(); |
d55e5bfc RD |
1427 | |
1428 | wxPyEndAllowThreads(__tstate); | |
1429 | if (PyErr_Occurred()) SWIG_fail; | |
1430 | } | |
c370783e | 1431 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
1432 | return resultobj; |
1433 | fail: | |
1434 | return NULL; | |
1435 | } | |
1436 | ||
1437 | ||
c370783e | 1438 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1439 | PyObject *resultobj; |
1440 | wxColour *arg1 = (wxColour *) 0 ; | |
1441 | bool result; | |
1442 | PyObject * obj0 = 0 ; | |
1443 | char *kwnames[] = { | |
1444 | (char *) "self", NULL | |
1445 | }; | |
1446 | ||
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1450 | { | |
1451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1452 | result = (bool)(arg1)->Ok(); | |
1453 | ||
1454 | wxPyEndAllowThreads(__tstate); | |
1455 | if (PyErr_Occurred()) SWIG_fail; | |
1456 | } | |
1457 | { | |
1458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1459 | } | |
1460 | return resultobj; | |
1461 | fail: | |
1462 | return NULL; | |
1463 | } | |
1464 | ||
1465 | ||
c370783e | 1466 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1467 | PyObject *resultobj; |
1468 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e RD |
1469 | byte arg2 ; |
1470 | byte arg3 ; | |
1471 | byte arg4 ; | |
d55e5bfc RD |
1472 | PyObject * obj0 = 0 ; |
1473 | PyObject * obj1 = 0 ; | |
1474 | PyObject * obj2 = 0 ; | |
1475 | PyObject * obj3 = 0 ; | |
1476 | char *kwnames[] = { | |
1477 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1478 | }; | |
1479 | ||
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1483 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 1484 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1485 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 1486 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1487 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
1488 | if (PyErr_Occurred()) SWIG_fail; |
1489 | { | |
1490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1491 | (arg1)->Set(arg2,arg3,arg4); | |
1492 | ||
1493 | wxPyEndAllowThreads(__tstate); | |
1494 | if (PyErr_Occurred()) SWIG_fail; | |
1495 | } | |
1496 | Py_INCREF(Py_None); resultobj = Py_None; | |
1497 | return resultobj; | |
1498 | fail: | |
1499 | return NULL; | |
1500 | } | |
1501 | ||
1502 | ||
c370783e | 1503 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1504 | PyObject *resultobj; |
1505 | wxColour *arg1 = (wxColour *) 0 ; | |
1506 | unsigned long arg2 ; | |
1507 | PyObject * obj0 = 0 ; | |
1508 | PyObject * obj1 = 0 ; | |
1509 | char *kwnames[] = { | |
1510 | (char *) "self",(char *) "colRGB", NULL | |
1511 | }; | |
1512 | ||
1513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1516 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
1517 | if (PyErr_Occurred()) SWIG_fail; |
1518 | { | |
1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1520 | (arg1)->Set(arg2); | |
1521 | ||
1522 | wxPyEndAllowThreads(__tstate); | |
1523 | if (PyErr_Occurred()) SWIG_fail; | |
1524 | } | |
1525 | Py_INCREF(Py_None); resultobj = Py_None; | |
1526 | return resultobj; | |
1527 | fail: | |
1528 | return NULL; | |
1529 | } | |
1530 | ||
1531 | ||
c370783e | 1532 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1533 | PyObject *resultobj; |
1534 | wxColour *arg1 = (wxColour *) 0 ; | |
1535 | wxString *arg2 = 0 ; | |
b411df4a | 1536 | bool temp2 = false ; |
d55e5bfc RD |
1537 | PyObject * obj0 = 0 ; |
1538 | PyObject * obj1 = 0 ; | |
1539 | char *kwnames[] = { | |
1540 | (char *) "self",(char *) "colourName", NULL | |
1541 | }; | |
1542 | ||
1543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1546 | { | |
1547 | arg2 = wxString_in_helper(obj1); | |
1548 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 1549 | temp2 = true; |
d55e5bfc RD |
1550 | } |
1551 | { | |
1552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1553 | (arg1)->InitFromName((wxString const &)*arg2); | |
1554 | ||
1555 | wxPyEndAllowThreads(__tstate); | |
1556 | if (PyErr_Occurred()) SWIG_fail; | |
1557 | } | |
1558 | Py_INCREF(Py_None); resultobj = Py_None; | |
1559 | { | |
1560 | if (temp2) | |
1561 | delete arg2; | |
1562 | } | |
1563 | return resultobj; | |
1564 | fail: | |
1565 | { | |
1566 | if (temp2) | |
1567 | delete arg2; | |
1568 | } | |
1569 | return NULL; | |
1570 | } | |
1571 | ||
1572 | ||
c370783e | 1573 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1574 | PyObject *resultobj; |
1575 | wxColour *arg1 = (wxColour *) 0 ; | |
1576 | long result; | |
1577 | PyObject * obj0 = 0 ; | |
1578 | char *kwnames[] = { | |
1579 | (char *) "self", NULL | |
1580 | }; | |
1581 | ||
1582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1585 | { | |
1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1587 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1588 | ||
1589 | wxPyEndAllowThreads(__tstate); | |
1590 | if (PyErr_Occurred()) SWIG_fail; | |
1591 | } | |
c370783e | 1592 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
1593 | return resultobj; |
1594 | fail: | |
1595 | return NULL; | |
1596 | } | |
1597 | ||
1598 | ||
c370783e | 1599 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1600 | PyObject *resultobj; |
1601 | wxColour *arg1 = (wxColour *) 0 ; | |
1602 | wxColour *arg2 = 0 ; | |
1603 | bool result; | |
1604 | wxColour temp2 ; | |
1605 | PyObject * obj0 = 0 ; | |
1606 | PyObject * obj1 = 0 ; | |
1607 | char *kwnames[] = { | |
1608 | (char *) "self",(char *) "colour", NULL | |
1609 | }; | |
1610 | ||
1611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1614 | { | |
1615 | arg2 = &temp2; | |
1616 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1617 | } | |
1618 | { | |
1619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1620 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1621 | ||
1622 | wxPyEndAllowThreads(__tstate); | |
1623 | if (PyErr_Occurred()) SWIG_fail; | |
1624 | } | |
1625 | { | |
1626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1627 | } | |
1628 | return resultobj; | |
1629 | fail: | |
1630 | return NULL; | |
1631 | } | |
1632 | ||
1633 | ||
c370783e | 1634 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1635 | PyObject *resultobj; |
1636 | wxColour *arg1 = (wxColour *) 0 ; | |
1637 | wxColour *arg2 = 0 ; | |
1638 | bool result; | |
1639 | wxColour temp2 ; | |
1640 | PyObject * obj0 = 0 ; | |
1641 | PyObject * obj1 = 0 ; | |
1642 | char *kwnames[] = { | |
1643 | (char *) "self",(char *) "colour", NULL | |
1644 | }; | |
1645 | ||
1646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1649 | { | |
1650 | arg2 = &temp2; | |
1651 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1652 | } | |
1653 | { | |
1654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1655 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1656 | ||
1657 | wxPyEndAllowThreads(__tstate); | |
1658 | if (PyErr_Occurred()) SWIG_fail; | |
1659 | } | |
1660 | { | |
1661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1662 | } | |
1663 | return resultobj; | |
1664 | fail: | |
1665 | return NULL; | |
1666 | } | |
1667 | ||
1668 | ||
c370783e | 1669 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1670 | PyObject *resultobj; |
1671 | wxColour *arg1 = (wxColour *) 0 ; | |
1672 | PyObject *result; | |
1673 | PyObject * obj0 = 0 ; | |
1674 | char *kwnames[] = { | |
1675 | (char *) "self", NULL | |
1676 | }; | |
1677 | ||
1678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1681 | { | |
1682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1683 | result = (PyObject *)wxColour_Get(arg1); | |
1684 | ||
1685 | wxPyEndAllowThreads(__tstate); | |
1686 | if (PyErr_Occurred()) SWIG_fail; | |
1687 | } | |
1688 | resultobj = result; | |
1689 | return resultobj; | |
1690 | fail: | |
1691 | return NULL; | |
1692 | } | |
1693 | ||
1694 | ||
c370783e | 1695 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1696 | PyObject *resultobj; |
1697 | wxColour *arg1 = (wxColour *) 0 ; | |
1698 | unsigned long result; | |
1699 | PyObject * obj0 = 0 ; | |
1700 | char *kwnames[] = { | |
1701 | (char *) "self", NULL | |
1702 | }; | |
1703 | ||
1704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; | |
1705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1707 | { | |
1708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1709 | result = (unsigned long)wxColour_GetRGB(arg1); | |
1710 | ||
1711 | wxPyEndAllowThreads(__tstate); | |
1712 | if (PyErr_Occurred()) SWIG_fail; | |
1713 | } | |
c370783e | 1714 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
1715 | return resultobj; |
1716 | fail: | |
1717 | return NULL; | |
1718 | } | |
1719 | ||
1720 | ||
c370783e | 1721 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1722 | PyObject *obj; |
1723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1724 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1725 | Py_INCREF(obj); | |
1726 | return Py_BuildValue((char *)""); | |
1727 | } | |
c370783e | 1728 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1729 | PyObject *resultobj; |
1730 | int arg1 ; | |
1731 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1732 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1733 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1734 | wxPalette *result; | |
1735 | PyObject * obj0 = 0 ; | |
1736 | PyObject * obj1 = 0 ; | |
1737 | PyObject * obj2 = 0 ; | |
1738 | PyObject * obj3 = 0 ; | |
1739 | char *kwnames[] = { | |
1740 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1741 | }; | |
1742 | ||
1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c370783e | 1744 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
1745 | if (PyErr_Occurred()) SWIG_fail; |
1746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1748 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1750 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1752 | { | |
0439c23b | 1753 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1755 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1756 | ||
1757 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1758 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1759 | } |
1760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); | |
1761 | return resultobj; | |
1762 | fail: | |
1763 | return NULL; | |
1764 | } | |
1765 | ||
1766 | ||
c370783e | 1767 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1768 | PyObject *resultobj; |
1769 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1770 | PyObject * obj0 = 0 ; | |
1771 | char *kwnames[] = { | |
1772 | (char *) "self", NULL | |
1773 | }; | |
1774 | ||
1775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1778 | { | |
1779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1780 | delete arg1; | |
1781 | ||
1782 | wxPyEndAllowThreads(__tstate); | |
1783 | if (PyErr_Occurred()) SWIG_fail; | |
1784 | } | |
1785 | Py_INCREF(Py_None); resultobj = Py_None; | |
1786 | return resultobj; | |
1787 | fail: | |
1788 | return NULL; | |
1789 | } | |
1790 | ||
1791 | ||
c370783e | 1792 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1793 | PyObject *resultobj; |
1794 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1795 | byte arg2 ; | |
1796 | byte arg3 ; | |
1797 | byte arg4 ; | |
1798 | int result; | |
1799 | PyObject * obj0 = 0 ; | |
1800 | PyObject * obj1 = 0 ; | |
1801 | PyObject * obj2 = 0 ; | |
1802 | PyObject * obj3 = 0 ; | |
1803 | char *kwnames[] = { | |
1804 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1805 | }; | |
1806 | ||
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1810 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 1811 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1812 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 1813 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 1814 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
1815 | if (PyErr_Occurred()) SWIG_fail; |
1816 | { | |
1817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1818 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1819 | ||
1820 | wxPyEndAllowThreads(__tstate); | |
1821 | if (PyErr_Occurred()) SWIG_fail; | |
1822 | } | |
c370783e | 1823 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
1824 | return resultobj; |
1825 | fail: | |
1826 | return NULL; | |
1827 | } | |
1828 | ||
1829 | ||
c370783e | 1830 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1831 | PyObject *resultobj; |
1832 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1833 | int arg2 ; | |
1834 | byte *arg3 = (byte *) 0 ; | |
1835 | byte *arg4 = (byte *) 0 ; | |
1836 | byte *arg5 = (byte *) 0 ; | |
1837 | bool result; | |
1838 | byte temp3 ; | |
c370783e | 1839 | int res3 = 0 ; |
d55e5bfc | 1840 | byte temp4 ; |
c370783e | 1841 | int res4 = 0 ; |
d55e5bfc | 1842 | byte temp5 ; |
c370783e | 1843 | int res5 = 0 ; |
d55e5bfc RD |
1844 | PyObject * obj0 = 0 ; |
1845 | PyObject * obj1 = 0 ; | |
1846 | char *kwnames[] = { | |
1847 | (char *) "self",(char *) "pixel", NULL | |
1848 | }; | |
1849 | ||
c370783e RD |
1850 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
1851 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
1852 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
1854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 1856 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
1857 | if (PyErr_Occurred()) SWIG_fail; |
1858 | { | |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
1865 | { | |
1866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1867 | } | |
c370783e RD |
1868 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
1869 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
1870 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
1871 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
1872 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
1873 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
1874 | return resultobj; |
1875 | fail: | |
1876 | return NULL; | |
1877 | } | |
1878 | ||
1879 | ||
5cbf236d RD |
1880 | static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) { |
1881 | PyObject *resultobj; | |
1882 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1883 | int result; | |
1884 | PyObject * obj0 = 0 ; | |
1885 | char *kwnames[] = { | |
1886 | (char *) "self", NULL | |
1887 | }; | |
1888 | ||
1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail; | |
1890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1892 | { | |
1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1894 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
1895 | ||
1896 | wxPyEndAllowThreads(__tstate); | |
1897 | if (PyErr_Occurred()) SWIG_fail; | |
1898 | } | |
1899 | resultobj = SWIG_From_int((int)result); | |
1900 | return resultobj; | |
1901 | fail: | |
1902 | return NULL; | |
1903 | } | |
1904 | ||
1905 | ||
c370783e | 1906 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1907 | PyObject *resultobj; |
1908 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1909 | bool result; | |
1910 | PyObject * obj0 = 0 ; | |
1911 | char *kwnames[] = { | |
1912 | (char *) "self", NULL | |
1913 | }; | |
1914 | ||
1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1918 | { | |
1919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1920 | result = (bool)(arg1)->Ok(); | |
1921 | ||
1922 | wxPyEndAllowThreads(__tstate); | |
1923 | if (PyErr_Occurred()) SWIG_fail; | |
1924 | } | |
1925 | { | |
1926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1927 | } | |
1928 | return resultobj; | |
1929 | fail: | |
1930 | return NULL; | |
1931 | } | |
1932 | ||
1933 | ||
c370783e | 1934 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
1935 | PyObject *obj; |
1936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1937 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1938 | Py_INCREF(obj); | |
1939 | return Py_BuildValue((char *)""); | |
1940 | } | |
c370783e | 1941 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1942 | PyObject *resultobj; |
1943 | wxColour *arg1 = 0 ; | |
1944 | int arg2 = (int) 1 ; | |
1945 | int arg3 = (int) wxSOLID ; | |
1946 | wxPen *result; | |
1947 | wxColour temp1 ; | |
1948 | PyObject * obj0 = 0 ; | |
1949 | PyObject * obj1 = 0 ; | |
1950 | PyObject * obj2 = 0 ; | |
1951 | char *kwnames[] = { | |
1952 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1953 | }; | |
1954 | ||
1955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1956 | { | |
1957 | arg1 = &temp1; | |
1958 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1959 | } | |
1960 | if (obj1) { | |
c370783e | 1961 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
1962 | if (PyErr_Occurred()) SWIG_fail; |
1963 | } | |
1964 | if (obj2) { | |
c370783e | 1965 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
1966 | if (PyErr_Occurred()) SWIG_fail; |
1967 | } | |
1968 | { | |
0439c23b | 1969 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1971 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1972 | ||
1973 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1974 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1975 | } |
1976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); | |
1977 | return resultobj; | |
1978 | fail: | |
1979 | return NULL; | |
1980 | } | |
1981 | ||
1982 | ||
c370783e | 1983 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
1984 | PyObject *resultobj; |
1985 | wxPen *arg1 = (wxPen *) 0 ; | |
1986 | PyObject * obj0 = 0 ; | |
1987 | char *kwnames[] = { | |
1988 | (char *) "self", NULL | |
1989 | }; | |
1990 | ||
1991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1994 | { | |
1995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1996 | delete arg1; | |
1997 | ||
1998 | wxPyEndAllowThreads(__tstate); | |
1999 | if (PyErr_Occurred()) SWIG_fail; | |
2000 | } | |
2001 | Py_INCREF(Py_None); resultobj = Py_None; | |
2002 | return resultobj; | |
2003 | fail: | |
2004 | return NULL; | |
2005 | } | |
2006 | ||
2007 | ||
c370783e | 2008 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2009 | PyObject *resultobj; |
2010 | wxPen *arg1 = (wxPen *) 0 ; | |
2011 | int result; | |
2012 | PyObject * obj0 = 0 ; | |
2013 | char *kwnames[] = { | |
2014 | (char *) "self", NULL | |
2015 | }; | |
2016 | ||
2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
2018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2020 | { | |
2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2022 | result = (int)(arg1)->GetCap(); | |
2023 | ||
2024 | wxPyEndAllowThreads(__tstate); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | } | |
c370783e | 2027 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2028 | return resultobj; |
2029 | fail: | |
2030 | return NULL; | |
2031 | } | |
2032 | ||
2033 | ||
c370783e | 2034 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2035 | PyObject *resultobj; |
2036 | wxPen *arg1 = (wxPen *) 0 ; | |
2037 | wxColour result; | |
2038 | PyObject * obj0 = 0 ; | |
2039 | char *kwnames[] = { | |
2040 | (char *) "self", NULL | |
2041 | }; | |
2042 | ||
2043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
2044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2046 | { | |
2047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2048 | result = (arg1)->GetColour(); | |
2049 | ||
2050 | wxPyEndAllowThreads(__tstate); | |
2051 | if (PyErr_Occurred()) SWIG_fail; | |
2052 | } | |
2053 | { | |
2054 | wxColour * resultptr; | |
2055 | resultptr = new wxColour((wxColour &) result); | |
2056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2057 | } | |
2058 | return resultobj; | |
2059 | fail: | |
2060 | return NULL; | |
2061 | } | |
2062 | ||
2063 | ||
c370783e | 2064 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2065 | PyObject *resultobj; |
2066 | wxPen *arg1 = (wxPen *) 0 ; | |
2067 | int result; | |
2068 | PyObject * obj0 = 0 ; | |
2069 | char *kwnames[] = { | |
2070 | (char *) "self", NULL | |
2071 | }; | |
2072 | ||
2073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
2074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2076 | { | |
2077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2078 | result = (int)(arg1)->GetJoin(); | |
2079 | ||
2080 | wxPyEndAllowThreads(__tstate); | |
2081 | if (PyErr_Occurred()) SWIG_fail; | |
2082 | } | |
c370783e | 2083 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2084 | return resultobj; |
2085 | fail: | |
2086 | return NULL; | |
2087 | } | |
2088 | ||
2089 | ||
c370783e | 2090 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2091 | PyObject *resultobj; |
2092 | wxPen *arg1 = (wxPen *) 0 ; | |
2093 | int result; | |
2094 | PyObject * obj0 = 0 ; | |
2095 | char *kwnames[] = { | |
2096 | (char *) "self", NULL | |
2097 | }; | |
2098 | ||
2099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
2100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2102 | { | |
2103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2104 | result = (int)(arg1)->GetStyle(); | |
2105 | ||
2106 | wxPyEndAllowThreads(__tstate); | |
2107 | if (PyErr_Occurred()) SWIG_fail; | |
2108 | } | |
c370783e | 2109 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2110 | return resultobj; |
2111 | fail: | |
2112 | return NULL; | |
2113 | } | |
2114 | ||
2115 | ||
c370783e | 2116 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2117 | PyObject *resultobj; |
2118 | wxPen *arg1 = (wxPen *) 0 ; | |
2119 | int result; | |
2120 | PyObject * obj0 = 0 ; | |
2121 | char *kwnames[] = { | |
2122 | (char *) "self", NULL | |
2123 | }; | |
2124 | ||
2125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
2126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2128 | { | |
2129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2130 | result = (int)(arg1)->GetWidth(); | |
2131 | ||
2132 | wxPyEndAllowThreads(__tstate); | |
2133 | if (PyErr_Occurred()) SWIG_fail; | |
2134 | } | |
c370783e | 2135 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2136 | return resultobj; |
2137 | fail: | |
2138 | return NULL; | |
2139 | } | |
2140 | ||
2141 | ||
c370783e | 2142 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2143 | PyObject *resultobj; |
2144 | wxPen *arg1 = (wxPen *) 0 ; | |
2145 | bool result; | |
2146 | PyObject * obj0 = 0 ; | |
2147 | char *kwnames[] = { | |
2148 | (char *) "self", NULL | |
2149 | }; | |
2150 | ||
2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
2152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2154 | { | |
2155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2156 | result = (bool)(arg1)->Ok(); | |
2157 | ||
2158 | wxPyEndAllowThreads(__tstate); | |
2159 | if (PyErr_Occurred()) SWIG_fail; | |
2160 | } | |
2161 | { | |
2162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2163 | } | |
2164 | return resultobj; | |
2165 | fail: | |
2166 | return NULL; | |
2167 | } | |
2168 | ||
2169 | ||
c370783e | 2170 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2171 | PyObject *resultobj; |
2172 | wxPen *arg1 = (wxPen *) 0 ; | |
2173 | int arg2 ; | |
2174 | PyObject * obj0 = 0 ; | |
2175 | PyObject * obj1 = 0 ; | |
2176 | char *kwnames[] = { | |
2177 | (char *) "self",(char *) "cap_style", NULL | |
2178 | }; | |
2179 | ||
2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; | |
2181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2183 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2184 | if (PyErr_Occurred()) SWIG_fail; |
2185 | { | |
2186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2187 | (arg1)->SetCap(arg2); | |
2188 | ||
2189 | wxPyEndAllowThreads(__tstate); | |
2190 | if (PyErr_Occurred()) SWIG_fail; | |
2191 | } | |
2192 | Py_INCREF(Py_None); resultobj = Py_None; | |
2193 | return resultobj; | |
2194 | fail: | |
2195 | return NULL; | |
2196 | } | |
2197 | ||
2198 | ||
c370783e | 2199 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2200 | PyObject *resultobj; |
2201 | wxPen *arg1 = (wxPen *) 0 ; | |
2202 | wxColour *arg2 = 0 ; | |
2203 | wxColour temp2 ; | |
2204 | PyObject * obj0 = 0 ; | |
2205 | PyObject * obj1 = 0 ; | |
2206 | char *kwnames[] = { | |
2207 | (char *) "self",(char *) "colour", NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2213 | { | |
2214 | arg2 = &temp2; | |
2215 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2216 | } | |
2217 | { | |
2218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2219 | (arg1)->SetColour(*arg2); | |
2220 | ||
2221 | wxPyEndAllowThreads(__tstate); | |
2222 | if (PyErr_Occurred()) SWIG_fail; | |
2223 | } | |
2224 | Py_INCREF(Py_None); resultobj = Py_None; | |
2225 | return resultobj; | |
2226 | fail: | |
2227 | return NULL; | |
2228 | } | |
2229 | ||
2230 | ||
c370783e | 2231 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2232 | PyObject *resultobj; |
2233 | wxPen *arg1 = (wxPen *) 0 ; | |
2234 | int arg2 ; | |
2235 | PyObject * obj0 = 0 ; | |
2236 | PyObject * obj1 = 0 ; | |
2237 | char *kwnames[] = { | |
2238 | (char *) "self",(char *) "join_style", NULL | |
2239 | }; | |
2240 | ||
2241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; | |
2242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2244 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2245 | if (PyErr_Occurred()) SWIG_fail; |
2246 | { | |
2247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2248 | (arg1)->SetJoin(arg2); | |
2249 | ||
2250 | wxPyEndAllowThreads(__tstate); | |
2251 | if (PyErr_Occurred()) SWIG_fail; | |
2252 | } | |
2253 | Py_INCREF(Py_None); resultobj = Py_None; | |
2254 | return resultobj; | |
2255 | fail: | |
2256 | return NULL; | |
2257 | } | |
2258 | ||
2259 | ||
c370783e | 2260 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2261 | PyObject *resultobj; |
2262 | wxPen *arg1 = (wxPen *) 0 ; | |
2263 | int arg2 ; | |
2264 | PyObject * obj0 = 0 ; | |
2265 | PyObject * obj1 = 0 ; | |
2266 | char *kwnames[] = { | |
2267 | (char *) "self",(char *) "style", NULL | |
2268 | }; | |
2269 | ||
2270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2273 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2274 | if (PyErr_Occurred()) SWIG_fail; |
2275 | { | |
2276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2277 | (arg1)->SetStyle(arg2); | |
2278 | ||
2279 | wxPyEndAllowThreads(__tstate); | |
2280 | if (PyErr_Occurred()) SWIG_fail; | |
2281 | } | |
2282 | Py_INCREF(Py_None); resultobj = Py_None; | |
2283 | return resultobj; | |
2284 | fail: | |
2285 | return NULL; | |
2286 | } | |
2287 | ||
2288 | ||
c370783e | 2289 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2290 | PyObject *resultobj; |
2291 | wxPen *arg1 = (wxPen *) 0 ; | |
2292 | int arg2 ; | |
2293 | PyObject * obj0 = 0 ; | |
2294 | PyObject * obj1 = 0 ; | |
2295 | char *kwnames[] = { | |
2296 | (char *) "self",(char *) "width", NULL | |
2297 | }; | |
2298 | ||
2299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2302 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2303 | if (PyErr_Occurred()) SWIG_fail; |
2304 | { | |
2305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2306 | (arg1)->SetWidth(arg2); | |
2307 | ||
2308 | wxPyEndAllowThreads(__tstate); | |
2309 | if (PyErr_Occurred()) SWIG_fail; | |
2310 | } | |
2311 | Py_INCREF(Py_None); resultobj = Py_None; | |
2312 | return resultobj; | |
2313 | fail: | |
2314 | return NULL; | |
2315 | } | |
2316 | ||
2317 | ||
c370783e | 2318 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2319 | PyObject *resultobj; |
2320 | wxPen *arg1 = (wxPen *) 0 ; | |
2321 | int arg2 ; | |
2322 | wxDash *arg3 = (wxDash *) 0 ; | |
2323 | PyObject * obj0 = 0 ; | |
2324 | PyObject * obj1 = 0 ; | |
2325 | char *kwnames[] = { | |
2326 | (char *) "self",(char *) "dashes", NULL | |
2327 | }; | |
2328 | ||
2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2332 | { | |
2333 | arg2 = PyList_Size(obj1); | |
2334 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2335 | if (arg3 == NULL) SWIG_fail; | |
2336 | } | |
2337 | { | |
2338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2339 | (arg1)->SetDashes(arg2,arg3); | |
2340 | ||
2341 | wxPyEndAllowThreads(__tstate); | |
2342 | if (PyErr_Occurred()) SWIG_fail; | |
2343 | } | |
2344 | Py_INCREF(Py_None); resultobj = Py_None; | |
2345 | { | |
2346 | if (arg3) delete [] arg3; | |
2347 | } | |
2348 | return resultobj; | |
2349 | fail: | |
2350 | { | |
2351 | if (arg3) delete [] arg3; | |
2352 | } | |
2353 | return NULL; | |
2354 | } | |
2355 | ||
2356 | ||
c370783e | 2357 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2358 | PyObject *resultobj; |
2359 | wxPen *arg1 = (wxPen *) 0 ; | |
2360 | PyObject *result; | |
2361 | PyObject * obj0 = 0 ; | |
2362 | char *kwnames[] = { | |
2363 | (char *) "self", NULL | |
2364 | }; | |
2365 | ||
2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2369 | { | |
2370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2371 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2372 | ||
2373 | wxPyEndAllowThreads(__tstate); | |
2374 | if (PyErr_Occurred()) SWIG_fail; | |
2375 | } | |
2376 | resultobj = result; | |
2377 | return resultobj; | |
2378 | fail: | |
2379 | return NULL; | |
2380 | } | |
2381 | ||
2382 | ||
c370783e | 2383 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2384 | PyObject *resultobj; |
2385 | wxPen *arg1 = (wxPen *) 0 ; | |
d6c14a4c RD |
2386 | PyObject *arg2 = (PyObject *) 0 ; |
2387 | PyObject *arg3 = (PyObject *) 0 ; | |
d55e5bfc RD |
2388 | PyObject * obj0 = 0 ; |
2389 | PyObject * obj1 = 0 ; | |
d6c14a4c | 2390 | PyObject * obj2 = 0 ; |
d55e5bfc | 2391 | char *kwnames[] = { |
d6c14a4c | 2392 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d55e5bfc RD |
2393 | }; |
2394 | ||
d6c14a4c | 2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
2396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d6c14a4c RD |
2398 | arg2 = obj1; |
2399 | arg3 = obj2; | |
d55e5bfc RD |
2400 | { |
2401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 2402 | wxPen__SetDashes(arg1,arg2,arg3); |
d55e5bfc RD |
2403 | |
2404 | wxPyEndAllowThreads(__tstate); | |
2405 | if (PyErr_Occurred()) SWIG_fail; | |
2406 | } | |
d6c14a4c | 2407 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2408 | return resultobj; |
2409 | fail: | |
2410 | return NULL; | |
2411 | } | |
2412 | ||
2413 | ||
c370783e | 2414 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2415 | PyObject *resultobj; |
2416 | wxPen *arg1 = (wxPen *) 0 ; | |
2417 | wxPen *arg2 = (wxPen *) 0 ; | |
2418 | bool result; | |
2419 | PyObject * obj0 = 0 ; | |
2420 | PyObject * obj1 = 0 ; | |
2421 | char *kwnames[] = { | |
2422 | (char *) "self",(char *) "other", NULL | |
2423 | }; | |
2424 | ||
d6c14a4c | 2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
2426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2428 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2430 | { | |
2431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 2432 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2433 | |
2434 | wxPyEndAllowThreads(__tstate); | |
2435 | if (PyErr_Occurred()) SWIG_fail; | |
2436 | } | |
2437 | { | |
2438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2439 | } | |
2440 | return resultobj; | |
2441 | fail: | |
2442 | return NULL; | |
2443 | } | |
2444 | ||
2445 | ||
c370783e | 2446 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2447 | PyObject *resultobj; |
d6c14a4c RD |
2448 | wxPen *arg1 = (wxPen *) 0 ; |
2449 | wxPen *arg2 = (wxPen *) 0 ; | |
2450 | bool result; | |
d55e5bfc RD |
2451 | PyObject * obj0 = 0 ; |
2452 | PyObject * obj1 = 0 ; | |
d55e5bfc | 2453 | char *kwnames[] = { |
d6c14a4c | 2454 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2455 | }; |
2456 | ||
d6c14a4c RD |
2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
d55e5bfc | 2459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d6c14a4c | 2460 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, |
d55e5bfc | 2461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d55e5bfc RD |
2462 | { |
2463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 2464 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2465 | |
2466 | wxPyEndAllowThreads(__tstate); | |
2467 | if (PyErr_Occurred()) SWIG_fail; | |
2468 | } | |
d55e5bfc | 2469 | { |
d6c14a4c | 2470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
2471 | } |
2472 | return resultobj; | |
2473 | fail: | |
d55e5bfc RD |
2474 | return NULL; |
2475 | } | |
2476 | ||
2477 | ||
c370783e | 2478 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2479 | PyObject *obj; |
2480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
d6c14a4c | 2481 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d55e5bfc RD |
2482 | Py_INCREF(obj); |
2483 | return Py_BuildValue((char *)""); | |
2484 | } | |
c370783e | 2485 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2486 | PyObject *resultobj; |
2487 | wxColour *arg1 = 0 ; | |
2488 | int arg2 = (int) wxSOLID ; | |
2489 | wxBrush *result; | |
2490 | wxColour temp1 ; | |
2491 | PyObject * obj0 = 0 ; | |
2492 | PyObject * obj1 = 0 ; | |
2493 | char *kwnames[] = { | |
2494 | (char *) "colour",(char *) "style", NULL | |
2495 | }; | |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; | |
2498 | { | |
2499 | arg1 = &temp1; | |
2500 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2501 | } | |
2502 | if (obj1) { | |
c370783e | 2503 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2504 | if (PyErr_Occurred()) SWIG_fail; |
2505 | } | |
2506 | { | |
0439c23b | 2507 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2509 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2510 | ||
2511 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2512 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2513 | } |
2514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
2515 | return resultobj; | |
2516 | fail: | |
2517 | return NULL; | |
2518 | } | |
2519 | ||
2520 | ||
c370783e | 2521 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2522 | PyObject *resultobj; |
2523 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2524 | PyObject * obj0 = 0 ; | |
2525 | char *kwnames[] = { | |
2526 | (char *) "self", NULL | |
2527 | }; | |
2528 | ||
2529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2532 | { | |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2534 | delete arg1; | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | Py_INCREF(Py_None); resultobj = Py_None; | |
2540 | return resultobj; | |
2541 | fail: | |
2542 | return NULL; | |
2543 | } | |
2544 | ||
2545 | ||
c370783e | 2546 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2547 | PyObject *resultobj; |
2548 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2549 | wxColour *arg2 = 0 ; | |
2550 | wxColour temp2 ; | |
2551 | PyObject * obj0 = 0 ; | |
2552 | PyObject * obj1 = 0 ; | |
2553 | char *kwnames[] = { | |
2554 | (char *) "self",(char *) "col", NULL | |
2555 | }; | |
2556 | ||
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2560 | { | |
2561 | arg2 = &temp2; | |
2562 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2563 | } | |
2564 | { | |
2565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2566 | (arg1)->SetColour((wxColour const &)*arg2); | |
2567 | ||
2568 | wxPyEndAllowThreads(__tstate); | |
2569 | if (PyErr_Occurred()) SWIG_fail; | |
2570 | } | |
2571 | Py_INCREF(Py_None); resultobj = Py_None; | |
2572 | return resultobj; | |
2573 | fail: | |
2574 | return NULL; | |
2575 | } | |
2576 | ||
2577 | ||
c370783e | 2578 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2579 | PyObject *resultobj; |
2580 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2581 | int arg2 ; | |
2582 | PyObject * obj0 = 0 ; | |
2583 | PyObject * obj1 = 0 ; | |
2584 | char *kwnames[] = { | |
2585 | (char *) "self",(char *) "style", NULL | |
2586 | }; | |
2587 | ||
2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2591 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2592 | if (PyErr_Occurred()) SWIG_fail; |
2593 | { | |
2594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2595 | (arg1)->SetStyle(arg2); | |
2596 | ||
2597 | wxPyEndAllowThreads(__tstate); | |
2598 | if (PyErr_Occurred()) SWIG_fail; | |
2599 | } | |
2600 | Py_INCREF(Py_None); resultobj = Py_None; | |
2601 | return resultobj; | |
2602 | fail: | |
2603 | return NULL; | |
2604 | } | |
2605 | ||
2606 | ||
c370783e | 2607 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2608 | PyObject *resultobj; |
2609 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2610 | wxBitmap *arg2 = 0 ; | |
2611 | PyObject * obj0 = 0 ; | |
2612 | PyObject * obj1 = 0 ; | |
2613 | char *kwnames[] = { | |
2614 | (char *) "self",(char *) "stipple", NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2621 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2622 | SWIG_fail; | |
2623 | if (arg2 == NULL) { | |
2624 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2625 | SWIG_fail; | |
2626 | } | |
2627 | { | |
2628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2629 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2630 | ||
2631 | wxPyEndAllowThreads(__tstate); | |
2632 | if (PyErr_Occurred()) SWIG_fail; | |
2633 | } | |
2634 | Py_INCREF(Py_None); resultobj = Py_None; | |
2635 | return resultobj; | |
2636 | fail: | |
2637 | return NULL; | |
2638 | } | |
2639 | ||
2640 | ||
c370783e | 2641 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2642 | PyObject *resultobj; |
2643 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2644 | wxColour result; | |
2645 | PyObject * obj0 = 0 ; | |
2646 | char *kwnames[] = { | |
2647 | (char *) "self", NULL | |
2648 | }; | |
2649 | ||
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2653 | { | |
2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2655 | result = ((wxBrush const *)arg1)->GetColour(); | |
2656 | ||
2657 | wxPyEndAllowThreads(__tstate); | |
2658 | if (PyErr_Occurred()) SWIG_fail; | |
2659 | } | |
2660 | { | |
2661 | wxColour * resultptr; | |
2662 | resultptr = new wxColour((wxColour &) result); | |
2663 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2664 | } | |
2665 | return resultobj; | |
2666 | fail: | |
2667 | return NULL; | |
2668 | } | |
2669 | ||
2670 | ||
c370783e | 2671 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2672 | PyObject *resultobj; |
2673 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2674 | int result; | |
2675 | PyObject * obj0 = 0 ; | |
2676 | char *kwnames[] = { | |
2677 | (char *) "self", NULL | |
2678 | }; | |
2679 | ||
2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
c370783e | 2690 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2691 | return resultobj; |
2692 | fail: | |
2693 | return NULL; | |
2694 | } | |
2695 | ||
2696 | ||
c370783e | 2697 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2698 | PyObject *resultobj; |
2699 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2700 | wxBitmap *result; | |
2701 | PyObject * obj0 = 0 ; | |
2702 | char *kwnames[] = { | |
2703 | (char *) "self", NULL | |
2704 | }; | |
2705 | ||
2706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2709 | { | |
2710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2711 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2712 | ||
2713 | wxPyEndAllowThreads(__tstate); | |
2714 | if (PyErr_Occurred()) SWIG_fail; | |
2715 | } | |
2716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2717 | return resultobj; | |
2718 | fail: | |
2719 | return NULL; | |
2720 | } | |
2721 | ||
2722 | ||
f78cc896 RD |
2723 | static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) { |
2724 | PyObject *resultobj; | |
2725 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2726 | bool result; | |
2727 | PyObject * obj0 = 0 ; | |
2728 | char *kwnames[] = { | |
2729 | (char *) "self", NULL | |
2730 | }; | |
2731 | ||
2732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail; | |
2733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) SWIG_fail; | |
2741 | } | |
2742 | { | |
2743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2744 | } | |
2745 | return resultobj; | |
2746 | fail: | |
2747 | return NULL; | |
2748 | } | |
2749 | ||
2750 | ||
c370783e | 2751 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2752 | PyObject *resultobj; |
2753 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2754 | bool result; | |
2755 | PyObject * obj0 = 0 ; | |
2756 | char *kwnames[] = { | |
2757 | (char *) "self", NULL | |
2758 | }; | |
2759 | ||
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2763 | { | |
2764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2765 | result = (bool)(arg1)->Ok(); | |
2766 | ||
2767 | wxPyEndAllowThreads(__tstate); | |
2768 | if (PyErr_Occurred()) SWIG_fail; | |
2769 | } | |
2770 | { | |
2771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2772 | } | |
2773 | return resultobj; | |
2774 | fail: | |
2775 | return NULL; | |
2776 | } | |
2777 | ||
2778 | ||
c370783e | 2779 | static PyObject *_wrap_Brush_MacGetTheme(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2780 | PyObject *resultobj; |
2781 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2782 | short result; | |
2783 | PyObject * obj0 = 0 ; | |
2784 | char *kwnames[] = { | |
2785 | (char *) "self", NULL | |
2786 | }; | |
2787 | ||
2788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail; | |
2789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2791 | { | |
2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2793 | result = (short)(arg1)->MacGetTheme(); | |
2794 | ||
2795 | wxPyEndAllowThreads(__tstate); | |
2796 | if (PyErr_Occurred()) SWIG_fail; | |
2797 | } | |
c370783e | 2798 | resultobj = SWIG_From_short((short)result); |
d55e5bfc RD |
2799 | return resultobj; |
2800 | fail: | |
2801 | return NULL; | |
2802 | } | |
2803 | ||
2804 | ||
c370783e | 2805 | static PyObject *_wrap_Brush_MacSetTheme(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2806 | PyObject *resultobj; |
2807 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2808 | short arg2 ; | |
2809 | PyObject * obj0 = 0 ; | |
2810 | PyObject * obj1 = 0 ; | |
2811 | char *kwnames[] = { | |
2812 | (char *) "self",(char *) "macThemeBrush", NULL | |
2813 | }; | |
2814 | ||
2815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail; | |
2816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2818 | arg2 = (short)SWIG_As_short(obj1); |
d55e5bfc RD |
2819 | if (PyErr_Occurred()) SWIG_fail; |
2820 | { | |
2821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2822 | (arg1)->MacSetTheme(arg2); | |
2823 | ||
2824 | wxPyEndAllowThreads(__tstate); | |
2825 | if (PyErr_Occurred()) SWIG_fail; | |
2826 | } | |
2827 | Py_INCREF(Py_None); resultobj = Py_None; | |
2828 | return resultobj; | |
2829 | fail: | |
2830 | return NULL; | |
2831 | } | |
2832 | ||
2833 | ||
c370783e | 2834 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2835 | PyObject *obj; |
2836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2837 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2838 | Py_INCREF(obj); | |
2839 | return Py_BuildValue((char *)""); | |
2840 | } | |
c370783e | 2841 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2842 | PyObject *resultobj; |
2843 | wxString *arg1 = 0 ; | |
2844 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2845 | wxBitmap *result; | |
b411df4a | 2846 | bool temp1 = false ; |
d55e5bfc RD |
2847 | PyObject * obj0 = 0 ; |
2848 | PyObject * obj1 = 0 ; | |
2849 | char *kwnames[] = { | |
2850 | (char *) "name",(char *) "type", NULL | |
2851 | }; | |
2852 | ||
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; | |
2854 | { | |
2855 | arg1 = wxString_in_helper(obj0); | |
2856 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 2857 | temp1 = true; |
d55e5bfc RD |
2858 | } |
2859 | if (obj1) { | |
c370783e | 2860 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2861 | if (PyErr_Occurred()) SWIG_fail; |
2862 | } | |
2863 | { | |
0439c23b | 2864 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2866 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2867 | ||
2868 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2869 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2870 | } |
2871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2872 | { | |
2873 | if (temp1) | |
2874 | delete arg1; | |
2875 | } | |
2876 | return resultobj; | |
2877 | fail: | |
2878 | { | |
2879 | if (temp1) | |
2880 | delete arg1; | |
2881 | } | |
2882 | return NULL; | |
2883 | } | |
2884 | ||
2885 | ||
c370783e | 2886 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2887 | PyObject *resultobj; |
2888 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2889 | PyObject * obj0 = 0 ; | |
2890 | char *kwnames[] = { | |
2891 | (char *) "self", NULL | |
2892 | }; | |
2893 | ||
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2897 | { | |
2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2899 | delete arg1; | |
2900 | ||
2901 | wxPyEndAllowThreads(__tstate); | |
2902 | if (PyErr_Occurred()) SWIG_fail; | |
2903 | } | |
2904 | Py_INCREF(Py_None); resultobj = Py_None; | |
2905 | return resultobj; | |
2906 | fail: | |
2907 | return NULL; | |
2908 | } | |
2909 | ||
2910 | ||
c370783e | 2911 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
2912 | PyObject *resultobj; |
2913 | int arg1 ; | |
2914 | int arg2 ; | |
2915 | int arg3 = (int) -1 ; | |
2916 | wxBitmap *result; | |
2917 | PyObject * obj0 = 0 ; | |
2918 | PyObject * obj1 = 0 ; | |
2919 | PyObject * obj2 = 0 ; | |
2920 | char *kwnames[] = { | |
2921 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2922 | }; | |
2923 | ||
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 2925 | arg1 = (int)SWIG_As_int(obj0); |
d6c14a4c | 2926 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2927 | arg2 = (int)SWIG_As_int(obj1); |
d6c14a4c RD |
2928 | if (PyErr_Occurred()) SWIG_fail; |
2929 | if (obj2) { | |
c370783e | 2930 | arg3 = (int)SWIG_As_int(obj2); |
d6c14a4c RD |
2931 | if (PyErr_Occurred()) SWIG_fail; |
2932 | } | |
2933 | { | |
0439c23b | 2934 | if (!wxPyCheckForApp()) SWIG_fail; |
d6c14a4c RD |
2935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2936 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2937 | ||
2938 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2939 | if (PyErr_Occurred()) SWIG_fail; |
d6c14a4c RD |
2940 | } |
2941 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2942 | return resultobj; | |
2943 | fail: | |
2944 | return NULL; | |
2945 | } | |
2946 | ||
2947 | ||
c370783e | 2948 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2949 | PyObject *resultobj; |
2950 | wxIcon *arg1 = 0 ; | |
2951 | wxBitmap *result; | |
2952 | PyObject * obj0 = 0 ; | |
2953 | char *kwnames[] = { | |
2954 | (char *) "icon", NULL | |
2955 | }; | |
2956 | ||
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
2959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2960 | SWIG_fail; | |
2961 | if (arg1 == NULL) { | |
2962 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2963 | SWIG_fail; | |
2964 | } | |
2965 | { | |
0439c23b | 2966 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2968 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2969 | ||
2970 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2971 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2972 | } |
2973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2974 | return resultobj; | |
2975 | fail: | |
2976 | return NULL; | |
2977 | } | |
2978 | ||
2979 | ||
c370783e | 2980 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2981 | PyObject *resultobj; |
2982 | wxImage *arg1 = 0 ; | |
2983 | int arg2 = (int) -1 ; | |
2984 | wxBitmap *result; | |
2985 | PyObject * obj0 = 0 ; | |
2986 | PyObject * obj1 = 0 ; | |
2987 | char *kwnames[] = { | |
2988 | (char *) "image",(char *) "depth", NULL | |
2989 | }; | |
2990 | ||
2991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; | |
2992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
2993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2994 | SWIG_fail; | |
2995 | if (arg1 == NULL) { | |
2996 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2997 | SWIG_fail; | |
2998 | } | |
2999 | if (obj1) { | |
c370783e | 3000 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3001 | if (PyErr_Occurred()) SWIG_fail; |
3002 | } | |
3003 | { | |
0439c23b | 3004 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3006 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
3007 | ||
3008 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3009 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3010 | } |
3011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
3012 | return resultobj; | |
3013 | fail: | |
3014 | return NULL; | |
3015 | } | |
3016 | ||
3017 | ||
c370783e | 3018 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3019 | PyObject *resultobj; |
3020 | PyObject *arg1 = (PyObject *) 0 ; | |
3021 | wxBitmap *result; | |
3022 | PyObject * obj0 = 0 ; | |
3023 | char *kwnames[] = { | |
3024 | (char *) "listOfStrings", NULL | |
3025 | }; | |
3026 | ||
3027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
3028 | arg1 = obj0; | |
3029 | { | |
0439c23b | 3030 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3032 | result = (wxBitmap *)new_wxBitmap(arg1); | |
3033 | ||
3034 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3035 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3036 | } |
3037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
3038 | return resultobj; | |
3039 | fail: | |
3040 | return NULL; | |
3041 | } | |
3042 | ||
3043 | ||
c370783e | 3044 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3045 | PyObject *resultobj; |
3046 | PyObject *arg1 = (PyObject *) 0 ; | |
3047 | int arg2 ; | |
3048 | int arg3 ; | |
3049 | int arg4 = (int) 1 ; | |
3050 | wxBitmap *result; | |
3051 | PyObject * obj0 = 0 ; | |
3052 | PyObject * obj1 = 0 ; | |
3053 | PyObject * obj2 = 0 ; | |
3054 | PyObject * obj3 = 0 ; | |
3055 | char *kwnames[] = { | |
3056 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
3057 | }; | |
3058 | ||
3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3060 | arg1 = obj0; | |
c370783e | 3061 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 3062 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3063 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3064 | if (PyErr_Occurred()) SWIG_fail; |
3065 | if (obj3) { | |
c370783e | 3066 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3067 | if (PyErr_Occurred()) SWIG_fail; |
3068 | } | |
3069 | { | |
0439c23b | 3070 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3072 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
3073 | ||
3074 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3075 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3076 | } |
3077 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
3078 | return resultobj; | |
3079 | fail: | |
3080 | return NULL; | |
3081 | } | |
3082 | ||
3083 | ||
c370783e | 3084 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3085 | PyObject *resultobj; |
3086 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3087 | bool result; | |
3088 | PyObject * obj0 = 0 ; | |
3089 | char *kwnames[] = { | |
3090 | (char *) "self", NULL | |
3091 | }; | |
3092 | ||
3093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
3094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3096 | { | |
3097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3098 | result = (bool)(arg1)->Ok(); | |
3099 | ||
3100 | wxPyEndAllowThreads(__tstate); | |
3101 | if (PyErr_Occurred()) SWIG_fail; | |
3102 | } | |
3103 | { | |
3104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3105 | } | |
3106 | return resultobj; | |
3107 | fail: | |
3108 | return NULL; | |
3109 | } | |
3110 | ||
3111 | ||
c370783e | 3112 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3113 | PyObject *resultobj; |
3114 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3115 | int result; | |
3116 | PyObject * obj0 = 0 ; | |
3117 | char *kwnames[] = { | |
3118 | (char *) "self", NULL | |
3119 | }; | |
3120 | ||
3121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
3122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3124 | { | |
3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3126 | result = (int)(arg1)->GetWidth(); | |
3127 | ||
3128 | wxPyEndAllowThreads(__tstate); | |
3129 | if (PyErr_Occurred()) SWIG_fail; | |
3130 | } | |
c370783e | 3131 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3132 | return resultobj; |
3133 | fail: | |
3134 | return NULL; | |
3135 | } | |
3136 | ||
3137 | ||
c370783e | 3138 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3139 | PyObject *resultobj; |
3140 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3141 | int result; | |
3142 | PyObject * obj0 = 0 ; | |
3143 | char *kwnames[] = { | |
3144 | (char *) "self", NULL | |
3145 | }; | |
3146 | ||
3147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
3148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3150 | { | |
3151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3152 | result = (int)(arg1)->GetHeight(); | |
3153 | ||
3154 | wxPyEndAllowThreads(__tstate); | |
3155 | if (PyErr_Occurred()) SWIG_fail; | |
3156 | } | |
c370783e | 3157 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3158 | return resultobj; |
3159 | fail: | |
3160 | return NULL; | |
3161 | } | |
3162 | ||
3163 | ||
c370783e | 3164 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3165 | PyObject *resultobj; |
3166 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3167 | int result; | |
3168 | PyObject * obj0 = 0 ; | |
3169 | char *kwnames[] = { | |
3170 | (char *) "self", NULL | |
3171 | }; | |
3172 | ||
3173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
3174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3176 | { | |
3177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3178 | result = (int)(arg1)->GetDepth(); | |
3179 | ||
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
c370783e | 3183 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3184 | return resultobj; |
3185 | fail: | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
c370783e | 3190 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3191 | PyObject *resultobj; |
3192 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3193 | wxSize result; | |
3194 | PyObject * obj0 = 0 ; | |
3195 | char *kwnames[] = { | |
3196 | (char *) "self", NULL | |
3197 | }; | |
3198 | ||
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3202 | { | |
3203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3204 | result = wxBitmap_GetSize(arg1); | |
3205 | ||
3206 | wxPyEndAllowThreads(__tstate); | |
3207 | if (PyErr_Occurred()) SWIG_fail; | |
3208 | } | |
3209 | { | |
3210 | wxSize * resultptr; | |
3211 | resultptr = new wxSize((wxSize &) result); | |
3212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3213 | } | |
3214 | return resultobj; | |
3215 | fail: | |
3216 | return NULL; | |
3217 | } | |
3218 | ||
3219 | ||
c370783e | 3220 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3221 | PyObject *resultobj; |
3222 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3223 | SwigValueWrapper< wxImage > result; | |
3224 | PyObject * obj0 = 0 ; | |
3225 | char *kwnames[] = { | |
3226 | (char *) "self", NULL | |
3227 | }; | |
3228 | ||
3229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
3230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3232 | { | |
3233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3234 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3235 | ||
3236 | wxPyEndAllowThreads(__tstate); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
3239 | { | |
3240 | wxImage * resultptr; | |
3241 | resultptr = new wxImage((wxImage &) result); | |
3242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
3243 | } | |
3244 | return resultobj; | |
3245 | fail: | |
3246 | return NULL; | |
3247 | } | |
3248 | ||
3249 | ||
c370783e | 3250 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3251 | PyObject *resultobj; |
3252 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3253 | wxMask *result; | |
3254 | PyObject * obj0 = 0 ; | |
3255 | char *kwnames[] = { | |
3256 | (char *) "self", NULL | |
3257 | }; | |
3258 | ||
3259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3262 | { | |
3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3264 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3265 | ||
3266 | wxPyEndAllowThreads(__tstate); | |
3267 | if (PyErr_Occurred()) SWIG_fail; | |
3268 | } | |
3269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); | |
3270 | return resultobj; | |
3271 | fail: | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
c370783e | 3276 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3277 | PyObject *resultobj; |
3278 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3279 | wxMask *arg2 = (wxMask *) 0 ; | |
3280 | PyObject * obj0 = 0 ; | |
3281 | PyObject * obj1 = 0 ; | |
3282 | char *kwnames[] = { | |
3283 | (char *) "self",(char *) "mask", NULL | |
3284 | }; | |
3285 | ||
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3291 | { | |
3292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3293 | (arg1)->SetMask(arg2); | |
3294 | ||
3295 | wxPyEndAllowThreads(__tstate); | |
3296 | if (PyErr_Occurred()) SWIG_fail; | |
3297 | } | |
3298 | Py_INCREF(Py_None); resultobj = Py_None; | |
3299 | return resultobj; | |
3300 | fail: | |
3301 | return NULL; | |
3302 | } | |
3303 | ||
3304 | ||
c370783e | 3305 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3306 | PyObject *resultobj; |
3307 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3308 | wxColour *arg2 = 0 ; | |
3309 | wxColour temp2 ; | |
3310 | PyObject * obj0 = 0 ; | |
3311 | PyObject * obj1 = 0 ; | |
3312 | char *kwnames[] = { | |
3313 | (char *) "self",(char *) "colour", NULL | |
3314 | }; | |
3315 | ||
3316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3319 | { | |
3320 | arg2 = &temp2; | |
3321 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3322 | } | |
3323 | { | |
3324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3325 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3326 | ||
3327 | wxPyEndAllowThreads(__tstate); | |
3328 | if (PyErr_Occurred()) SWIG_fail; | |
3329 | } | |
3330 | Py_INCREF(Py_None); resultobj = Py_None; | |
3331 | return resultobj; | |
3332 | fail: | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
c370783e | 3337 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3338 | PyObject *resultobj; |
3339 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3340 | wxRect *arg2 = 0 ; | |
3341 | SwigValueWrapper< wxBitmap > result; | |
3342 | wxRect temp2 ; | |
3343 | PyObject * obj0 = 0 ; | |
3344 | PyObject * obj1 = 0 ; | |
3345 | char *kwnames[] = { | |
3346 | (char *) "self",(char *) "rect", NULL | |
3347 | }; | |
3348 | ||
3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3352 | { | |
3353 | arg2 = &temp2; | |
3354 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3355 | } | |
3356 | { | |
3357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3358 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3359 | ||
3360 | wxPyEndAllowThreads(__tstate); | |
3361 | if (PyErr_Occurred()) SWIG_fail; | |
3362 | } | |
3363 | { | |
3364 | wxBitmap * resultptr; | |
3365 | resultptr = new wxBitmap((wxBitmap &) result); | |
3366 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3367 | } | |
3368 | return resultobj; | |
3369 | fail: | |
3370 | return NULL; | |
3371 | } | |
3372 | ||
3373 | ||
c370783e | 3374 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3375 | PyObject *resultobj; |
3376 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3377 | wxString *arg2 = 0 ; | |
3378 | int arg3 ; | |
d6c14a4c | 3379 | wxPalette *arg4 = (wxPalette *) NULL ; |
d55e5bfc | 3380 | bool result; |
b411df4a | 3381 | bool temp2 = false ; |
d55e5bfc RD |
3382 | PyObject * obj0 = 0 ; |
3383 | PyObject * obj1 = 0 ; | |
3384 | PyObject * obj2 = 0 ; | |
3385 | PyObject * obj3 = 0 ; | |
3386 | char *kwnames[] = { | |
3387 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3388 | }; | |
3389 | ||
3390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3393 | { | |
3394 | arg2 = wxString_in_helper(obj1); | |
3395 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3396 | temp2 = true; |
d55e5bfc | 3397 | } |
c370783e | 3398 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3399 | if (PyErr_Occurred()) SWIG_fail; |
3400 | if (obj3) { | |
3401 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, | |
3402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3403 | } | |
3404 | { | |
3405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3406 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3407 | ||
3408 | wxPyEndAllowThreads(__tstate); | |
3409 | if (PyErr_Occurred()) SWIG_fail; | |
3410 | } | |
3411 | { | |
3412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3413 | } | |
3414 | { | |
3415 | if (temp2) | |
3416 | delete arg2; | |
3417 | } | |
3418 | return resultobj; | |
3419 | fail: | |
3420 | { | |
3421 | if (temp2) | |
3422 | delete arg2; | |
3423 | } | |
3424 | return NULL; | |
3425 | } | |
3426 | ||
3427 | ||
c370783e | 3428 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3429 | PyObject *resultobj; |
3430 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3431 | wxString *arg2 = 0 ; | |
3432 | int arg3 ; | |
3433 | bool result; | |
b411df4a | 3434 | bool temp2 = false ; |
d55e5bfc RD |
3435 | PyObject * obj0 = 0 ; |
3436 | PyObject * obj1 = 0 ; | |
3437 | PyObject * obj2 = 0 ; | |
3438 | char *kwnames[] = { | |
3439 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3440 | }; | |
3441 | ||
3442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3445 | { | |
3446 | arg2 = wxString_in_helper(obj1); | |
3447 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 3448 | temp2 = true; |
d55e5bfc | 3449 | } |
c370783e | 3450 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3451 | if (PyErr_Occurred()) SWIG_fail; |
3452 | { | |
3453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3454 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3455 | ||
3456 | wxPyEndAllowThreads(__tstate); | |
3457 | if (PyErr_Occurred()) SWIG_fail; | |
3458 | } | |
3459 | { | |
3460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3461 | } | |
3462 | { | |
3463 | if (temp2) | |
3464 | delete arg2; | |
3465 | } | |
3466 | return resultobj; | |
3467 | fail: | |
3468 | { | |
3469 | if (temp2) | |
3470 | delete arg2; | |
3471 | } | |
3472 | return NULL; | |
3473 | } | |
3474 | ||
3475 | ||
070c48b4 RD |
3476 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
3477 | PyObject *resultobj; | |
3478 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3479 | wxPalette *result; | |
3480 | PyObject * obj0 = 0 ; | |
3481 | char *kwnames[] = { | |
3482 | (char *) "self", NULL | |
3483 | }; | |
3484 | ||
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; | |
3486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3488 | { | |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
3491 | ||
3492 | wxPyEndAllowThreads(__tstate); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | } | |
3495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); | |
3496 | return resultobj; | |
3497 | fail: | |
3498 | return NULL; | |
3499 | } | |
3500 | ||
3501 | ||
c370783e | 3502 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3503 | PyObject *resultobj; |
3504 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3505 | wxIcon *arg2 = 0 ; | |
3506 | bool result; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | PyObject * obj1 = 0 ; | |
3509 | char *kwnames[] = { | |
3510 | (char *) "self",(char *) "icon", NULL | |
3511 | }; | |
3512 | ||
3513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3518 | SWIG_fail; | |
3519 | if (arg2 == NULL) { | |
3520 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3521 | SWIG_fail; | |
3522 | } | |
3523 | { | |
3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3525 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3526 | ||
3527 | wxPyEndAllowThreads(__tstate); | |
3528 | if (PyErr_Occurred()) SWIG_fail; | |
3529 | } | |
3530 | { | |
3531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3532 | } | |
3533 | return resultobj; | |
3534 | fail: | |
3535 | return NULL; | |
3536 | } | |
3537 | ||
3538 | ||
c370783e | 3539 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3540 | PyObject *resultobj; |
3541 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3542 | int arg2 ; | |
3543 | PyObject * obj0 = 0 ; | |
3544 | PyObject * obj1 = 0 ; | |
3545 | char *kwnames[] = { | |
3546 | (char *) "self",(char *) "height", NULL | |
3547 | }; | |
3548 | ||
3549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3552 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3553 | if (PyErr_Occurred()) SWIG_fail; |
3554 | { | |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3556 | (arg1)->SetHeight(arg2); | |
3557 | ||
3558 | wxPyEndAllowThreads(__tstate); | |
3559 | if (PyErr_Occurred()) SWIG_fail; | |
3560 | } | |
3561 | Py_INCREF(Py_None); resultobj = Py_None; | |
3562 | return resultobj; | |
3563 | fail: | |
3564 | return NULL; | |
3565 | } | |
3566 | ||
3567 | ||
c370783e | 3568 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3569 | PyObject *resultobj; |
3570 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3571 | int arg2 ; | |
3572 | PyObject * obj0 = 0 ; | |
3573 | PyObject * obj1 = 0 ; | |
3574 | char *kwnames[] = { | |
3575 | (char *) "self",(char *) "width", NULL | |
3576 | }; | |
3577 | ||
3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3581 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3582 | if (PyErr_Occurred()) SWIG_fail; |
3583 | { | |
3584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3585 | (arg1)->SetWidth(arg2); | |
3586 | ||
3587 | wxPyEndAllowThreads(__tstate); | |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
3589 | } | |
3590 | Py_INCREF(Py_None); resultobj = Py_None; | |
3591 | return resultobj; | |
3592 | fail: | |
3593 | return NULL; | |
3594 | } | |
3595 | ||
3596 | ||
c370783e | 3597 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3598 | PyObject *resultobj; |
3599 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3600 | int arg2 ; | |
3601 | PyObject * obj0 = 0 ; | |
3602 | PyObject * obj1 = 0 ; | |
3603 | char *kwnames[] = { | |
3604 | (char *) "self",(char *) "depth", NULL | |
3605 | }; | |
3606 | ||
3607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3610 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3611 | if (PyErr_Occurred()) SWIG_fail; |
3612 | { | |
3613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3614 | (arg1)->SetDepth(arg2); | |
3615 | ||
3616 | wxPyEndAllowThreads(__tstate); | |
3617 | if (PyErr_Occurred()) SWIG_fail; | |
3618 | } | |
3619 | Py_INCREF(Py_None); resultobj = Py_None; | |
3620 | return resultobj; | |
3621 | fail: | |
3622 | return NULL; | |
3623 | } | |
3624 | ||
3625 | ||
c370783e | 3626 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3627 | PyObject *resultobj; |
3628 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3629 | wxSize *arg2 = 0 ; | |
3630 | wxSize temp2 ; | |
3631 | PyObject * obj0 = 0 ; | |
3632 | PyObject * obj1 = 0 ; | |
3633 | char *kwnames[] = { | |
3634 | (char *) "self",(char *) "size", NULL | |
3635 | }; | |
3636 | ||
3637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3640 | { | |
3641 | arg2 = &temp2; | |
3642 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3643 | } | |
3644 | { | |
3645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3646 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3647 | ||
3648 | wxPyEndAllowThreads(__tstate); | |
3649 | if (PyErr_Occurred()) SWIG_fail; | |
3650 | } | |
3651 | Py_INCREF(Py_None); resultobj = Py_None; | |
3652 | return resultobj; | |
3653 | fail: | |
3654 | return NULL; | |
3655 | } | |
3656 | ||
3657 | ||
c370783e | 3658 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3659 | PyObject *resultobj; |
3660 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3661 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3662 | bool result; | |
3663 | PyObject * obj0 = 0 ; | |
3664 | PyObject * obj1 = 0 ; | |
3665 | char *kwnames[] = { | |
3666 | (char *) "self",(char *) "other", NULL | |
3667 | }; | |
3668 | ||
3669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3672 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3674 | { | |
3675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3676 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3677 | ||
3678 | wxPyEndAllowThreads(__tstate); | |
3679 | if (PyErr_Occurred()) SWIG_fail; | |
3680 | } | |
3681 | { | |
3682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3683 | } | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
c370783e | 3690 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3691 | PyObject *resultobj; |
3692 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3693 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3694 | bool result; | |
3695 | PyObject * obj0 = 0 ; | |
3696 | PyObject * obj1 = 0 ; | |
3697 | char *kwnames[] = { | |
3698 | (char *) "self",(char *) "other", NULL | |
3699 | }; | |
3700 | ||
3701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3706 | { | |
3707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3708 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3709 | ||
3710 | wxPyEndAllowThreads(__tstate); | |
3711 | if (PyErr_Occurred()) SWIG_fail; | |
3712 | } | |
3713 | { | |
3714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3715 | } | |
3716 | return resultobj; | |
3717 | fail: | |
3718 | return NULL; | |
3719 | } | |
3720 | ||
3721 | ||
c370783e | 3722 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3723 | PyObject *obj; |
3724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3725 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3726 | Py_INCREF(obj); | |
3727 | return Py_BuildValue((char *)""); | |
3728 | } | |
c370783e | 3729 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3730 | PyObject *resultobj; |
3731 | wxBitmap *arg1 = 0 ; | |
3732 | wxColour const &arg2_defvalue = wxNullColour ; | |
3733 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3734 | wxMask *result; | |
3735 | wxColour temp2 ; | |
3736 | PyObject * obj0 = 0 ; | |
3737 | PyObject * obj1 = 0 ; | |
3738 | char *kwnames[] = { | |
3739 | (char *) "bitmap",(char *) "colour", NULL | |
3740 | }; | |
3741 | ||
3742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; | |
3743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3744 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3745 | SWIG_fail; | |
3746 | if (arg1 == NULL) { | |
3747 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3748 | SWIG_fail; | |
3749 | } | |
3750 | if (obj1) { | |
3751 | { | |
3752 | arg2 = &temp2; | |
3753 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3754 | } | |
3755 | } | |
3756 | { | |
0439c23b | 3757 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3759 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3760 | ||
3761 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3762 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3763 | } |
3764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); | |
3765 | return resultobj; | |
3766 | fail: | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
c370783e | 3771 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3772 | PyObject *obj; |
3773 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3774 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3775 | Py_INCREF(obj); | |
3776 | return Py_BuildValue((char *)""); | |
3777 | } | |
c370783e | 3778 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3779 | PyObject *resultobj; |
3780 | wxString *arg1 = 0 ; | |
3781 | int arg2 ; | |
3782 | int arg3 = (int) -1 ; | |
3783 | int arg4 = (int) -1 ; | |
3784 | wxIcon *result; | |
b411df4a | 3785 | bool temp1 = false ; |
d55e5bfc RD |
3786 | PyObject * obj0 = 0 ; |
3787 | PyObject * obj1 = 0 ; | |
3788 | PyObject * obj2 = 0 ; | |
3789 | PyObject * obj3 = 0 ; | |
3790 | char *kwnames[] = { | |
3791 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3792 | }; | |
3793 | ||
3794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3795 | { | |
3796 | arg1 = wxString_in_helper(obj0); | |
3797 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 3798 | temp1 = true; |
d55e5bfc | 3799 | } |
c370783e | 3800 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3801 | if (PyErr_Occurred()) SWIG_fail; |
3802 | if (obj2) { | |
c370783e | 3803 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3804 | if (PyErr_Occurred()) SWIG_fail; |
3805 | } | |
3806 | if (obj3) { | |
c370783e | 3807 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3808 | if (PyErr_Occurred()) SWIG_fail; |
3809 | } | |
3810 | { | |
0439c23b | 3811 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3813 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3814 | ||
3815 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3816 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3817 | } |
3818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3819 | { | |
3820 | if (temp1) | |
3821 | delete arg1; | |
3822 | } | |
3823 | return resultobj; | |
3824 | fail: | |
3825 | { | |
3826 | if (temp1) | |
3827 | delete arg1; | |
3828 | } | |
3829 | return NULL; | |
3830 | } | |
3831 | ||
3832 | ||
c370783e | 3833 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3834 | PyObject *resultobj; |
3835 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3836 | PyObject * obj0 = 0 ; | |
3837 | char *kwnames[] = { | |
3838 | (char *) "self", NULL | |
3839 | }; | |
3840 | ||
3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3844 | { | |
3845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3846 | delete arg1; | |
3847 | ||
3848 | wxPyEndAllowThreads(__tstate); | |
3849 | if (PyErr_Occurred()) SWIG_fail; | |
3850 | } | |
3851 | Py_INCREF(Py_None); resultobj = Py_None; | |
3852 | return resultobj; | |
3853 | fail: | |
3854 | return NULL; | |
3855 | } | |
3856 | ||
3857 | ||
c370783e | 3858 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3859 | PyObject *resultobj; |
3860 | wxIcon *result; | |
3861 | char *kwnames[] = { | |
3862 | NULL | |
3863 | }; | |
3864 | ||
3865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3866 | { | |
0439c23b | 3867 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3869 | result = (wxIcon *)new wxIcon(); | |
3870 | ||
3871 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3872 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3873 | } |
3874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3875 | return resultobj; | |
3876 | fail: | |
3877 | return NULL; | |
3878 | } | |
3879 | ||
3880 | ||
c370783e | 3881 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3882 | PyObject *resultobj; |
3883 | wxIconLocation *arg1 = 0 ; | |
3884 | wxIcon *result; | |
3885 | PyObject * obj0 = 0 ; | |
3886 | char *kwnames[] = { | |
3887 | (char *) "loc", NULL | |
3888 | }; | |
3889 | ||
3890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
3892 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3893 | SWIG_fail; | |
3894 | if (arg1 == NULL) { | |
3895 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3896 | SWIG_fail; | |
3897 | } | |
3898 | { | |
0439c23b | 3899 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3901 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3902 | ||
3903 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3904 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3905 | } |
3906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3907 | return resultobj; | |
3908 | fail: | |
3909 | return NULL; | |
3910 | } | |
3911 | ||
3912 | ||
c370783e | 3913 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3914 | PyObject *resultobj; |
3915 | wxBitmap *arg1 = 0 ; | |
3916 | wxIcon *result; | |
3917 | PyObject * obj0 = 0 ; | |
3918 | char *kwnames[] = { | |
3919 | (char *) "bmp", NULL | |
3920 | }; | |
3921 | ||
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3925 | SWIG_fail; | |
3926 | if (arg1 == NULL) { | |
3927 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3928 | SWIG_fail; | |
3929 | } | |
3930 | { | |
0439c23b | 3931 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3933 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3934 | ||
3935 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3936 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3937 | } |
3938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3939 | return resultobj; | |
3940 | fail: | |
3941 | return NULL; | |
3942 | } | |
3943 | ||
3944 | ||
c370783e | 3945 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3946 | PyObject *resultobj; |
3947 | PyObject *arg1 = (PyObject *) 0 ; | |
3948 | wxIcon *result; | |
3949 | PyObject * obj0 = 0 ; | |
3950 | char *kwnames[] = { | |
3951 | (char *) "listOfStrings", NULL | |
3952 | }; | |
3953 | ||
3954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3955 | arg1 = obj0; | |
3956 | { | |
0439c23b | 3957 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3959 | result = (wxIcon *)new_wxIcon(arg1); | |
3960 | ||
3961 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3962 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3963 | } |
3964 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3965 | return resultobj; | |
3966 | fail: | |
3967 | return NULL; | |
3968 | } | |
3969 | ||
3970 | ||
c370783e | 3971 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3972 | PyObject *resultobj; |
3973 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3974 | bool result; | |
3975 | PyObject * obj0 = 0 ; | |
3976 | char *kwnames[] = { | |
3977 | (char *) "self", NULL | |
3978 | }; | |
3979 | ||
3980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3983 | { | |
3984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3985 | result = (bool)(arg1)->Ok(); | |
3986 | ||
3987 | wxPyEndAllowThreads(__tstate); | |
3988 | if (PyErr_Occurred()) SWIG_fail; | |
3989 | } | |
3990 | { | |
3991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3992 | } | |
3993 | return resultobj; | |
3994 | fail: | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
c370783e | 3999 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4000 | PyObject *resultobj; |
4001 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4002 | int result; | |
4003 | PyObject * obj0 = 0 ; | |
4004 | char *kwnames[] = { | |
4005 | (char *) "self", NULL | |
4006 | }; | |
4007 | ||
4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
4009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4011 | { | |
4012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4013 | result = (int)(arg1)->GetWidth(); | |
4014 | ||
4015 | wxPyEndAllowThreads(__tstate); | |
4016 | if (PyErr_Occurred()) SWIG_fail; | |
4017 | } | |
c370783e | 4018 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4019 | return resultobj; |
4020 | fail: | |
4021 | return NULL; | |
4022 | } | |
4023 | ||
4024 | ||
c370783e | 4025 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4026 | PyObject *resultobj; |
4027 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4028 | int result; | |
4029 | PyObject * obj0 = 0 ; | |
4030 | char *kwnames[] = { | |
4031 | (char *) "self", NULL | |
4032 | }; | |
4033 | ||
4034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
4035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4037 | { | |
4038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4039 | result = (int)(arg1)->GetHeight(); | |
4040 | ||
4041 | wxPyEndAllowThreads(__tstate); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
4043 | } | |
c370783e | 4044 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4045 | return resultobj; |
4046 | fail: | |
4047 | return NULL; | |
4048 | } | |
4049 | ||
4050 | ||
c370783e | 4051 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4052 | PyObject *resultobj; |
4053 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4054 | int result; | |
4055 | PyObject * obj0 = 0 ; | |
4056 | char *kwnames[] = { | |
4057 | (char *) "self", NULL | |
4058 | }; | |
4059 | ||
4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
4061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4063 | { | |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4065 | result = (int)(arg1)->GetDepth(); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
4068 | if (PyErr_Occurred()) SWIG_fail; | |
4069 | } | |
c370783e | 4070 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4071 | return resultobj; |
4072 | fail: | |
4073 | return NULL; | |
4074 | } | |
4075 | ||
4076 | ||
c370783e | 4077 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4078 | PyObject *resultobj; |
4079 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4080 | int arg2 ; | |
4081 | PyObject * obj0 = 0 ; | |
4082 | PyObject * obj1 = 0 ; | |
4083 | char *kwnames[] = { | |
4084 | (char *) "self",(char *) "w", NULL | |
4085 | }; | |
4086 | ||
4087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
4088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4090 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4091 | if (PyErr_Occurred()) SWIG_fail; |
4092 | { | |
4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4094 | (arg1)->SetWidth(arg2); | |
4095 | ||
4096 | wxPyEndAllowThreads(__tstate); | |
4097 | if (PyErr_Occurred()) SWIG_fail; | |
4098 | } | |
4099 | Py_INCREF(Py_None); resultobj = Py_None; | |
4100 | return resultobj; | |
4101 | fail: | |
4102 | return NULL; | |
4103 | } | |
4104 | ||
4105 | ||
c370783e | 4106 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4107 | PyObject *resultobj; |
4108 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4109 | int arg2 ; | |
4110 | PyObject * obj0 = 0 ; | |
4111 | PyObject * obj1 = 0 ; | |
4112 | char *kwnames[] = { | |
4113 | (char *) "self",(char *) "h", NULL | |
4114 | }; | |
4115 | ||
4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
4117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4119 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4120 | if (PyErr_Occurred()) SWIG_fail; |
4121 | { | |
4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4123 | (arg1)->SetHeight(arg2); | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
4128 | Py_INCREF(Py_None); resultobj = Py_None; | |
4129 | return resultobj; | |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
c370783e | 4135 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4136 | PyObject *resultobj; |
4137 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4138 | int arg2 ; | |
4139 | PyObject * obj0 = 0 ; | |
4140 | PyObject * obj1 = 0 ; | |
4141 | char *kwnames[] = { | |
4142 | (char *) "self",(char *) "d", NULL | |
4143 | }; | |
4144 | ||
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
4146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4148 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4149 | if (PyErr_Occurred()) SWIG_fail; |
4150 | { | |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | (arg1)->SetDepth(arg2); | |
4153 | ||
4154 | wxPyEndAllowThreads(__tstate); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | } | |
4157 | Py_INCREF(Py_None); resultobj = Py_None; | |
4158 | return resultobj; | |
4159 | fail: | |
4160 | return NULL; | |
4161 | } | |
4162 | ||
4163 | ||
c370783e | 4164 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4165 | PyObject *resultobj; |
4166 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4167 | wxBitmap *arg2 = 0 ; | |
4168 | PyObject * obj0 = 0 ; | |
4169 | PyObject * obj1 = 0 ; | |
4170 | char *kwnames[] = { | |
4171 | (char *) "self",(char *) "bmp", NULL | |
4172 | }; | |
4173 | ||
4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4178 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4179 | SWIG_fail; | |
4180 | if (arg2 == NULL) { | |
4181 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4182 | SWIG_fail; | |
4183 | } | |
4184 | { | |
4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4186 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4187 | ||
4188 | wxPyEndAllowThreads(__tstate); | |
4189 | if (PyErr_Occurred()) SWIG_fail; | |
4190 | } | |
4191 | Py_INCREF(Py_None); resultobj = Py_None; | |
4192 | return resultobj; | |
4193 | fail: | |
4194 | return NULL; | |
4195 | } | |
4196 | ||
4197 | ||
c370783e | 4198 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4199 | PyObject *obj; |
4200 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4201 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4202 | Py_INCREF(obj); | |
4203 | return Py_BuildValue((char *)""); | |
4204 | } | |
c370783e | 4205 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4206 | PyObject *resultobj; |
4207 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4208 | int arg2 = (int) 0 ; | |
4209 | wxIconLocation *result; | |
b411df4a | 4210 | bool temp1 = false ; |
d55e5bfc RD |
4211 | PyObject * obj0 = 0 ; |
4212 | PyObject * obj1 = 0 ; | |
4213 | char *kwnames[] = { | |
4214 | (char *) "filename",(char *) "num", NULL | |
4215 | }; | |
4216 | ||
4217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; | |
4218 | if (obj0) { | |
4219 | { | |
4220 | arg1 = wxString_in_helper(obj0); | |
4221 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4222 | temp1 = true; |
d55e5bfc RD |
4223 | } |
4224 | } | |
4225 | if (obj1) { | |
c370783e | 4226 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4227 | if (PyErr_Occurred()) SWIG_fail; |
4228 | } | |
4229 | { | |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); | |
4237 | { | |
4238 | if (temp1) | |
4239 | delete arg1; | |
4240 | } | |
4241 | return resultobj; | |
4242 | fail: | |
4243 | { | |
4244 | if (temp1) | |
4245 | delete arg1; | |
4246 | } | |
4247 | return NULL; | |
4248 | } | |
4249 | ||
4250 | ||
c370783e | 4251 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4252 | PyObject *resultobj; |
4253 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4254 | PyObject * obj0 = 0 ; | |
4255 | char *kwnames[] = { | |
4256 | (char *) "self", NULL | |
4257 | }; | |
4258 | ||
4259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
4260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4262 | { | |
4263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4264 | delete arg1; | |
4265 | ||
4266 | wxPyEndAllowThreads(__tstate); | |
4267 | if (PyErr_Occurred()) SWIG_fail; | |
4268 | } | |
4269 | Py_INCREF(Py_None); resultobj = Py_None; | |
4270 | return resultobj; | |
4271 | fail: | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
c370783e | 4276 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4277 | PyObject *resultobj; |
4278 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4279 | bool result; | |
4280 | PyObject * obj0 = 0 ; | |
4281 | char *kwnames[] = { | |
4282 | (char *) "self", NULL | |
4283 | }; | |
4284 | ||
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
4286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4288 | { | |
4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4290 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4291 | ||
4292 | wxPyEndAllowThreads(__tstate); | |
4293 | if (PyErr_Occurred()) SWIG_fail; | |
4294 | } | |
4295 | { | |
4296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4297 | } | |
4298 | return resultobj; | |
4299 | fail: | |
4300 | return NULL; | |
4301 | } | |
4302 | ||
4303 | ||
c370783e | 4304 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4305 | PyObject *resultobj; |
4306 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4307 | wxString *arg2 = 0 ; | |
b411df4a | 4308 | bool temp2 = false ; |
d55e5bfc RD |
4309 | PyObject * obj0 = 0 ; |
4310 | PyObject * obj1 = 0 ; | |
4311 | char *kwnames[] = { | |
4312 | (char *) "self",(char *) "filename", NULL | |
4313 | }; | |
4314 | ||
4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4318 | { | |
4319 | arg2 = wxString_in_helper(obj1); | |
4320 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4321 | temp2 = true; |
d55e5bfc RD |
4322 | } |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | (arg1)->SetFileName((wxString const &)*arg2); | |
4326 | ||
4327 | wxPyEndAllowThreads(__tstate); | |
4328 | if (PyErr_Occurred()) SWIG_fail; | |
4329 | } | |
4330 | Py_INCREF(Py_None); resultobj = Py_None; | |
4331 | { | |
4332 | if (temp2) | |
4333 | delete arg2; | |
4334 | } | |
4335 | return resultobj; | |
4336 | fail: | |
4337 | { | |
4338 | if (temp2) | |
4339 | delete arg2; | |
4340 | } | |
4341 | return NULL; | |
4342 | } | |
4343 | ||
4344 | ||
c370783e | 4345 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4346 | PyObject *resultobj; |
4347 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4348 | wxString *result; | |
4349 | PyObject * obj0 = 0 ; | |
4350 | char *kwnames[] = { | |
4351 | (char *) "self", NULL | |
4352 | }; | |
4353 | ||
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4357 | { | |
4358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4359 | { | |
4360 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4361 | result = (wxString *) &_result_ref; | |
4362 | } | |
4363 | ||
4364 | wxPyEndAllowThreads(__tstate); | |
4365 | if (PyErr_Occurred()) SWIG_fail; | |
4366 | } | |
4367 | { | |
4368 | #if wxUSE_UNICODE | |
4369 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4370 | #else | |
4371 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4372 | #endif | |
4373 | } | |
4374 | return resultobj; | |
4375 | fail: | |
4376 | return NULL; | |
4377 | } | |
4378 | ||
4379 | ||
c370783e | 4380 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4381 | PyObject *resultobj; |
4382 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4383 | int arg2 ; | |
4384 | PyObject * obj0 = 0 ; | |
4385 | PyObject * obj1 = 0 ; | |
4386 | char *kwnames[] = { | |
4387 | (char *) "self",(char *) "num", NULL | |
4388 | }; | |
4389 | ||
4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; | |
4391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4393 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4394 | if (PyErr_Occurred()) SWIG_fail; |
4395 | { | |
4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4397 | wxIconLocation_SetIndex(arg1,arg2); | |
4398 | ||
4399 | wxPyEndAllowThreads(__tstate); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | } | |
4402 | Py_INCREF(Py_None); resultobj = Py_None; | |
4403 | return resultobj; | |
4404 | fail: | |
4405 | return NULL; | |
4406 | } | |
4407 | ||
4408 | ||
c370783e | 4409 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4410 | PyObject *resultobj; |
4411 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4412 | int result; | |
4413 | PyObject * obj0 = 0 ; | |
4414 | char *kwnames[] = { | |
4415 | (char *) "self", NULL | |
4416 | }; | |
4417 | ||
4418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4421 | { | |
4422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4423 | result = (int)wxIconLocation_GetIndex(arg1); | |
4424 | ||
4425 | wxPyEndAllowThreads(__tstate); | |
4426 | if (PyErr_Occurred()) SWIG_fail; | |
4427 | } | |
c370783e | 4428 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4429 | return resultobj; |
4430 | fail: | |
4431 | return NULL; | |
4432 | } | |
4433 | ||
4434 | ||
c370783e | 4435 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4436 | PyObject *obj; |
4437 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4438 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4439 | Py_INCREF(obj); | |
4440 | return Py_BuildValue((char *)""); | |
4441 | } | |
c370783e | 4442 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4443 | PyObject *resultobj; |
4444 | wxIconBundle *result; | |
4445 | char *kwnames[] = { | |
4446 | NULL | |
4447 | }; | |
4448 | ||
4449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4450 | { | |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | result = (wxIconBundle *)new wxIconBundle(); | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4458 | return resultobj; | |
4459 | fail: | |
4460 | return NULL; | |
4461 | } | |
4462 | ||
4463 | ||
c370783e | 4464 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4465 | PyObject *resultobj; |
4466 | wxString *arg1 = 0 ; | |
4467 | long arg2 ; | |
4468 | wxIconBundle *result; | |
b411df4a | 4469 | bool temp1 = false ; |
d55e5bfc RD |
4470 | PyObject * obj0 = 0 ; |
4471 | PyObject * obj1 = 0 ; | |
4472 | char *kwnames[] = { | |
4473 | (char *) "file",(char *) "type", NULL | |
4474 | }; | |
4475 | ||
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; | |
4477 | { | |
4478 | arg1 = wxString_in_helper(obj0); | |
4479 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4480 | temp1 = true; |
d55e5bfc | 4481 | } |
c370783e | 4482 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4483 | if (PyErr_Occurred()) SWIG_fail; |
4484 | { | |
4485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4486 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4487 | ||
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4492 | { | |
4493 | if (temp1) | |
4494 | delete arg1; | |
4495 | } | |
4496 | return resultobj; | |
4497 | fail: | |
4498 | { | |
4499 | if (temp1) | |
4500 | delete arg1; | |
4501 | } | |
4502 | return NULL; | |
4503 | } | |
4504 | ||
4505 | ||
c370783e | 4506 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4507 | PyObject *resultobj; |
4508 | wxIcon *arg1 = 0 ; | |
4509 | wxIconBundle *result; | |
4510 | PyObject * obj0 = 0 ; | |
4511 | char *kwnames[] = { | |
4512 | (char *) "icon", NULL | |
4513 | }; | |
4514 | ||
4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4518 | SWIG_fail; | |
4519 | if (arg1 == NULL) { | |
4520 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4521 | SWIG_fail; | |
4522 | } | |
4523 | { | |
4524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4525 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4526 | ||
4527 | wxPyEndAllowThreads(__tstate); | |
4528 | if (PyErr_Occurred()) SWIG_fail; | |
4529 | } | |
4530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4531 | return resultobj; | |
4532 | fail: | |
4533 | return NULL; | |
4534 | } | |
4535 | ||
4536 | ||
c370783e | 4537 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4538 | PyObject *resultobj; |
4539 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4540 | PyObject * obj0 = 0 ; | |
4541 | char *kwnames[] = { | |
4542 | (char *) "self", NULL | |
4543 | }; | |
4544 | ||
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4548 | { | |
4549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4550 | delete arg1; | |
4551 | ||
4552 | wxPyEndAllowThreads(__tstate); | |
4553 | if (PyErr_Occurred()) SWIG_fail; | |
4554 | } | |
4555 | Py_INCREF(Py_None); resultobj = Py_None; | |
4556 | return resultobj; | |
4557 | fail: | |
4558 | return NULL; | |
4559 | } | |
4560 | ||
4561 | ||
c370783e | 4562 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4563 | PyObject *resultobj; |
4564 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4565 | wxIcon *arg2 = 0 ; | |
4566 | PyObject * obj0 = 0 ; | |
4567 | PyObject * obj1 = 0 ; | |
4568 | char *kwnames[] = { | |
4569 | (char *) "self",(char *) "icon", NULL | |
4570 | }; | |
4571 | ||
4572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4575 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4576 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4577 | SWIG_fail; | |
4578 | if (arg2 == NULL) { | |
4579 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4580 | SWIG_fail; | |
4581 | } | |
4582 | { | |
4583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4584 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4585 | ||
4586 | wxPyEndAllowThreads(__tstate); | |
4587 | if (PyErr_Occurred()) SWIG_fail; | |
4588 | } | |
4589 | Py_INCREF(Py_None); resultobj = Py_None; | |
4590 | return resultobj; | |
4591 | fail: | |
4592 | return NULL; | |
4593 | } | |
4594 | ||
4595 | ||
c370783e | 4596 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4597 | PyObject *resultobj; |
4598 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4599 | wxString *arg2 = 0 ; | |
4600 | long arg3 ; | |
b411df4a | 4601 | bool temp2 = false ; |
d55e5bfc RD |
4602 | PyObject * obj0 = 0 ; |
4603 | PyObject * obj1 = 0 ; | |
4604 | PyObject * obj2 = 0 ; | |
4605 | char *kwnames[] = { | |
4606 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4607 | }; | |
4608 | ||
4609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4612 | { | |
4613 | arg2 = wxString_in_helper(obj1); | |
4614 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 4615 | temp2 = true; |
d55e5bfc | 4616 | } |
c370783e | 4617 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
4618 | if (PyErr_Occurred()) SWIG_fail; |
4619 | { | |
4620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4621 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4622 | ||
4623 | wxPyEndAllowThreads(__tstate); | |
4624 | if (PyErr_Occurred()) SWIG_fail; | |
4625 | } | |
4626 | Py_INCREF(Py_None); resultobj = Py_None; | |
4627 | { | |
4628 | if (temp2) | |
4629 | delete arg2; | |
4630 | } | |
4631 | return resultobj; | |
4632 | fail: | |
4633 | { | |
4634 | if (temp2) | |
4635 | delete arg2; | |
4636 | } | |
4637 | return NULL; | |
4638 | } | |
4639 | ||
4640 | ||
c370783e | 4641 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4642 | PyObject *resultobj; |
4643 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4644 | wxSize *arg2 = 0 ; | |
4645 | wxIcon *result; | |
4646 | wxSize temp2 ; | |
4647 | PyObject * obj0 = 0 ; | |
4648 | PyObject * obj1 = 0 ; | |
4649 | char *kwnames[] = { | |
4650 | (char *) "self",(char *) "size", NULL | |
4651 | }; | |
4652 | ||
4653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4656 | { | |
4657 | arg2 = &temp2; | |
4658 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4659 | } | |
4660 | { | |
4661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4662 | { | |
4663 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4664 | result = (wxIcon *) &_result_ref; | |
4665 | } | |
4666 | ||
4667 | wxPyEndAllowThreads(__tstate); | |
4668 | if (PyErr_Occurred()) SWIG_fail; | |
4669 | } | |
4670 | { | |
4671 | wxIcon* resultptr = new wxIcon(*result); | |
4672 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4673 | } | |
4674 | return resultobj; | |
4675 | fail: | |
4676 | return NULL; | |
4677 | } | |
4678 | ||
4679 | ||
c370783e | 4680 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4681 | PyObject *obj; |
4682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4683 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4684 | Py_INCREF(obj); | |
4685 | return Py_BuildValue((char *)""); | |
4686 | } | |
c370783e | 4687 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4688 | PyObject *resultobj; |
4689 | wxString *arg1 = (wxString *) 0 ; | |
4690 | long arg2 ; | |
4691 | int arg3 = (int) 0 ; | |
4692 | int arg4 = (int) 0 ; | |
4693 | wxCursor *result; | |
b411df4a | 4694 | bool temp1 = false ; |
d55e5bfc RD |
4695 | PyObject * obj0 = 0 ; |
4696 | PyObject * obj1 = 0 ; | |
4697 | PyObject * obj2 = 0 ; | |
4698 | PyObject * obj3 = 0 ; | |
4699 | char *kwnames[] = { | |
4700 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4701 | }; | |
4702 | ||
4703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4704 | { | |
4705 | arg1 = wxString_in_helper(obj0); | |
4706 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 4707 | temp1 = true; |
d55e5bfc | 4708 | } |
c370783e | 4709 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
4710 | if (PyErr_Occurred()) SWIG_fail; |
4711 | if (obj2) { | |
c370783e | 4712 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4713 | if (PyErr_Occurred()) SWIG_fail; |
4714 | } | |
4715 | if (obj3) { | |
c370783e | 4716 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
4717 | if (PyErr_Occurred()) SWIG_fail; |
4718 | } | |
4719 | { | |
0439c23b | 4720 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4722 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4723 | ||
4724 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4725 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4726 | } |
4727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4728 | { | |
4729 | if (temp1) | |
4730 | delete arg1; | |
4731 | } | |
4732 | return resultobj; | |
4733 | fail: | |
4734 | { | |
4735 | if (temp1) | |
4736 | delete arg1; | |
4737 | } | |
4738 | return NULL; | |
4739 | } | |
4740 | ||
4741 | ||
c370783e | 4742 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4743 | PyObject *resultobj; |
4744 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4745 | PyObject * obj0 = 0 ; | |
4746 | char *kwnames[] = { | |
4747 | (char *) "self", NULL | |
4748 | }; | |
4749 | ||
4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4753 | { | |
4754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4755 | delete arg1; | |
4756 | ||
4757 | wxPyEndAllowThreads(__tstate); | |
4758 | if (PyErr_Occurred()) SWIG_fail; | |
4759 | } | |
4760 | Py_INCREF(Py_None); resultobj = Py_None; | |
4761 | return resultobj; | |
4762 | fail: | |
4763 | return NULL; | |
4764 | } | |
4765 | ||
4766 | ||
c370783e | 4767 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4768 | PyObject *resultobj; |
4769 | int arg1 ; | |
4770 | wxCursor *result; | |
4771 | PyObject * obj0 = 0 ; | |
4772 | char *kwnames[] = { | |
4773 | (char *) "id", NULL | |
4774 | }; | |
4775 | ||
4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; | |
c370783e | 4777 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4778 | if (PyErr_Occurred()) SWIG_fail; |
4779 | { | |
0439c23b | 4780 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4782 | result = (wxCursor *)new wxCursor(arg1); | |
4783 | ||
4784 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4785 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4786 | } |
4787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4788 | return resultobj; | |
4789 | fail: | |
4790 | return NULL; | |
4791 | } | |
4792 | ||
4793 | ||
c370783e | 4794 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4795 | PyObject *resultobj; |
4796 | wxImage *arg1 = 0 ; | |
4797 | wxCursor *result; | |
4798 | PyObject * obj0 = 0 ; | |
4799 | char *kwnames[] = { | |
4800 | (char *) "image", NULL | |
4801 | }; | |
4802 | ||
4803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
4805 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4806 | SWIG_fail; | |
4807 | if (arg1 == NULL) { | |
4808 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4809 | SWIG_fail; | |
4810 | } | |
4811 | { | |
0439c23b | 4812 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4814 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4817 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4818 | } |
4819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4820 | return resultobj; | |
4821 | fail: | |
4822 | return NULL; | |
4823 | } | |
4824 | ||
4825 | ||
c370783e | 4826 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4827 | PyObject *resultobj; |
4828 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4829 | bool result; | |
4830 | PyObject * obj0 = 0 ; | |
4831 | char *kwnames[] = { | |
4832 | (char *) "self", NULL | |
4833 | }; | |
4834 | ||
4835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4838 | { | |
4839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4840 | result = (bool)(arg1)->Ok(); | |
4841 | ||
4842 | wxPyEndAllowThreads(__tstate); | |
4843 | if (PyErr_Occurred()) SWIG_fail; | |
4844 | } | |
4845 | { | |
4846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4847 | } | |
4848 | return resultobj; | |
4849 | fail: | |
4850 | return NULL; | |
4851 | } | |
4852 | ||
4853 | ||
c370783e | 4854 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
4855 | PyObject *obj; |
4856 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4857 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4858 | Py_INCREF(obj); | |
4859 | return Py_BuildValue((char *)""); | |
4860 | } | |
c370783e | 4861 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4862 | PyObject *resultobj; |
4863 | int arg1 = (int) 0 ; | |
4864 | int arg2 = (int) 0 ; | |
4865 | int arg3 = (int) 0 ; | |
4866 | int arg4 = (int) 0 ; | |
4867 | wxRegion *result; | |
4868 | PyObject * obj0 = 0 ; | |
4869 | PyObject * obj1 = 0 ; | |
4870 | PyObject * obj2 = 0 ; | |
4871 | PyObject * obj3 = 0 ; | |
4872 | char *kwnames[] = { | |
4873 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4874 | }; | |
4875 | ||
4876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4877 | if (obj0) { | |
c370783e | 4878 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
4879 | if (PyErr_Occurred()) SWIG_fail; |
4880 | } | |
4881 | if (obj1) { | |
c370783e | 4882 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4883 | if (PyErr_Occurred()) SWIG_fail; |
4884 | } | |
4885 | if (obj2) { | |
c370783e | 4886 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4887 | if (PyErr_Occurred()) SWIG_fail; |
4888 | } | |
4889 | if (obj3) { | |
c370783e | 4890 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
4891 | if (PyErr_Occurred()) SWIG_fail; |
4892 | } | |
4893 | { | |
0439c23b | 4894 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4896 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4897 | ||
4898 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4899 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4900 | } |
4901 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4902 | return resultobj; | |
4903 | fail: | |
4904 | return NULL; | |
4905 | } | |
4906 | ||
4907 | ||
c370783e | 4908 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4909 | PyObject *resultobj; |
4910 | wxBitmap *arg1 = 0 ; | |
d07096ad RD |
4911 | wxRegion *result; |
4912 | PyObject * obj0 = 0 ; | |
4913 | char *kwnames[] = { | |
4914 | (char *) "bmp", NULL | |
4915 | }; | |
4916 | ||
4917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
4918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4919 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4920 | SWIG_fail; | |
4921 | if (arg1 == NULL) { | |
4922 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4923 | SWIG_fail; | |
4924 | } | |
4925 | { | |
4926 | if (!wxPyCheckForApp()) SWIG_fail; | |
4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4928 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
4929 | ||
4930 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4931 | if (PyErr_Occurred()) SWIG_fail; |
d07096ad RD |
4932 | } |
4933 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4934 | return resultobj; | |
4935 | fail: | |
4936 | return NULL; | |
4937 | } | |
4938 | ||
4939 | ||
c370783e | 4940 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d07096ad RD |
4941 | PyObject *resultobj; |
4942 | wxBitmap *arg1 = 0 ; | |
4943 | wxColour *arg2 = 0 ; | |
d55e5bfc RD |
4944 | int arg3 = (int) 0 ; |
4945 | wxRegion *result; | |
4946 | wxColour temp2 ; | |
4947 | PyObject * obj0 = 0 ; | |
4948 | PyObject * obj1 = 0 ; | |
4949 | PyObject * obj2 = 0 ; | |
4950 | char *kwnames[] = { | |
4951 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4952 | }; | |
4953 | ||
d07096ad | 4954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
4955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4956 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4957 | SWIG_fail; | |
4958 | if (arg1 == NULL) { | |
4959 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4960 | SWIG_fail; | |
4961 | } | |
d07096ad RD |
4962 | { |
4963 | arg2 = &temp2; | |
4964 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
4965 | } |
4966 | if (obj2) { | |
c370783e | 4967 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4968 | if (PyErr_Occurred()) SWIG_fail; |
4969 | } | |
4970 | { | |
0439c23b | 4971 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4973 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4974 | ||
4975 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4976 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4977 | } |
4978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4979 | return resultobj; | |
4980 | fail: | |
4981 | return NULL; | |
4982 | } | |
4983 | ||
4984 | ||
c370783e | 4985 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4986 | PyObject *resultobj; |
4987 | int arg1 ; | |
4988 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4989 | int arg3 = (int) wxWINDING_RULE ; | |
4990 | wxRegion *result; | |
4991 | PyObject * obj0 = 0 ; | |
4992 | PyObject * obj1 = 0 ; | |
4993 | char *kwnames[] = { | |
4994 | (char *) "points",(char *) "fillStyle", NULL | |
4995 | }; | |
4996 | ||
4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; | |
4998 | { | |
4999 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
5000 | if (arg2 == NULL) SWIG_fail; | |
5001 | } | |
5002 | if (obj1) { | |
c370783e | 5003 | arg3 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5004 | if (PyErr_Occurred()) SWIG_fail; |
5005 | } | |
5006 | { | |
0439c23b | 5007 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
03837c5c | 5009 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); |
d55e5bfc RD |
5010 | |
5011 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5012 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5013 | } |
5014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5015 | { | |
5016 | if (arg2) delete [] arg2; | |
5017 | } | |
5018 | return resultobj; | |
5019 | fail: | |
5020 | { | |
5021 | if (arg2) delete [] arg2; | |
5022 | } | |
5023 | return NULL; | |
5024 | } | |
5025 | ||
5026 | ||
c370783e | 5027 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5028 | PyObject *resultobj; |
5029 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5030 | PyObject * obj0 = 0 ; | |
5031 | char *kwnames[] = { | |
5032 | (char *) "self", NULL | |
5033 | }; | |
5034 | ||
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
5036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5038 | { | |
5039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5040 | delete arg1; | |
5041 | ||
5042 | wxPyEndAllowThreads(__tstate); | |
5043 | if (PyErr_Occurred()) SWIG_fail; | |
5044 | } | |
5045 | Py_INCREF(Py_None); resultobj = Py_None; | |
5046 | return resultobj; | |
5047 | fail: | |
5048 | return NULL; | |
5049 | } | |
5050 | ||
5051 | ||
c370783e | 5052 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5053 | PyObject *resultobj; |
5054 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5055 | PyObject * obj0 = 0 ; | |
5056 | char *kwnames[] = { | |
5057 | (char *) "self", NULL | |
5058 | }; | |
5059 | ||
5060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
5061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5063 | { | |
5064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5065 | (arg1)->Clear(); | |
5066 | ||
5067 | wxPyEndAllowThreads(__tstate); | |
5068 | if (PyErr_Occurred()) SWIG_fail; | |
5069 | } | |
5070 | Py_INCREF(Py_None); resultobj = Py_None; | |
5071 | return resultobj; | |
5072 | fail: | |
5073 | return NULL; | |
5074 | } | |
5075 | ||
5076 | ||
070c48b4 RD |
5077 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
5078 | PyObject *resultobj; | |
5079 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5080 | int arg2 ; | |
5081 | int arg3 ; | |
5082 | bool result; | |
5083 | PyObject * obj0 = 0 ; | |
5084 | PyObject * obj1 = 0 ; | |
5085 | PyObject * obj2 = 0 ; | |
5086 | char *kwnames[] = { | |
5087 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5088 | }; | |
5089 | ||
5090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5093 | arg2 = (int)SWIG_As_int(obj1); | |
5094 | if (PyErr_Occurred()) SWIG_fail; | |
5095 | arg3 = (int)SWIG_As_int(obj2); | |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | { | |
5098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5099 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5100 | ||
5101 | wxPyEndAllowThreads(__tstate); | |
5102 | if (PyErr_Occurred()) SWIG_fail; | |
5103 | } | |
5104 | { | |
5105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5106 | } | |
5107 | return resultobj; | |
5108 | fail: | |
5109 | return NULL; | |
5110 | } | |
5111 | ||
5112 | ||
c370783e | 5113 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5114 | PyObject *resultobj; |
5115 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5116 | int arg2 ; | |
5117 | int arg3 ; | |
5118 | int result; | |
5119 | PyObject * obj0 = 0 ; | |
5120 | PyObject * obj1 = 0 ; | |
5121 | PyObject * obj2 = 0 ; | |
5122 | char *kwnames[] = { | |
5123 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5124 | }; | |
5125 | ||
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5129 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5130 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5131 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5132 | if (PyErr_Occurred()) SWIG_fail; |
5133 | { | |
5134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5135 | result = (int)(arg1)->Contains(arg2,arg3); | |
5136 | ||
5137 | wxPyEndAllowThreads(__tstate); | |
5138 | if (PyErr_Occurred()) SWIG_fail; | |
5139 | } | |
c370783e | 5140 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5141 | return resultobj; |
5142 | fail: | |
5143 | return NULL; | |
5144 | } | |
5145 | ||
5146 | ||
c370783e | 5147 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5148 | PyObject *resultobj; |
5149 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5150 | wxPoint *arg2 = 0 ; | |
5151 | int result; | |
5152 | wxPoint temp2 ; | |
5153 | PyObject * obj0 = 0 ; | |
5154 | PyObject * obj1 = 0 ; | |
5155 | char *kwnames[] = { | |
5156 | (char *) "self",(char *) "pt", NULL | |
5157 | }; | |
5158 | ||
5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
5160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5162 | { | |
5163 | arg2 = &temp2; | |
5164 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5165 | } | |
5166 | { | |
5167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5168 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5169 | ||
5170 | wxPyEndAllowThreads(__tstate); | |
5171 | if (PyErr_Occurred()) SWIG_fail; | |
5172 | } | |
c370783e | 5173 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5174 | return resultobj; |
5175 | fail: | |
5176 | return NULL; | |
5177 | } | |
5178 | ||
5179 | ||
c370783e | 5180 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5181 | PyObject *resultobj; |
5182 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5183 | wxRect *arg2 = 0 ; | |
5184 | int result; | |
5185 | wxRect temp2 ; | |
5186 | PyObject * obj0 = 0 ; | |
5187 | PyObject * obj1 = 0 ; | |
5188 | char *kwnames[] = { | |
5189 | (char *) "self",(char *) "rect", NULL | |
5190 | }; | |
5191 | ||
5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
5193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5195 | { | |
5196 | arg2 = &temp2; | |
5197 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5198 | } | |
5199 | { | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5202 | ||
5203 | wxPyEndAllowThreads(__tstate); | |
5204 | if (PyErr_Occurred()) SWIG_fail; | |
5205 | } | |
c370783e | 5206 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5207 | return resultobj; |
5208 | fail: | |
5209 | return NULL; | |
5210 | } | |
5211 | ||
5212 | ||
c370783e | 5213 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5214 | PyObject *resultobj; |
5215 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5216 | int arg2 ; | |
5217 | int arg3 ; | |
5218 | int arg4 ; | |
5219 | int arg5 ; | |
5220 | int result; | |
5221 | PyObject * obj0 = 0 ; | |
5222 | PyObject * obj1 = 0 ; | |
5223 | PyObject * obj2 = 0 ; | |
5224 | PyObject * obj3 = 0 ; | |
5225 | PyObject * obj4 = 0 ; | |
5226 | char *kwnames[] = { | |
5227 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5228 | }; | |
5229 | ||
5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5233 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5234 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5235 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5236 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5237 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5238 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5239 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5240 | if (PyErr_Occurred()) SWIG_fail; |
5241 | { | |
5242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5243 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5244 | ||
5245 | wxPyEndAllowThreads(__tstate); | |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
5247 | } | |
c370783e | 5248 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5249 | return resultobj; |
5250 | fail: | |
5251 | return NULL; | |
5252 | } | |
5253 | ||
5254 | ||
c370783e | 5255 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5256 | PyObject *resultobj; |
5257 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5258 | wxRect result; | |
5259 | PyObject * obj0 = 0 ; | |
5260 | char *kwnames[] = { | |
5261 | (char *) "self", NULL | |
5262 | }; | |
5263 | ||
5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
5265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5267 | { | |
5268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5269 | result = (arg1)->GetBox(); | |
5270 | ||
5271 | wxPyEndAllowThreads(__tstate); | |
5272 | if (PyErr_Occurred()) SWIG_fail; | |
5273 | } | |
5274 | { | |
5275 | wxRect * resultptr; | |
5276 | resultptr = new wxRect((wxRect &) result); | |
5277 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5278 | } | |
5279 | return resultobj; | |
5280 | fail: | |
5281 | return NULL; | |
5282 | } | |
5283 | ||
5284 | ||
c370783e | 5285 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5286 | PyObject *resultobj; |
5287 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5288 | int arg2 ; | |
5289 | int arg3 ; | |
5290 | int arg4 ; | |
5291 | int arg5 ; | |
5292 | bool result; | |
5293 | PyObject * obj0 = 0 ; | |
5294 | PyObject * obj1 = 0 ; | |
5295 | PyObject * obj2 = 0 ; | |
5296 | PyObject * obj3 = 0 ; | |
5297 | PyObject * obj4 = 0 ; | |
5298 | char *kwnames[] = { | |
5299 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5300 | }; | |
5301 | ||
5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5305 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5306 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5307 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5308 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5309 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5310 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5311 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5312 | if (PyErr_Occurred()) SWIG_fail; |
5313 | { | |
5314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5315 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5316 | ||
5317 | wxPyEndAllowThreads(__tstate); | |
5318 | if (PyErr_Occurred()) SWIG_fail; | |
5319 | } | |
5320 | { | |
5321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5322 | } | |
5323 | return resultobj; | |
5324 | fail: | |
5325 | return NULL; | |
5326 | } | |
5327 | ||
5328 | ||
c370783e | 5329 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5330 | PyObject *resultobj; |
5331 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5332 | wxRect *arg2 = 0 ; | |
5333 | bool result; | |
5334 | wxRect temp2 ; | |
5335 | PyObject * obj0 = 0 ; | |
5336 | PyObject * obj1 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self",(char *) "rect", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5344 | { | |
5345 | arg2 = &temp2; | |
5346 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5347 | } | |
5348 | { | |
5349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5350 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5351 | ||
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
5355 | { | |
5356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5357 | } | |
5358 | return resultobj; | |
5359 | fail: | |
5360 | return NULL; | |
5361 | } | |
5362 | ||
5363 | ||
c370783e | 5364 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5365 | PyObject *resultobj; |
5366 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5367 | wxRegion *arg2 = 0 ; | |
5368 | bool result; | |
5369 | PyObject * obj0 = 0 ; | |
5370 | PyObject * obj1 = 0 ; | |
5371 | char *kwnames[] = { | |
5372 | (char *) "self",(char *) "region", NULL | |
5373 | }; | |
5374 | ||
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5379 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5380 | SWIG_fail; | |
5381 | if (arg2 == NULL) { | |
5382 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5383 | SWIG_fail; | |
5384 | } | |
5385 | { | |
5386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5387 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5388 | ||
5389 | wxPyEndAllowThreads(__tstate); | |
5390 | if (PyErr_Occurred()) SWIG_fail; | |
5391 | } | |
5392 | { | |
5393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5394 | } | |
5395 | return resultobj; | |
5396 | fail: | |
5397 | return NULL; | |
5398 | } | |
5399 | ||
5400 | ||
c370783e | 5401 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5402 | PyObject *resultobj; |
5403 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5404 | bool result; | |
5405 | PyObject * obj0 = 0 ; | |
5406 | char *kwnames[] = { | |
5407 | (char *) "self", NULL | |
5408 | }; | |
5409 | ||
5410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5413 | { | |
5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5415 | result = (bool)(arg1)->IsEmpty(); | |
5416 | ||
5417 | wxPyEndAllowThreads(__tstate); | |
5418 | if (PyErr_Occurred()) SWIG_fail; | |
5419 | } | |
5420 | { | |
5421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5422 | } | |
5423 | return resultobj; | |
5424 | fail: | |
5425 | return NULL; | |
5426 | } | |
5427 | ||
5428 | ||
c370783e | 5429 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5430 | PyObject *resultobj; |
5431 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5432 | int arg2 ; | |
5433 | int arg3 ; | |
5434 | int arg4 ; | |
5435 | int arg5 ; | |
5436 | bool result; | |
5437 | PyObject * obj0 = 0 ; | |
5438 | PyObject * obj1 = 0 ; | |
5439 | PyObject * obj2 = 0 ; | |
5440 | PyObject * obj3 = 0 ; | |
5441 | PyObject * obj4 = 0 ; | |
5442 | char *kwnames[] = { | |
5443 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5444 | }; | |
5445 | ||
5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5449 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5450 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5451 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5452 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5453 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5454 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5455 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5456 | if (PyErr_Occurred()) SWIG_fail; |
5457 | { | |
5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5459 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5460 | ||
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
5464 | { | |
5465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5466 | } | |
5467 | return resultobj; | |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
c370783e | 5473 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5474 | PyObject *resultobj; |
5475 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5476 | wxRect *arg2 = 0 ; | |
5477 | bool result; | |
5478 | wxRect temp2 ; | |
5479 | PyObject * obj0 = 0 ; | |
5480 | PyObject * obj1 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self",(char *) "rect", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5488 | { | |
5489 | arg2 = &temp2; | |
5490 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5491 | } | |
5492 | { | |
5493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5494 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5495 | ||
5496 | wxPyEndAllowThreads(__tstate); | |
5497 | if (PyErr_Occurred()) SWIG_fail; | |
5498 | } | |
5499 | { | |
5500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5501 | } | |
5502 | return resultobj; | |
5503 | fail: | |
5504 | return NULL; | |
5505 | } | |
5506 | ||
5507 | ||
c370783e | 5508 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5509 | PyObject *resultobj; |
5510 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5511 | wxRegion *arg2 = 0 ; | |
5512 | bool result; | |
5513 | PyObject * obj0 = 0 ; | |
5514 | PyObject * obj1 = 0 ; | |
5515 | char *kwnames[] = { | |
5516 | (char *) "self",(char *) "region", NULL | |
5517 | }; | |
5518 | ||
5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5524 | SWIG_fail; | |
5525 | if (arg2 == NULL) { | |
5526 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5527 | SWIG_fail; | |
5528 | } | |
5529 | { | |
5530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5531 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5532 | ||
5533 | wxPyEndAllowThreads(__tstate); | |
5534 | if (PyErr_Occurred()) SWIG_fail; | |
5535 | } | |
5536 | { | |
5537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5538 | } | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | return NULL; | |
5542 | } | |
5543 | ||
5544 | ||
c370783e | 5545 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5546 | PyObject *resultobj; |
5547 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5548 | int arg2 ; | |
5549 | int arg3 ; | |
5550 | int arg4 ; | |
5551 | int arg5 ; | |
5552 | bool result; | |
5553 | PyObject * obj0 = 0 ; | |
5554 | PyObject * obj1 = 0 ; | |
5555 | PyObject * obj2 = 0 ; | |
5556 | PyObject * obj3 = 0 ; | |
5557 | PyObject * obj4 = 0 ; | |
5558 | char *kwnames[] = { | |
5559 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5560 | }; | |
5561 | ||
5562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5565 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5566 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5567 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5568 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5569 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5570 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5571 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5572 | if (PyErr_Occurred()) SWIG_fail; |
5573 | { | |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5576 | ||
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | { | |
5581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5582 | } | |
5583 | return resultobj; | |
5584 | fail: | |
5585 | return NULL; | |
5586 | } | |
5587 | ||
5588 | ||
c370783e | 5589 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5590 | PyObject *resultobj; |
5591 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5592 | wxRect *arg2 = 0 ; | |
5593 | bool result; | |
5594 | wxRect temp2 ; | |
5595 | PyObject * obj0 = 0 ; | |
5596 | PyObject * obj1 = 0 ; | |
5597 | char *kwnames[] = { | |
5598 | (char *) "self",(char *) "rect", NULL | |
5599 | }; | |
5600 | ||
5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5604 | { | |
5605 | arg2 = &temp2; | |
5606 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5607 | } | |
5608 | { | |
5609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5610 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5611 | ||
5612 | wxPyEndAllowThreads(__tstate); | |
5613 | if (PyErr_Occurred()) SWIG_fail; | |
5614 | } | |
5615 | { | |
5616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5617 | } | |
5618 | return resultobj; | |
5619 | fail: | |
5620 | return NULL; | |
5621 | } | |
5622 | ||
5623 | ||
c370783e | 5624 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5625 | PyObject *resultobj; |
5626 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5627 | wxRegion *arg2 = 0 ; | |
5628 | bool result; | |
5629 | PyObject * obj0 = 0 ; | |
5630 | PyObject * obj1 = 0 ; | |
5631 | char *kwnames[] = { | |
5632 | (char *) "self",(char *) "region", NULL | |
5633 | }; | |
5634 | ||
5635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5639 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5640 | SWIG_fail; | |
5641 | if (arg2 == NULL) { | |
5642 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5643 | SWIG_fail; | |
5644 | } | |
5645 | { | |
5646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5647 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5648 | ||
5649 | wxPyEndAllowThreads(__tstate); | |
5650 | if (PyErr_Occurred()) SWIG_fail; | |
5651 | } | |
5652 | { | |
5653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5654 | } | |
5655 | return resultobj; | |
5656 | fail: | |
5657 | return NULL; | |
5658 | } | |
5659 | ||
5660 | ||
c370783e | 5661 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5662 | PyObject *resultobj; |
5663 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5664 | int arg2 ; | |
5665 | int arg3 ; | |
5666 | int arg4 ; | |
5667 | int arg5 ; | |
5668 | bool result; | |
5669 | PyObject * obj0 = 0 ; | |
5670 | PyObject * obj1 = 0 ; | |
5671 | PyObject * obj2 = 0 ; | |
5672 | PyObject * obj3 = 0 ; | |
5673 | PyObject * obj4 = 0 ; | |
5674 | char *kwnames[] = { | |
5675 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5676 | }; | |
5677 | ||
5678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5681 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 5682 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5683 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 5684 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5685 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 5686 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 5687 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5688 | if (PyErr_Occurred()) SWIG_fail; |
5689 | { | |
5690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5691 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5692 | ||
5693 | wxPyEndAllowThreads(__tstate); | |
5694 | if (PyErr_Occurred()) SWIG_fail; | |
5695 | } | |
5696 | { | |
5697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5698 | } | |
5699 | return resultobj; | |
5700 | fail: | |
5701 | return NULL; | |
5702 | } | |
5703 | ||
5704 | ||
c370783e | 5705 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5706 | PyObject *resultobj; |
5707 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5708 | wxRect *arg2 = 0 ; | |
5709 | bool result; | |
5710 | wxRect temp2 ; | |
5711 | PyObject * obj0 = 0 ; | |
5712 | PyObject * obj1 = 0 ; | |
5713 | char *kwnames[] = { | |
5714 | (char *) "self",(char *) "rect", NULL | |
5715 | }; | |
5716 | ||
5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5720 | { | |
5721 | arg2 = &temp2; | |
5722 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5723 | } | |
5724 | { | |
5725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5726 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5727 | ||
5728 | wxPyEndAllowThreads(__tstate); | |
5729 | if (PyErr_Occurred()) SWIG_fail; | |
5730 | } | |
5731 | { | |
5732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5733 | } | |
5734 | return resultobj; | |
5735 | fail: | |
5736 | return NULL; | |
5737 | } | |
5738 | ||
5739 | ||
c370783e | 5740 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5741 | PyObject *resultobj; |
5742 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5743 | wxRegion *arg2 = 0 ; | |
5744 | bool result; | |
5745 | PyObject * obj0 = 0 ; | |
5746 | PyObject * obj1 = 0 ; | |
5747 | char *kwnames[] = { | |
5748 | (char *) "self",(char *) "region", NULL | |
5749 | }; | |
5750 | ||
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5756 | SWIG_fail; | |
5757 | if (arg2 == NULL) { | |
5758 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5759 | SWIG_fail; | |
5760 | } | |
5761 | { | |
5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5763 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5764 | ||
5765 | wxPyEndAllowThreads(__tstate); | |
5766 | if (PyErr_Occurred()) SWIG_fail; | |
5767 | } | |
5768 | { | |
5769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5770 | } | |
5771 | return resultobj; | |
5772 | fail: | |
5773 | return NULL; | |
5774 | } | |
5775 | ||
5776 | ||
c370783e | 5777 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5778 | PyObject *resultobj; |
5779 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5780 | SwigValueWrapper< wxBitmap > result; | |
5781 | PyObject * obj0 = 0 ; | |
5782 | char *kwnames[] = { | |
5783 | (char *) "self", NULL | |
5784 | }; | |
5785 | ||
5786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5789 | { | |
5790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5791 | result = (arg1)->ConvertToBitmap(); | |
5792 | ||
5793 | wxPyEndAllowThreads(__tstate); | |
5794 | if (PyErr_Occurred()) SWIG_fail; | |
5795 | } | |
5796 | { | |
5797 | wxBitmap * resultptr; | |
5798 | resultptr = new wxBitmap((wxBitmap &) result); | |
5799 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5800 | } | |
5801 | return resultobj; | |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
c370783e | 5807 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5808 | PyObject *resultobj; |
5809 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5810 | wxBitmap *arg2 = 0 ; | |
d07096ad RD |
5811 | bool result; |
5812 | PyObject * obj0 = 0 ; | |
5813 | PyObject * obj1 = 0 ; | |
5814 | char *kwnames[] = { | |
5815 | (char *) "self",(char *) "bmp", NULL | |
5816 | }; | |
5817 | ||
5818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5823 | SWIG_fail; | |
5824 | if (arg2 == NULL) { | |
5825 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5826 | SWIG_fail; | |
5827 | } | |
5828 | { | |
5829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5830 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
5831 | ||
5832 | wxPyEndAllowThreads(__tstate); | |
5833 | if (PyErr_Occurred()) SWIG_fail; | |
5834 | } | |
5835 | { | |
5836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5837 | } | |
5838 | return resultobj; | |
5839 | fail: | |
5840 | return NULL; | |
5841 | } | |
5842 | ||
5843 | ||
c370783e | 5844 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d07096ad RD |
5845 | PyObject *resultobj; |
5846 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5847 | wxBitmap *arg2 = 0 ; | |
5848 | wxColour *arg3 = 0 ; | |
d55e5bfc RD |
5849 | int arg4 = (int) 0 ; |
5850 | bool result; | |
5851 | wxColour temp3 ; | |
5852 | PyObject * obj0 = 0 ; | |
5853 | PyObject * obj1 = 0 ; | |
5854 | PyObject * obj2 = 0 ; | |
5855 | PyObject * obj3 = 0 ; | |
5856 | char *kwnames[] = { | |
5857 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5858 | }; | |
5859 | ||
d07096ad | 5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
5861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5863 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5864 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5865 | SWIG_fail; | |
5866 | if (arg2 == NULL) { | |
5867 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5868 | SWIG_fail; | |
5869 | } | |
d07096ad RD |
5870 | { |
5871 | arg3 = &temp3; | |
5872 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
5873 | } |
5874 | if (obj3) { | |
c370783e | 5875 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5876 | if (PyErr_Occurred()) SWIG_fail; |
5877 | } | |
5878 | { | |
5879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5880 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5881 | ||
5882 | wxPyEndAllowThreads(__tstate); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | } | |
5885 | { | |
5886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5887 | } | |
5888 | return resultobj; | |
5889 | fail: | |
5890 | return NULL; | |
5891 | } | |
5892 | ||
5893 | ||
c370783e | 5894 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5895 | PyObject *obj; |
5896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5897 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5898 | Py_INCREF(obj); | |
5899 | return Py_BuildValue((char *)""); | |
5900 | } | |
c370783e | 5901 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5902 | PyObject *resultobj; |
5903 | wxRegion *arg1 = 0 ; | |
5904 | wxRegionIterator *result; | |
5905 | PyObject * obj0 = 0 ; | |
5906 | char *kwnames[] = { | |
5907 | (char *) "region", NULL | |
5908 | }; | |
5909 | ||
5910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5913 | SWIG_fail; | |
5914 | if (arg1 == NULL) { | |
5915 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5916 | SWIG_fail; | |
5917 | } | |
5918 | { | |
0439c23b | 5919 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5921 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5922 | ||
5923 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5924 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5925 | } |
5926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); | |
5927 | return resultobj; | |
5928 | fail: | |
5929 | return NULL; | |
5930 | } | |
5931 | ||
5932 | ||
c370783e | 5933 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5934 | PyObject *resultobj; |
5935 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5936 | PyObject * obj0 = 0 ; | |
5937 | char *kwnames[] = { | |
5938 | (char *) "self", NULL | |
5939 | }; | |
5940 | ||
5941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5944 | { | |
5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5946 | delete arg1; | |
5947 | ||
5948 | wxPyEndAllowThreads(__tstate); | |
5949 | if (PyErr_Occurred()) SWIG_fail; | |
5950 | } | |
5951 | Py_INCREF(Py_None); resultobj = Py_None; | |
5952 | return resultobj; | |
5953 | fail: | |
5954 | return NULL; | |
5955 | } | |
5956 | ||
5957 | ||
c370783e | 5958 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5959 | PyObject *resultobj; |
5960 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5961 | int result; | |
5962 | PyObject * obj0 = 0 ; | |
5963 | char *kwnames[] = { | |
5964 | (char *) "self", NULL | |
5965 | }; | |
5966 | ||
5967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5970 | { | |
5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5972 | result = (int)(arg1)->GetX(); | |
5973 | ||
5974 | wxPyEndAllowThreads(__tstate); | |
5975 | if (PyErr_Occurred()) SWIG_fail; | |
5976 | } | |
c370783e | 5977 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5978 | return resultobj; |
5979 | fail: | |
5980 | return NULL; | |
5981 | } | |
5982 | ||
5983 | ||
c370783e | 5984 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5985 | PyObject *resultobj; |
5986 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5987 | int result; | |
5988 | PyObject * obj0 = 0 ; | |
5989 | char *kwnames[] = { | |
5990 | (char *) "self", NULL | |
5991 | }; | |
5992 | ||
5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5996 | { | |
5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5998 | result = (int)(arg1)->GetY(); | |
5999 | ||
6000 | wxPyEndAllowThreads(__tstate); | |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
6002 | } | |
c370783e | 6003 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6004 | return resultobj; |
6005 | fail: | |
6006 | return NULL; | |
6007 | } | |
6008 | ||
6009 | ||
c370783e | 6010 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6011 | PyObject *resultobj; |
6012 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6013 | int result; | |
6014 | PyObject * obj0 = 0 ; | |
6015 | char *kwnames[] = { | |
6016 | (char *) "self", NULL | |
6017 | }; | |
6018 | ||
6019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
6020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6022 | { | |
6023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6024 | result = (int)(arg1)->GetW(); | |
6025 | ||
6026 | wxPyEndAllowThreads(__tstate); | |
6027 | if (PyErr_Occurred()) SWIG_fail; | |
6028 | } | |
c370783e | 6029 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6030 | return resultobj; |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
c370783e | 6036 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6037 | PyObject *resultobj; |
6038 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6039 | int result; | |
6040 | PyObject * obj0 = 0 ; | |
6041 | char *kwnames[] = { | |
6042 | (char *) "self", NULL | |
6043 | }; | |
6044 | ||
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
6046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6048 | { | |
6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6050 | result = (int)(arg1)->GetWidth(); | |
6051 | ||
6052 | wxPyEndAllowThreads(__tstate); | |
6053 | if (PyErr_Occurred()) SWIG_fail; | |
6054 | } | |
c370783e | 6055 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6056 | return resultobj; |
6057 | fail: | |
6058 | return NULL; | |
6059 | } | |
6060 | ||
6061 | ||
c370783e | 6062 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6063 | PyObject *resultobj; |
6064 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6065 | int result; | |
6066 | PyObject * obj0 = 0 ; | |
6067 | char *kwnames[] = { | |
6068 | (char *) "self", NULL | |
6069 | }; | |
6070 | ||
6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
6072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6074 | { | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | result = (int)(arg1)->GetH(); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
c370783e | 6081 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6082 | return resultobj; |
6083 | fail: | |
6084 | return NULL; | |
6085 | } | |
6086 | ||
6087 | ||
c370783e | 6088 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6089 | PyObject *resultobj; |
6090 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6091 | int result; | |
6092 | PyObject * obj0 = 0 ; | |
6093 | char *kwnames[] = { | |
6094 | (char *) "self", NULL | |
6095 | }; | |
6096 | ||
6097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
6098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6100 | { | |
6101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6102 | result = (int)(arg1)->GetHeight(); | |
6103 | ||
6104 | wxPyEndAllowThreads(__tstate); | |
6105 | if (PyErr_Occurred()) SWIG_fail; | |
6106 | } | |
c370783e | 6107 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6108 | return resultobj; |
6109 | fail: | |
6110 | return NULL; | |
6111 | } | |
6112 | ||
6113 | ||
c370783e | 6114 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6115 | PyObject *resultobj; |
6116 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6117 | wxRect result; | |
6118 | PyObject * obj0 = 0 ; | |
6119 | char *kwnames[] = { | |
6120 | (char *) "self", NULL | |
6121 | }; | |
6122 | ||
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
6124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6126 | { | |
6127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6128 | result = (arg1)->GetRect(); | |
6129 | ||
6130 | wxPyEndAllowThreads(__tstate); | |
6131 | if (PyErr_Occurred()) SWIG_fail; | |
6132 | } | |
6133 | { | |
6134 | wxRect * resultptr; | |
6135 | resultptr = new wxRect((wxRect &) result); | |
6136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
6137 | } | |
6138 | return resultobj; | |
6139 | fail: | |
6140 | return NULL; | |
6141 | } | |
6142 | ||
6143 | ||
c370783e | 6144 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6145 | PyObject *resultobj; |
6146 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6147 | bool result; | |
6148 | PyObject * obj0 = 0 ; | |
6149 | char *kwnames[] = { | |
6150 | (char *) "self", NULL | |
6151 | }; | |
6152 | ||
6153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
6154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6156 | { | |
6157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6158 | result = (bool)(arg1)->HaveRects(); | |
6159 | ||
6160 | wxPyEndAllowThreads(__tstate); | |
6161 | if (PyErr_Occurred()) SWIG_fail; | |
6162 | } | |
6163 | { | |
6164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6165 | } | |
6166 | return resultobj; | |
6167 | fail: | |
6168 | return NULL; | |
6169 | } | |
6170 | ||
6171 | ||
c370783e | 6172 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6173 | PyObject *resultobj; |
6174 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6175 | PyObject * obj0 = 0 ; | |
6176 | char *kwnames[] = { | |
6177 | (char *) "self", NULL | |
6178 | }; | |
6179 | ||
6180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
6181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6183 | { | |
6184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6185 | (arg1)->Reset(); | |
6186 | ||
6187 | wxPyEndAllowThreads(__tstate); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | } | |
6190 | Py_INCREF(Py_None); resultobj = Py_None; | |
6191 | return resultobj; | |
6192 | fail: | |
6193 | return NULL; | |
6194 | } | |
6195 | ||
6196 | ||
c370783e | 6197 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6198 | PyObject *resultobj; |
6199 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6200 | PyObject * obj0 = 0 ; | |
6201 | char *kwnames[] = { | |
6202 | (char *) "self", NULL | |
6203 | }; | |
6204 | ||
6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
6206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6208 | { | |
6209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6210 | wxRegionIterator_Next(arg1); | |
6211 | ||
6212 | wxPyEndAllowThreads(__tstate); | |
6213 | if (PyErr_Occurred()) SWIG_fail; | |
6214 | } | |
6215 | Py_INCREF(Py_None); resultobj = Py_None; | |
6216 | return resultobj; | |
6217 | fail: | |
6218 | return NULL; | |
6219 | } | |
6220 | ||
6221 | ||
c370783e | 6222 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6223 | PyObject *resultobj; |
6224 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6225 | bool result; | |
6226 | PyObject * obj0 = 0 ; | |
6227 | char *kwnames[] = { | |
6228 | (char *) "self", NULL | |
6229 | }; | |
6230 | ||
6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
6232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6234 | { | |
6235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6236 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6237 | ||
6238 | wxPyEndAllowThreads(__tstate); | |
6239 | if (PyErr_Occurred()) SWIG_fail; | |
6240 | } | |
6241 | { | |
6242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6243 | } | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | return NULL; | |
6247 | } | |
6248 | ||
6249 | ||
c370783e | 6250 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6251 | PyObject *obj; |
6252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6253 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6254 | Py_INCREF(obj); | |
6255 | return Py_BuildValue((char *)""); | |
6256 | } | |
c370783e | 6257 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6258 | PyObject *resultobj; |
6259 | wxNativeFontInfo *result; | |
6260 | char *kwnames[] = { | |
6261 | NULL | |
6262 | }; | |
6263 | ||
6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6265 | { | |
6266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6267 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6268 | ||
6269 | wxPyEndAllowThreads(__tstate); | |
6270 | if (PyErr_Occurred()) SWIG_fail; | |
6271 | } | |
6272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); | |
6273 | return resultobj; | |
6274 | fail: | |
6275 | return NULL; | |
6276 | } | |
6277 | ||
6278 | ||
c370783e | 6279 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6280 | PyObject *resultobj; |
6281 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6282 | PyObject * obj0 = 0 ; | |
6283 | char *kwnames[] = { | |
6284 | (char *) "self", NULL | |
6285 | }; | |
6286 | ||
6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
6288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6290 | { | |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6292 | delete arg1; | |
6293 | ||
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
6297 | Py_INCREF(Py_None); resultobj = Py_None; | |
6298 | return resultobj; | |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
c370783e | 6304 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6305 | PyObject *resultobj; |
6306 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6307 | PyObject * obj0 = 0 ; | |
6308 | char *kwnames[] = { | |
6309 | (char *) "self", NULL | |
6310 | }; | |
6311 | ||
6312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
6313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6315 | { | |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6317 | (arg1)->Init(); | |
6318 | ||
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | Py_INCREF(Py_None); resultobj = Py_None; | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
c370783e | 6329 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6330 | PyObject *resultobj; |
6331 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6332 | wxFont *arg2 = 0 ; | |
6333 | PyObject * obj0 = 0 ; | |
6334 | PyObject * obj1 = 0 ; | |
6335 | char *kwnames[] = { | |
6336 | (char *) "self",(char *) "font", NULL | |
6337 | }; | |
6338 | ||
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
6340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6342 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6343 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6344 | SWIG_fail; | |
6345 | if (arg2 == NULL) { | |
6346 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6347 | SWIG_fail; | |
6348 | } | |
6349 | { | |
6350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6351 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6352 | ||
6353 | wxPyEndAllowThreads(__tstate); | |
6354 | if (PyErr_Occurred()) SWIG_fail; | |
6355 | } | |
6356 | Py_INCREF(Py_None); resultobj = Py_None; | |
6357 | return resultobj; | |
6358 | fail: | |
6359 | return NULL; | |
6360 | } | |
6361 | ||
6362 | ||
c370783e | 6363 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6364 | PyObject *resultobj; |
6365 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6366 | int result; | |
6367 | PyObject * obj0 = 0 ; | |
6368 | char *kwnames[] = { | |
6369 | (char *) "self", NULL | |
6370 | }; | |
6371 | ||
6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
6373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6375 | { | |
6376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6377 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6378 | ||
6379 | wxPyEndAllowThreads(__tstate); | |
6380 | if (PyErr_Occurred()) SWIG_fail; | |
6381 | } | |
c370783e | 6382 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6383 | return resultobj; |
6384 | fail: | |
6385 | return NULL; | |
6386 | } | |
6387 | ||
6388 | ||
c370783e | 6389 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6390 | PyObject *resultobj; |
6391 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6392 | int result; | |
6393 | PyObject * obj0 = 0 ; | |
6394 | char *kwnames[] = { | |
6395 | (char *) "self", NULL | |
6396 | }; | |
6397 | ||
6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6401 | { | |
6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6403 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6404 | ||
6405 | wxPyEndAllowThreads(__tstate); | |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
6407 | } | |
c370783e | 6408 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6409 | return resultobj; |
6410 | fail: | |
6411 | return NULL; | |
6412 | } | |
6413 | ||
6414 | ||
c370783e | 6415 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6416 | PyObject *resultobj; |
6417 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6418 | int result; | |
6419 | PyObject * obj0 = 0 ; | |
6420 | char *kwnames[] = { | |
6421 | (char *) "self", NULL | |
6422 | }; | |
6423 | ||
6424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6427 | { | |
6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6429 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6430 | ||
6431 | wxPyEndAllowThreads(__tstate); | |
6432 | if (PyErr_Occurred()) SWIG_fail; | |
6433 | } | |
c370783e | 6434 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6435 | return resultobj; |
6436 | fail: | |
6437 | return NULL; | |
6438 | } | |
6439 | ||
6440 | ||
c370783e | 6441 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6442 | PyObject *resultobj; |
6443 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6444 | bool result; | |
6445 | PyObject * obj0 = 0 ; | |
6446 | char *kwnames[] = { | |
6447 | (char *) "self", NULL | |
6448 | }; | |
6449 | ||
6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6453 | { | |
6454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6455 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6456 | ||
6457 | wxPyEndAllowThreads(__tstate); | |
6458 | if (PyErr_Occurred()) SWIG_fail; | |
6459 | } | |
6460 | { | |
6461 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6462 | } | |
6463 | return resultobj; | |
6464 | fail: | |
6465 | return NULL; | |
6466 | } | |
6467 | ||
6468 | ||
c370783e | 6469 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6470 | PyObject *resultobj; |
6471 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6472 | wxString result; | |
6473 | PyObject * obj0 = 0 ; | |
6474 | char *kwnames[] = { | |
6475 | (char *) "self", NULL | |
6476 | }; | |
6477 | ||
6478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
6479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6481 | { | |
6482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6483 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6484 | ||
6485 | wxPyEndAllowThreads(__tstate); | |
6486 | if (PyErr_Occurred()) SWIG_fail; | |
6487 | } | |
6488 | { | |
6489 | #if wxUSE_UNICODE | |
6490 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6491 | #else | |
6492 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6493 | #endif | |
6494 | } | |
6495 | return resultobj; | |
6496 | fail: | |
6497 | return NULL; | |
6498 | } | |
6499 | ||
6500 | ||
c370783e | 6501 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6502 | PyObject *resultobj; |
6503 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6504 | int result; | |
6505 | PyObject * obj0 = 0 ; | |
6506 | char *kwnames[] = { | |
6507 | (char *) "self", NULL | |
6508 | }; | |
6509 | ||
6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
c370783e | 6520 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6521 | return resultobj; |
6522 | fail: | |
6523 | return NULL; | |
6524 | } | |
6525 | ||
6526 | ||
c370783e | 6527 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6528 | PyObject *resultobj; |
6529 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6530 | int result; | |
6531 | PyObject * obj0 = 0 ; | |
6532 | char *kwnames[] = { | |
6533 | (char *) "self", NULL | |
6534 | }; | |
6535 | ||
6536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6539 | { | |
6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6541 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6542 | ||
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
c370783e | 6546 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6547 | return resultobj; |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
c370783e | 6553 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6554 | PyObject *resultobj; |
6555 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6556 | int arg2 ; | |
6557 | PyObject * obj0 = 0 ; | |
6558 | PyObject * obj1 = 0 ; | |
6559 | char *kwnames[] = { | |
6560 | (char *) "self",(char *) "pointsize", NULL | |
6561 | }; | |
6562 | ||
6563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
6564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6566 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6567 | if (PyErr_Occurred()) SWIG_fail; |
6568 | { | |
6569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6570 | (arg1)->SetPointSize(arg2); | |
6571 | ||
6572 | wxPyEndAllowThreads(__tstate); | |
6573 | if (PyErr_Occurred()) SWIG_fail; | |
6574 | } | |
6575 | Py_INCREF(Py_None); resultobj = Py_None; | |
6576 | return resultobj; | |
6577 | fail: | |
6578 | return NULL; | |
6579 | } | |
6580 | ||
6581 | ||
c370783e | 6582 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6583 | PyObject *resultobj; |
6584 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6585 | int arg2 ; | |
6586 | PyObject * obj0 = 0 ; | |
6587 | PyObject * obj1 = 0 ; | |
6588 | char *kwnames[] = { | |
6589 | (char *) "self",(char *) "style", NULL | |
6590 | }; | |
6591 | ||
6592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
6593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6595 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6596 | if (PyErr_Occurred()) SWIG_fail; |
6597 | { | |
6598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6599 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6600 | ||
6601 | wxPyEndAllowThreads(__tstate); | |
6602 | if (PyErr_Occurred()) SWIG_fail; | |
6603 | } | |
6604 | Py_INCREF(Py_None); resultobj = Py_None; | |
6605 | return resultobj; | |
6606 | fail: | |
6607 | return NULL; | |
6608 | } | |
6609 | ||
6610 | ||
c370783e | 6611 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6612 | PyObject *resultobj; |
6613 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6614 | int arg2 ; | |
6615 | PyObject * obj0 = 0 ; | |
6616 | PyObject * obj1 = 0 ; | |
6617 | char *kwnames[] = { | |
6618 | (char *) "self",(char *) "weight", NULL | |
6619 | }; | |
6620 | ||
6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
6622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6624 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6625 | if (PyErr_Occurred()) SWIG_fail; |
6626 | { | |
6627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6628 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6629 | ||
6630 | wxPyEndAllowThreads(__tstate); | |
6631 | if (PyErr_Occurred()) SWIG_fail; | |
6632 | } | |
6633 | Py_INCREF(Py_None); resultobj = Py_None; | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
c370783e | 6640 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6641 | PyObject *resultobj; |
6642 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6643 | bool arg2 ; | |
6644 | PyObject * obj0 = 0 ; | |
6645 | PyObject * obj1 = 0 ; | |
6646 | char *kwnames[] = { | |
6647 | (char *) "self",(char *) "underlined", NULL | |
6648 | }; | |
6649 | ||
6650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6653 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
6654 | if (PyErr_Occurred()) SWIG_fail; |
6655 | { | |
6656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6657 | (arg1)->SetUnderlined(arg2); | |
6658 | ||
6659 | wxPyEndAllowThreads(__tstate); | |
6660 | if (PyErr_Occurred()) SWIG_fail; | |
6661 | } | |
6662 | Py_INCREF(Py_None); resultobj = Py_None; | |
6663 | return resultobj; | |
6664 | fail: | |
6665 | return NULL; | |
6666 | } | |
6667 | ||
6668 | ||
c370783e | 6669 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6670 | PyObject *resultobj; |
6671 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6672 | wxString arg2 ; | |
6673 | PyObject * obj0 = 0 ; | |
6674 | PyObject * obj1 = 0 ; | |
6675 | char *kwnames[] = { | |
6676 | (char *) "self",(char *) "facename", NULL | |
6677 | }; | |
6678 | ||
6679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6682 | { | |
6683 | wxString* sptr = wxString_in_helper(obj1); | |
6684 | if (sptr == NULL) SWIG_fail; | |
6685 | arg2 = *sptr; | |
6686 | delete sptr; | |
6687 | } | |
6688 | { | |
6689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6690 | (arg1)->SetFaceName(arg2); | |
6691 | ||
6692 | wxPyEndAllowThreads(__tstate); | |
6693 | if (PyErr_Occurred()) SWIG_fail; | |
6694 | } | |
6695 | Py_INCREF(Py_None); resultobj = Py_None; | |
6696 | return resultobj; | |
6697 | fail: | |
6698 | return NULL; | |
6699 | } | |
6700 | ||
6701 | ||
c370783e | 6702 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6703 | PyObject *resultobj; |
6704 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6705 | int arg2 ; | |
6706 | PyObject * obj0 = 0 ; | |
6707 | PyObject * obj1 = 0 ; | |
6708 | char *kwnames[] = { | |
6709 | (char *) "self",(char *) "family", NULL | |
6710 | }; | |
6711 | ||
6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
6713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6715 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6716 | if (PyErr_Occurred()) SWIG_fail; |
6717 | { | |
6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6719 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6720 | ||
6721 | wxPyEndAllowThreads(__tstate); | |
6722 | if (PyErr_Occurred()) SWIG_fail; | |
6723 | } | |
6724 | Py_INCREF(Py_None); resultobj = Py_None; | |
6725 | return resultobj; | |
6726 | fail: | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
c370783e | 6731 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6732 | PyObject *resultobj; |
6733 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6734 | int arg2 ; | |
6735 | PyObject * obj0 = 0 ; | |
6736 | PyObject * obj1 = 0 ; | |
6737 | char *kwnames[] = { | |
6738 | (char *) "self",(char *) "encoding", NULL | |
6739 | }; | |
6740 | ||
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
6742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6744 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6745 | if (PyErr_Occurred()) SWIG_fail; |
6746 | { | |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6748 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6749 | ||
6750 | wxPyEndAllowThreads(__tstate); | |
6751 | if (PyErr_Occurred()) SWIG_fail; | |
6752 | } | |
6753 | Py_INCREF(Py_None); resultobj = Py_None; | |
6754 | return resultobj; | |
6755 | fail: | |
6756 | return NULL; | |
6757 | } | |
6758 | ||
6759 | ||
c370783e | 6760 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6761 | PyObject *resultobj; |
6762 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6763 | wxString *arg2 = 0 ; | |
6764 | bool result; | |
b411df4a | 6765 | bool temp2 = false ; |
d55e5bfc RD |
6766 | PyObject * obj0 = 0 ; |
6767 | PyObject * obj1 = 0 ; | |
6768 | char *kwnames[] = { | |
6769 | (char *) "self",(char *) "s", NULL | |
6770 | }; | |
6771 | ||
6772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6775 | { | |
6776 | arg2 = wxString_in_helper(obj1); | |
6777 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6778 | temp2 = true; |
d55e5bfc RD |
6779 | } |
6780 | { | |
6781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6782 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6783 | ||
6784 | wxPyEndAllowThreads(__tstate); | |
6785 | if (PyErr_Occurred()) SWIG_fail; | |
6786 | } | |
6787 | { | |
6788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6789 | } | |
6790 | { | |
6791 | if (temp2) | |
6792 | delete arg2; | |
6793 | } | |
6794 | return resultobj; | |
6795 | fail: | |
6796 | { | |
6797 | if (temp2) | |
6798 | delete arg2; | |
6799 | } | |
6800 | return NULL; | |
6801 | } | |
6802 | ||
6803 | ||
c370783e | 6804 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6805 | PyObject *resultobj; |
6806 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6807 | wxString result; | |
6808 | PyObject * obj0 = 0 ; | |
6809 | char *kwnames[] = { | |
6810 | (char *) "self", NULL | |
6811 | }; | |
6812 | ||
6813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6816 | { | |
6817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6818 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6819 | ||
6820 | wxPyEndAllowThreads(__tstate); | |
6821 | if (PyErr_Occurred()) SWIG_fail; | |
6822 | } | |
6823 | { | |
6824 | #if wxUSE_UNICODE | |
6825 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6826 | #else | |
6827 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6828 | #endif | |
6829 | } | |
6830 | return resultobj; | |
6831 | fail: | |
6832 | return NULL; | |
6833 | } | |
6834 | ||
6835 | ||
c370783e | 6836 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6837 | PyObject *resultobj; |
6838 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6839 | wxString result; | |
6840 | PyObject * obj0 = 0 ; | |
6841 | char *kwnames[] = { | |
6842 | (char *) "self", NULL | |
6843 | }; | |
6844 | ||
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6848 | { | |
6849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6850 | result = wxNativeFontInfo___str__(arg1); | |
6851 | ||
6852 | wxPyEndAllowThreads(__tstate); | |
6853 | if (PyErr_Occurred()) SWIG_fail; | |
6854 | } | |
6855 | { | |
6856 | #if wxUSE_UNICODE | |
6857 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6858 | #else | |
6859 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6860 | #endif | |
6861 | } | |
6862 | return resultobj; | |
6863 | fail: | |
6864 | return NULL; | |
6865 | } | |
6866 | ||
6867 | ||
c370783e | 6868 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6869 | PyObject *resultobj; |
6870 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6871 | wxString *arg2 = 0 ; | |
6872 | bool result; | |
b411df4a | 6873 | bool temp2 = false ; |
d55e5bfc RD |
6874 | PyObject * obj0 = 0 ; |
6875 | PyObject * obj1 = 0 ; | |
6876 | char *kwnames[] = { | |
6877 | (char *) "self",(char *) "s", NULL | |
6878 | }; | |
6879 | ||
6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6883 | { | |
6884 | arg2 = wxString_in_helper(obj1); | |
6885 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6886 | temp2 = true; |
d55e5bfc RD |
6887 | } |
6888 | { | |
6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6890 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6891 | ||
6892 | wxPyEndAllowThreads(__tstate); | |
6893 | if (PyErr_Occurred()) SWIG_fail; | |
6894 | } | |
6895 | { | |
6896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6897 | } | |
6898 | { | |
6899 | if (temp2) | |
6900 | delete arg2; | |
6901 | } | |
6902 | return resultobj; | |
6903 | fail: | |
6904 | { | |
6905 | if (temp2) | |
6906 | delete arg2; | |
6907 | } | |
6908 | return NULL; | |
6909 | } | |
6910 | ||
6911 | ||
c370783e | 6912 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6913 | PyObject *resultobj; |
6914 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6915 | wxString result; | |
6916 | PyObject * obj0 = 0 ; | |
6917 | char *kwnames[] = { | |
6918 | (char *) "self", NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6924 | { | |
6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6926 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6927 | ||
6928 | wxPyEndAllowThreads(__tstate); | |
6929 | if (PyErr_Occurred()) SWIG_fail; | |
6930 | } | |
6931 | { | |
6932 | #if wxUSE_UNICODE | |
6933 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6934 | #else | |
6935 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6936 | #endif | |
6937 | } | |
6938 | return resultobj; | |
6939 | fail: | |
6940 | return NULL; | |
6941 | } | |
6942 | ||
6943 | ||
c370783e | 6944 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6945 | PyObject *obj; |
6946 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6947 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6948 | Py_INCREF(obj); | |
6949 | return Py_BuildValue((char *)""); | |
6950 | } | |
c370783e | 6951 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6952 | PyObject *resultobj; |
6953 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6954 | wxString *arg2 = (wxString *) 0 ; | |
b411df4a | 6955 | bool temp2 = false ; |
d55e5bfc RD |
6956 | PyObject * obj0 = 0 ; |
6957 | PyObject * obj1 = 0 ; | |
6958 | char *kwnames[] = { | |
6959 | (char *) "self",(char *) "facename", NULL | |
6960 | }; | |
6961 | ||
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6965 | { | |
6966 | arg2 = wxString_in_helper(obj1); | |
6967 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6968 | temp2 = true; |
d55e5bfc RD |
6969 | } |
6970 | if (arg1) (arg1)->facename = *arg2; | |
6971 | ||
6972 | Py_INCREF(Py_None); resultobj = Py_None; | |
6973 | { | |
6974 | if (temp2) | |
6975 | delete arg2; | |
6976 | } | |
6977 | return resultobj; | |
6978 | fail: | |
6979 | { | |
6980 | if (temp2) | |
6981 | delete arg2; | |
6982 | } | |
6983 | return NULL; | |
6984 | } | |
6985 | ||
6986 | ||
c370783e | 6987 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6988 | PyObject *resultobj; |
6989 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6990 | wxString *result; | |
6991 | PyObject * obj0 = 0 ; | |
6992 | char *kwnames[] = { | |
6993 | (char *) "self", NULL | |
6994 | }; | |
6995 | ||
6996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6999 | result = (wxString *)& ((arg1)->facename); | |
7000 | ||
7001 | { | |
7002 | #if wxUSE_UNICODE | |
7003 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7004 | #else | |
7005 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7006 | #endif | |
7007 | } | |
7008 | return resultobj; | |
7009 | fail: | |
7010 | return NULL; | |
7011 | } | |
7012 | ||
7013 | ||
c370783e | 7014 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7015 | PyObject *resultobj; |
7016 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7017 | int arg2 ; | |
7018 | PyObject * obj0 = 0 ; | |
7019 | PyObject * obj1 = 0 ; | |
7020 | char *kwnames[] = { | |
7021 | (char *) "self",(char *) "encoding", NULL | |
7022 | }; | |
7023 | ||
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; | |
7025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7027 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7028 | if (PyErr_Occurred()) SWIG_fail; |
7029 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
7030 | ||
7031 | Py_INCREF(Py_None); resultobj = Py_None; | |
7032 | return resultobj; | |
7033 | fail: | |
7034 | return NULL; | |
7035 | } | |
7036 | ||
7037 | ||
c370783e | 7038 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7039 | PyObject *resultobj; |
7040 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7041 | int result; | |
7042 | PyObject * obj0 = 0 ; | |
7043 | char *kwnames[] = { | |
7044 | (char *) "self", NULL | |
7045 | }; | |
7046 | ||
7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
7048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7050 | result = (int) ((arg1)->encoding); | |
7051 | ||
c370783e | 7052 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7053 | return resultobj; |
7054 | fail: | |
7055 | return NULL; | |
7056 | } | |
7057 | ||
7058 | ||
c370783e | 7059 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7060 | PyObject *resultobj; |
7061 | wxNativeEncodingInfo *result; | |
7062 | char *kwnames[] = { | |
7063 | NULL | |
7064 | }; | |
7065 | ||
7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
7074 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
7075 | return resultobj; | |
7076 | fail: | |
7077 | return NULL; | |
7078 | } | |
7079 | ||
7080 | ||
c370783e | 7081 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7082 | PyObject *resultobj; |
7083 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7084 | PyObject * obj0 = 0 ; | |
7085 | char *kwnames[] = { | |
7086 | (char *) "self", NULL | |
7087 | }; | |
7088 | ||
7089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
7090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7092 | { | |
7093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7094 | delete arg1; | |
7095 | ||
7096 | wxPyEndAllowThreads(__tstate); | |
7097 | if (PyErr_Occurred()) SWIG_fail; | |
7098 | } | |
7099 | Py_INCREF(Py_None); resultobj = Py_None; | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
c370783e | 7106 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7107 | PyObject *resultobj; |
7108 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7109 | wxString *arg2 = 0 ; | |
7110 | bool result; | |
b411df4a | 7111 | bool temp2 = false ; |
d55e5bfc RD |
7112 | PyObject * obj0 = 0 ; |
7113 | PyObject * obj1 = 0 ; | |
7114 | char *kwnames[] = { | |
7115 | (char *) "self",(char *) "s", NULL | |
7116 | }; | |
7117 | ||
7118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7121 | { | |
7122 | arg2 = wxString_in_helper(obj1); | |
7123 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7124 | temp2 = true; |
d55e5bfc RD |
7125 | } |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7129 | ||
7130 | wxPyEndAllowThreads(__tstate); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | { | |
7134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7135 | } | |
7136 | { | |
7137 | if (temp2) | |
7138 | delete arg2; | |
7139 | } | |
7140 | return resultobj; | |
7141 | fail: | |
7142 | { | |
7143 | if (temp2) | |
7144 | delete arg2; | |
7145 | } | |
7146 | return NULL; | |
7147 | } | |
7148 | ||
7149 | ||
c370783e | 7150 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7151 | PyObject *resultobj; |
7152 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7153 | wxString result; | |
7154 | PyObject * obj0 = 0 ; | |
7155 | char *kwnames[] = { | |
7156 | (char *) "self", NULL | |
7157 | }; | |
7158 | ||
7159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
7160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | } | |
7169 | { | |
7170 | #if wxUSE_UNICODE | |
7171 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7172 | #else | |
7173 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7174 | #endif | |
7175 | } | |
7176 | return resultobj; | |
7177 | fail: | |
7178 | return NULL; | |
7179 | } | |
7180 | ||
7181 | ||
c370783e | 7182 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7183 | PyObject *obj; |
7184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7185 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7186 | Py_INCREF(obj); | |
7187 | return Py_BuildValue((char *)""); | |
7188 | } | |
c370783e | 7189 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7190 | PyObject *resultobj; |
7191 | int arg1 ; | |
7192 | wxNativeEncodingInfo *result; | |
7193 | PyObject * obj0 = 0 ; | |
7194 | char *kwnames[] = { | |
7195 | (char *) "encoding", NULL | |
7196 | }; | |
7197 | ||
7198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; | |
c370783e | 7199 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7200 | if (PyErr_Occurred()) SWIG_fail; |
7201 | { | |
7202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7203 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7204 | ||
7205 | wxPyEndAllowThreads(__tstate); | |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
7207 | } | |
7208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
7209 | return resultobj; | |
7210 | fail: | |
7211 | return NULL; | |
7212 | } | |
7213 | ||
7214 | ||
c370783e | 7215 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7216 | PyObject *resultobj; |
7217 | wxNativeEncodingInfo *arg1 = 0 ; | |
7218 | bool result; | |
7219 | PyObject * obj0 = 0 ; | |
7220 | char *kwnames[] = { | |
7221 | (char *) "info", NULL | |
7222 | }; | |
7223 | ||
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
7225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7227 | SWIG_fail; | |
7228 | if (arg1 == NULL) { | |
7229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7230 | SWIG_fail; | |
7231 | } | |
7232 | { | |
7233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7234 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7235 | ||
7236 | wxPyEndAllowThreads(__tstate); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | } | |
7239 | { | |
7240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7241 | } | |
7242 | return resultobj; | |
7243 | fail: | |
7244 | return NULL; | |
7245 | } | |
7246 | ||
7247 | ||
c370783e | 7248 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7249 | PyObject *resultobj; |
7250 | wxFontMapper *result; | |
7251 | char *kwnames[] = { | |
7252 | NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7256 | { | |
7257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7258 | result = (wxFontMapper *)new wxFontMapper(); | |
7259 | ||
7260 | wxPyEndAllowThreads(__tstate); | |
7261 | if (PyErr_Occurred()) SWIG_fail; | |
7262 | } | |
7263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); | |
7264 | return resultobj; | |
7265 | fail: | |
7266 | return NULL; | |
7267 | } | |
7268 | ||
7269 | ||
c370783e | 7270 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7271 | PyObject *resultobj; |
7272 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7273 | PyObject * obj0 = 0 ; | |
7274 | char *kwnames[] = { | |
7275 | (char *) "self", NULL | |
7276 | }; | |
7277 | ||
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
7279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7281 | { | |
7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7283 | delete arg1; | |
7284 | ||
7285 | wxPyEndAllowThreads(__tstate); | |
7286 | if (PyErr_Occurred()) SWIG_fail; | |
7287 | } | |
7288 | Py_INCREF(Py_None); resultobj = Py_None; | |
7289 | return resultobj; | |
7290 | fail: | |
7291 | return NULL; | |
7292 | } | |
7293 | ||
7294 | ||
c370783e | 7295 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7296 | PyObject *resultobj; |
7297 | wxFontMapper *result; | |
7298 | char *kwnames[] = { | |
7299 | NULL | |
7300 | }; | |
7301 | ||
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7303 | { | |
7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7305 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7306 | ||
7307 | wxPyEndAllowThreads(__tstate); | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | } | |
7310 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7311 | return resultobj; | |
7312 | fail: | |
7313 | return NULL; | |
7314 | } | |
7315 | ||
7316 | ||
c370783e | 7317 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7318 | PyObject *resultobj; |
7319 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7320 | wxFontMapper *result; | |
7321 | PyObject * obj0 = 0 ; | |
7322 | char *kwnames[] = { | |
7323 | (char *) "mapper", NULL | |
7324 | }; | |
7325 | ||
7326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
7327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7329 | { | |
7330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7331 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7332 | ||
7333 | wxPyEndAllowThreads(__tstate); | |
7334 | if (PyErr_Occurred()) SWIG_fail; | |
7335 | } | |
7336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7337 | return resultobj; | |
7338 | fail: | |
7339 | return NULL; | |
7340 | } | |
7341 | ||
7342 | ||
c370783e | 7343 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7344 | PyObject *resultobj; |
7345 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7346 | wxString *arg2 = 0 ; | |
b411df4a | 7347 | bool arg3 = (bool) true ; |
d55e5bfc | 7348 | int result; |
b411df4a | 7349 | bool temp2 = false ; |
d55e5bfc RD |
7350 | PyObject * obj0 = 0 ; |
7351 | PyObject * obj1 = 0 ; | |
7352 | PyObject * obj2 = 0 ; | |
7353 | char *kwnames[] = { | |
7354 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7355 | }; | |
7356 | ||
7357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7360 | { | |
7361 | arg2 = wxString_in_helper(obj1); | |
7362 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7363 | temp2 = true; |
d55e5bfc RD |
7364 | } |
7365 | if (obj2) { | |
c370783e | 7366 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7367 | if (PyErr_Occurred()) SWIG_fail; |
7368 | } | |
7369 | { | |
7370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7371 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7372 | ||
7373 | wxPyEndAllowThreads(__tstate); | |
7374 | if (PyErr_Occurred()) SWIG_fail; | |
7375 | } | |
c370783e | 7376 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7377 | { |
7378 | if (temp2) | |
7379 | delete arg2; | |
7380 | } | |
7381 | return resultobj; | |
7382 | fail: | |
7383 | { | |
7384 | if (temp2) | |
7385 | delete arg2; | |
7386 | } | |
7387 | return NULL; | |
7388 | } | |
7389 | ||
7390 | ||
c370783e | 7391 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7392 | PyObject *resultobj; |
7393 | size_t result; | |
7394 | char *kwnames[] = { | |
7395 | NULL | |
7396 | }; | |
7397 | ||
7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7399 | { | |
7400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7401 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7402 | ||
7403 | wxPyEndAllowThreads(__tstate); | |
7404 | if (PyErr_Occurred()) SWIG_fail; | |
7405 | } | |
c370783e | 7406 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
7407 | return resultobj; |
7408 | fail: | |
7409 | return NULL; | |
7410 | } | |
7411 | ||
7412 | ||
c370783e | 7413 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7414 | PyObject *resultobj; |
7415 | size_t arg1 ; | |
7416 | int result; | |
7417 | PyObject * obj0 = 0 ; | |
7418 | char *kwnames[] = { | |
7419 | (char *) "n", NULL | |
7420 | }; | |
7421 | ||
7422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
c370783e | 7423 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); |
d55e5bfc RD |
7424 | if (PyErr_Occurred()) SWIG_fail; |
7425 | { | |
7426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7427 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7428 | ||
7429 | wxPyEndAllowThreads(__tstate); | |
7430 | if (PyErr_Occurred()) SWIG_fail; | |
7431 | } | |
c370783e | 7432 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7433 | return resultobj; |
7434 | fail: | |
7435 | return NULL; | |
7436 | } | |
7437 | ||
7438 | ||
c370783e | 7439 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7440 | PyObject *resultobj; |
7441 | int arg1 ; | |
7442 | wxString result; | |
7443 | PyObject * obj0 = 0 ; | |
7444 | char *kwnames[] = { | |
7445 | (char *) "encoding", NULL | |
7446 | }; | |
7447 | ||
7448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; | |
c370783e | 7449 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7450 | if (PyErr_Occurred()) SWIG_fail; |
7451 | { | |
7452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7453 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7454 | ||
7455 | wxPyEndAllowThreads(__tstate); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | } | |
7458 | { | |
7459 | #if wxUSE_UNICODE | |
7460 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7461 | #else | |
7462 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7463 | #endif | |
7464 | } | |
7465 | return resultobj; | |
7466 | fail: | |
7467 | return NULL; | |
7468 | } | |
7469 | ||
7470 | ||
c370783e | 7471 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7472 | PyObject *resultobj; |
7473 | int arg1 ; | |
7474 | wxString result; | |
7475 | PyObject * obj0 = 0 ; | |
7476 | char *kwnames[] = { | |
7477 | (char *) "encoding", NULL | |
7478 | }; | |
7479 | ||
7480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; | |
c370783e | 7481 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
7482 | if (PyErr_Occurred()) SWIG_fail; |
7483 | { | |
7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7485 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7486 | ||
7487 | wxPyEndAllowThreads(__tstate); | |
7488 | if (PyErr_Occurred()) SWIG_fail; | |
7489 | } | |
7490 | { | |
7491 | #if wxUSE_UNICODE | |
7492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7493 | #else | |
7494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7495 | #endif | |
7496 | } | |
7497 | return resultobj; | |
7498 | fail: | |
7499 | return NULL; | |
7500 | } | |
7501 | ||
7502 | ||
c370783e | 7503 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7504 | PyObject *resultobj; |
7505 | wxString *arg1 = 0 ; | |
7506 | int result; | |
b411df4a | 7507 | bool temp1 = false ; |
d55e5bfc RD |
7508 | PyObject * obj0 = 0 ; |
7509 | char *kwnames[] = { | |
7510 | (char *) "name", NULL | |
7511 | }; | |
7512 | ||
7513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7514 | { | |
7515 | arg1 = wxString_in_helper(obj0); | |
7516 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7517 | temp1 = true; |
d55e5bfc RD |
7518 | } |
7519 | { | |
7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7521 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7522 | ||
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
c370783e | 7526 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
7527 | { |
7528 | if (temp1) | |
7529 | delete arg1; | |
7530 | } | |
7531 | return resultobj; | |
7532 | fail: | |
7533 | { | |
7534 | if (temp1) | |
7535 | delete arg1; | |
7536 | } | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
c370783e | 7541 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7542 | PyObject *resultobj; |
7543 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7544 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7545 | PyObject * obj0 = 0 ; | |
7546 | PyObject * obj1 = 0 ; | |
7547 | char *kwnames[] = { | |
7548 | (char *) "self",(char *) "config", NULL | |
7549 | }; | |
7550 | ||
7551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7556 | { | |
7557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7558 | (arg1)->SetConfig(arg2); | |
7559 | ||
7560 | wxPyEndAllowThreads(__tstate); | |
7561 | if (PyErr_Occurred()) SWIG_fail; | |
7562 | } | |
7563 | Py_INCREF(Py_None); resultobj = Py_None; | |
7564 | return resultobj; | |
7565 | fail: | |
7566 | return NULL; | |
7567 | } | |
7568 | ||
7569 | ||
c370783e | 7570 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7571 | PyObject *resultobj; |
7572 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7573 | wxString *arg2 = 0 ; | |
b411df4a | 7574 | bool temp2 = false ; |
d55e5bfc RD |
7575 | PyObject * obj0 = 0 ; |
7576 | PyObject * obj1 = 0 ; | |
7577 | char *kwnames[] = { | |
7578 | (char *) "self",(char *) "prefix", NULL | |
7579 | }; | |
7580 | ||
7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
7582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7584 | { | |
7585 | arg2 = wxString_in_helper(obj1); | |
7586 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7587 | temp2 = true; |
d55e5bfc RD |
7588 | } |
7589 | { | |
7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7591 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7592 | ||
7593 | wxPyEndAllowThreads(__tstate); | |
7594 | if (PyErr_Occurred()) SWIG_fail; | |
7595 | } | |
7596 | Py_INCREF(Py_None); resultobj = Py_None; | |
7597 | { | |
7598 | if (temp2) | |
7599 | delete arg2; | |
7600 | } | |
7601 | return resultobj; | |
7602 | fail: | |
7603 | { | |
7604 | if (temp2) | |
7605 | delete arg2; | |
7606 | } | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
c370783e | 7611 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7612 | PyObject *resultobj; |
7613 | wxString result; | |
7614 | char *kwnames[] = { | |
7615 | NULL | |
7616 | }; | |
7617 | ||
7618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7619 | { | |
7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7621 | result = wxFontMapper::GetDefaultConfigPath(); | |
7622 | ||
7623 | wxPyEndAllowThreads(__tstate); | |
7624 | if (PyErr_Occurred()) SWIG_fail; | |
7625 | } | |
7626 | { | |
7627 | #if wxUSE_UNICODE | |
7628 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7629 | #else | |
7630 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7631 | #endif | |
7632 | } | |
7633 | return resultobj; | |
7634 | fail: | |
7635 | return NULL; | |
7636 | } | |
7637 | ||
7638 | ||
c370783e | 7639 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7640 | PyObject *resultobj; |
7641 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7642 | int arg2 ; | |
7643 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7644 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
b411df4a | 7645 | bool arg4 = (bool) true ; |
d55e5bfc | 7646 | PyObject *result; |
b411df4a | 7647 | bool temp3 = false ; |
d55e5bfc RD |
7648 | PyObject * obj0 = 0 ; |
7649 | PyObject * obj1 = 0 ; | |
7650 | PyObject * obj2 = 0 ; | |
7651 | PyObject * obj3 = 0 ; | |
7652 | char *kwnames[] = { | |
7653 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7654 | }; | |
7655 | ||
7656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7659 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7660 | if (PyErr_Occurred()) SWIG_fail; |
7661 | if (obj2) { | |
7662 | { | |
7663 | arg3 = wxString_in_helper(obj2); | |
7664 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7665 | temp3 = true; |
d55e5bfc RD |
7666 | } |
7667 | } | |
7668 | if (obj3) { | |
c370783e | 7669 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
7670 | if (PyErr_Occurred()) SWIG_fail; |
7671 | } | |
7672 | { | |
7673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7674 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7675 | ||
7676 | wxPyEndAllowThreads(__tstate); | |
7677 | if (PyErr_Occurred()) SWIG_fail; | |
7678 | } | |
7679 | resultobj = result; | |
7680 | { | |
7681 | if (temp3) | |
7682 | delete arg3; | |
7683 | } | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | { | |
7687 | if (temp3) | |
7688 | delete arg3; | |
7689 | } | |
7690 | return NULL; | |
7691 | } | |
7692 | ||
7693 | ||
c370783e | 7694 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7695 | PyObject *resultobj; |
7696 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7697 | int arg2 ; | |
7698 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7699 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7700 | bool result; | |
b411df4a | 7701 | bool temp3 = false ; |
d55e5bfc RD |
7702 | PyObject * obj0 = 0 ; |
7703 | PyObject * obj1 = 0 ; | |
7704 | PyObject * obj2 = 0 ; | |
7705 | char *kwnames[] = { | |
7706 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7707 | }; | |
7708 | ||
7709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 7712 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
7713 | if (PyErr_Occurred()) SWIG_fail; |
7714 | if (obj2) { | |
7715 | { | |
7716 | arg3 = wxString_in_helper(obj2); | |
7717 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7718 | temp3 = true; |
d55e5bfc RD |
7719 | } |
7720 | } | |
7721 | { | |
7722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7723 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7724 | ||
7725 | wxPyEndAllowThreads(__tstate); | |
7726 | if (PyErr_Occurred()) SWIG_fail; | |
7727 | } | |
7728 | { | |
7729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7730 | } | |
7731 | { | |
7732 | if (temp3) | |
7733 | delete arg3; | |
7734 | } | |
7735 | return resultobj; | |
7736 | fail: | |
7737 | { | |
7738 | if (temp3) | |
7739 | delete arg3; | |
7740 | } | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
c370783e | 7745 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7746 | PyObject *resultobj; |
7747 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7748 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | PyObject * obj1 = 0 ; | |
7751 | char *kwnames[] = { | |
7752 | (char *) "self",(char *) "parent", NULL | |
7753 | }; | |
7754 | ||
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7760 | { | |
7761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7762 | (arg1)->SetDialogParent(arg2); | |
7763 | ||
7764 | wxPyEndAllowThreads(__tstate); | |
7765 | if (PyErr_Occurred()) SWIG_fail; | |
7766 | } | |
7767 | Py_INCREF(Py_None); resultobj = Py_None; | |
7768 | return resultobj; | |
7769 | fail: | |
7770 | return NULL; | |
7771 | } | |
7772 | ||
7773 | ||
c370783e | 7774 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7775 | PyObject *resultobj; |
7776 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7777 | wxString *arg2 = 0 ; | |
b411df4a | 7778 | bool temp2 = false ; |
d55e5bfc RD |
7779 | PyObject * obj0 = 0 ; |
7780 | PyObject * obj1 = 0 ; | |
7781 | char *kwnames[] = { | |
7782 | (char *) "self",(char *) "title", NULL | |
7783 | }; | |
7784 | ||
7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7788 | { | |
7789 | arg2 = wxString_in_helper(obj1); | |
7790 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7791 | temp2 = true; |
d55e5bfc RD |
7792 | } |
7793 | { | |
7794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7795 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7796 | ||
7797 | wxPyEndAllowThreads(__tstate); | |
7798 | if (PyErr_Occurred()) SWIG_fail; | |
7799 | } | |
7800 | Py_INCREF(Py_None); resultobj = Py_None; | |
7801 | { | |
7802 | if (temp2) | |
7803 | delete arg2; | |
7804 | } | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | { | |
7808 | if (temp2) | |
7809 | delete arg2; | |
7810 | } | |
7811 | return NULL; | |
7812 | } | |
7813 | ||
7814 | ||
c370783e | 7815 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7816 | PyObject *obj; |
7817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7818 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7819 | Py_INCREF(obj); | |
7820 | return Py_BuildValue((char *)""); | |
7821 | } | |
c370783e | 7822 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7823 | PyObject *resultobj; |
7824 | int arg1 ; | |
7825 | int arg2 ; | |
7826 | int arg3 ; | |
7827 | int arg4 ; | |
b411df4a | 7828 | bool arg5 = (bool) false ; |
d55e5bfc RD |
7829 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7830 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7831 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7832 | wxFont *result; | |
b411df4a | 7833 | bool temp6 = false ; |
d55e5bfc RD |
7834 | PyObject * obj0 = 0 ; |
7835 | PyObject * obj1 = 0 ; | |
7836 | PyObject * obj2 = 0 ; | |
7837 | PyObject * obj3 = 0 ; | |
7838 | PyObject * obj4 = 0 ; | |
7839 | PyObject * obj5 = 0 ; | |
7840 | PyObject * obj6 = 0 ; | |
7841 | char *kwnames[] = { | |
7842 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
c370783e | 7846 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 7847 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7848 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 7849 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7850 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 7851 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 7852 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
7853 | if (PyErr_Occurred()) SWIG_fail; |
7854 | if (obj4) { | |
c370783e | 7855 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
7856 | if (PyErr_Occurred()) SWIG_fail; |
7857 | } | |
7858 | if (obj5) { | |
7859 | { | |
7860 | arg6 = wxString_in_helper(obj5); | |
7861 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 7862 | temp6 = true; |
d55e5bfc RD |
7863 | } |
7864 | } | |
7865 | if (obj6) { | |
c370783e | 7866 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
7867 | if (PyErr_Occurred()) SWIG_fail; |
7868 | } | |
7869 | { | |
0439c23b | 7870 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7872 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7873 | ||
7874 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7875 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7876 | } |
7877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7878 | { | |
7879 | if (temp6) | |
7880 | delete arg6; | |
7881 | } | |
7882 | return resultobj; | |
7883 | fail: | |
7884 | { | |
7885 | if (temp6) | |
7886 | delete arg6; | |
7887 | } | |
7888 | return NULL; | |
7889 | } | |
7890 | ||
7891 | ||
c370783e | 7892 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7893 | PyObject *resultobj; |
7894 | wxFont *arg1 = (wxFont *) 0 ; | |
7895 | PyObject * obj0 = 0 ; | |
7896 | char *kwnames[] = { | |
7897 | (char *) "self", NULL | |
7898 | }; | |
7899 | ||
7900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7903 | { | |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | delete arg1; | |
7906 | ||
7907 | wxPyEndAllowThreads(__tstate); | |
7908 | if (PyErr_Occurred()) SWIG_fail; | |
7909 | } | |
7910 | Py_INCREF(Py_None); resultobj = Py_None; | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
c370783e | 7917 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7918 | PyObject *resultobj; |
7919 | wxNativeFontInfo *arg1 = 0 ; | |
7920 | wxFont *result; | |
7921 | PyObject * obj0 = 0 ; | |
7922 | char *kwnames[] = { | |
7923 | (char *) "info", NULL | |
7924 | }; | |
7925 | ||
7926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7928 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7929 | SWIG_fail; | |
7930 | if (arg1 == NULL) { | |
7931 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7932 | SWIG_fail; | |
7933 | } | |
7934 | { | |
0439c23b | 7935 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7937 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7938 | ||
7939 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7940 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7941 | } |
7942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7943 | return resultobj; | |
7944 | fail: | |
7945 | return NULL; | |
7946 | } | |
7947 | ||
7948 | ||
c370783e | 7949 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7950 | PyObject *resultobj; |
7951 | wxString *arg1 = 0 ; | |
7952 | wxFont *result; | |
b411df4a | 7953 | bool temp1 = false ; |
d55e5bfc RD |
7954 | PyObject * obj0 = 0 ; |
7955 | char *kwnames[] = { | |
7956 | (char *) "info", NULL | |
7957 | }; | |
7958 | ||
7959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7960 | { | |
7961 | arg1 = wxString_in_helper(obj0); | |
7962 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7963 | temp1 = true; |
d55e5bfc RD |
7964 | } |
7965 | { | |
0439c23b | 7966 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
7967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7968 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7969 | ||
7970 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 7971 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
7972 | } |
7973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7974 | { | |
7975 | if (temp1) | |
7976 | delete arg1; | |
7977 | } | |
7978 | return resultobj; | |
7979 | fail: | |
7980 | { | |
7981 | if (temp1) | |
7982 | delete arg1; | |
7983 | } | |
7984 | return NULL; | |
7985 | } | |
7986 | ||
7987 | ||
c370783e | 7988 | static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7989 | PyObject *resultobj; |
7990 | int arg1 ; | |
7991 | int arg2 ; | |
7992 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7993 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7994 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7995 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7996 | wxFont *result; | |
b411df4a | 7997 | bool temp4 = false ; |
d55e5bfc RD |
7998 | PyObject * obj0 = 0 ; |
7999 | PyObject * obj1 = 0 ; | |
8000 | PyObject * obj2 = 0 ; | |
8001 | PyObject * obj3 = 0 ; | |
8002 | PyObject * obj4 = 0 ; | |
8003 | char *kwnames[] = { | |
8004 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
8005 | }; | |
8006 | ||
8007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
c370783e | 8008 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 8009 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8010 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8011 | if (PyErr_Occurred()) SWIG_fail; |
8012 | if (obj2) { | |
c370783e | 8013 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8014 | if (PyErr_Occurred()) SWIG_fail; |
8015 | } | |
8016 | if (obj3) { | |
8017 | { | |
8018 | arg4 = wxString_in_helper(obj3); | |
8019 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 8020 | temp4 = true; |
d55e5bfc RD |
8021 | } |
8022 | } | |
8023 | if (obj4) { | |
c370783e | 8024 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
8025 | if (PyErr_Occurred()) SWIG_fail; |
8026 | } | |
8027 | { | |
0439c23b | 8028 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8030 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8031 | ||
8032 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8033 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8034 | } |
8035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8036 | { | |
8037 | if (temp4) | |
8038 | delete arg4; | |
8039 | } | |
8040 | return resultobj; | |
8041 | fail: | |
8042 | { | |
8043 | if (temp4) | |
8044 | delete arg4; | |
8045 | } | |
8046 | return NULL; | |
8047 | } | |
8048 | ||
8049 | ||
5e483524 RD |
8050 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8051 | PyObject *resultobj; | |
8052 | wxSize *arg1 = 0 ; | |
8053 | int arg2 ; | |
8054 | int arg3 ; | |
8055 | int arg4 ; | |
8056 | bool arg5 = (bool) false ; | |
8057 | wxString const &arg6_defvalue = wxEmptyString ; | |
8058 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8059 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8060 | wxFont *result; | |
8061 | wxSize temp1 ; | |
8062 | bool temp6 = false ; | |
8063 | PyObject * obj0 = 0 ; | |
8064 | PyObject * obj1 = 0 ; | |
8065 | PyObject * obj2 = 0 ; | |
8066 | PyObject * obj3 = 0 ; | |
8067 | PyObject * obj4 = 0 ; | |
8068 | PyObject * obj5 = 0 ; | |
8069 | PyObject * obj6 = 0 ; | |
8070 | char *kwnames[] = { | |
8071 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
8072 | }; | |
8073 | ||
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8075 | { | |
8076 | arg1 = &temp1; | |
8077 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
8078 | } | |
8079 | arg2 = (int)SWIG_As_int(obj1); | |
8080 | if (PyErr_Occurred()) SWIG_fail; | |
8081 | arg3 = (int)SWIG_As_int(obj2); | |
8082 | if (PyErr_Occurred()) SWIG_fail; | |
8083 | arg4 = (int)SWIG_As_int(obj3); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | if (obj4) { | |
8086 | arg5 = (bool)SWIG_As_bool(obj4); | |
8087 | if (PyErr_Occurred()) SWIG_fail; | |
8088 | } | |
8089 | if (obj5) { | |
8090 | { | |
8091 | arg6 = wxString_in_helper(obj5); | |
8092 | if (arg6 == NULL) SWIG_fail; | |
8093 | temp6 = true; | |
8094 | } | |
8095 | } | |
8096 | if (obj6) { | |
8097 | arg7 = (int)SWIG_As_int(obj6); | |
8098 | if (PyErr_Occurred()) SWIG_fail; | |
8099 | } | |
8100 | { | |
8101 | if (!wxPyCheckForApp()) SWIG_fail; | |
8102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8103 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8104 | ||
8105 | wxPyEndAllowThreads(__tstate); | |
8106 | if (PyErr_Occurred()) SWIG_fail; | |
8107 | } | |
8108 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8109 | { | |
8110 | if (temp6) | |
8111 | delete arg6; | |
8112 | } | |
8113 | return resultobj; | |
8114 | fail: | |
8115 | { | |
8116 | if (temp6) | |
8117 | delete arg6; | |
8118 | } | |
8119 | return NULL; | |
8120 | } | |
8121 | ||
8122 | ||
c370783e | 8123 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8124 | PyObject *resultobj; |
8125 | wxFont *arg1 = (wxFont *) 0 ; | |
8126 | bool result; | |
8127 | PyObject * obj0 = 0 ; | |
8128 | char *kwnames[] = { | |
8129 | (char *) "self", NULL | |
8130 | }; | |
8131 | ||
8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
8133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8135 | { | |
8136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8137 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8138 | ||
8139 | wxPyEndAllowThreads(__tstate); | |
8140 | if (PyErr_Occurred()) SWIG_fail; | |
8141 | } | |
8142 | { | |
8143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8144 | } | |
8145 | return resultobj; | |
8146 | fail: | |
8147 | return NULL; | |
8148 | } | |
8149 | ||
8150 | ||
c370783e | 8151 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8152 | PyObject *resultobj; |
8153 | wxFont *arg1 = (wxFont *) 0 ; | |
8154 | wxFont *arg2 = (wxFont *) 0 ; | |
8155 | bool result; | |
8156 | PyObject * obj0 = 0 ; | |
8157 | PyObject * obj1 = 0 ; | |
8158 | char *kwnames[] = { | |
8159 | (char *) "self",(char *) "other", NULL | |
8160 | }; | |
8161 | ||
8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
8163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8167 | { | |
8168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8169 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
8170 | ||
8171 | wxPyEndAllowThreads(__tstate); | |
8172 | if (PyErr_Occurred()) SWIG_fail; | |
8173 | } | |
8174 | { | |
8175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8176 | } | |
8177 | return resultobj; | |
8178 | fail: | |
8179 | return NULL; | |
8180 | } | |
8181 | ||
8182 | ||
c370783e | 8183 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8184 | PyObject *resultobj; |
8185 | wxFont *arg1 = (wxFont *) 0 ; | |
8186 | wxFont *arg2 = (wxFont *) 0 ; | |
8187 | bool result; | |
8188 | PyObject * obj0 = 0 ; | |
8189 | PyObject * obj1 = 0 ; | |
8190 | char *kwnames[] = { | |
8191 | (char *) "self",(char *) "other", NULL | |
8192 | }; | |
8193 | ||
8194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
8195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8197 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8199 | { | |
8200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8201 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
8202 | ||
8203 | wxPyEndAllowThreads(__tstate); | |
8204 | if (PyErr_Occurred()) SWIG_fail; | |
8205 | } | |
8206 | { | |
8207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8208 | } | |
8209 | return resultobj; | |
8210 | fail: | |
8211 | return NULL; | |
8212 | } | |
8213 | ||
8214 | ||
c370783e | 8215 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8216 | PyObject *resultobj; |
8217 | wxFont *arg1 = (wxFont *) 0 ; | |
8218 | int result; | |
8219 | PyObject * obj0 = 0 ; | |
8220 | char *kwnames[] = { | |
8221 | (char *) "self", NULL | |
8222 | }; | |
8223 | ||
8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
8225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8227 | { | |
8228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8229 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8230 | ||
8231 | wxPyEndAllowThreads(__tstate); | |
8232 | if (PyErr_Occurred()) SWIG_fail; | |
8233 | } | |
c370783e | 8234 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8235 | return resultobj; |
8236 | fail: | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
5e483524 RD |
8241 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8242 | PyObject *resultobj; | |
8243 | wxFont *arg1 = (wxFont *) 0 ; | |
8244 | wxSize result; | |
8245 | PyObject * obj0 = 0 ; | |
8246 | char *kwnames[] = { | |
8247 | (char *) "self", NULL | |
8248 | }; | |
8249 | ||
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; | |
8251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8253 | { | |
8254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8255 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
8256 | ||
8257 | wxPyEndAllowThreads(__tstate); | |
8258 | if (PyErr_Occurred()) SWIG_fail; | |
8259 | } | |
8260 | { | |
8261 | wxSize * resultptr; | |
8262 | resultptr = new wxSize((wxSize &) result); | |
8263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
8264 | } | |
8265 | return resultobj; | |
8266 | fail: | |
8267 | return NULL; | |
8268 | } | |
8269 | ||
8270 | ||
8271 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { | |
8272 | PyObject *resultobj; | |
8273 | wxFont *arg1 = (wxFont *) 0 ; | |
8274 | bool result; | |
8275 | PyObject * obj0 = 0 ; | |
8276 | char *kwnames[] = { | |
8277 | (char *) "self", NULL | |
8278 | }; | |
8279 | ||
8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; | |
8281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8283 | { | |
8284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8285 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
8286 | ||
8287 | wxPyEndAllowThreads(__tstate); | |
8288 | if (PyErr_Occurred()) SWIG_fail; | |
8289 | } | |
8290 | { | |
8291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8292 | } | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | return NULL; | |
8296 | } | |
8297 | ||
8298 | ||
c370783e | 8299 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8300 | PyObject *resultobj; |
8301 | wxFont *arg1 = (wxFont *) 0 ; | |
8302 | int result; | |
8303 | PyObject * obj0 = 0 ; | |
8304 | char *kwnames[] = { | |
8305 | (char *) "self", NULL | |
8306 | }; | |
8307 | ||
8308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
8309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8311 | { | |
8312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8313 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8314 | ||
8315 | wxPyEndAllowThreads(__tstate); | |
8316 | if (PyErr_Occurred()) SWIG_fail; | |
8317 | } | |
c370783e | 8318 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8319 | return resultobj; |
8320 | fail: | |
8321 | return NULL; | |
8322 | } | |
8323 | ||
8324 | ||
c370783e | 8325 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8326 | PyObject *resultobj; |
8327 | wxFont *arg1 = (wxFont *) 0 ; | |
8328 | int result; | |
8329 | PyObject * obj0 = 0 ; | |
8330 | char *kwnames[] = { | |
8331 | (char *) "self", NULL | |
8332 | }; | |
8333 | ||
8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
8335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8337 | { | |
8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8339 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8340 | ||
8341 | wxPyEndAllowThreads(__tstate); | |
8342 | if (PyErr_Occurred()) SWIG_fail; | |
8343 | } | |
c370783e | 8344 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8345 | return resultobj; |
8346 | fail: | |
8347 | return NULL; | |
8348 | } | |
8349 | ||
8350 | ||
c370783e | 8351 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8352 | PyObject *resultobj; |
8353 | wxFont *arg1 = (wxFont *) 0 ; | |
8354 | int result; | |
8355 | PyObject * obj0 = 0 ; | |
8356 | char *kwnames[] = { | |
8357 | (char *) "self", NULL | |
8358 | }; | |
8359 | ||
8360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
8361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8363 | { | |
8364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8365 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8366 | ||
8367 | wxPyEndAllowThreads(__tstate); | |
8368 | if (PyErr_Occurred()) SWIG_fail; | |
8369 | } | |
c370783e | 8370 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8371 | return resultobj; |
8372 | fail: | |
8373 | return NULL; | |
8374 | } | |
8375 | ||
8376 | ||
c370783e | 8377 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8378 | PyObject *resultobj; |
8379 | wxFont *arg1 = (wxFont *) 0 ; | |
8380 | bool result; | |
8381 | PyObject * obj0 = 0 ; | |
8382 | char *kwnames[] = { | |
8383 | (char *) "self", NULL | |
8384 | }; | |
8385 | ||
8386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
8387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8389 | { | |
8390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8391 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8392 | ||
8393 | wxPyEndAllowThreads(__tstate); | |
8394 | if (PyErr_Occurred()) SWIG_fail; | |
8395 | } | |
8396 | { | |
8397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8398 | } | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | return NULL; | |
8402 | } | |
8403 | ||
8404 | ||
c370783e | 8405 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8406 | PyObject *resultobj; |
8407 | wxFont *arg1 = (wxFont *) 0 ; | |
8408 | wxString result; | |
8409 | PyObject * obj0 = 0 ; | |
8410 | char *kwnames[] = { | |
8411 | (char *) "self", NULL | |
8412 | }; | |
8413 | ||
8414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
8415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8417 | { | |
8418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8419 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8420 | ||
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
8424 | { | |
8425 | #if wxUSE_UNICODE | |
8426 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8427 | #else | |
8428 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8429 | #endif | |
8430 | } | |
8431 | return resultobj; | |
8432 | fail: | |
8433 | return NULL; | |
8434 | } | |
8435 | ||
8436 | ||
c370783e | 8437 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8438 | PyObject *resultobj; |
8439 | wxFont *arg1 = (wxFont *) 0 ; | |
8440 | int result; | |
8441 | PyObject * obj0 = 0 ; | |
8442 | char *kwnames[] = { | |
8443 | (char *) "self", NULL | |
8444 | }; | |
8445 | ||
8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
8447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8449 | { | |
8450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8451 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8452 | ||
8453 | wxPyEndAllowThreads(__tstate); | |
8454 | if (PyErr_Occurred()) SWIG_fail; | |
8455 | } | |
c370783e | 8456 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
8457 | return resultobj; |
8458 | fail: | |
8459 | return NULL; | |
8460 | } | |
8461 | ||
8462 | ||
c370783e | 8463 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8464 | PyObject *resultobj; |
8465 | wxFont *arg1 = (wxFont *) 0 ; | |
8466 | wxNativeFontInfo *result; | |
8467 | PyObject * obj0 = 0 ; | |
8468 | char *kwnames[] = { | |
8469 | (char *) "self", NULL | |
8470 | }; | |
8471 | ||
8472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
8473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8475 | { | |
8476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8477 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8478 | ||
8479 | wxPyEndAllowThreads(__tstate); | |
8480 | if (PyErr_Occurred()) SWIG_fail; | |
8481 | } | |
8482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); | |
8483 | return resultobj; | |
8484 | fail: | |
8485 | return NULL; | |
8486 | } | |
8487 | ||
8488 | ||
c370783e | 8489 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8490 | PyObject *resultobj; |
8491 | wxFont *arg1 = (wxFont *) 0 ; | |
8492 | bool result; | |
8493 | PyObject * obj0 = 0 ; | |
8494 | char *kwnames[] = { | |
8495 | (char *) "self", NULL | |
8496 | }; | |
8497 | ||
8498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
8499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8501 | { | |
8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8503 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8504 | ||
8505 | wxPyEndAllowThreads(__tstate); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | { | |
8509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8510 | } | |
8511 | return resultobj; | |
8512 | fail: | |
8513 | return NULL; | |
8514 | } | |
8515 | ||
8516 | ||
c370783e | 8517 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8518 | PyObject *resultobj; |
8519 | wxFont *arg1 = (wxFont *) 0 ; | |
8520 | wxString result; | |
8521 | PyObject * obj0 = 0 ; | |
8522 | char *kwnames[] = { | |
8523 | (char *) "self", NULL | |
8524 | }; | |
8525 | ||
8526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
8527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8529 | { | |
8530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8531 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8532 | ||
8533 | wxPyEndAllowThreads(__tstate); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | } | |
8536 | { | |
8537 | #if wxUSE_UNICODE | |
8538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8539 | #else | |
8540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8541 | #endif | |
8542 | } | |
8543 | return resultobj; | |
8544 | fail: | |
8545 | return NULL; | |
8546 | } | |
8547 | ||
8548 | ||
c370783e | 8549 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8550 | PyObject *resultobj; |
8551 | wxFont *arg1 = (wxFont *) 0 ; | |
8552 | wxString result; | |
8553 | PyObject * obj0 = 0 ; | |
8554 | char *kwnames[] = { | |
8555 | (char *) "self", NULL | |
8556 | }; | |
8557 | ||
8558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
8559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8561 | { | |
8562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8563 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8564 | ||
8565 | wxPyEndAllowThreads(__tstate); | |
8566 | if (PyErr_Occurred()) SWIG_fail; | |
8567 | } | |
8568 | { | |
8569 | #if wxUSE_UNICODE | |
8570 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8571 | #else | |
8572 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8573 | #endif | |
8574 | } | |
8575 | return resultobj; | |
8576 | fail: | |
8577 | return NULL; | |
8578 | } | |
8579 | ||
8580 | ||
c370783e | 8581 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8582 | PyObject *resultobj; |
8583 | wxFont *arg1 = (wxFont *) 0 ; | |
8584 | int arg2 ; | |
8585 | PyObject * obj0 = 0 ; | |
8586 | PyObject * obj1 = 0 ; | |
8587 | char *kwnames[] = { | |
8588 | (char *) "self",(char *) "pointSize", NULL | |
8589 | }; | |
8590 | ||
8591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
8592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8594 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8595 | if (PyErr_Occurred()) SWIG_fail; |
8596 | { | |
8597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8598 | (arg1)->SetPointSize(arg2); | |
8599 | ||
8600 | wxPyEndAllowThreads(__tstate); | |
8601 | if (PyErr_Occurred()) SWIG_fail; | |
8602 | } | |
8603 | Py_INCREF(Py_None); resultobj = Py_None; | |
8604 | return resultobj; | |
8605 | fail: | |
8606 | return NULL; | |
8607 | } | |
8608 | ||
8609 | ||
5e483524 RD |
8610 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { |
8611 | PyObject *resultobj; | |
8612 | wxFont *arg1 = (wxFont *) 0 ; | |
8613 | wxSize *arg2 = 0 ; | |
8614 | wxSize temp2 ; | |
8615 | PyObject * obj0 = 0 ; | |
8616 | PyObject * obj1 = 0 ; | |
8617 | char *kwnames[] = { | |
8618 | (char *) "self",(char *) "pixelSize", NULL | |
8619 | }; | |
8620 | ||
8621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; | |
8622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8624 | { | |
8625 | arg2 = &temp2; | |
8626 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8627 | } | |
8628 | { | |
8629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8630 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
8631 | ||
8632 | wxPyEndAllowThreads(__tstate); | |
8633 | if (PyErr_Occurred()) SWIG_fail; | |
8634 | } | |
8635 | Py_INCREF(Py_None); resultobj = Py_None; | |
8636 | return resultobj; | |
8637 | fail: | |
8638 | return NULL; | |
8639 | } | |
8640 | ||
8641 | ||
c370783e | 8642 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8643 | PyObject *resultobj; |
8644 | wxFont *arg1 = (wxFont *) 0 ; | |
8645 | int arg2 ; | |
8646 | PyObject * obj0 = 0 ; | |
8647 | PyObject * obj1 = 0 ; | |
8648 | char *kwnames[] = { | |
8649 | (char *) "self",(char *) "family", NULL | |
8650 | }; | |
8651 | ||
8652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
8653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8655 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8656 | if (PyErr_Occurred()) SWIG_fail; |
8657 | { | |
8658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8659 | (arg1)->SetFamily(arg2); | |
8660 | ||
8661 | wxPyEndAllowThreads(__tstate); | |
8662 | if (PyErr_Occurred()) SWIG_fail; | |
8663 | } | |
8664 | Py_INCREF(Py_None); resultobj = Py_None; | |
8665 | return resultobj; | |
8666 | fail: | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
c370783e | 8671 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8672 | PyObject *resultobj; |
8673 | wxFont *arg1 = (wxFont *) 0 ; | |
8674 | int arg2 ; | |
8675 | PyObject * obj0 = 0 ; | |
8676 | PyObject * obj1 = 0 ; | |
8677 | char *kwnames[] = { | |
8678 | (char *) "self",(char *) "style", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
8682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8684 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8685 | if (PyErr_Occurred()) SWIG_fail; |
8686 | { | |
8687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8688 | (arg1)->SetStyle(arg2); | |
8689 | ||
8690 | wxPyEndAllowThreads(__tstate); | |
8691 | if (PyErr_Occurred()) SWIG_fail; | |
8692 | } | |
8693 | Py_INCREF(Py_None); resultobj = Py_None; | |
8694 | return resultobj; | |
8695 | fail: | |
8696 | return NULL; | |
8697 | } | |
8698 | ||
8699 | ||
c370783e | 8700 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8701 | PyObject *resultobj; |
8702 | wxFont *arg1 = (wxFont *) 0 ; | |
8703 | int arg2 ; | |
8704 | PyObject * obj0 = 0 ; | |
8705 | PyObject * obj1 = 0 ; | |
8706 | char *kwnames[] = { | |
8707 | (char *) "self",(char *) "weight", NULL | |
8708 | }; | |
8709 | ||
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
8711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8713 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8714 | if (PyErr_Occurred()) SWIG_fail; |
8715 | { | |
8716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8717 | (arg1)->SetWeight(arg2); | |
8718 | ||
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | Py_INCREF(Py_None); resultobj = Py_None; | |
8723 | return resultobj; | |
8724 | fail: | |
8725 | return NULL; | |
8726 | } | |
8727 | ||
8728 | ||
c370783e | 8729 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8730 | PyObject *resultobj; |
8731 | wxFont *arg1 = (wxFont *) 0 ; | |
8732 | wxString *arg2 = 0 ; | |
b411df4a | 8733 | bool temp2 = false ; |
d55e5bfc RD |
8734 | PyObject * obj0 = 0 ; |
8735 | PyObject * obj1 = 0 ; | |
8736 | char *kwnames[] = { | |
8737 | (char *) "self",(char *) "faceName", NULL | |
8738 | }; | |
8739 | ||
8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
8741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8743 | { | |
8744 | arg2 = wxString_in_helper(obj1); | |
8745 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8746 | temp2 = true; |
d55e5bfc RD |
8747 | } |
8748 | { | |
8749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8750 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8751 | ||
8752 | wxPyEndAllowThreads(__tstate); | |
8753 | if (PyErr_Occurred()) SWIG_fail; | |
8754 | } | |
8755 | Py_INCREF(Py_None); resultobj = Py_None; | |
8756 | { | |
8757 | if (temp2) | |
8758 | delete arg2; | |
8759 | } | |
8760 | return resultobj; | |
8761 | fail: | |
8762 | { | |
8763 | if (temp2) | |
8764 | delete arg2; | |
8765 | } | |
8766 | return NULL; | |
8767 | } | |
8768 | ||
8769 | ||
c370783e | 8770 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8771 | PyObject *resultobj; |
8772 | wxFont *arg1 = (wxFont *) 0 ; | |
8773 | bool arg2 ; | |
8774 | PyObject * obj0 = 0 ; | |
8775 | PyObject * obj1 = 0 ; | |
8776 | char *kwnames[] = { | |
8777 | (char *) "self",(char *) "underlined", NULL | |
8778 | }; | |
8779 | ||
8780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8783 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
8784 | if (PyErr_Occurred()) SWIG_fail; |
8785 | { | |
8786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8787 | (arg1)->SetUnderlined(arg2); | |
8788 | ||
8789 | wxPyEndAllowThreads(__tstate); | |
8790 | if (PyErr_Occurred()) SWIG_fail; | |
8791 | } | |
8792 | Py_INCREF(Py_None); resultobj = Py_None; | |
8793 | return resultobj; | |
8794 | fail: | |
8795 | return NULL; | |
8796 | } | |
8797 | ||
8798 | ||
c370783e | 8799 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8800 | PyObject *resultobj; |
8801 | wxFont *arg1 = (wxFont *) 0 ; | |
8802 | int arg2 ; | |
8803 | PyObject * obj0 = 0 ; | |
8804 | PyObject * obj1 = 0 ; | |
8805 | char *kwnames[] = { | |
8806 | (char *) "self",(char *) "encoding", NULL | |
8807 | }; | |
8808 | ||
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
8810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8812 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
8813 | if (PyErr_Occurred()) SWIG_fail; |
8814 | { | |
8815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8816 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8817 | ||
8818 | wxPyEndAllowThreads(__tstate); | |
8819 | if (PyErr_Occurred()) SWIG_fail; | |
8820 | } | |
8821 | Py_INCREF(Py_None); resultobj = Py_None; | |
8822 | return resultobj; | |
8823 | fail: | |
8824 | return NULL; | |
8825 | } | |
8826 | ||
8827 | ||
c370783e | 8828 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8829 | PyObject *resultobj; |
8830 | wxFont *arg1 = (wxFont *) 0 ; | |
8831 | wxNativeFontInfo *arg2 = 0 ; | |
8832 | PyObject * obj0 = 0 ; | |
8833 | PyObject * obj1 = 0 ; | |
8834 | char *kwnames[] = { | |
8835 | (char *) "self",(char *) "info", NULL | |
8836 | }; | |
8837 | ||
8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
8839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8842 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8843 | SWIG_fail; | |
8844 | if (arg2 == NULL) { | |
8845 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8846 | SWIG_fail; | |
8847 | } | |
8848 | { | |
8849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8850 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8851 | ||
8852 | wxPyEndAllowThreads(__tstate); | |
8853 | if (PyErr_Occurred()) SWIG_fail; | |
8854 | } | |
8855 | Py_INCREF(Py_None); resultobj = Py_None; | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
c370783e | 8862 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8863 | PyObject *resultobj; |
8864 | wxFont *arg1 = (wxFont *) 0 ; | |
8865 | wxString *arg2 = 0 ; | |
b411df4a | 8866 | bool temp2 = false ; |
d55e5bfc RD |
8867 | PyObject * obj0 = 0 ; |
8868 | PyObject * obj1 = 0 ; | |
8869 | char *kwnames[] = { | |
8870 | (char *) "self",(char *) "info", NULL | |
8871 | }; | |
8872 | ||
8873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
8874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8876 | { | |
8877 | arg2 = wxString_in_helper(obj1); | |
8878 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8879 | temp2 = true; |
d55e5bfc RD |
8880 | } |
8881 | { | |
8882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8883 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8884 | ||
8885 | wxPyEndAllowThreads(__tstate); | |
8886 | if (PyErr_Occurred()) SWIG_fail; | |
8887 | } | |
8888 | Py_INCREF(Py_None); resultobj = Py_None; | |
8889 | { | |
8890 | if (temp2) | |
8891 | delete arg2; | |
8892 | } | |
8893 | return resultobj; | |
8894 | fail: | |
8895 | { | |
8896 | if (temp2) | |
8897 | delete arg2; | |
8898 | } | |
8899 | return NULL; | |
8900 | } | |
8901 | ||
8902 | ||
c370783e | 8903 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8904 | PyObject *resultobj; |
8905 | wxFont *arg1 = (wxFont *) 0 ; | |
8906 | wxString *arg2 = 0 ; | |
b411df4a | 8907 | bool temp2 = false ; |
d55e5bfc RD |
8908 | PyObject * obj0 = 0 ; |
8909 | PyObject * obj1 = 0 ; | |
8910 | char *kwnames[] = { | |
8911 | (char *) "self",(char *) "info", NULL | |
8912 | }; | |
8913 | ||
8914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8917 | { | |
8918 | arg2 = wxString_in_helper(obj1); | |
8919 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8920 | temp2 = true; |
d55e5bfc RD |
8921 | } |
8922 | { | |
8923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8924 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8925 | ||
8926 | wxPyEndAllowThreads(__tstate); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | } | |
8929 | Py_INCREF(Py_None); resultobj = Py_None; | |
8930 | { | |
8931 | if (temp2) | |
8932 | delete arg2; | |
8933 | } | |
8934 | return resultobj; | |
8935 | fail: | |
8936 | { | |
8937 | if (temp2) | |
8938 | delete arg2; | |
8939 | } | |
8940 | return NULL; | |
8941 | } | |
8942 | ||
8943 | ||
c370783e | 8944 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8945 | PyObject *resultobj; |
8946 | wxFont *arg1 = (wxFont *) 0 ; | |
8947 | wxString result; | |
8948 | PyObject * obj0 = 0 ; | |
8949 | char *kwnames[] = { | |
8950 | (char *) "self", NULL | |
8951 | }; | |
8952 | ||
8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8956 | { | |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8959 | ||
8960 | wxPyEndAllowThreads(__tstate); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
8962 | } | |
8963 | { | |
8964 | #if wxUSE_UNICODE | |
8965 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8966 | #else | |
8967 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8968 | #endif | |
8969 | } | |
8970 | return resultobj; | |
8971 | fail: | |
8972 | return NULL; | |
8973 | } | |
8974 | ||
8975 | ||
c370783e | 8976 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8977 | PyObject *resultobj; |
8978 | wxFont *arg1 = (wxFont *) 0 ; | |
8979 | wxString result; | |
8980 | PyObject * obj0 = 0 ; | |
8981 | char *kwnames[] = { | |
8982 | (char *) "self", NULL | |
8983 | }; | |
8984 | ||
8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8988 | { | |
8989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8990 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8991 | ||
8992 | wxPyEndAllowThreads(__tstate); | |
8993 | if (PyErr_Occurred()) SWIG_fail; | |
8994 | } | |
8995 | { | |
8996 | #if wxUSE_UNICODE | |
8997 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8998 | #else | |
8999 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9000 | #endif | |
9001 | } | |
9002 | return resultobj; | |
9003 | fail: | |
9004 | return NULL; | |
9005 | } | |
9006 | ||
9007 | ||
c370783e | 9008 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9009 | PyObject *resultobj; |
9010 | wxFont *arg1 = (wxFont *) 0 ; | |
9011 | wxString result; | |
9012 | PyObject * obj0 = 0 ; | |
9013 | char *kwnames[] = { | |
9014 | (char *) "self", NULL | |
9015 | }; | |
9016 | ||
9017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
9018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9020 | { | |
9021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9022 | result = ((wxFont const *)arg1)->GetWeightString(); | |
9023 | ||
9024 | wxPyEndAllowThreads(__tstate); | |
9025 | if (PyErr_Occurred()) SWIG_fail; | |
9026 | } | |
9027 | { | |
9028 | #if wxUSE_UNICODE | |
9029 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9030 | #else | |
9031 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9032 | #endif | |
9033 | } | |
9034 | return resultobj; | |
9035 | fail: | |
9036 | return NULL; | |
9037 | } | |
9038 | ||
9039 | ||
c370783e | 9040 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9041 | PyObject *resultobj; |
9042 | wxFont *arg1 = (wxFont *) 0 ; | |
b411df4a | 9043 | bool arg2 = (bool) true ; |
d55e5bfc RD |
9044 | PyObject * obj0 = 0 ; |
9045 | PyObject * obj1 = 0 ; | |
9046 | char *kwnames[] = { | |
9047 | (char *) "self",(char *) "no", NULL | |
9048 | }; | |
9049 | ||
9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
9051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9053 | if (obj1) { | |
c370783e | 9054 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
9055 | if (PyErr_Occurred()) SWIG_fail; |
9056 | } | |
9057 | { | |
9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9059 | (arg1)->SetNoAntiAliasing(arg2); | |
9060 | ||
9061 | wxPyEndAllowThreads(__tstate); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | } | |
9064 | Py_INCREF(Py_None); resultobj = Py_None; | |
9065 | return resultobj; | |
9066 | fail: | |
9067 | return NULL; | |
9068 | } | |
9069 | ||
9070 | ||
c370783e | 9071 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9072 | PyObject *resultobj; |
9073 | wxFont *arg1 = (wxFont *) 0 ; | |
9074 | bool result; | |
9075 | PyObject * obj0 = 0 ; | |
9076 | char *kwnames[] = { | |
9077 | (char *) "self", NULL | |
9078 | }; | |
9079 | ||
9080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
9081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9083 | { | |
9084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
92379a03 | 9085 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); |
d55e5bfc RD |
9086 | |
9087 | wxPyEndAllowThreads(__tstate); | |
9088 | if (PyErr_Occurred()) SWIG_fail; | |
9089 | } | |
9090 | { | |
9091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9092 | } | |
9093 | return resultobj; | |
9094 | fail: | |
9095 | return NULL; | |
9096 | } | |
9097 | ||
9098 | ||
c370783e | 9099 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9100 | PyObject *resultobj; |
9101 | int result; | |
9102 | char *kwnames[] = { | |
9103 | NULL | |
9104 | }; | |
9105 | ||
9106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9107 | { | |
0439c23b | 9108 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9110 | result = (int)wxFont::GetDefaultEncoding(); | |
9111 | ||
9112 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9113 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 9114 | } |
c370783e | 9115 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9116 | return resultobj; |
9117 | fail: | |
9118 | return NULL; | |
9119 | } | |
9120 | ||
9121 | ||
c370783e | 9122 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9123 | PyObject *resultobj; |
9124 | int arg1 ; | |
9125 | PyObject * obj0 = 0 ; | |
9126 | char *kwnames[] = { | |
9127 | (char *) "encoding", NULL | |
9128 | }; | |
9129 | ||
9130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; | |
c370783e | 9131 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9132 | if (PyErr_Occurred()) SWIG_fail; |
9133 | { | |
0439c23b | 9134 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9136 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9137 | ||
9138 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9139 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9140 | } |
9141 | Py_INCREF(Py_None); resultobj = Py_None; | |
9142 | return resultobj; | |
9143 | fail: | |
9144 | return NULL; | |
9145 | } | |
9146 | ||
9147 | ||
c370783e | 9148 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9149 | PyObject *obj; |
9150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9151 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9152 | Py_INCREF(obj); | |
9153 | return Py_BuildValue((char *)""); | |
9154 | } | |
c370783e | 9155 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9156 | PyObject *resultobj; |
9157 | wxPyFontEnumerator *result; | |
9158 | char *kwnames[] = { | |
9159 | NULL | |
9160 | }; | |
9161 | ||
9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9163 | { | |
0439c23b | 9164 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9166 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9167 | ||
9168 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9169 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9170 | } |
9171 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); | |
9172 | return resultobj; | |
9173 | fail: | |
9174 | return NULL; | |
9175 | } | |
9176 | ||
9177 | ||
c370783e | 9178 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9179 | PyObject *resultobj; |
9180 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9181 | PyObject * obj0 = 0 ; | |
9182 | char *kwnames[] = { | |
9183 | (char *) "self", NULL | |
9184 | }; | |
9185 | ||
9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
9187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9189 | { | |
9190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9191 | delete arg1; | |
9192 | ||
9193 | wxPyEndAllowThreads(__tstate); | |
9194 | if (PyErr_Occurred()) SWIG_fail; | |
9195 | } | |
9196 | Py_INCREF(Py_None); resultobj = Py_None; | |
9197 | return resultobj; | |
9198 | fail: | |
9199 | return NULL; | |
9200 | } | |
9201 | ||
9202 | ||
c370783e | 9203 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9204 | PyObject *resultobj; |
9205 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9206 | PyObject *arg2 = (PyObject *) 0 ; | |
9207 | PyObject *arg3 = (PyObject *) 0 ; | |
9208 | bool arg4 ; | |
9209 | PyObject * obj0 = 0 ; | |
9210 | PyObject * obj1 = 0 ; | |
9211 | PyObject * obj2 = 0 ; | |
9212 | PyObject * obj3 = 0 ; | |
9213 | char *kwnames[] = { | |
9214 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9215 | }; | |
9216 | ||
9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9220 | arg2 = obj1; | |
9221 | arg3 = obj2; | |
c370783e | 9222 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
9223 | if (PyErr_Occurred()) SWIG_fail; |
9224 | { | |
9225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9226 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9227 | ||
9228 | wxPyEndAllowThreads(__tstate); | |
9229 | if (PyErr_Occurred()) SWIG_fail; | |
9230 | } | |
9231 | Py_INCREF(Py_None); resultobj = Py_None; | |
9232 | return resultobj; | |
9233 | fail: | |
9234 | return NULL; | |
9235 | } | |
9236 | ||
9237 | ||
c370783e | 9238 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9239 | PyObject *resultobj; |
9240 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9241 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
b411df4a | 9242 | bool arg3 = (bool) false ; |
d55e5bfc RD |
9243 | bool result; |
9244 | PyObject * obj0 = 0 ; | |
9245 | PyObject * obj1 = 0 ; | |
9246 | PyObject * obj2 = 0 ; | |
9247 | char *kwnames[] = { | |
9248 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9249 | }; | |
9250 | ||
9251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9254 | if (obj1) { | |
c370783e | 9255 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9256 | if (PyErr_Occurred()) SWIG_fail; |
9257 | } | |
9258 | if (obj2) { | |
c370783e | 9259 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9260 | if (PyErr_Occurred()) SWIG_fail; |
9261 | } | |
9262 | { | |
9263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9264 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9265 | ||
9266 | wxPyEndAllowThreads(__tstate); | |
9267 | if (PyErr_Occurred()) SWIG_fail; | |
9268 | } | |
9269 | { | |
9270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9271 | } | |
9272 | return resultobj; | |
9273 | fail: | |
9274 | return NULL; | |
9275 | } | |
9276 | ||
9277 | ||
c370783e | 9278 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9279 | PyObject *resultobj; |
9280 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9281 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9282 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9283 | bool result; | |
b411df4a | 9284 | bool temp2 = false ; |
d55e5bfc RD |
9285 | PyObject * obj0 = 0 ; |
9286 | PyObject * obj1 = 0 ; | |
9287 | char *kwnames[] = { | |
9288 | (char *) "self",(char *) "facename", NULL | |
9289 | }; | |
9290 | ||
9291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
9292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9294 | if (obj1) { | |
9295 | { | |
9296 | arg2 = wxString_in_helper(obj1); | |
9297 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9298 | temp2 = true; |
d55e5bfc RD |
9299 | } |
9300 | } | |
9301 | { | |
9302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9303 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9304 | ||
9305 | wxPyEndAllowThreads(__tstate); | |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
9307 | } | |
9308 | { | |
9309 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9310 | } | |
9311 | { | |
9312 | if (temp2) | |
9313 | delete arg2; | |
9314 | } | |
9315 | return resultobj; | |
9316 | fail: | |
9317 | { | |
9318 | if (temp2) | |
9319 | delete arg2; | |
9320 | } | |
9321 | return NULL; | |
9322 | } | |
9323 | ||
9324 | ||
c370783e | 9325 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9326 | PyObject *resultobj; |
9327 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9328 | PyObject *result; | |
9329 | PyObject * obj0 = 0 ; | |
9330 | char *kwnames[] = { | |
9331 | (char *) "self", NULL | |
9332 | }; | |
9333 | ||
9334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
9335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9337 | { | |
9338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9339 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9340 | ||
9341 | wxPyEndAllowThreads(__tstate); | |
9342 | if (PyErr_Occurred()) SWIG_fail; | |
9343 | } | |
9344 | resultobj = result; | |
9345 | return resultobj; | |
9346 | fail: | |
9347 | return NULL; | |
9348 | } | |
9349 | ||
9350 | ||
c370783e | 9351 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9352 | PyObject *resultobj; |
9353 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9354 | PyObject *result; | |
9355 | PyObject * obj0 = 0 ; | |
9356 | char *kwnames[] = { | |
9357 | (char *) "self", NULL | |
9358 | }; | |
9359 | ||
9360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
9361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9363 | { | |
9364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9365 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9366 | ||
9367 | wxPyEndAllowThreads(__tstate); | |
9368 | if (PyErr_Occurred()) SWIG_fail; | |
9369 | } | |
9370 | resultobj = result; | |
9371 | return resultobj; | |
9372 | fail: | |
9373 | return NULL; | |
9374 | } | |
9375 | ||
9376 | ||
c370783e | 9377 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9378 | PyObject *obj; |
9379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9380 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9381 | Py_INCREF(obj); | |
9382 | return Py_BuildValue((char *)""); | |
9383 | } | |
c370783e | 9384 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9385 | PyObject *resultobj; |
9386 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9387 | int arg2 ; | |
9388 | PyObject * obj0 = 0 ; | |
9389 | PyObject * obj1 = 0 ; | |
9390 | char *kwnames[] = { | |
9391 | (char *) "self",(char *) "Language", NULL | |
9392 | }; | |
9393 | ||
9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
9395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9397 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9398 | if (PyErr_Occurred()) SWIG_fail; |
9399 | if (arg1) (arg1)->Language = arg2; | |
9400 | ||
9401 | Py_INCREF(Py_None); resultobj = Py_None; | |
9402 | return resultobj; | |
9403 | fail: | |
9404 | return NULL; | |
9405 | } | |
9406 | ||
9407 | ||
c370783e | 9408 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9409 | PyObject *resultobj; |
9410 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9411 | int result; | |
9412 | PyObject * obj0 = 0 ; | |
9413 | char *kwnames[] = { | |
9414 | (char *) "self", NULL | |
9415 | }; | |
9416 | ||
9417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
9418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9420 | result = (int) ((arg1)->Language); | |
9421 | ||
c370783e | 9422 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9423 | return resultobj; |
9424 | fail: | |
9425 | return NULL; | |
9426 | } | |
9427 | ||
9428 | ||
c370783e | 9429 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9430 | PyObject *resultobj; |
9431 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9432 | wxString *arg2 = (wxString *) 0 ; | |
b411df4a | 9433 | bool temp2 = false ; |
d55e5bfc RD |
9434 | PyObject * obj0 = 0 ; |
9435 | PyObject * obj1 = 0 ; | |
9436 | char *kwnames[] = { | |
9437 | (char *) "self",(char *) "CanonicalName", NULL | |
9438 | }; | |
9439 | ||
9440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
9441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9443 | { | |
9444 | arg2 = wxString_in_helper(obj1); | |
9445 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9446 | temp2 = true; |
d55e5bfc RD |
9447 | } |
9448 | if (arg1) (arg1)->CanonicalName = *arg2; | |
9449 | ||
9450 | Py_INCREF(Py_None); resultobj = Py_None; | |
9451 | { | |
9452 | if (temp2) | |
9453 | delete arg2; | |
9454 | } | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | { | |
9458 | if (temp2) | |
9459 | delete arg2; | |
9460 | } | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
c370783e | 9465 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9466 | PyObject *resultobj; |
9467 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9468 | wxString *result; | |
9469 | PyObject * obj0 = 0 ; | |
9470 | char *kwnames[] = { | |
9471 | (char *) "self", NULL | |
9472 | }; | |
9473 | ||
9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
9475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9477 | result = (wxString *)& ((arg1)->CanonicalName); | |
9478 | ||
9479 | { | |
9480 | #if wxUSE_UNICODE | |
9481 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9482 | #else | |
9483 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9484 | #endif | |
9485 | } | |
9486 | return resultobj; | |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
c370783e | 9492 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9493 | PyObject *resultobj; |
9494 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9495 | wxString *arg2 = (wxString *) 0 ; | |
b411df4a | 9496 | bool temp2 = false ; |
d55e5bfc RD |
9497 | PyObject * obj0 = 0 ; |
9498 | PyObject * obj1 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "self",(char *) "Description", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
9504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9506 | { | |
9507 | arg2 = wxString_in_helper(obj1); | |
9508 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9509 | temp2 = true; |
d55e5bfc RD |
9510 | } |
9511 | if (arg1) (arg1)->Description = *arg2; | |
9512 | ||
9513 | Py_INCREF(Py_None); resultobj = Py_None; | |
9514 | { | |
9515 | if (temp2) | |
9516 | delete arg2; | |
9517 | } | |
9518 | return resultobj; | |
9519 | fail: | |
9520 | { | |
9521 | if (temp2) | |
9522 | delete arg2; | |
9523 | } | |
9524 | return NULL; | |
9525 | } | |
9526 | ||
9527 | ||
c370783e | 9528 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9529 | PyObject *resultobj; |
9530 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9531 | wxString *result; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | char *kwnames[] = { | |
9534 | (char *) "self", NULL | |
9535 | }; | |
9536 | ||
9537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
9538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9540 | result = (wxString *)& ((arg1)->Description); | |
9541 | ||
9542 | { | |
9543 | #if wxUSE_UNICODE | |
9544 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9545 | #else | |
9546 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9547 | #endif | |
9548 | } | |
9549 | return resultobj; | |
9550 | fail: | |
9551 | return NULL; | |
9552 | } | |
9553 | ||
9554 | ||
c370783e | 9555 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
9556 | PyObject *obj; |
9557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9558 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9559 | Py_INCREF(obj); | |
9560 | return Py_BuildValue((char *)""); | |
9561 | } | |
c370783e | 9562 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 9563 | PyObject *resultobj; |
15817c7e | 9564 | int arg1 = (int) -1 ; |
d55e5bfc RD |
9565 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9566 | wxLocale *result; | |
9567 | PyObject * obj0 = 0 ; | |
9568 | PyObject * obj1 = 0 ; | |
9569 | char *kwnames[] = { | |
9570 | (char *) "language",(char *) "flags", NULL | |
9571 | }; | |
9572 | ||
9573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; | |
9574 | if (obj0) { | |
c370783e | 9575 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9576 | if (PyErr_Occurred()) SWIG_fail; |
9577 | } | |
9578 | if (obj1) { | |
c370783e | 9579 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9580 | if (PyErr_Occurred()) SWIG_fail; |
9581 | } | |
9582 | { | |
9583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 9584 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d55e5bfc RD |
9585 | |
9586 | wxPyEndAllowThreads(__tstate); | |
9587 | if (PyErr_Occurred()) SWIG_fail; | |
9588 | } | |
9589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); | |
9590 | return resultobj; | |
9591 | fail: | |
9592 | return NULL; | |
9593 | } | |
9594 | ||
9595 | ||
c370783e | 9596 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9597 | PyObject *resultobj; |
9598 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9599 | PyObject * obj0 = 0 ; | |
9600 | char *kwnames[] = { | |
9601 | (char *) "self", NULL | |
9602 | }; | |
9603 | ||
9604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
9605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9607 | { | |
9608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9609 | delete arg1; | |
9610 | ||
9611 | wxPyEndAllowThreads(__tstate); | |
9612 | if (PyErr_Occurred()) SWIG_fail; | |
9613 | } | |
9614 | Py_INCREF(Py_None); resultobj = Py_None; | |
9615 | return resultobj; | |
9616 | fail: | |
9617 | return NULL; | |
9618 | } | |
9619 | ||
9620 | ||
c370783e | 9621 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9622 | PyObject *resultobj; |
9623 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9624 | wxString *arg2 = 0 ; | |
9625 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9626 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9627 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9628 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
b411df4a RD |
9629 | bool arg5 = (bool) true ; |
9630 | bool arg6 = (bool) false ; | |
d55e5bfc | 9631 | bool result; |
b411df4a RD |
9632 | bool temp2 = false ; |
9633 | bool temp3 = false ; | |
9634 | bool temp4 = false ; | |
d55e5bfc RD |
9635 | PyObject * obj0 = 0 ; |
9636 | PyObject * obj1 = 0 ; | |
9637 | PyObject * obj2 = 0 ; | |
9638 | PyObject * obj3 = 0 ; | |
9639 | PyObject * obj4 = 0 ; | |
9640 | PyObject * obj5 = 0 ; | |
9641 | char *kwnames[] = { | |
9642 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9643 | }; | |
9644 | ||
9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9648 | { | |
9649 | arg2 = wxString_in_helper(obj1); | |
9650 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9651 | temp2 = true; |
d55e5bfc RD |
9652 | } |
9653 | if (obj2) { | |
9654 | { | |
9655 | arg3 = wxString_in_helper(obj2); | |
9656 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 9657 | temp3 = true; |
d55e5bfc RD |
9658 | } |
9659 | } | |
9660 | if (obj3) { | |
9661 | { | |
9662 | arg4 = wxString_in_helper(obj3); | |
9663 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 9664 | temp4 = true; |
d55e5bfc RD |
9665 | } |
9666 | } | |
9667 | if (obj4) { | |
c370783e | 9668 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
9669 | if (PyErr_Occurred()) SWIG_fail; |
9670 | } | |
9671 | if (obj5) { | |
c370783e | 9672 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
9673 | if (PyErr_Occurred()) SWIG_fail; |
9674 | } | |
9675 | { | |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 9677 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); |
d55e5bfc RD |
9678 | |
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | { | |
9683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9684 | } | |
9685 | { | |
9686 | if (temp2) | |
9687 | delete arg2; | |
9688 | } | |
9689 | { | |
9690 | if (temp3) | |
9691 | delete arg3; | |
9692 | } | |
9693 | { | |
9694 | if (temp4) | |
9695 | delete arg4; | |
9696 | } | |
9697 | return resultobj; | |
9698 | fail: | |
9699 | { | |
9700 | if (temp2) | |
9701 | delete arg2; | |
9702 | } | |
9703 | { | |
9704 | if (temp3) | |
9705 | delete arg3; | |
9706 | } | |
9707 | { | |
9708 | if (temp4) | |
9709 | delete arg4; | |
9710 | } | |
9711 | return NULL; | |
9712 | } | |
9713 | ||
9714 | ||
c370783e | 9715 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9716 | PyObject *resultobj; |
9717 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9718 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9719 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9720 | bool result; | |
9721 | PyObject * obj0 = 0 ; | |
9722 | PyObject * obj1 = 0 ; | |
9723 | PyObject * obj2 = 0 ; | |
9724 | char *kwnames[] = { | |
9725 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9726 | }; | |
9727 | ||
9728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9731 | if (obj1) { | |
c370783e | 9732 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9733 | if (PyErr_Occurred()) SWIG_fail; |
9734 | } | |
9735 | if (obj2) { | |
c370783e | 9736 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9737 | if (PyErr_Occurred()) SWIG_fail; |
9738 | } | |
9739 | { | |
9740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 9741 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); |
d55e5bfc RD |
9742 | |
9743 | wxPyEndAllowThreads(__tstate); | |
9744 | if (PyErr_Occurred()) SWIG_fail; | |
9745 | } | |
9746 | { | |
9747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9748 | } | |
9749 | return resultobj; | |
9750 | fail: | |
9751 | return NULL; | |
9752 | } | |
9753 | ||
9754 | ||
c370783e | 9755 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9756 | PyObject *resultobj; |
9757 | int result; | |
9758 | char *kwnames[] = { | |
9759 | NULL | |
9760 | }; | |
9761 | ||
9762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9763 | { | |
9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9765 | result = (int)wxLocale::GetSystemLanguage(); | |
9766 | ||
9767 | wxPyEndAllowThreads(__tstate); | |
9768 | if (PyErr_Occurred()) SWIG_fail; | |
9769 | } | |
c370783e | 9770 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9771 | return resultobj; |
9772 | fail: | |
9773 | return NULL; | |
9774 | } | |
9775 | ||
9776 | ||
c370783e | 9777 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9778 | PyObject *resultobj; |
9779 | int result; | |
9780 | char *kwnames[] = { | |
9781 | NULL | |
9782 | }; | |
9783 | ||
9784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9785 | { | |
9786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9787 | result = (int)wxLocale::GetSystemEncoding(); | |
9788 | ||
9789 | wxPyEndAllowThreads(__tstate); | |
9790 | if (PyErr_Occurred()) SWIG_fail; | |
9791 | } | |
c370783e | 9792 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9793 | return resultobj; |
9794 | fail: | |
9795 | return NULL; | |
9796 | } | |
9797 | ||
9798 | ||
c370783e | 9799 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9800 | PyObject *resultobj; |
9801 | wxString result; | |
9802 | char *kwnames[] = { | |
9803 | NULL | |
9804 | }; | |
9805 | ||
9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9807 | { | |
9808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9809 | result = wxLocale::GetSystemEncodingName(); | |
9810 | ||
9811 | wxPyEndAllowThreads(__tstate); | |
9812 | if (PyErr_Occurred()) SWIG_fail; | |
9813 | } | |
9814 | { | |
9815 | #if wxUSE_UNICODE | |
9816 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9817 | #else | |
9818 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9819 | #endif | |
9820 | } | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
c370783e | 9827 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9828 | PyObject *resultobj; |
9829 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9830 | bool result; | |
9831 | PyObject * obj0 = 0 ; | |
9832 | char *kwnames[] = { | |
9833 | (char *) "self", NULL | |
9834 | }; | |
9835 | ||
9836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9839 | { | |
9840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9841 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9842 | ||
9843 | wxPyEndAllowThreads(__tstate); | |
9844 | if (PyErr_Occurred()) SWIG_fail; | |
9845 | } | |
9846 | { | |
9847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9848 | } | |
9849 | return resultobj; | |
9850 | fail: | |
9851 | return NULL; | |
9852 | } | |
9853 | ||
9854 | ||
c370783e | 9855 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9856 | PyObject *resultobj; |
9857 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9858 | wxString result; | |
9859 | PyObject * obj0 = 0 ; | |
9860 | char *kwnames[] = { | |
9861 | (char *) "self", NULL | |
9862 | }; | |
9863 | ||
9864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
9865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9867 | { | |
9868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9869 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9870 | ||
9871 | wxPyEndAllowThreads(__tstate); | |
9872 | if (PyErr_Occurred()) SWIG_fail; | |
9873 | } | |
9874 | { | |
9875 | #if wxUSE_UNICODE | |
9876 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9877 | #else | |
9878 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9879 | #endif | |
9880 | } | |
9881 | return resultobj; | |
9882 | fail: | |
9883 | return NULL; | |
9884 | } | |
9885 | ||
9886 | ||
c370783e | 9887 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9888 | PyObject *resultobj; |
9889 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9890 | int result; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9899 | { | |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
c370783e | 9906 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9907 | return resultobj; |
9908 | fail: | |
9909 | return NULL; | |
9910 | } | |
9911 | ||
9912 | ||
c370783e | 9913 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9914 | PyObject *resultobj; |
9915 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9916 | wxString result; | |
9917 | PyObject * obj0 = 0 ; | |
9918 | char *kwnames[] = { | |
9919 | (char *) "self", NULL | |
9920 | }; | |
9921 | ||
9922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9925 | { | |
9926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9927 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9928 | ||
9929 | wxPyEndAllowThreads(__tstate); | |
9930 | if (PyErr_Occurred()) SWIG_fail; | |
9931 | } | |
9932 | { | |
9933 | #if wxUSE_UNICODE | |
9934 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9935 | #else | |
9936 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9937 | #endif | |
9938 | } | |
9939 | return resultobj; | |
9940 | fail: | |
9941 | return NULL; | |
9942 | } | |
9943 | ||
9944 | ||
c370783e | 9945 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9946 | PyObject *resultobj; |
9947 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9948 | wxString result; | |
9949 | PyObject * obj0 = 0 ; | |
9950 | char *kwnames[] = { | |
9951 | (char *) "self", NULL | |
9952 | }; | |
9953 | ||
9954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9957 | { | |
9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9959 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9960 | ||
9961 | wxPyEndAllowThreads(__tstate); | |
9962 | if (PyErr_Occurred()) SWIG_fail; | |
9963 | } | |
9964 | { | |
9965 | #if wxUSE_UNICODE | |
9966 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9967 | #else | |
9968 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9969 | #endif | |
9970 | } | |
9971 | return resultobj; | |
9972 | fail: | |
9973 | return NULL; | |
9974 | } | |
9975 | ||
9976 | ||
c370783e | 9977 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9978 | PyObject *resultobj; |
9979 | wxString *arg1 = 0 ; | |
b411df4a | 9980 | bool temp1 = false ; |
d55e5bfc RD |
9981 | PyObject * obj0 = 0 ; |
9982 | char *kwnames[] = { | |
9983 | (char *) "prefix", NULL | |
9984 | }; | |
9985 | ||
9986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9987 | { | |
9988 | arg1 = wxString_in_helper(obj0); | |
9989 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9990 | temp1 = true; |
d55e5bfc RD |
9991 | } |
9992 | { | |
9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9994 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9995 | ||
9996 | wxPyEndAllowThreads(__tstate); | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | } | |
9999 | Py_INCREF(Py_None); resultobj = Py_None; | |
10000 | { | |
10001 | if (temp1) | |
10002 | delete arg1; | |
10003 | } | |
10004 | return resultobj; | |
10005 | fail: | |
10006 | { | |
10007 | if (temp1) | |
10008 | delete arg1; | |
10009 | } | |
10010 | return NULL; | |
10011 | } | |
10012 | ||
10013 | ||
c370783e | 10014 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10015 | PyObject *resultobj; |
10016 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10017 | wxString *arg2 = 0 ; | |
10018 | bool result; | |
b411df4a | 10019 | bool temp2 = false ; |
d55e5bfc RD |
10020 | PyObject * obj0 = 0 ; |
10021 | PyObject * obj1 = 0 ; | |
10022 | char *kwnames[] = { | |
10023 | (char *) "self",(char *) "szDomain", NULL | |
10024 | }; | |
10025 | ||
10026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
10027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10029 | { | |
10030 | arg2 = wxString_in_helper(obj1); | |
10031 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10032 | temp2 = true; |
d55e5bfc RD |
10033 | } |
10034 | { | |
10035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10036 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
10037 | ||
10038 | wxPyEndAllowThreads(__tstate); | |
10039 | if (PyErr_Occurred()) SWIG_fail; | |
10040 | } | |
10041 | { | |
10042 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10043 | } | |
10044 | { | |
10045 | if (temp2) | |
10046 | delete arg2; | |
10047 | } | |
10048 | return resultobj; | |
10049 | fail: | |
10050 | { | |
10051 | if (temp2) | |
10052 | delete arg2; | |
10053 | } | |
10054 | return NULL; | |
10055 | } | |
10056 | ||
10057 | ||
c370783e | 10058 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10059 | PyObject *resultobj; |
10060 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10061 | wxString *arg2 = 0 ; | |
10062 | bool result; | |
b411df4a | 10063 | bool temp2 = false ; |
d55e5bfc RD |
10064 | PyObject * obj0 = 0 ; |
10065 | PyObject * obj1 = 0 ; | |
10066 | char *kwnames[] = { | |
10067 | (char *) "self",(char *) "szDomain", NULL | |
10068 | }; | |
10069 | ||
10070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
10071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10073 | { | |
10074 | arg2 = wxString_in_helper(obj1); | |
10075 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10076 | temp2 = true; |
d55e5bfc RD |
10077 | } |
10078 | { | |
10079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10080 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10081 | ||
10082 | wxPyEndAllowThreads(__tstate); | |
10083 | if (PyErr_Occurred()) SWIG_fail; | |
10084 | } | |
10085 | { | |
10086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10087 | } | |
10088 | { | |
10089 | if (temp2) | |
10090 | delete arg2; | |
10091 | } | |
10092 | return resultobj; | |
10093 | fail: | |
10094 | { | |
10095 | if (temp2) | |
10096 | delete arg2; | |
10097 | } | |
10098 | return NULL; | |
10099 | } | |
10100 | ||
10101 | ||
c370783e | 10102 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10103 | PyObject *resultobj; |
10104 | int arg1 ; | |
10105 | wxLanguageInfo *result; | |
10106 | PyObject * obj0 = 0 ; | |
10107 | char *kwnames[] = { | |
10108 | (char *) "lang", NULL | |
10109 | }; | |
10110 | ||
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; | |
c370783e | 10112 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10113 | if (PyErr_Occurred()) SWIG_fail; |
10114 | { | |
10115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10116 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10117 | ||
10118 | wxPyEndAllowThreads(__tstate); | |
10119 | if (PyErr_Occurred()) SWIG_fail; | |
10120 | } | |
10121 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10122 | return resultobj; | |
10123 | fail: | |
10124 | return NULL; | |
10125 | } | |
10126 | ||
10127 | ||
c370783e | 10128 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10129 | PyObject *resultobj; |
10130 | int arg1 ; | |
10131 | wxString result; | |
10132 | PyObject * obj0 = 0 ; | |
10133 | char *kwnames[] = { | |
10134 | (char *) "lang", NULL | |
10135 | }; | |
10136 | ||
10137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; | |
c370783e | 10138 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10139 | if (PyErr_Occurred()) SWIG_fail; |
10140 | { | |
10141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10142 | result = wxLocale::GetLanguageName(arg1); | |
10143 | ||
10144 | wxPyEndAllowThreads(__tstate); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | { | |
10148 | #if wxUSE_UNICODE | |
10149 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10150 | #else | |
10151 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10152 | #endif | |
10153 | } | |
10154 | return resultobj; | |
10155 | fail: | |
10156 | return NULL; | |
10157 | } | |
10158 | ||
10159 | ||
c370783e | 10160 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10161 | PyObject *resultobj; |
10162 | wxString *arg1 = 0 ; | |
10163 | wxLanguageInfo *result; | |
b411df4a | 10164 | bool temp1 = false ; |
d55e5bfc RD |
10165 | PyObject * obj0 = 0 ; |
10166 | char *kwnames[] = { | |
10167 | (char *) "locale", NULL | |
10168 | }; | |
10169 | ||
10170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10171 | { | |
10172 | arg1 = wxString_in_helper(obj0); | |
10173 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10174 | temp1 = true; |
d55e5bfc RD |
10175 | } |
10176 | { | |
10177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10178 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10179 | ||
10180 | wxPyEndAllowThreads(__tstate); | |
10181 | if (PyErr_Occurred()) SWIG_fail; | |
10182 | } | |
10183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10184 | { | |
10185 | if (temp1) | |
10186 | delete arg1; | |
10187 | } | |
10188 | return resultobj; | |
10189 | fail: | |
10190 | { | |
10191 | if (temp1) | |
10192 | delete arg1; | |
10193 | } | |
10194 | return NULL; | |
10195 | } | |
10196 | ||
10197 | ||
c370783e | 10198 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10199 | PyObject *resultobj; |
10200 | wxLanguageInfo *arg1 = 0 ; | |
10201 | PyObject * obj0 = 0 ; | |
10202 | char *kwnames[] = { | |
10203 | (char *) "info", NULL | |
10204 | }; | |
10205 | ||
10206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
10207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10208 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10209 | SWIG_fail; | |
10210 | if (arg1 == NULL) { | |
10211 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10212 | SWIG_fail; | |
10213 | } | |
10214 | { | |
10215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10216 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10217 | ||
10218 | wxPyEndAllowThreads(__tstate); | |
10219 | if (PyErr_Occurred()) SWIG_fail; | |
10220 | } | |
10221 | Py_INCREF(Py_None); resultobj = Py_None; | |
10222 | return resultobj; | |
10223 | fail: | |
10224 | return NULL; | |
10225 | } | |
10226 | ||
10227 | ||
c370783e | 10228 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10229 | PyObject *resultobj; |
10230 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10231 | wxString *arg2 = 0 ; | |
10232 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10233 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10234 | wxString result; | |
b411df4a RD |
10235 | bool temp2 = false ; |
10236 | bool temp3 = false ; | |
d55e5bfc RD |
10237 | PyObject * obj0 = 0 ; |
10238 | PyObject * obj1 = 0 ; | |
10239 | PyObject * obj2 = 0 ; | |
10240 | char *kwnames[] = { | |
10241 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10242 | }; | |
10243 | ||
10244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10247 | { | |
10248 | arg2 = wxString_in_helper(obj1); | |
10249 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10250 | temp2 = true; |
d55e5bfc RD |
10251 | } |
10252 | if (obj2) { | |
10253 | { | |
10254 | arg3 = wxString_in_helper(obj2); | |
10255 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10256 | temp3 = true; |
d55e5bfc RD |
10257 | } |
10258 | } | |
10259 | { | |
10260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10261 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10262 | ||
10263 | wxPyEndAllowThreads(__tstate); | |
10264 | if (PyErr_Occurred()) SWIG_fail; | |
10265 | } | |
10266 | { | |
10267 | #if wxUSE_UNICODE | |
10268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10269 | #else | |
10270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10271 | #endif | |
10272 | } | |
10273 | { | |
10274 | if (temp2) | |
10275 | delete arg2; | |
10276 | } | |
10277 | { | |
10278 | if (temp3) | |
10279 | delete arg3; | |
10280 | } | |
10281 | return resultobj; | |
10282 | fail: | |
10283 | { | |
10284 | if (temp2) | |
10285 | delete arg2; | |
10286 | } | |
10287 | { | |
10288 | if (temp3) | |
10289 | delete arg3; | |
10290 | } | |
10291 | return NULL; | |
10292 | } | |
10293 | ||
10294 | ||
c370783e | 10295 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10296 | PyObject *resultobj; |
10297 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10298 | wxString *result; | |
10299 | PyObject * obj0 = 0 ; | |
10300 | char *kwnames[] = { | |
10301 | (char *) "self", NULL | |
10302 | }; | |
10303 | ||
10304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
10305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10307 | { | |
10308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10309 | { | |
10310 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10311 | result = (wxString *) &_result_ref; | |
10312 | } | |
10313 | ||
10314 | wxPyEndAllowThreads(__tstate); | |
10315 | if (PyErr_Occurred()) SWIG_fail; | |
10316 | } | |
10317 | { | |
10318 | #if wxUSE_UNICODE | |
10319 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10320 | #else | |
10321 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10322 | #endif | |
10323 | } | |
10324 | return resultobj; | |
10325 | fail: | |
10326 | return NULL; | |
10327 | } | |
10328 | ||
10329 | ||
c370783e | 10330 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10331 | PyObject *obj; |
10332 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10333 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10334 | Py_INCREF(obj); | |
10335 | return Py_BuildValue((char *)""); | |
10336 | } | |
c370783e | 10337 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10338 | PyObject *resultobj; |
10339 | wxLocale *result; | |
10340 | char *kwnames[] = { | |
10341 | NULL | |
10342 | }; | |
10343 | ||
10344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10345 | { | |
10346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10347 | result = (wxLocale *)wxGetLocale(); | |
10348 | ||
10349 | wxPyEndAllowThreads(__tstate); | |
10350 | if (PyErr_Occurred()) SWIG_fail; | |
10351 | } | |
10352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
c370783e | 10359 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
10360 | PyObject *resultobj; |
10361 | wxString *arg1 = 0 ; | |
10362 | wxString result; | |
b411df4a | 10363 | bool temp1 = false ; |
d55e5bfc RD |
10364 | PyObject * obj0 = 0 ; |
10365 | ||
10366 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10367 | { | |
10368 | arg1 = wxString_in_helper(obj0); | |
10369 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10370 | temp1 = true; |
d55e5bfc RD |
10371 | } |
10372 | { | |
10373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10374 | result = wxGetTranslation((wxString const &)*arg1); | |
10375 | ||
10376 | wxPyEndAllowThreads(__tstate); | |
10377 | if (PyErr_Occurred()) SWIG_fail; | |
10378 | } | |
10379 | { | |
10380 | #if wxUSE_UNICODE | |
10381 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10382 | #else | |
10383 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10384 | #endif | |
10385 | } | |
10386 | { | |
10387 | if (temp1) | |
10388 | delete arg1; | |
10389 | } | |
10390 | return resultobj; | |
10391 | fail: | |
10392 | { | |
10393 | if (temp1) | |
10394 | delete arg1; | |
10395 | } | |
10396 | return NULL; | |
10397 | } | |
10398 | ||
10399 | ||
c370783e | 10400 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
10401 | PyObject *resultobj; |
10402 | wxString *arg1 = 0 ; | |
10403 | wxString *arg2 = 0 ; | |
10404 | size_t arg3 ; | |
10405 | wxString result; | |
b411df4a RD |
10406 | bool temp1 = false ; |
10407 | bool temp2 = false ; | |
d55e5bfc RD |
10408 | PyObject * obj0 = 0 ; |
10409 | PyObject * obj1 = 0 ; | |
10410 | PyObject * obj2 = 0 ; | |
10411 | ||
10412 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10413 | { | |
10414 | arg1 = wxString_in_helper(obj0); | |
10415 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10416 | temp1 = true; |
d55e5bfc RD |
10417 | } |
10418 | { | |
10419 | arg2 = wxString_in_helper(obj1); | |
10420 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10421 | temp2 = true; |
d55e5bfc | 10422 | } |
c370783e | 10423 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); |
d55e5bfc RD |
10424 | if (PyErr_Occurred()) SWIG_fail; |
10425 | { | |
10426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10427 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10428 | ||
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | { | |
10433 | #if wxUSE_UNICODE | |
10434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10435 | #else | |
10436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10437 | #endif | |
10438 | } | |
10439 | { | |
10440 | if (temp1) | |
10441 | delete arg1; | |
10442 | } | |
10443 | { | |
10444 | if (temp2) | |
10445 | delete arg2; | |
10446 | } | |
10447 | return resultobj; | |
10448 | fail: | |
10449 | { | |
10450 | if (temp1) | |
10451 | delete arg1; | |
10452 | } | |
10453 | { | |
10454 | if (temp2) | |
10455 | delete arg2; | |
10456 | } | |
10457 | return NULL; | |
10458 | } | |
10459 | ||
10460 | ||
10461 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10462 | int argc; | |
10463 | PyObject *argv[4]; | |
10464 | int ii; | |
10465 | ||
10466 | argc = PyObject_Length(args); | |
10467 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10468 | argv[ii] = PyTuple_GetItem(args,ii); | |
10469 | } | |
10470 | if (argc == 1) { | |
10471 | int _v; | |
10472 | { | |
10473 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10474 | } | |
10475 | if (_v) { | |
10476 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10477 | } | |
10478 | } | |
10479 | if (argc == 3) { | |
10480 | int _v; | |
10481 | { | |
10482 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10483 | } | |
10484 | if (_v) { | |
10485 | { | |
10486 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
10487 | } | |
10488 | if (_v) { | |
c370783e | 10489 | _v = SWIG_Check_unsigned_SS_long(argv[2]); |
d55e5bfc RD |
10490 | if (_v) { |
10491 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10492 | } | |
10493 | } | |
10494 | } | |
10495 | } | |
10496 | ||
10497 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10498 | return NULL; | |
10499 | } | |
10500 | ||
10501 | ||
c370783e | 10502 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10503 | PyObject *resultobj; |
10504 | wxEncodingConverter *result; | |
10505 | char *kwnames[] = { | |
10506 | NULL | |
10507 | }; | |
10508 | ||
10509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10510 | { | |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); | |
10518 | return resultobj; | |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
c370783e | 10524 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10525 | PyObject *resultobj; |
10526 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10527 | PyObject * obj0 = 0 ; | |
10528 | char *kwnames[] = { | |
10529 | (char *) "self", NULL | |
10530 | }; | |
10531 | ||
10532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
10533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10535 | { | |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | delete arg1; | |
10538 | ||
10539 | wxPyEndAllowThreads(__tstate); | |
10540 | if (PyErr_Occurred()) SWIG_fail; | |
10541 | } | |
10542 | Py_INCREF(Py_None); resultobj = Py_None; | |
10543 | return resultobj; | |
10544 | fail: | |
10545 | return NULL; | |
10546 | } | |
10547 | ||
10548 | ||
c370783e | 10549 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10550 | PyObject *resultobj; |
10551 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10552 | int arg2 ; | |
10553 | int arg3 ; | |
10554 | int arg4 = (int) wxCONVERT_STRICT ; | |
10555 | bool result; | |
10556 | PyObject * obj0 = 0 ; | |
10557 | PyObject * obj1 = 0 ; | |
10558 | PyObject * obj2 = 0 ; | |
10559 | PyObject * obj3 = 0 ; | |
10560 | char *kwnames[] = { | |
10561 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10562 | }; | |
10563 | ||
10564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10567 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 10568 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10569 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10570 | if (PyErr_Occurred()) SWIG_fail; |
10571 | if (obj3) { | |
c370783e | 10572 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10573 | if (PyErr_Occurred()) SWIG_fail; |
10574 | } | |
10575 | { | |
10576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10577 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10578 | ||
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
10582 | { | |
10583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10584 | } | |
10585 | return resultobj; | |
10586 | fail: | |
10587 | return NULL; | |
10588 | } | |
10589 | ||
10590 | ||
c370783e | 10591 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10592 | PyObject *resultobj; |
10593 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10594 | wxString *arg2 = 0 ; | |
10595 | wxString result; | |
b411df4a | 10596 | bool temp2 = false ; |
d55e5bfc RD |
10597 | PyObject * obj0 = 0 ; |
10598 | PyObject * obj1 = 0 ; | |
10599 | char *kwnames[] = { | |
10600 | (char *) "self",(char *) "input", NULL | |
10601 | }; | |
10602 | ||
10603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
10604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10606 | { | |
10607 | arg2 = wxString_in_helper(obj1); | |
10608 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10609 | temp2 = true; |
d55e5bfc RD |
10610 | } |
10611 | { | |
10612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10613 | result = (arg1)->Convert((wxString const &)*arg2); | |
10614 | ||
10615 | wxPyEndAllowThreads(__tstate); | |
10616 | if (PyErr_Occurred()) SWIG_fail; | |
10617 | } | |
10618 | { | |
10619 | #if wxUSE_UNICODE | |
10620 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10621 | #else | |
10622 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10623 | #endif | |
10624 | } | |
10625 | { | |
10626 | if (temp2) | |
10627 | delete arg2; | |
10628 | } | |
10629 | return resultobj; | |
10630 | fail: | |
10631 | { | |
10632 | if (temp2) | |
10633 | delete arg2; | |
10634 | } | |
10635 | return NULL; | |
10636 | } | |
10637 | ||
10638 | ||
c370783e | 10639 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10640 | PyObject *resultobj; |
10641 | int arg1 ; | |
10642 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10643 | wxFontEncodingArray result; | |
10644 | PyObject * obj0 = 0 ; | |
10645 | PyObject * obj1 = 0 ; | |
10646 | char *kwnames[] = { | |
10647 | (char *) "enc",(char *) "platform", NULL | |
10648 | }; | |
10649 | ||
10650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 10651 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10652 | if (PyErr_Occurred()) SWIG_fail; |
10653 | if (obj1) { | |
c370783e | 10654 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10655 | if (PyErr_Occurred()) SWIG_fail; |
10656 | } | |
10657 | { | |
10658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10659 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10660 | ||
10661 | wxPyEndAllowThreads(__tstate); | |
10662 | if (PyErr_Occurred()) SWIG_fail; | |
10663 | } | |
10664 | { | |
10665 | resultobj = PyList_New(0); | |
10666 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10667 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10668 | PyList_Append(resultobj, number); | |
10669 | Py_DECREF(number); | |
10670 | } | |
10671 | } | |
10672 | return resultobj; | |
10673 | fail: | |
10674 | return NULL; | |
10675 | } | |
10676 | ||
10677 | ||
c370783e | 10678 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10679 | PyObject *resultobj; |
10680 | int arg1 ; | |
10681 | wxFontEncodingArray result; | |
10682 | PyObject * obj0 = 0 ; | |
10683 | char *kwnames[] = { | |
10684 | (char *) "enc", NULL | |
10685 | }; | |
10686 | ||
10687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; | |
c370783e | 10688 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
10689 | if (PyErr_Occurred()) SWIG_fail; |
10690 | { | |
10691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10692 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10693 | ||
10694 | wxPyEndAllowThreads(__tstate); | |
10695 | if (PyErr_Occurred()) SWIG_fail; | |
10696 | } | |
10697 | { | |
10698 | resultobj = PyList_New(0); | |
10699 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10700 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10701 | PyList_Append(resultobj, number); | |
10702 | Py_DECREF(number); | |
10703 | } | |
10704 | } | |
10705 | return resultobj; | |
10706 | fail: | |
10707 | return NULL; | |
10708 | } | |
10709 | ||
10710 | ||
c370783e | 10711 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10712 | PyObject *resultobj; |
10713 | int arg1 ; | |
10714 | int arg2 ; | |
10715 | bool result; | |
10716 | PyObject * obj0 = 0 ; | |
10717 | PyObject * obj1 = 0 ; | |
10718 | char *kwnames[] = { | |
10719 | (char *) "encIn",(char *) "encOut", NULL | |
10720 | }; | |
10721 | ||
10722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 10723 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 10724 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10725 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
10726 | if (PyErr_Occurred()) SWIG_fail; |
10727 | { | |
10728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10729 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10730 | ||
10731 | wxPyEndAllowThreads(__tstate); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
10734 | { | |
10735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10736 | } | |
10737 | return resultobj; | |
10738 | fail: | |
10739 | return NULL; | |
10740 | } | |
10741 | ||
10742 | ||
c370783e | 10743 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
10744 | PyObject *obj; |
10745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10746 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10747 | Py_INCREF(obj); | |
10748 | return Py_BuildValue((char *)""); | |
10749 | } | |
c370783e | 10750 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10751 | PyObject *resultobj; |
10752 | wxDC *arg1 = (wxDC *) 0 ; | |
10753 | PyObject * obj0 = 0 ; | |
10754 | char *kwnames[] = { | |
10755 | (char *) "self", NULL | |
10756 | }; | |
10757 | ||
10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
10759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10761 | { | |
10762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10763 | delete arg1; | |
10764 | ||
10765 | wxPyEndAllowThreads(__tstate); | |
10766 | if (PyErr_Occurred()) SWIG_fail; | |
10767 | } | |
10768 | Py_INCREF(Py_None); resultobj = Py_None; | |
10769 | return resultobj; | |
10770 | fail: | |
10771 | return NULL; | |
10772 | } | |
10773 | ||
10774 | ||
c370783e | 10775 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10776 | PyObject *resultobj; |
10777 | wxDC *arg1 = (wxDC *) 0 ; | |
10778 | PyObject * obj0 = 0 ; | |
10779 | char *kwnames[] = { | |
10780 | (char *) "self", NULL | |
10781 | }; | |
10782 | ||
10783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
10784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | (arg1)->BeginDrawing(); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | Py_INCREF(Py_None); resultobj = Py_None; | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
c370783e | 10800 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10801 | PyObject *resultobj; |
10802 | wxDC *arg1 = (wxDC *) 0 ; | |
10803 | PyObject * obj0 = 0 ; | |
10804 | char *kwnames[] = { | |
10805 | (char *) "self", NULL | |
10806 | }; | |
10807 | ||
10808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10811 | { | |
10812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10813 | (arg1)->EndDrawing(); | |
10814 | ||
10815 | wxPyEndAllowThreads(__tstate); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | } | |
10818 | Py_INCREF(Py_None); resultobj = Py_None; | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | return NULL; | |
10822 | } | |
10823 | ||
10824 | ||
c370783e | 10825 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10826 | PyObject *resultobj; |
10827 | wxDC *arg1 = (wxDC *) 0 ; | |
10828 | int arg2 ; | |
10829 | int arg3 ; | |
10830 | wxColour *arg4 = 0 ; | |
10831 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10832 | bool result; | |
10833 | wxColour temp4 ; | |
10834 | PyObject * obj0 = 0 ; | |
10835 | PyObject * obj1 = 0 ; | |
10836 | PyObject * obj2 = 0 ; | |
10837 | PyObject * obj3 = 0 ; | |
10838 | PyObject * obj4 = 0 ; | |
10839 | char *kwnames[] = { | |
10840 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10841 | }; | |
10842 | ||
d6c14a4c | 10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10846 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 10847 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10848 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10849 | if (PyErr_Occurred()) SWIG_fail; |
10850 | { | |
10851 | arg4 = &temp4; | |
10852 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10853 | } | |
10854 | if (obj4) { | |
c370783e | 10855 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
10856 | if (PyErr_Occurred()) SWIG_fail; |
10857 | } | |
10858 | { | |
10859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10860 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10861 | ||
10862 | wxPyEndAllowThreads(__tstate); | |
10863 | if (PyErr_Occurred()) SWIG_fail; | |
10864 | } | |
10865 | { | |
10866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10867 | } | |
10868 | return resultobj; | |
10869 | fail: | |
10870 | return NULL; | |
10871 | } | |
10872 | ||
10873 | ||
c370783e | 10874 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10875 | PyObject *resultobj; |
10876 | wxDC *arg1 = (wxDC *) 0 ; | |
10877 | wxPoint *arg2 = 0 ; | |
10878 | wxColour *arg3 = 0 ; | |
10879 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10880 | bool result; | |
10881 | wxPoint temp2 ; | |
10882 | wxColour temp3 ; | |
10883 | PyObject * obj0 = 0 ; | |
10884 | PyObject * obj1 = 0 ; | |
10885 | PyObject * obj2 = 0 ; | |
10886 | PyObject * obj3 = 0 ; | |
10887 | char *kwnames[] = { | |
10888 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10889 | }; | |
10890 | ||
d6c14a4c | 10891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
10892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10894 | { | |
10895 | arg2 = &temp2; | |
10896 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10897 | } | |
10898 | { | |
10899 | arg3 = &temp3; | |
10900 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10901 | } | |
10902 | if (obj3) { | |
c370783e | 10903 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10904 | if (PyErr_Occurred()) SWIG_fail; |
10905 | } | |
10906 | { | |
10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10908 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10909 | ||
10910 | wxPyEndAllowThreads(__tstate); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | } | |
10913 | { | |
10914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10915 | } | |
10916 | return resultobj; | |
10917 | fail: | |
10918 | return NULL; | |
10919 | } | |
10920 | ||
10921 | ||
c370783e | 10922 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10923 | PyObject *resultobj; |
10924 | wxDC *arg1 = (wxDC *) 0 ; | |
10925 | int arg2 ; | |
10926 | int arg3 ; | |
10927 | wxColour result; | |
10928 | PyObject * obj0 = 0 ; | |
10929 | PyObject * obj1 = 0 ; | |
10930 | PyObject * obj2 = 0 ; | |
10931 | char *kwnames[] = { | |
10932 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10933 | }; | |
10934 | ||
d6c14a4c | 10935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
10936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10938 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 10939 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10940 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10941 | if (PyErr_Occurred()) SWIG_fail; |
10942 | { | |
10943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 10944 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d55e5bfc RD |
10945 | |
10946 | wxPyEndAllowThreads(__tstate); | |
10947 | if (PyErr_Occurred()) SWIG_fail; | |
10948 | } | |
10949 | { | |
10950 | wxColour * resultptr; | |
10951 | resultptr = new wxColour((wxColour &) result); | |
10952 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10953 | } | |
10954 | return resultobj; | |
10955 | fail: | |
10956 | return NULL; | |
10957 | } | |
10958 | ||
10959 | ||
c370783e | 10960 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10961 | PyObject *resultobj; |
10962 | wxDC *arg1 = (wxDC *) 0 ; | |
10963 | wxPoint *arg2 = 0 ; | |
10964 | wxColour result; | |
10965 | wxPoint temp2 ; | |
10966 | PyObject * obj0 = 0 ; | |
10967 | PyObject * obj1 = 0 ; | |
10968 | char *kwnames[] = { | |
10969 | (char *) "self",(char *) "pt", NULL | |
10970 | }; | |
10971 | ||
d6c14a4c | 10972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
10973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10975 | { | |
10976 | arg2 = &temp2; | |
10977 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10978 | } | |
10979 | { | |
10980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 10981 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
10982 | |
10983 | wxPyEndAllowThreads(__tstate); | |
10984 | if (PyErr_Occurred()) SWIG_fail; | |
10985 | } | |
10986 | { | |
10987 | wxColour * resultptr; | |
10988 | resultptr = new wxColour((wxColour &) result); | |
10989 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10990 | } | |
10991 | return resultobj; | |
10992 | fail: | |
10993 | return NULL; | |
10994 | } | |
10995 | ||
10996 | ||
c370783e | 10997 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10998 | PyObject *resultobj; |
10999 | wxDC *arg1 = (wxDC *) 0 ; | |
11000 | int arg2 ; | |
11001 | int arg3 ; | |
11002 | int arg4 ; | |
11003 | int arg5 ; | |
11004 | PyObject * obj0 = 0 ; | |
11005 | PyObject * obj1 = 0 ; | |
11006 | PyObject * obj2 = 0 ; | |
11007 | PyObject * obj3 = 0 ; | |
11008 | PyObject * obj4 = 0 ; | |
11009 | char *kwnames[] = { | |
11010 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
11011 | }; | |
11012 | ||
d6c14a4c | 11013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11016 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11017 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11018 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11019 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11020 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11021 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11022 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11023 | if (PyErr_Occurred()) SWIG_fail; |
11024 | { | |
11025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11026 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
11027 | ||
11028 | wxPyEndAllowThreads(__tstate); | |
11029 | if (PyErr_Occurred()) SWIG_fail; | |
11030 | } | |
11031 | Py_INCREF(Py_None); resultobj = Py_None; | |
11032 | return resultobj; | |
11033 | fail: | |
11034 | return NULL; | |
11035 | } | |
11036 | ||
11037 | ||
c370783e | 11038 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11039 | PyObject *resultobj; |
11040 | wxDC *arg1 = (wxDC *) 0 ; | |
11041 | wxPoint *arg2 = 0 ; | |
11042 | wxPoint *arg3 = 0 ; | |
11043 | wxPoint temp2 ; | |
11044 | wxPoint temp3 ; | |
11045 | PyObject * obj0 = 0 ; | |
11046 | PyObject * obj1 = 0 ; | |
11047 | PyObject * obj2 = 0 ; | |
11048 | char *kwnames[] = { | |
11049 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
11050 | }; | |
11051 | ||
d6c14a4c | 11052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11055 | { | |
11056 | arg2 = &temp2; | |
11057 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11058 | } | |
11059 | { | |
11060 | arg3 = &temp3; | |
11061 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11062 | } | |
11063 | { | |
11064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11065 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11066 | ||
11067 | wxPyEndAllowThreads(__tstate); | |
11068 | if (PyErr_Occurred()) SWIG_fail; | |
11069 | } | |
11070 | Py_INCREF(Py_None); resultobj = Py_None; | |
11071 | return resultobj; | |
11072 | fail: | |
11073 | return NULL; | |
11074 | } | |
11075 | ||
11076 | ||
c370783e | 11077 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11078 | PyObject *resultobj; |
11079 | wxDC *arg1 = (wxDC *) 0 ; | |
11080 | int arg2 ; | |
11081 | int arg3 ; | |
11082 | PyObject * obj0 = 0 ; | |
11083 | PyObject * obj1 = 0 ; | |
11084 | PyObject * obj2 = 0 ; | |
11085 | char *kwnames[] = { | |
11086 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11087 | }; | |
11088 | ||
d6c14a4c | 11089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11092 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11093 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11094 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11095 | if (PyErr_Occurred()) SWIG_fail; |
11096 | { | |
11097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11098 | (arg1)->CrossHair(arg2,arg3); | |
11099 | ||
11100 | wxPyEndAllowThreads(__tstate); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
11103 | Py_INCREF(Py_None); resultobj = Py_None; | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | return NULL; | |
11107 | } | |
11108 | ||
11109 | ||
c370783e | 11110 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11111 | PyObject *resultobj; |
11112 | wxDC *arg1 = (wxDC *) 0 ; | |
11113 | wxPoint *arg2 = 0 ; | |
11114 | wxPoint temp2 ; | |
11115 | PyObject * obj0 = 0 ; | |
11116 | PyObject * obj1 = 0 ; | |
11117 | char *kwnames[] = { | |
11118 | (char *) "self",(char *) "pt", NULL | |
11119 | }; | |
11120 | ||
d6c14a4c | 11121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11124 | { | |
11125 | arg2 = &temp2; | |
11126 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11127 | } | |
11128 | { | |
11129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11130 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11131 | ||
11132 | wxPyEndAllowThreads(__tstate); | |
11133 | if (PyErr_Occurred()) SWIG_fail; | |
11134 | } | |
11135 | Py_INCREF(Py_None); resultobj = Py_None; | |
11136 | return resultobj; | |
11137 | fail: | |
11138 | return NULL; | |
11139 | } | |
11140 | ||
11141 | ||
c370783e | 11142 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11143 | PyObject *resultobj; |
11144 | wxDC *arg1 = (wxDC *) 0 ; | |
11145 | int arg2 ; | |
11146 | int arg3 ; | |
11147 | int arg4 ; | |
11148 | int arg5 ; | |
11149 | int arg6 ; | |
11150 | int arg7 ; | |
11151 | PyObject * obj0 = 0 ; | |
11152 | PyObject * obj1 = 0 ; | |
11153 | PyObject * obj2 = 0 ; | |
11154 | PyObject * obj3 = 0 ; | |
11155 | PyObject * obj4 = 0 ; | |
11156 | PyObject * obj5 = 0 ; | |
11157 | PyObject * obj6 = 0 ; | |
11158 | char *kwnames[] = { | |
11159 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11160 | }; | |
11161 | ||
d6c14a4c | 11162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11165 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11166 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11167 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11168 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11169 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11170 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11171 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11172 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11173 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 11174 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11175 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
11176 | if (PyErr_Occurred()) SWIG_fail; |
11177 | { | |
11178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11179 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11180 | ||
11181 | wxPyEndAllowThreads(__tstate); | |
11182 | if (PyErr_Occurred()) SWIG_fail; | |
11183 | } | |
11184 | Py_INCREF(Py_None); resultobj = Py_None; | |
11185 | return resultobj; | |
11186 | fail: | |
11187 | return NULL; | |
11188 | } | |
11189 | ||
11190 | ||
c370783e | 11191 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11192 | PyObject *resultobj; |
11193 | wxDC *arg1 = (wxDC *) 0 ; | |
11194 | wxPoint *arg2 = 0 ; | |
11195 | wxPoint *arg3 = 0 ; | |
11196 | wxPoint *arg4 = 0 ; | |
11197 | wxPoint temp2 ; | |
11198 | wxPoint temp3 ; | |
11199 | wxPoint temp4 ; | |
11200 | PyObject * obj0 = 0 ; | |
11201 | PyObject * obj1 = 0 ; | |
11202 | PyObject * obj2 = 0 ; | |
11203 | PyObject * obj3 = 0 ; | |
11204 | char *kwnames[] = { | |
f5b96ee1 | 11205 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL |
d55e5bfc RD |
11206 | }; |
11207 | ||
d6c14a4c | 11208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11211 | { | |
11212 | arg2 = &temp2; | |
11213 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11214 | } | |
11215 | { | |
11216 | arg3 = &temp3; | |
11217 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11218 | } | |
11219 | { | |
11220 | arg4 = &temp4; | |
11221 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11222 | } | |
11223 | { | |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | Py_INCREF(Py_None); resultobj = Py_None; | |
11231 | return resultobj; | |
11232 | fail: | |
11233 | return NULL; | |
11234 | } | |
11235 | ||
11236 | ||
c370783e | 11237 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11238 | PyObject *resultobj; |
11239 | wxDC *arg1 = (wxDC *) 0 ; | |
11240 | int arg2 ; | |
11241 | int arg3 ; | |
11242 | int arg4 ; | |
11243 | int arg5 ; | |
11244 | PyObject * obj0 = 0 ; | |
11245 | PyObject * obj1 = 0 ; | |
11246 | PyObject * obj2 = 0 ; | |
11247 | PyObject * obj3 = 0 ; | |
11248 | PyObject * obj4 = 0 ; | |
11249 | char *kwnames[] = { | |
11250 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11251 | }; | |
11252 | ||
d6c14a4c | 11253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11256 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11257 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11258 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11259 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11260 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11261 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11262 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11263 | if (PyErr_Occurred()) SWIG_fail; |
11264 | { | |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
11271 | Py_INCREF(Py_None); resultobj = Py_None; | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
c370783e | 11278 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11279 | PyObject *resultobj; |
11280 | wxDC *arg1 = (wxDC *) 0 ; | |
11281 | wxRect *arg2 = 0 ; | |
11282 | wxRect temp2 ; | |
11283 | PyObject * obj0 = 0 ; | |
11284 | PyObject * obj1 = 0 ; | |
11285 | char *kwnames[] = { | |
11286 | (char *) "self",(char *) "rect", NULL | |
11287 | }; | |
11288 | ||
d6c14a4c | 11289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11292 | { | |
11293 | arg2 = &temp2; | |
11294 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11295 | } | |
11296 | { | |
11297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11298 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11299 | ||
11300 | wxPyEndAllowThreads(__tstate); | |
11301 | if (PyErr_Occurred()) SWIG_fail; | |
11302 | } | |
11303 | Py_INCREF(Py_None); resultobj = Py_None; | |
11304 | return resultobj; | |
11305 | fail: | |
11306 | return NULL; | |
11307 | } | |
11308 | ||
11309 | ||
c370783e | 11310 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11311 | PyObject *resultobj; |
11312 | wxDC *arg1 = (wxDC *) 0 ; | |
11313 | int arg2 ; | |
11314 | int arg3 ; | |
11315 | int arg4 ; | |
11316 | int arg5 ; | |
11317 | double arg6 ; | |
11318 | double arg7 ; | |
11319 | PyObject * obj0 = 0 ; | |
11320 | PyObject * obj1 = 0 ; | |
11321 | PyObject * obj2 = 0 ; | |
11322 | PyObject * obj3 = 0 ; | |
11323 | PyObject * obj4 = 0 ; | |
11324 | PyObject * obj5 = 0 ; | |
11325 | PyObject * obj6 = 0 ; | |
11326 | char *kwnames[] = { | |
f5b96ee1 | 11327 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11328 | }; |
11329 | ||
d6c14a4c | 11330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11333 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11334 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11335 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11336 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11337 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11338 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11339 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11340 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11341 | arg6 = (double)SWIG_As_double(obj5); |
d55e5bfc | 11342 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11343 | arg7 = (double)SWIG_As_double(obj6); |
d55e5bfc RD |
11344 | if (PyErr_Occurred()) SWIG_fail; |
11345 | { | |
11346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11347 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11348 | ||
11349 | wxPyEndAllowThreads(__tstate); | |
11350 | if (PyErr_Occurred()) SWIG_fail; | |
11351 | } | |
11352 | Py_INCREF(Py_None); resultobj = Py_None; | |
11353 | return resultobj; | |
11354 | fail: | |
11355 | return NULL; | |
11356 | } | |
11357 | ||
11358 | ||
c370783e | 11359 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11360 | PyObject *resultobj; |
11361 | wxDC *arg1 = (wxDC *) 0 ; | |
11362 | wxPoint *arg2 = 0 ; | |
11363 | wxSize *arg3 = 0 ; | |
11364 | double arg4 ; | |
11365 | double arg5 ; | |
11366 | wxPoint temp2 ; | |
11367 | wxSize temp3 ; | |
11368 | PyObject * obj0 = 0 ; | |
11369 | PyObject * obj1 = 0 ; | |
11370 | PyObject * obj2 = 0 ; | |
11371 | PyObject * obj3 = 0 ; | |
11372 | PyObject * obj4 = 0 ; | |
11373 | char *kwnames[] = { | |
f5b96ee1 | 11374 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL |
d55e5bfc RD |
11375 | }; |
11376 | ||
d6c14a4c | 11377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11380 | { | |
11381 | arg2 = &temp2; | |
11382 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11383 | } | |
11384 | { | |
11385 | arg3 = &temp3; | |
11386 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11387 | } | |
c370783e | 11388 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc | 11389 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11390 | arg5 = (double)SWIG_As_double(obj4); |
d55e5bfc RD |
11391 | if (PyErr_Occurred()) SWIG_fail; |
11392 | { | |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11395 | ||
11396 | wxPyEndAllowThreads(__tstate); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
11399 | Py_INCREF(Py_None); resultobj = Py_None; | |
11400 | return resultobj; | |
11401 | fail: | |
11402 | return NULL; | |
11403 | } | |
11404 | ||
11405 | ||
c370783e | 11406 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11407 | PyObject *resultobj; |
11408 | wxDC *arg1 = (wxDC *) 0 ; | |
11409 | int arg2 ; | |
11410 | int arg3 ; | |
11411 | PyObject * obj0 = 0 ; | |
11412 | PyObject * obj1 = 0 ; | |
11413 | PyObject * obj2 = 0 ; | |
11414 | char *kwnames[] = { | |
11415 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11416 | }; | |
11417 | ||
d6c14a4c | 11418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11421 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11422 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11423 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11424 | if (PyErr_Occurred()) SWIG_fail; |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | (arg1)->DrawPoint(arg2,arg3); | |
11428 | ||
11429 | wxPyEndAllowThreads(__tstate); | |
11430 | if (PyErr_Occurred()) SWIG_fail; | |
11431 | } | |
11432 | Py_INCREF(Py_None); resultobj = Py_None; | |
11433 | return resultobj; | |
11434 | fail: | |
11435 | return NULL; | |
11436 | } | |
11437 | ||
11438 | ||
c370783e | 11439 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11440 | PyObject *resultobj; |
11441 | wxDC *arg1 = (wxDC *) 0 ; | |
11442 | wxPoint *arg2 = 0 ; | |
11443 | wxPoint temp2 ; | |
11444 | PyObject * obj0 = 0 ; | |
11445 | PyObject * obj1 = 0 ; | |
11446 | char *kwnames[] = { | |
11447 | (char *) "self",(char *) "pt", NULL | |
11448 | }; | |
11449 | ||
d6c14a4c | 11450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11453 | { | |
11454 | arg2 = &temp2; | |
11455 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11456 | } | |
11457 | { | |
11458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11459 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11460 | ||
11461 | wxPyEndAllowThreads(__tstate); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | Py_INCREF(Py_None); resultobj = Py_None; | |
11465 | return resultobj; | |
11466 | fail: | |
11467 | return NULL; | |
11468 | } | |
11469 | ||
11470 | ||
c370783e | 11471 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11472 | PyObject *resultobj; |
11473 | wxDC *arg1 = (wxDC *) 0 ; | |
11474 | int arg2 ; | |
11475 | int arg3 ; | |
11476 | int arg4 ; | |
11477 | int arg5 ; | |
11478 | PyObject * obj0 = 0 ; | |
11479 | PyObject * obj1 = 0 ; | |
11480 | PyObject * obj2 = 0 ; | |
11481 | PyObject * obj3 = 0 ; | |
11482 | PyObject * obj4 = 0 ; | |
11483 | char *kwnames[] = { | |
11484 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11485 | }; | |
11486 | ||
d6c14a4c | 11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11490 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11491 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11492 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11493 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11494 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11495 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11496 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11497 | if (PyErr_Occurred()) SWIG_fail; |
11498 | { | |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11501 | ||
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | Py_INCREF(Py_None); resultobj = Py_None; | |
11506 | return resultobj; | |
11507 | fail: | |
11508 | return NULL; | |
11509 | } | |
11510 | ||
11511 | ||
c370783e | 11512 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11513 | PyObject *resultobj; |
11514 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11515 | wxRect *arg2 = 0 ; |
11516 | wxRect temp2 ; | |
d55e5bfc RD |
11517 | PyObject * obj0 = 0 ; |
11518 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11519 | char *kwnames[] = { |
d6c14a4c | 11520 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11521 | }; |
11522 | ||
d6c14a4c | 11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11526 | { | |
11527 | arg2 = &temp2; | |
d6c14a4c | 11528 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11529 | } |
11530 | { | |
11531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11532 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d55e5bfc RD |
11533 | |
11534 | wxPyEndAllowThreads(__tstate); | |
11535 | if (PyErr_Occurred()) SWIG_fail; | |
11536 | } | |
11537 | Py_INCREF(Py_None); resultobj = Py_None; | |
11538 | return resultobj; | |
11539 | fail: | |
11540 | return NULL; | |
11541 | } | |
11542 | ||
11543 | ||
c370783e | 11544 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11545 | PyObject *resultobj; |
11546 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11547 | wxPoint *arg2 = 0 ; |
11548 | wxSize *arg3 = 0 ; | |
11549 | wxPoint temp2 ; | |
11550 | wxSize temp3 ; | |
d55e5bfc RD |
11551 | PyObject * obj0 = 0 ; |
11552 | PyObject * obj1 = 0 ; | |
d6c14a4c | 11553 | PyObject * obj2 = 0 ; |
d55e5bfc | 11554 | char *kwnames[] = { |
d6c14a4c | 11555 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
11556 | }; |
11557 | ||
d6c14a4c | 11558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11561 | { | |
11562 | arg2 = &temp2; | |
d6c14a4c RD |
11563 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11564 | } | |
11565 | { | |
11566 | arg3 = &temp3; | |
11567 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
11568 | } |
11569 | { | |
11570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11571 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
11572 | |
11573 | wxPyEndAllowThreads(__tstate); | |
11574 | if (PyErr_Occurred()) SWIG_fail; | |
11575 | } | |
11576 | Py_INCREF(Py_None); resultobj = Py_None; | |
11577 | return resultobj; | |
11578 | fail: | |
11579 | return NULL; | |
11580 | } | |
11581 | ||
11582 | ||
c370783e | 11583 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11584 | PyObject *resultobj; |
11585 | wxDC *arg1 = (wxDC *) 0 ; | |
11586 | int arg2 ; | |
11587 | int arg3 ; | |
11588 | int arg4 ; | |
11589 | int arg5 ; | |
11590 | double arg6 ; | |
11591 | PyObject * obj0 = 0 ; | |
11592 | PyObject * obj1 = 0 ; | |
11593 | PyObject * obj2 = 0 ; | |
11594 | PyObject * obj3 = 0 ; | |
11595 | PyObject * obj4 = 0 ; | |
11596 | PyObject * obj5 = 0 ; | |
11597 | char *kwnames[] = { | |
11598 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11599 | }; | |
11600 | ||
d6c14a4c | 11601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
11602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11604 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11605 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11606 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11607 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11608 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11609 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11610 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 11611 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11612 | arg6 = (double)SWIG_As_double(obj5); |
d55e5bfc RD |
11613 | if (PyErr_Occurred()) SWIG_fail; |
11614 | { | |
11615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11616 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11617 | ||
11618 | wxPyEndAllowThreads(__tstate); | |
11619 | if (PyErr_Occurred()) SWIG_fail; | |
11620 | } | |
11621 | Py_INCREF(Py_None); resultobj = Py_None; | |
11622 | return resultobj; | |
11623 | fail: | |
11624 | return NULL; | |
11625 | } | |
11626 | ||
11627 | ||
c370783e | 11628 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11629 | PyObject *resultobj; |
11630 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11631 | wxRect *arg2 = 0 ; |
11632 | double arg3 ; | |
11633 | wxRect temp2 ; | |
d55e5bfc RD |
11634 | PyObject * obj0 = 0 ; |
11635 | PyObject * obj1 = 0 ; | |
11636 | PyObject * obj2 = 0 ; | |
d55e5bfc | 11637 | char *kwnames[] = { |
d6c14a4c | 11638 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d55e5bfc RD |
11639 | }; |
11640 | ||
d6c14a4c | 11641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11644 | { | |
11645 | arg2 = &temp2; | |
d6c14a4c | 11646 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11647 | } |
c370783e | 11648 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
11649 | if (PyErr_Occurred()) SWIG_fail; |
11650 | { | |
11651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11652 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
11653 | |
11654 | wxPyEndAllowThreads(__tstate); | |
11655 | if (PyErr_Occurred()) SWIG_fail; | |
11656 | } | |
11657 | Py_INCREF(Py_None); resultobj = Py_None; | |
11658 | return resultobj; | |
11659 | fail: | |
11660 | return NULL; | |
11661 | } | |
11662 | ||
11663 | ||
c370783e | 11664 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11665 | PyObject *resultobj; |
11666 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11667 | wxPoint *arg2 = 0 ; |
11668 | wxSize *arg3 = 0 ; | |
11669 | double arg4 ; | |
11670 | wxPoint temp2 ; | |
11671 | wxSize temp3 ; | |
d55e5bfc RD |
11672 | PyObject * obj0 = 0 ; |
11673 | PyObject * obj1 = 0 ; | |
11674 | PyObject * obj2 = 0 ; | |
d6c14a4c | 11675 | PyObject * obj3 = 0 ; |
d55e5bfc | 11676 | char *kwnames[] = { |
d6c14a4c | 11677 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d55e5bfc RD |
11678 | }; |
11679 | ||
d6c14a4c | 11680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11683 | { | |
11684 | arg2 = &temp2; | |
d6c14a4c | 11685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11686 | } |
d6c14a4c RD |
11687 | { |
11688 | arg3 = &temp3; | |
11689 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11690 | } | |
c370783e | 11691 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc RD |
11692 | if (PyErr_Occurred()) SWIG_fail; |
11693 | { | |
11694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11695 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d55e5bfc RD |
11696 | |
11697 | wxPyEndAllowThreads(__tstate); | |
11698 | if (PyErr_Occurred()) SWIG_fail; | |
11699 | } | |
11700 | Py_INCREF(Py_None); resultobj = Py_None; | |
11701 | return resultobj; | |
11702 | fail: | |
11703 | return NULL; | |
11704 | } | |
11705 | ||
11706 | ||
c370783e | 11707 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11708 | PyObject *resultobj; |
11709 | wxDC *arg1 = (wxDC *) 0 ; | |
11710 | int arg2 ; | |
11711 | int arg3 ; | |
11712 | int arg4 ; | |
11713 | PyObject * obj0 = 0 ; | |
11714 | PyObject * obj1 = 0 ; | |
11715 | PyObject * obj2 = 0 ; | |
11716 | PyObject * obj3 = 0 ; | |
11717 | char *kwnames[] = { | |
11718 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11719 | }; | |
11720 | ||
d6c14a4c | 11721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11724 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11725 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11726 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11727 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11728 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11729 | if (PyErr_Occurred()) SWIG_fail; |
11730 | { | |
11731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11732 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11733 | ||
11734 | wxPyEndAllowThreads(__tstate); | |
11735 | if (PyErr_Occurred()) SWIG_fail; | |
11736 | } | |
11737 | Py_INCREF(Py_None); resultobj = Py_None; | |
11738 | return resultobj; | |
11739 | fail: | |
11740 | return NULL; | |
11741 | } | |
11742 | ||
11743 | ||
c370783e | 11744 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11745 | PyObject *resultobj; |
11746 | wxDC *arg1 = (wxDC *) 0 ; | |
11747 | wxPoint *arg2 = 0 ; | |
11748 | int arg3 ; | |
11749 | wxPoint temp2 ; | |
11750 | PyObject * obj0 = 0 ; | |
11751 | PyObject * obj1 = 0 ; | |
11752 | PyObject * obj2 = 0 ; | |
11753 | char *kwnames[] = { | |
11754 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11755 | }; | |
11756 | ||
d6c14a4c | 11757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11760 | { | |
11761 | arg2 = &temp2; | |
11762 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11763 | } | |
c370783e | 11764 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11765 | if (PyErr_Occurred()) SWIG_fail; |
11766 | { | |
11767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11768 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11769 | ||
11770 | wxPyEndAllowThreads(__tstate); | |
11771 | if (PyErr_Occurred()) SWIG_fail; | |
11772 | } | |
11773 | Py_INCREF(Py_None); resultobj = Py_None; | |
11774 | return resultobj; | |
11775 | fail: | |
11776 | return NULL; | |
11777 | } | |
11778 | ||
11779 | ||
c370783e | 11780 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11781 | PyObject *resultobj; |
11782 | wxDC *arg1 = (wxDC *) 0 ; | |
11783 | int arg2 ; | |
11784 | int arg3 ; | |
11785 | int arg4 ; | |
11786 | int arg5 ; | |
11787 | PyObject * obj0 = 0 ; | |
11788 | PyObject * obj1 = 0 ; | |
11789 | PyObject * obj2 = 0 ; | |
11790 | PyObject * obj3 = 0 ; | |
11791 | PyObject * obj4 = 0 ; | |
11792 | char *kwnames[] = { | |
11793 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11794 | }; | |
11795 | ||
d6c14a4c | 11796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11799 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 11800 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11801 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11802 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11803 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 11804 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11805 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
11806 | if (PyErr_Occurred()) SWIG_fail; |
11807 | { | |
11808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11809 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11810 | ||
11811 | wxPyEndAllowThreads(__tstate); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | } | |
11814 | Py_INCREF(Py_None); resultobj = Py_None; | |
11815 | return resultobj; | |
11816 | fail: | |
11817 | return NULL; | |
11818 | } | |
11819 | ||
11820 | ||
c370783e | 11821 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11822 | PyObject *resultobj; |
11823 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11824 | wxRect *arg2 = 0 ; |
11825 | wxRect temp2 ; | |
d55e5bfc RD |
11826 | PyObject * obj0 = 0 ; |
11827 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11828 | char *kwnames[] = { |
d6c14a4c | 11829 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11830 | }; |
11831 | ||
d6c14a4c | 11832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11835 | { | |
11836 | arg2 = &temp2; | |
d6c14a4c | 11837 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11838 | } |
11839 | { | |
11840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11841 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d55e5bfc RD |
11842 | |
11843 | wxPyEndAllowThreads(__tstate); | |
11844 | if (PyErr_Occurred()) SWIG_fail; | |
11845 | } | |
11846 | Py_INCREF(Py_None); resultobj = Py_None; | |
11847 | return resultobj; | |
11848 | fail: | |
11849 | return NULL; | |
11850 | } | |
11851 | ||
11852 | ||
c370783e | 11853 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11854 | PyObject *resultobj; |
11855 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11856 | wxPoint *arg2 = 0 ; |
11857 | wxSize *arg3 = 0 ; | |
11858 | wxPoint temp2 ; | |
11859 | wxSize temp3 ; | |
d55e5bfc RD |
11860 | PyObject * obj0 = 0 ; |
11861 | PyObject * obj1 = 0 ; | |
d6c14a4c | 11862 | PyObject * obj2 = 0 ; |
d55e5bfc | 11863 | char *kwnames[] = { |
d6c14a4c | 11864 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
11865 | }; |
11866 | ||
d6c14a4c | 11867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11870 | { | |
11871 | arg2 = &temp2; | |
d6c14a4c RD |
11872 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11873 | } | |
11874 | { | |
11875 | arg3 = &temp3; | |
11876 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
11877 | } |
11878 | { | |
11879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11880 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
11881 | |
11882 | wxPyEndAllowThreads(__tstate); | |
11883 | if (PyErr_Occurred()) SWIG_fail; | |
11884 | } | |
11885 | Py_INCREF(Py_None); resultobj = Py_None; | |
11886 | return resultobj; | |
11887 | fail: | |
11888 | return NULL; | |
11889 | } | |
11890 | ||
11891 | ||
c370783e | 11892 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11893 | PyObject *resultobj; |
11894 | wxDC *arg1 = (wxDC *) 0 ; | |
11895 | wxIcon *arg2 = 0 ; | |
11896 | int arg3 ; | |
11897 | int arg4 ; | |
11898 | PyObject * obj0 = 0 ; | |
11899 | PyObject * obj1 = 0 ; | |
11900 | PyObject * obj2 = 0 ; | |
11901 | PyObject * obj3 = 0 ; | |
11902 | char *kwnames[] = { | |
11903 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11904 | }; | |
11905 | ||
d6c14a4c | 11906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11909 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11910 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11911 | SWIG_fail; | |
11912 | if (arg2 == NULL) { | |
11913 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11914 | SWIG_fail; | |
11915 | } | |
c370783e | 11916 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 11917 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11918 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
11919 | if (PyErr_Occurred()) SWIG_fail; |
11920 | { | |
11921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11922 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11923 | ||
11924 | wxPyEndAllowThreads(__tstate); | |
11925 | if (PyErr_Occurred()) SWIG_fail; | |
11926 | } | |
11927 | Py_INCREF(Py_None); resultobj = Py_None; | |
11928 | return resultobj; | |
11929 | fail: | |
11930 | return NULL; | |
11931 | } | |
11932 | ||
11933 | ||
c370783e | 11934 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11935 | PyObject *resultobj; |
11936 | wxDC *arg1 = (wxDC *) 0 ; | |
11937 | wxIcon *arg2 = 0 ; | |
11938 | wxPoint *arg3 = 0 ; | |
11939 | wxPoint temp3 ; | |
11940 | PyObject * obj0 = 0 ; | |
11941 | PyObject * obj1 = 0 ; | |
11942 | PyObject * obj2 = 0 ; | |
11943 | char *kwnames[] = { | |
11944 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11945 | }; | |
11946 | ||
d6c14a4c | 11947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11952 | SWIG_fail; | |
11953 | if (arg2 == NULL) { | |
11954 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11955 | SWIG_fail; | |
11956 | } | |
11957 | { | |
11958 | arg3 = &temp3; | |
11959 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11960 | } | |
11961 | { | |
11962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11963 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11964 | ||
11965 | wxPyEndAllowThreads(__tstate); | |
11966 | if (PyErr_Occurred()) SWIG_fail; | |
11967 | } | |
11968 | Py_INCREF(Py_None); resultobj = Py_None; | |
11969 | return resultobj; | |
11970 | fail: | |
11971 | return NULL; | |
11972 | } | |
11973 | ||
11974 | ||
c370783e | 11975 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11976 | PyObject *resultobj; |
11977 | wxDC *arg1 = (wxDC *) 0 ; | |
11978 | wxBitmap *arg2 = 0 ; | |
11979 | int arg3 ; | |
11980 | int arg4 ; | |
b411df4a | 11981 | bool arg5 = (bool) false ; |
d55e5bfc RD |
11982 | PyObject * obj0 = 0 ; |
11983 | PyObject * obj1 = 0 ; | |
11984 | PyObject * obj2 = 0 ; | |
11985 | PyObject * obj3 = 0 ; | |
11986 | PyObject * obj4 = 0 ; | |
11987 | char *kwnames[] = { | |
11988 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11989 | }; | |
11990 | ||
d6c14a4c | 11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11994 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11995 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11996 | SWIG_fail; | |
11997 | if (arg2 == NULL) { | |
11998 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11999 | SWIG_fail; | |
12000 | } | |
c370783e | 12001 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12002 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12003 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12004 | if (PyErr_Occurred()) SWIG_fail; |
12005 | if (obj4) { | |
c370783e | 12006 | arg5 = (bool)SWIG_As_bool(obj4); |
d55e5bfc RD |
12007 | if (PyErr_Occurred()) SWIG_fail; |
12008 | } | |
12009 | { | |
12010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12011 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
12012 | ||
12013 | wxPyEndAllowThreads(__tstate); | |
12014 | if (PyErr_Occurred()) SWIG_fail; | |
12015 | } | |
12016 | Py_INCREF(Py_None); resultobj = Py_None; | |
12017 | return resultobj; | |
12018 | fail: | |
12019 | return NULL; | |
12020 | } | |
12021 | ||
12022 | ||
c370783e | 12023 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12024 | PyObject *resultobj; |
12025 | wxDC *arg1 = (wxDC *) 0 ; | |
12026 | wxBitmap *arg2 = 0 ; | |
12027 | wxPoint *arg3 = 0 ; | |
b411df4a | 12028 | bool arg4 = (bool) false ; |
d55e5bfc RD |
12029 | wxPoint temp3 ; |
12030 | PyObject * obj0 = 0 ; | |
12031 | PyObject * obj1 = 0 ; | |
12032 | PyObject * obj2 = 0 ; | |
12033 | PyObject * obj3 = 0 ; | |
12034 | char *kwnames[] = { | |
12035 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
12036 | }; | |
12037 | ||
d6c14a4c | 12038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12041 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12042 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12043 | SWIG_fail; | |
12044 | if (arg2 == NULL) { | |
12045 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12046 | SWIG_fail; | |
12047 | } | |
12048 | { | |
12049 | arg3 = &temp3; | |
12050 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12051 | } | |
12052 | if (obj3) { | |
c370783e | 12053 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
12054 | if (PyErr_Occurred()) SWIG_fail; |
12055 | } | |
12056 | { | |
12057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12058 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12059 | ||
12060 | wxPyEndAllowThreads(__tstate); | |
12061 | if (PyErr_Occurred()) SWIG_fail; | |
12062 | } | |
12063 | Py_INCREF(Py_None); resultobj = Py_None; | |
12064 | return resultobj; | |
12065 | fail: | |
12066 | return NULL; | |
12067 | } | |
12068 | ||
12069 | ||
c370783e | 12070 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12071 | PyObject *resultobj; |
12072 | wxDC *arg1 = (wxDC *) 0 ; | |
12073 | wxString *arg2 = 0 ; | |
12074 | int arg3 ; | |
12075 | int arg4 ; | |
b411df4a | 12076 | bool temp2 = false ; |
d55e5bfc RD |
12077 | PyObject * obj0 = 0 ; |
12078 | PyObject * obj1 = 0 ; | |
12079 | PyObject * obj2 = 0 ; | |
12080 | PyObject * obj3 = 0 ; | |
12081 | char *kwnames[] = { | |
12082 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12083 | }; | |
12084 | ||
d6c14a4c | 12085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12088 | { | |
12089 | arg2 = wxString_in_helper(obj1); | |
12090 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12091 | temp2 = true; |
d55e5bfc | 12092 | } |
c370783e | 12093 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12094 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12095 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12096 | if (PyErr_Occurred()) SWIG_fail; |
12097 | { | |
12098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12099 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12100 | ||
12101 | wxPyEndAllowThreads(__tstate); | |
12102 | if (PyErr_Occurred()) SWIG_fail; | |
12103 | } | |
12104 | Py_INCREF(Py_None); resultobj = Py_None; | |
12105 | { | |
12106 | if (temp2) | |
12107 | delete arg2; | |
12108 | } | |
12109 | return resultobj; | |
12110 | fail: | |
12111 | { | |
12112 | if (temp2) | |
12113 | delete arg2; | |
12114 | } | |
12115 | return NULL; | |
12116 | } | |
12117 | ||
12118 | ||
c370783e | 12119 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12120 | PyObject *resultobj; |
12121 | wxDC *arg1 = (wxDC *) 0 ; | |
12122 | wxString *arg2 = 0 ; | |
12123 | wxPoint *arg3 = 0 ; | |
b411df4a | 12124 | bool temp2 = false ; |
d55e5bfc RD |
12125 | wxPoint temp3 ; |
12126 | PyObject * obj0 = 0 ; | |
12127 | PyObject * obj1 = 0 ; | |
12128 | PyObject * obj2 = 0 ; | |
12129 | char *kwnames[] = { | |
12130 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12131 | }; | |
12132 | ||
d6c14a4c | 12133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12136 | { | |
12137 | arg2 = wxString_in_helper(obj1); | |
12138 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12139 | temp2 = true; |
d55e5bfc RD |
12140 | } |
12141 | { | |
12142 | arg3 = &temp3; | |
12143 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12144 | } | |
12145 | { | |
12146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12147 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12148 | ||
12149 | wxPyEndAllowThreads(__tstate); | |
12150 | if (PyErr_Occurred()) SWIG_fail; | |
12151 | } | |
12152 | Py_INCREF(Py_None); resultobj = Py_None; | |
12153 | { | |
12154 | if (temp2) | |
12155 | delete arg2; | |
12156 | } | |
12157 | return resultobj; | |
12158 | fail: | |
12159 | { | |
12160 | if (temp2) | |
12161 | delete arg2; | |
12162 | } | |
12163 | return NULL; | |
12164 | } | |
12165 | ||
12166 | ||
c370783e | 12167 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12168 | PyObject *resultobj; |
12169 | wxDC *arg1 = (wxDC *) 0 ; | |
12170 | wxString *arg2 = 0 ; | |
12171 | int arg3 ; | |
12172 | int arg4 ; | |
12173 | double arg5 ; | |
b411df4a | 12174 | bool temp2 = false ; |
d55e5bfc RD |
12175 | PyObject * obj0 = 0 ; |
12176 | PyObject * obj1 = 0 ; | |
12177 | PyObject * obj2 = 0 ; | |
12178 | PyObject * obj3 = 0 ; | |
12179 | PyObject * obj4 = 0 ; | |
12180 | char *kwnames[] = { | |
12181 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12182 | }; | |
12183 | ||
d6c14a4c | 12184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12187 | { | |
12188 | arg2 = wxString_in_helper(obj1); | |
12189 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12190 | temp2 = true; |
d55e5bfc | 12191 | } |
c370783e | 12192 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12193 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12194 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12195 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12196 | arg5 = (double)SWIG_As_double(obj4); |
d55e5bfc RD |
12197 | if (PyErr_Occurred()) SWIG_fail; |
12198 | { | |
12199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12200 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12201 | ||
12202 | wxPyEndAllowThreads(__tstate); | |
12203 | if (PyErr_Occurred()) SWIG_fail; | |
12204 | } | |
12205 | Py_INCREF(Py_None); resultobj = Py_None; | |
12206 | { | |
12207 | if (temp2) | |
12208 | delete arg2; | |
12209 | } | |
12210 | return resultobj; | |
12211 | fail: | |
12212 | { | |
12213 | if (temp2) | |
12214 | delete arg2; | |
12215 | } | |
12216 | return NULL; | |
12217 | } | |
12218 | ||
12219 | ||
c370783e | 12220 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12221 | PyObject *resultobj; |
12222 | wxDC *arg1 = (wxDC *) 0 ; | |
12223 | wxString *arg2 = 0 ; | |
12224 | wxPoint *arg3 = 0 ; | |
12225 | double arg4 ; | |
b411df4a | 12226 | bool temp2 = false ; |
d55e5bfc RD |
12227 | wxPoint temp3 ; |
12228 | PyObject * obj0 = 0 ; | |
12229 | PyObject * obj1 = 0 ; | |
12230 | PyObject * obj2 = 0 ; | |
12231 | PyObject * obj3 = 0 ; | |
12232 | char *kwnames[] = { | |
12233 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12234 | }; | |
12235 | ||
d6c14a4c | 12236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12239 | { | |
12240 | arg2 = wxString_in_helper(obj1); | |
12241 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12242 | temp2 = true; |
d55e5bfc RD |
12243 | } |
12244 | { | |
12245 | arg3 = &temp3; | |
12246 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12247 | } | |
c370783e | 12248 | arg4 = (double)SWIG_As_double(obj3); |
d55e5bfc RD |
12249 | if (PyErr_Occurred()) SWIG_fail; |
12250 | { | |
12251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12252 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12253 | ||
12254 | wxPyEndAllowThreads(__tstate); | |
12255 | if (PyErr_Occurred()) SWIG_fail; | |
12256 | } | |
12257 | Py_INCREF(Py_None); resultobj = Py_None; | |
12258 | { | |
12259 | if (temp2) | |
12260 | delete arg2; | |
12261 | } | |
12262 | return resultobj; | |
12263 | fail: | |
12264 | { | |
12265 | if (temp2) | |
12266 | delete arg2; | |
12267 | } | |
12268 | return NULL; | |
12269 | } | |
12270 | ||
12271 | ||
c370783e | 12272 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12273 | PyObject *resultobj; |
12274 | wxDC *arg1 = (wxDC *) 0 ; | |
12275 | int arg2 ; | |
12276 | int arg3 ; | |
12277 | int arg4 ; | |
12278 | int arg5 ; | |
12279 | wxDC *arg6 = (wxDC *) 0 ; | |
12280 | int arg7 ; | |
12281 | int arg8 ; | |
12282 | int arg9 = (int) wxCOPY ; | |
b411df4a | 12283 | bool arg10 = (bool) false ; |
d55e5bfc RD |
12284 | int arg11 = (int) -1 ; |
12285 | int arg12 = (int) -1 ; | |
12286 | bool result; | |
12287 | PyObject * obj0 = 0 ; | |
12288 | PyObject * obj1 = 0 ; | |
12289 | PyObject * obj2 = 0 ; | |
12290 | PyObject * obj3 = 0 ; | |
12291 | PyObject * obj4 = 0 ; | |
12292 | PyObject * obj5 = 0 ; | |
12293 | PyObject * obj6 = 0 ; | |
12294 | PyObject * obj7 = 0 ; | |
12295 | PyObject * obj8 = 0 ; | |
12296 | PyObject * obj9 = 0 ; | |
12297 | PyObject * obj10 = 0 ; | |
12298 | PyObject * obj11 = 0 ; | |
12299 | char *kwnames[] = { | |
12300 | (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 | |
12301 | }; | |
12302 | ||
d6c14a4c | 12303 | 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 |
12304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12306 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12307 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12308 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12309 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12310 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 12311 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12312 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12313 | if (PyErr_Occurred()) SWIG_fail; |
12314 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12316 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc | 12317 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12318 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
12319 | if (PyErr_Occurred()) SWIG_fail; |
12320 | if (obj8) { | |
c370783e | 12321 | arg9 = (int)SWIG_As_int(obj8); |
d55e5bfc RD |
12322 | if (PyErr_Occurred()) SWIG_fail; |
12323 | } | |
12324 | if (obj9) { | |
c370783e | 12325 | arg10 = (bool)SWIG_As_bool(obj9); |
d55e5bfc RD |
12326 | if (PyErr_Occurred()) SWIG_fail; |
12327 | } | |
12328 | if (obj10) { | |
c370783e | 12329 | arg11 = (int)SWIG_As_int(obj10); |
d55e5bfc RD |
12330 | if (PyErr_Occurred()) SWIG_fail; |
12331 | } | |
12332 | if (obj11) { | |
c370783e | 12333 | arg12 = (int)SWIG_As_int(obj11); |
d55e5bfc RD |
12334 | if (PyErr_Occurred()) SWIG_fail; |
12335 | } | |
12336 | { | |
12337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12338 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12339 | ||
12340 | wxPyEndAllowThreads(__tstate); | |
12341 | if (PyErr_Occurred()) SWIG_fail; | |
12342 | } | |
12343 | { | |
12344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12345 | } | |
12346 | return resultobj; | |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
c370783e | 12352 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12353 | PyObject *resultobj; |
12354 | wxDC *arg1 = (wxDC *) 0 ; | |
12355 | wxPoint *arg2 = 0 ; | |
12356 | wxSize *arg3 = 0 ; | |
12357 | wxDC *arg4 = (wxDC *) 0 ; | |
12358 | wxPoint *arg5 = 0 ; | |
12359 | int arg6 = (int) wxCOPY ; | |
b411df4a | 12360 | bool arg7 = (bool) false ; |
d55e5bfc RD |
12361 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
12362 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12363 | bool result; | |
12364 | wxPoint temp2 ; | |
12365 | wxSize temp3 ; | |
12366 | wxPoint temp5 ; | |
12367 | wxPoint temp8 ; | |
12368 | PyObject * obj0 = 0 ; | |
12369 | PyObject * obj1 = 0 ; | |
12370 | PyObject * obj2 = 0 ; | |
12371 | PyObject * obj3 = 0 ; | |
12372 | PyObject * obj4 = 0 ; | |
12373 | PyObject * obj5 = 0 ; | |
12374 | PyObject * obj6 = 0 ; | |
12375 | PyObject * obj7 = 0 ; | |
12376 | char *kwnames[] = { | |
12377 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12378 | }; | |
12379 | ||
d6c14a4c | 12380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12383 | { | |
12384 | arg2 = &temp2; | |
12385 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12386 | } | |
12387 | { | |
12388 | arg3 = &temp3; | |
12389 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12390 | } | |
12391 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
12392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12393 | { | |
12394 | arg5 = &temp5; | |
12395 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12396 | } | |
12397 | if (obj5) { | |
c370783e | 12398 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
12399 | if (PyErr_Occurred()) SWIG_fail; |
12400 | } | |
12401 | if (obj6) { | |
c370783e | 12402 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
12403 | if (PyErr_Occurred()) SWIG_fail; |
12404 | } | |
12405 | if (obj7) { | |
12406 | { | |
12407 | arg8 = &temp8; | |
12408 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12409 | } | |
12410 | } | |
12411 | { | |
12412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c RD |
12413 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
12414 | ||
12415 | wxPyEndAllowThreads(__tstate); | |
12416 | if (PyErr_Occurred()) SWIG_fail; | |
12417 | } | |
12418 | { | |
12419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12420 | } | |
12421 | return resultobj; | |
12422 | fail: | |
12423 | return NULL; | |
12424 | } | |
12425 | ||
12426 | ||
c370783e | 12427 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
12428 | PyObject *resultobj; |
12429 | wxDC *arg1 = (wxDC *) 0 ; | |
12430 | int arg2 ; | |
12431 | int arg3 ; | |
12432 | int arg4 ; | |
12433 | int arg5 ; | |
12434 | PyObject * obj0 = 0 ; | |
12435 | PyObject * obj1 = 0 ; | |
12436 | PyObject * obj2 = 0 ; | |
12437 | PyObject * obj3 = 0 ; | |
12438 | PyObject * obj4 = 0 ; | |
12439 | char *kwnames[] = { | |
12440 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12441 | }; | |
12442 | ||
12443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12446 | arg2 = (int)SWIG_As_int(obj1); |
d6c14a4c | 12447 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12448 | arg3 = (int)SWIG_As_int(obj2); |
d6c14a4c | 12449 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12450 | arg4 = (int)SWIG_As_int(obj3); |
d6c14a4c | 12451 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12452 | arg5 = (int)SWIG_As_int(obj4); |
d6c14a4c RD |
12453 | if (PyErr_Occurred()) SWIG_fail; |
12454 | { | |
12455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12456 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12457 | ||
12458 | wxPyEndAllowThreads(__tstate); | |
12459 | if (PyErr_Occurred()) SWIG_fail; | |
12460 | } | |
12461 | Py_INCREF(Py_None); resultobj = Py_None; | |
12462 | return resultobj; | |
12463 | fail: | |
12464 | return NULL; | |
12465 | } | |
12466 | ||
12467 | ||
c370783e | 12468 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
12469 | PyObject *resultobj; |
12470 | wxDC *arg1 = (wxDC *) 0 ; | |
12471 | wxPoint *arg2 = 0 ; | |
12472 | wxSize *arg3 = 0 ; | |
12473 | wxPoint temp2 ; | |
12474 | wxSize temp3 ; | |
12475 | PyObject * obj0 = 0 ; | |
12476 | PyObject * obj1 = 0 ; | |
12477 | PyObject * obj2 = 0 ; | |
12478 | char *kwnames[] = { | |
12479 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12480 | }; | |
12481 | ||
12482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12485 | { | |
12486 | arg2 = &temp2; | |
12487 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12488 | } | |
12489 | { | |
12490 | arg3 = &temp3; | |
12491 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12492 | } | |
12493 | { | |
12494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12495 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12496 | ||
12497 | wxPyEndAllowThreads(__tstate); | |
12498 | if (PyErr_Occurred()) SWIG_fail; | |
12499 | } | |
12500 | Py_INCREF(Py_None); resultobj = Py_None; | |
12501 | return resultobj; | |
12502 | fail: | |
12503 | return NULL; | |
12504 | } | |
12505 | ||
12506 | ||
c370783e | 12507 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
12508 | PyObject *resultobj; |
12509 | wxDC *arg1 = (wxDC *) 0 ; | |
12510 | wxRegion *arg2 = 0 ; | |
12511 | PyObject * obj0 = 0 ; | |
12512 | PyObject * obj1 = 0 ; | |
12513 | char *kwnames[] = { | |
12514 | (char *) "self",(char *) "region", NULL | |
12515 | }; | |
12516 | ||
12517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12521 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12522 | SWIG_fail; | |
12523 | if (arg2 == NULL) { | |
12524 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12525 | SWIG_fail; | |
12526 | } | |
12527 | { | |
12528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12529 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12530 | ||
12531 | wxPyEndAllowThreads(__tstate); | |
12532 | if (PyErr_Occurred()) SWIG_fail; | |
12533 | } | |
12534 | Py_INCREF(Py_None); resultobj = Py_None; | |
12535 | return resultobj; | |
12536 | fail: | |
12537 | return NULL; | |
12538 | } | |
12539 | ||
12540 | ||
c370783e | 12541 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
12542 | PyObject *resultobj; |
12543 | wxDC *arg1 = (wxDC *) 0 ; | |
12544 | wxRect *arg2 = 0 ; | |
12545 | wxRect temp2 ; | |
12546 | PyObject * obj0 = 0 ; | |
12547 | PyObject * obj1 = 0 ; | |
12548 | char *kwnames[] = { | |
12549 | (char *) "self",(char *) "rect", NULL | |
12550 | }; | |
12551 | ||
12552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12555 | { | |
12556 | arg2 = &temp2; | |
12557 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12558 | } | |
12559 | { | |
12560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12561 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
d55e5bfc RD |
12562 | |
12563 | wxPyEndAllowThreads(__tstate); | |
12564 | if (PyErr_Occurred()) SWIG_fail; | |
12565 | } | |
d6c14a4c | 12566 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
12567 | return resultobj; |
12568 | fail: | |
12569 | return NULL; | |
12570 | } | |
12571 | ||
12572 | ||
c370783e | 12573 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12574 | PyObject *resultobj; |
12575 | wxDC *arg1 = (wxDC *) 0 ; | |
12576 | int arg2 ; | |
12577 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12578 | int arg4 = (int) 0 ; | |
12579 | int arg5 = (int) 0 ; | |
12580 | PyObject * obj0 = 0 ; | |
12581 | PyObject * obj1 = 0 ; | |
12582 | PyObject * obj2 = 0 ; | |
12583 | PyObject * obj3 = 0 ; | |
12584 | char *kwnames[] = { | |
12585 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12586 | }; | |
12587 | ||
12588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12591 | { | |
12592 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12593 | if (arg3 == NULL) SWIG_fail; | |
12594 | } | |
12595 | if (obj2) { | |
c370783e | 12596 | arg4 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12597 | if (PyErr_Occurred()) SWIG_fail; |
12598 | } | |
12599 | if (obj3) { | |
c370783e | 12600 | arg5 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12601 | if (PyErr_Occurred()) SWIG_fail; |
12602 | } | |
12603 | { | |
12604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12605 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12606 | ||
12607 | wxPyEndAllowThreads(__tstate); | |
12608 | if (PyErr_Occurred()) SWIG_fail; | |
12609 | } | |
12610 | Py_INCREF(Py_None); resultobj = Py_None; | |
12611 | { | |
12612 | if (arg3) delete [] arg3; | |
12613 | } | |
12614 | return resultobj; | |
12615 | fail: | |
12616 | { | |
12617 | if (arg3) delete [] arg3; | |
12618 | } | |
12619 | return NULL; | |
12620 | } | |
12621 | ||
12622 | ||
c370783e | 12623 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12624 | PyObject *resultobj; |
12625 | wxDC *arg1 = (wxDC *) 0 ; | |
12626 | int arg2 ; | |
12627 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12628 | int arg4 = (int) 0 ; | |
12629 | int arg5 = (int) 0 ; | |
12630 | int arg6 = (int) wxODDEVEN_RULE ; | |
12631 | PyObject * obj0 = 0 ; | |
12632 | PyObject * obj1 = 0 ; | |
12633 | PyObject * obj2 = 0 ; | |
12634 | PyObject * obj3 = 0 ; | |
12635 | PyObject * obj4 = 0 ; | |
12636 | char *kwnames[] = { | |
12637 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12638 | }; | |
12639 | ||
12640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12643 | { | |
12644 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12645 | if (arg3 == NULL) SWIG_fail; | |
12646 | } | |
12647 | if (obj2) { | |
c370783e | 12648 | arg4 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12649 | if (PyErr_Occurred()) SWIG_fail; |
12650 | } | |
12651 | if (obj3) { | |
c370783e | 12652 | arg5 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12653 | if (PyErr_Occurred()) SWIG_fail; |
12654 | } | |
12655 | if (obj4) { | |
c370783e | 12656 | arg6 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12657 | if (PyErr_Occurred()) SWIG_fail; |
12658 | } | |
12659 | { | |
12660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12661 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12662 | ||
12663 | wxPyEndAllowThreads(__tstate); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | } | |
12666 | Py_INCREF(Py_None); resultobj = Py_None; | |
12667 | { | |
12668 | if (arg3) delete [] arg3; | |
12669 | } | |
12670 | return resultobj; | |
12671 | fail: | |
12672 | { | |
12673 | if (arg3) delete [] arg3; | |
12674 | } | |
12675 | return NULL; | |
12676 | } | |
12677 | ||
12678 | ||
c370783e | 12679 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12680 | PyObject *resultobj; |
12681 | wxDC *arg1 = (wxDC *) 0 ; | |
12682 | wxString *arg2 = 0 ; | |
12683 | wxRect *arg3 = 0 ; | |
12684 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12685 | int arg5 = (int) -1 ; | |
b411df4a | 12686 | bool temp2 = false ; |
d55e5bfc RD |
12687 | wxRect temp3 ; |
12688 | PyObject * obj0 = 0 ; | |
12689 | PyObject * obj1 = 0 ; | |
12690 | PyObject * obj2 = 0 ; | |
12691 | PyObject * obj3 = 0 ; | |
12692 | PyObject * obj4 = 0 ; | |
12693 | char *kwnames[] = { | |
12694 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12695 | }; | |
12696 | ||
12697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12700 | { | |
12701 | arg2 = wxString_in_helper(obj1); | |
12702 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12703 | temp2 = true; |
d55e5bfc RD |
12704 | } |
12705 | { | |
12706 | arg3 = &temp3; | |
12707 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12708 | } | |
12709 | if (obj3) { | |
c370783e | 12710 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12711 | if (PyErr_Occurred()) SWIG_fail; |
12712 | } | |
12713 | if (obj4) { | |
c370783e | 12714 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12715 | if (PyErr_Occurred()) SWIG_fail; |
12716 | } | |
12717 | { | |
12718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12719 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
12720 | ||
12721 | wxPyEndAllowThreads(__tstate); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | } | |
12724 | Py_INCREF(Py_None); resultobj = Py_None; | |
12725 | { | |
12726 | if (temp2) | |
12727 | delete arg2; | |
12728 | } | |
12729 | return resultobj; | |
12730 | fail: | |
12731 | { | |
12732 | if (temp2) | |
12733 | delete arg2; | |
12734 | } | |
12735 | return NULL; | |
12736 | } | |
12737 | ||
12738 | ||
c370783e | 12739 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12740 | PyObject *resultobj; |
12741 | wxDC *arg1 = (wxDC *) 0 ; | |
12742 | wxString *arg2 = 0 ; | |
12743 | wxBitmap *arg3 = 0 ; | |
12744 | wxRect *arg4 = 0 ; | |
12745 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12746 | int arg6 = (int) -1 ; | |
12747 | wxRect result; | |
b411df4a | 12748 | bool temp2 = false ; |
d55e5bfc RD |
12749 | wxRect temp4 ; |
12750 | PyObject * obj0 = 0 ; | |
12751 | PyObject * obj1 = 0 ; | |
12752 | PyObject * obj2 = 0 ; | |
12753 | PyObject * obj3 = 0 ; | |
12754 | PyObject * obj4 = 0 ; | |
12755 | PyObject * obj5 = 0 ; | |
12756 | char *kwnames[] = { | |
12757 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12758 | }; | |
12759 | ||
12760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12763 | { | |
12764 | arg2 = wxString_in_helper(obj1); | |
12765 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12766 | temp2 = true; |
d55e5bfc RD |
12767 | } |
12768 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
12769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12770 | SWIG_fail; | |
12771 | if (arg3 == NULL) { | |
12772 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12773 | SWIG_fail; | |
12774 | } | |
12775 | { | |
12776 | arg4 = &temp4; | |
12777 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12778 | } | |
12779 | if (obj4) { | |
c370783e | 12780 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
12781 | if (PyErr_Occurred()) SWIG_fail; |
12782 | } | |
12783 | if (obj5) { | |
c370783e | 12784 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
12785 | if (PyErr_Occurred()) SWIG_fail; |
12786 | } | |
12787 | { | |
12788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12789 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12790 | ||
12791 | wxPyEndAllowThreads(__tstate); | |
12792 | if (PyErr_Occurred()) SWIG_fail; | |
12793 | } | |
12794 | { | |
12795 | wxRect * resultptr; | |
12796 | resultptr = new wxRect((wxRect &) result); | |
12797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
12798 | } | |
12799 | { | |
12800 | if (temp2) | |
12801 | delete arg2; | |
12802 | } | |
12803 | return resultobj; | |
12804 | fail: | |
12805 | { | |
12806 | if (temp2) | |
12807 | delete arg2; | |
12808 | } | |
12809 | return NULL; | |
12810 | } | |
12811 | ||
12812 | ||
c370783e | 12813 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12814 | PyObject *resultobj; |
12815 | wxDC *arg1 = (wxDC *) 0 ; | |
12816 | int arg2 ; | |
12817 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12818 | PyObject * obj0 = 0 ; | |
12819 | PyObject * obj1 = 0 ; | |
12820 | char *kwnames[] = { | |
12821 | (char *) "self",(char *) "points", NULL | |
12822 | }; | |
12823 | ||
12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
12825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12827 | { | |
12828 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12829 | if (arg3 == NULL) SWIG_fail; | |
12830 | } | |
12831 | { | |
12832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12833 | (arg1)->DrawSpline(arg2,arg3); | |
12834 | ||
12835 | wxPyEndAllowThreads(__tstate); | |
12836 | if (PyErr_Occurred()) SWIG_fail; | |
12837 | } | |
12838 | Py_INCREF(Py_None); resultobj = Py_None; | |
12839 | { | |
12840 | if (arg3) delete [] arg3; | |
12841 | } | |
12842 | return resultobj; | |
12843 | fail: | |
12844 | { | |
12845 | if (arg3) delete [] arg3; | |
12846 | } | |
12847 | return NULL; | |
12848 | } | |
12849 | ||
12850 | ||
c370783e | 12851 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12852 | PyObject *resultobj; |
12853 | wxDC *arg1 = (wxDC *) 0 ; | |
12854 | PyObject * obj0 = 0 ; | |
12855 | char *kwnames[] = { | |
12856 | (char *) "self", NULL | |
12857 | }; | |
12858 | ||
12859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
12860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12862 | { | |
12863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12864 | (arg1)->Clear(); | |
12865 | ||
12866 | wxPyEndAllowThreads(__tstate); | |
12867 | if (PyErr_Occurred()) SWIG_fail; | |
12868 | } | |
12869 | Py_INCREF(Py_None); resultobj = Py_None; | |
12870 | return resultobj; | |
12871 | fail: | |
12872 | return NULL; | |
12873 | } | |
12874 | ||
12875 | ||
c370783e | 12876 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12877 | PyObject *resultobj; |
12878 | wxDC *arg1 = (wxDC *) 0 ; | |
12879 | wxString *arg2 = 0 ; | |
12880 | bool result; | |
b411df4a | 12881 | bool temp2 = false ; |
d55e5bfc RD |
12882 | PyObject * obj0 = 0 ; |
12883 | PyObject * obj1 = 0 ; | |
12884 | char *kwnames[] = { | |
12885 | (char *) "self",(char *) "message", NULL | |
12886 | }; | |
12887 | ||
12888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
12889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12891 | { | |
12892 | arg2 = wxString_in_helper(obj1); | |
12893 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 12894 | temp2 = true; |
d55e5bfc RD |
12895 | } |
12896 | { | |
12897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12898 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12899 | ||
12900 | wxPyEndAllowThreads(__tstate); | |
12901 | if (PyErr_Occurred()) SWIG_fail; | |
12902 | } | |
12903 | { | |
12904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12905 | } | |
12906 | { | |
12907 | if (temp2) | |
12908 | delete arg2; | |
12909 | } | |
12910 | return resultobj; | |
12911 | fail: | |
12912 | { | |
12913 | if (temp2) | |
12914 | delete arg2; | |
12915 | } | |
12916 | return NULL; | |
12917 | } | |
12918 | ||
12919 | ||
c370783e | 12920 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12921 | PyObject *resultobj; |
12922 | wxDC *arg1 = (wxDC *) 0 ; | |
12923 | PyObject * obj0 = 0 ; | |
12924 | char *kwnames[] = { | |
12925 | (char *) "self", NULL | |
12926 | }; | |
12927 | ||
12928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
12929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12931 | { | |
12932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12933 | (arg1)->EndDoc(); | |
12934 | ||
12935 | wxPyEndAllowThreads(__tstate); | |
12936 | if (PyErr_Occurred()) SWIG_fail; | |
12937 | } | |
12938 | Py_INCREF(Py_None); resultobj = Py_None; | |
12939 | return resultobj; | |
12940 | fail: | |
12941 | return NULL; | |
12942 | } | |
12943 | ||
12944 | ||
c370783e | 12945 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12946 | PyObject *resultobj; |
12947 | wxDC *arg1 = (wxDC *) 0 ; | |
12948 | PyObject * obj0 = 0 ; | |
12949 | char *kwnames[] = { | |
12950 | (char *) "self", NULL | |
12951 | }; | |
12952 | ||
12953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12956 | { | |
12957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12958 | (arg1)->StartPage(); | |
12959 | ||
12960 | wxPyEndAllowThreads(__tstate); | |
12961 | if (PyErr_Occurred()) SWIG_fail; | |
12962 | } | |
12963 | Py_INCREF(Py_None); resultobj = Py_None; | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | return NULL; | |
12967 | } | |
12968 | ||
12969 | ||
c370783e | 12970 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12971 | PyObject *resultobj; |
12972 | wxDC *arg1 = (wxDC *) 0 ; | |
12973 | PyObject * obj0 = 0 ; | |
12974 | char *kwnames[] = { | |
12975 | (char *) "self", NULL | |
12976 | }; | |
12977 | ||
12978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12981 | { | |
12982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12983 | (arg1)->EndPage(); | |
12984 | ||
12985 | wxPyEndAllowThreads(__tstate); | |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
12987 | } | |
12988 | Py_INCREF(Py_None); resultobj = Py_None; | |
12989 | return resultobj; | |
12990 | fail: | |
12991 | return NULL; | |
12992 | } | |
12993 | ||
12994 | ||
c370783e | 12995 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12996 | PyObject *resultobj; |
12997 | wxDC *arg1 = (wxDC *) 0 ; | |
12998 | wxFont *arg2 = 0 ; | |
12999 | PyObject * obj0 = 0 ; | |
13000 | PyObject * obj1 = 0 ; | |
13001 | char *kwnames[] = { | |
13002 | (char *) "self",(char *) "font", NULL | |
13003 | }; | |
13004 | ||
13005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
13006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13009 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13010 | SWIG_fail; | |
13011 | if (arg2 == NULL) { | |
13012 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13013 | SWIG_fail; | |
13014 | } | |
13015 | { | |
13016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13017 | (arg1)->SetFont((wxFont const &)*arg2); | |
13018 | ||
13019 | wxPyEndAllowThreads(__tstate); | |
13020 | if (PyErr_Occurred()) SWIG_fail; | |
13021 | } | |
13022 | Py_INCREF(Py_None); resultobj = Py_None; | |
13023 | return resultobj; | |
13024 | fail: | |
13025 | return NULL; | |
13026 | } | |
13027 | ||
13028 | ||
c370783e | 13029 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13030 | PyObject *resultobj; |
13031 | wxDC *arg1 = (wxDC *) 0 ; | |
13032 | wxPen *arg2 = 0 ; | |
13033 | PyObject * obj0 = 0 ; | |
13034 | PyObject * obj1 = 0 ; | |
13035 | char *kwnames[] = { | |
13036 | (char *) "self",(char *) "pen", NULL | |
13037 | }; | |
13038 | ||
13039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
13040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
13043 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13044 | SWIG_fail; | |
13045 | if (arg2 == NULL) { | |
13046 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13047 | SWIG_fail; | |
13048 | } | |
13049 | { | |
13050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13051 | (arg1)->SetPen((wxPen const &)*arg2); | |
13052 | ||
13053 | wxPyEndAllowThreads(__tstate); | |
13054 | if (PyErr_Occurred()) SWIG_fail; | |
13055 | } | |
13056 | Py_INCREF(Py_None); resultobj = Py_None; | |
13057 | return resultobj; | |
13058 | fail: | |
13059 | return NULL; | |
13060 | } | |
13061 | ||
13062 | ||
c370783e | 13063 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13064 | PyObject *resultobj; |
13065 | wxDC *arg1 = (wxDC *) 0 ; | |
13066 | wxBrush *arg2 = 0 ; | |
13067 | PyObject * obj0 = 0 ; | |
13068 | PyObject * obj1 = 0 ; | |
13069 | char *kwnames[] = { | |
13070 | (char *) "self",(char *) "brush", NULL | |
13071 | }; | |
13072 | ||
13073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
13074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13076 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13077 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13078 | SWIG_fail; | |
13079 | if (arg2 == NULL) { | |
13080 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13081 | SWIG_fail; | |
13082 | } | |
13083 | { | |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13085 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13086 | ||
13087 | wxPyEndAllowThreads(__tstate); | |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
13089 | } | |
13090 | Py_INCREF(Py_None); resultobj = Py_None; | |
13091 | return resultobj; | |
13092 | fail: | |
13093 | return NULL; | |
13094 | } | |
13095 | ||
13096 | ||
c370783e | 13097 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13098 | PyObject *resultobj; |
13099 | wxDC *arg1 = (wxDC *) 0 ; | |
13100 | wxBrush *arg2 = 0 ; | |
13101 | PyObject * obj0 = 0 ; | |
13102 | PyObject * obj1 = 0 ; | |
13103 | char *kwnames[] = { | |
13104 | (char *) "self",(char *) "brush", NULL | |
13105 | }; | |
13106 | ||
13107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
13108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13110 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13111 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13112 | SWIG_fail; | |
13113 | if (arg2 == NULL) { | |
13114 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13115 | SWIG_fail; | |
13116 | } | |
13117 | { | |
13118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13119 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13120 | ||
13121 | wxPyEndAllowThreads(__tstate); | |
13122 | if (PyErr_Occurred()) SWIG_fail; | |
13123 | } | |
13124 | Py_INCREF(Py_None); resultobj = Py_None; | |
13125 | return resultobj; | |
13126 | fail: | |
13127 | return NULL; | |
13128 | } | |
13129 | ||
13130 | ||
c370783e | 13131 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13132 | PyObject *resultobj; |
13133 | wxDC *arg1 = (wxDC *) 0 ; | |
13134 | int arg2 ; | |
13135 | PyObject * obj0 = 0 ; | |
13136 | PyObject * obj1 = 0 ; | |
13137 | char *kwnames[] = { | |
13138 | (char *) "self",(char *) "mode", NULL | |
13139 | }; | |
13140 | ||
13141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
13142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13144 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13145 | if (PyErr_Occurred()) SWIG_fail; |
13146 | { | |
13147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13148 | (arg1)->SetBackgroundMode(arg2); | |
13149 | ||
13150 | wxPyEndAllowThreads(__tstate); | |
13151 | if (PyErr_Occurred()) SWIG_fail; | |
13152 | } | |
13153 | Py_INCREF(Py_None); resultobj = Py_None; | |
13154 | return resultobj; | |
13155 | fail: | |
13156 | return NULL; | |
13157 | } | |
13158 | ||
13159 | ||
c370783e | 13160 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13161 | PyObject *resultobj; |
13162 | wxDC *arg1 = (wxDC *) 0 ; | |
13163 | wxPalette *arg2 = 0 ; | |
13164 | PyObject * obj0 = 0 ; | |
13165 | PyObject * obj1 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "self",(char *) "palette", NULL | |
13168 | }; | |
13169 | ||
13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
13171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13173 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13174 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13175 | SWIG_fail; | |
13176 | if (arg2 == NULL) { | |
13177 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13178 | SWIG_fail; | |
13179 | } | |
13180 | { | |
13181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13182 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13183 | ||
13184 | wxPyEndAllowThreads(__tstate); | |
13185 | if (PyErr_Occurred()) SWIG_fail; | |
13186 | } | |
13187 | Py_INCREF(Py_None); resultobj = Py_None; | |
13188 | return resultobj; | |
13189 | fail: | |
13190 | return NULL; | |
13191 | } | |
13192 | ||
13193 | ||
c370783e | 13194 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13195 | PyObject *resultobj; |
13196 | wxDC *arg1 = (wxDC *) 0 ; | |
13197 | PyObject * obj0 = 0 ; | |
13198 | char *kwnames[] = { | |
13199 | (char *) "self", NULL | |
13200 | }; | |
13201 | ||
13202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
13203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13205 | { | |
13206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13207 | (arg1)->DestroyClippingRegion(); | |
13208 | ||
13209 | wxPyEndAllowThreads(__tstate); | |
13210 | if (PyErr_Occurred()) SWIG_fail; | |
13211 | } | |
13212 | Py_INCREF(Py_None); resultobj = Py_None; | |
13213 | return resultobj; | |
13214 | fail: | |
13215 | return NULL; | |
13216 | } | |
13217 | ||
13218 | ||
c370783e | 13219 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13220 | PyObject *resultobj; |
13221 | wxDC *arg1 = (wxDC *) 0 ; | |
13222 | int *arg2 = (int *) 0 ; | |
13223 | int *arg3 = (int *) 0 ; | |
13224 | int *arg4 = (int *) 0 ; | |
13225 | int *arg5 = (int *) 0 ; | |
13226 | int temp2 ; | |
c370783e | 13227 | int res2 = 0 ; |
d55e5bfc | 13228 | int temp3 ; |
c370783e | 13229 | int res3 = 0 ; |
d55e5bfc | 13230 | int temp4 ; |
c370783e | 13231 | int res4 = 0 ; |
d55e5bfc | 13232 | int temp5 ; |
c370783e | 13233 | int res5 = 0 ; |
d55e5bfc RD |
13234 | PyObject * obj0 = 0 ; |
13235 | char *kwnames[] = { | |
13236 | (char *) "self", NULL | |
13237 | }; | |
13238 | ||
c370783e RD |
13239 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13240 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13241 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13242 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; |
13244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13246 | { | |
13247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13248 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13249 | ||
13250 | wxPyEndAllowThreads(__tstate); | |
13251 | if (PyErr_Occurred()) SWIG_fail; | |
13252 | } | |
13253 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
13254 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13255 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13256 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13257 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13258 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13259 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13260 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13261 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13262 | return resultobj; |
13263 | fail: | |
13264 | return NULL; | |
13265 | } | |
13266 | ||
13267 | ||
c370783e | 13268 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13269 | PyObject *resultobj; |
13270 | wxDC *arg1 = (wxDC *) 0 ; | |
13271 | wxRect result; | |
13272 | PyObject * obj0 = 0 ; | |
13273 | char *kwnames[] = { | |
13274 | (char *) "self", NULL | |
13275 | }; | |
13276 | ||
13277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
13278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13280 | { | |
13281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13282 | result = wxDC_GetClippingRect(arg1); | |
13283 | ||
13284 | wxPyEndAllowThreads(__tstate); | |
13285 | if (PyErr_Occurred()) SWIG_fail; | |
13286 | } | |
13287 | { | |
13288 | wxRect * resultptr; | |
13289 | resultptr = new wxRect((wxRect &) result); | |
13290 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13291 | } | |
13292 | return resultobj; | |
13293 | fail: | |
13294 | return NULL; | |
13295 | } | |
13296 | ||
13297 | ||
c370783e | 13298 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13299 | PyObject *resultobj; |
13300 | wxDC *arg1 = (wxDC *) 0 ; | |
13301 | int result; | |
13302 | PyObject * obj0 = 0 ; | |
13303 | char *kwnames[] = { | |
13304 | (char *) "self", NULL | |
13305 | }; | |
13306 | ||
13307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
13308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13310 | { | |
13311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13312 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
13313 | ||
13314 | wxPyEndAllowThreads(__tstate); | |
13315 | if (PyErr_Occurred()) SWIG_fail; | |
13316 | } | |
c370783e | 13317 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13318 | return resultobj; |
13319 | fail: | |
13320 | return NULL; | |
13321 | } | |
13322 | ||
13323 | ||
c370783e | 13324 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13325 | PyObject *resultobj; |
13326 | wxDC *arg1 = (wxDC *) 0 ; | |
13327 | int result; | |
13328 | PyObject * obj0 = 0 ; | |
13329 | char *kwnames[] = { | |
13330 | (char *) "self", NULL | |
13331 | }; | |
13332 | ||
13333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
13334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13336 | { | |
13337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13338 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
13339 | ||
13340 | wxPyEndAllowThreads(__tstate); | |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
13342 | } | |
c370783e | 13343 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13344 | return resultobj; |
13345 | fail: | |
13346 | return NULL; | |
13347 | } | |
13348 | ||
13349 | ||
c370783e | 13350 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13351 | PyObject *resultobj; |
13352 | wxDC *arg1 = (wxDC *) 0 ; | |
13353 | wxString *arg2 = 0 ; | |
13354 | int *arg3 = (int *) 0 ; | |
13355 | int *arg4 = (int *) 0 ; | |
b411df4a | 13356 | bool temp2 = false ; |
d55e5bfc | 13357 | int temp3 ; |
c370783e | 13358 | int res3 = 0 ; |
d55e5bfc | 13359 | int temp4 ; |
c370783e | 13360 | int res4 = 0 ; |
d55e5bfc RD |
13361 | PyObject * obj0 = 0 ; |
13362 | PyObject * obj1 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "self",(char *) "string", NULL | |
13365 | }; | |
13366 | ||
c370783e RD |
13367 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13368 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
13370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13372 | { | |
13373 | arg2 = wxString_in_helper(obj1); | |
13374 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13375 | temp2 = true; |
d55e5bfc RD |
13376 | } |
13377 | { | |
13378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13379 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13380 | ||
13381 | wxPyEndAllowThreads(__tstate); | |
13382 | if (PyErr_Occurred()) SWIG_fail; | |
13383 | } | |
13384 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
13385 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13386 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13387 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13388 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13389 | { |
13390 | if (temp2) | |
13391 | delete arg2; | |
13392 | } | |
13393 | return resultobj; | |
13394 | fail: | |
13395 | { | |
13396 | if (temp2) | |
13397 | delete arg2; | |
13398 | } | |
13399 | return NULL; | |
13400 | } | |
13401 | ||
13402 | ||
c370783e | 13403 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13404 | PyObject *resultobj; |
13405 | wxDC *arg1 = (wxDC *) 0 ; | |
13406 | wxString *arg2 = 0 ; | |
13407 | int *arg3 = (int *) 0 ; | |
13408 | int *arg4 = (int *) 0 ; | |
13409 | int *arg5 = (int *) 0 ; | |
13410 | int *arg6 = (int *) 0 ; | |
13411 | wxFont *arg7 = (wxFont *) NULL ; | |
b411df4a | 13412 | bool temp2 = false ; |
d55e5bfc | 13413 | int temp3 ; |
c370783e | 13414 | int res3 = 0 ; |
d55e5bfc | 13415 | int temp4 ; |
c370783e | 13416 | int res4 = 0 ; |
d55e5bfc | 13417 | int temp5 ; |
c370783e | 13418 | int res5 = 0 ; |
d55e5bfc | 13419 | int temp6 ; |
c370783e | 13420 | int res6 = 0 ; |
d55e5bfc RD |
13421 | PyObject * obj0 = 0 ; |
13422 | PyObject * obj1 = 0 ; | |
13423 | PyObject * obj2 = 0 ; | |
13424 | char *kwnames[] = { | |
13425 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13426 | }; | |
13427 | ||
c370783e RD |
13428 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13429 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13430 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13431 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13435 | { | |
13436 | arg2 = wxString_in_helper(obj1); | |
13437 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13438 | temp2 = true; |
d55e5bfc RD |
13439 | } |
13440 | if (obj2) { | |
13441 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
13442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13443 | } | |
13444 | { | |
13445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13446 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13447 | ||
13448 | wxPyEndAllowThreads(__tstate); | |
13449 | if (PyErr_Occurred()) SWIG_fail; | |
13450 | } | |
13451 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
13452 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13453 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13454 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13455 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13456 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13457 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
13458 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
13459 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13460 | { |
13461 | if (temp2) | |
13462 | delete arg2; | |
13463 | } | |
13464 | return resultobj; | |
13465 | fail: | |
13466 | { | |
13467 | if (temp2) | |
13468 | delete arg2; | |
13469 | } | |
13470 | return NULL; | |
13471 | } | |
13472 | ||
13473 | ||
c370783e | 13474 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13475 | PyObject *resultobj; |
13476 | wxDC *arg1 = (wxDC *) 0 ; | |
13477 | wxString *arg2 = 0 ; | |
13478 | int *arg3 = (int *) 0 ; | |
13479 | int *arg4 = (int *) 0 ; | |
13480 | int *arg5 = (int *) 0 ; | |
13481 | wxFont *arg6 = (wxFont *) NULL ; | |
b411df4a | 13482 | bool temp2 = false ; |
d55e5bfc | 13483 | int temp3 ; |
c370783e | 13484 | int res3 = 0 ; |
d55e5bfc | 13485 | int temp4 ; |
c370783e | 13486 | int res4 = 0 ; |
d55e5bfc | 13487 | int temp5 ; |
c370783e | 13488 | int res5 = 0 ; |
d55e5bfc RD |
13489 | PyObject * obj0 = 0 ; |
13490 | PyObject * obj1 = 0 ; | |
13491 | PyObject * obj2 = 0 ; | |
13492 | char *kwnames[] = { | |
13493 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13494 | }; | |
13495 | ||
c370783e RD |
13496 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
13497 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13498 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13502 | { | |
13503 | arg2 = wxString_in_helper(obj1); | |
13504 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13505 | temp2 = true; |
d55e5bfc RD |
13506 | } |
13507 | if (obj2) { | |
13508 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, | |
13509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13510 | } | |
13511 | { | |
13512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13513 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13514 | ||
13515 | wxPyEndAllowThreads(__tstate); | |
13516 | if (PyErr_Occurred()) SWIG_fail; | |
13517 | } | |
13518 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
13519 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
13520 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13521 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13522 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13523 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13524 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13525 | { |
13526 | if (temp2) | |
13527 | delete arg2; | |
13528 | } | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | { | |
13532 | if (temp2) | |
13533 | delete arg2; | |
13534 | } | |
13535 | return NULL; | |
13536 | } | |
13537 | ||
13538 | ||
c370783e | 13539 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13540 | PyObject *resultobj; |
13541 | wxDC *arg1 = (wxDC *) 0 ; | |
13542 | wxString *arg2 = 0 ; | |
13543 | wxArrayInt result; | |
b411df4a | 13544 | bool temp2 = false ; |
d55e5bfc RD |
13545 | PyObject * obj0 = 0 ; |
13546 | PyObject * obj1 = 0 ; | |
13547 | char *kwnames[] = { | |
13548 | (char *) "self",(char *) "text", NULL | |
13549 | }; | |
13550 | ||
13551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
13552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13554 | { | |
13555 | arg2 = wxString_in_helper(obj1); | |
13556 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13557 | temp2 = true; |
d55e5bfc RD |
13558 | } |
13559 | { | |
13560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13561 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13562 | ||
13563 | wxPyEndAllowThreads(__tstate); | |
13564 | if (PyErr_Occurred()) SWIG_fail; | |
13565 | } | |
13566 | { | |
13567 | resultobj = PyList_New(0); | |
13568 | size_t idx; | |
13569 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13570 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13571 | PyList_Append(resultobj, val); | |
13572 | Py_DECREF(val); | |
13573 | } | |
13574 | } | |
13575 | { | |
13576 | if (temp2) | |
13577 | delete arg2; | |
13578 | } | |
13579 | return resultobj; | |
13580 | fail: | |
13581 | { | |
13582 | if (temp2) | |
13583 | delete arg2; | |
13584 | } | |
13585 | return NULL; | |
13586 | } | |
13587 | ||
13588 | ||
c370783e | 13589 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13590 | PyObject *resultobj; |
13591 | wxDC *arg1 = (wxDC *) 0 ; | |
13592 | wxSize result; | |
13593 | PyObject * obj0 = 0 ; | |
13594 | char *kwnames[] = { | |
13595 | (char *) "self", NULL | |
13596 | }; | |
13597 | ||
13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
13599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13601 | { | |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | result = (arg1)->GetSize(); | |
13604 | ||
13605 | wxPyEndAllowThreads(__tstate); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
13608 | { | |
13609 | wxSize * resultptr; | |
13610 | resultptr = new wxSize((wxSize &) result); | |
13611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13612 | } | |
13613 | return resultobj; | |
13614 | fail: | |
13615 | return NULL; | |
13616 | } | |
13617 | ||
13618 | ||
c370783e | 13619 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13620 | PyObject *resultobj; |
13621 | wxDC *arg1 = (wxDC *) 0 ; | |
13622 | int *arg2 = (int *) 0 ; | |
13623 | int *arg3 = (int *) 0 ; | |
13624 | int temp2 ; | |
c370783e | 13625 | int res2 = 0 ; |
d55e5bfc | 13626 | int temp3 ; |
c370783e | 13627 | int res3 = 0 ; |
d55e5bfc RD |
13628 | PyObject * obj0 = 0 ; |
13629 | char *kwnames[] = { | |
13630 | (char *) "self", NULL | |
13631 | }; | |
13632 | ||
c370783e RD |
13633 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13634 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; |
13636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | (arg1)->GetSize(arg2,arg3); | |
13641 | ||
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
13646 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13647 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13648 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13649 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13650 | return resultobj; |
13651 | fail: | |
13652 | return NULL; | |
13653 | } | |
13654 | ||
13655 | ||
c370783e | 13656 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13657 | PyObject *resultobj; |
13658 | wxDC *arg1 = (wxDC *) 0 ; | |
13659 | wxSize result; | |
13660 | PyObject * obj0 = 0 ; | |
13661 | char *kwnames[] = { | |
13662 | (char *) "self", NULL | |
13663 | }; | |
13664 | ||
13665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
13666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13668 | { | |
13669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13670 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
13671 | ||
13672 | wxPyEndAllowThreads(__tstate); | |
13673 | if (PyErr_Occurred()) SWIG_fail; | |
13674 | } | |
13675 | { | |
13676 | wxSize * resultptr; | |
13677 | resultptr = new wxSize((wxSize &) result); | |
13678 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13679 | } | |
13680 | return resultobj; | |
13681 | fail: | |
13682 | return NULL; | |
13683 | } | |
13684 | ||
13685 | ||
c370783e | 13686 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13687 | PyObject *resultobj; |
13688 | wxDC *arg1 = (wxDC *) 0 ; | |
13689 | int *arg2 = (int *) 0 ; | |
13690 | int *arg3 = (int *) 0 ; | |
13691 | int temp2 ; | |
c370783e | 13692 | int res2 = 0 ; |
d55e5bfc | 13693 | int temp3 ; |
c370783e | 13694 | int res3 = 0 ; |
d55e5bfc RD |
13695 | PyObject * obj0 = 0 ; |
13696 | char *kwnames[] = { | |
13697 | (char *) "self", NULL | |
13698 | }; | |
13699 | ||
c370783e RD |
13700 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
13701 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
13702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
13703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13705 | { | |
13706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13707 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13708 | ||
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
13712 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
13713 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
13714 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13715 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13716 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
13717 | return resultobj; |
13718 | fail: | |
13719 | return NULL; | |
13720 | } | |
13721 | ||
13722 | ||
c370783e | 13723 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13724 | PyObject *resultobj; |
13725 | wxDC *arg1 = (wxDC *) 0 ; | |
13726 | int arg2 ; | |
13727 | int result; | |
13728 | PyObject * obj0 = 0 ; | |
13729 | PyObject * obj1 = 0 ; | |
13730 | char *kwnames[] = { | |
13731 | (char *) "self",(char *) "x", NULL | |
13732 | }; | |
13733 | ||
13734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; | |
13735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13737 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13738 | if (PyErr_Occurred()) SWIG_fail; |
13739 | { | |
13740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13741 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
13742 | ||
13743 | wxPyEndAllowThreads(__tstate); | |
13744 | if (PyErr_Occurred()) SWIG_fail; | |
13745 | } | |
c370783e | 13746 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13747 | return resultobj; |
13748 | fail: | |
13749 | return NULL; | |
13750 | } | |
13751 | ||
13752 | ||
c370783e | 13753 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13754 | PyObject *resultobj; |
13755 | wxDC *arg1 = (wxDC *) 0 ; | |
13756 | int arg2 ; | |
13757 | int result; | |
13758 | PyObject * obj0 = 0 ; | |
13759 | PyObject * obj1 = 0 ; | |
13760 | char *kwnames[] = { | |
13761 | (char *) "self",(char *) "y", NULL | |
13762 | }; | |
13763 | ||
13764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; | |
13765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13767 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13768 | if (PyErr_Occurred()) SWIG_fail; |
13769 | { | |
13770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13771 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
13772 | ||
13773 | wxPyEndAllowThreads(__tstate); | |
13774 | if (PyErr_Occurred()) SWIG_fail; | |
13775 | } | |
c370783e | 13776 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13777 | return resultobj; |
13778 | fail: | |
13779 | return NULL; | |
13780 | } | |
13781 | ||
13782 | ||
c370783e | 13783 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13784 | PyObject *resultobj; |
13785 | wxDC *arg1 = (wxDC *) 0 ; | |
13786 | int arg2 ; | |
13787 | int result; | |
13788 | PyObject * obj0 = 0 ; | |
13789 | PyObject * obj1 = 0 ; | |
13790 | char *kwnames[] = { | |
13791 | (char *) "self",(char *) "x", NULL | |
13792 | }; | |
13793 | ||
13794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; | |
13795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13797 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13798 | if (PyErr_Occurred()) SWIG_fail; |
13799 | { | |
13800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13801 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
13802 | ||
13803 | wxPyEndAllowThreads(__tstate); | |
13804 | if (PyErr_Occurred()) SWIG_fail; | |
13805 | } | |
c370783e | 13806 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13807 | return resultobj; |
13808 | fail: | |
13809 | return NULL; | |
13810 | } | |
13811 | ||
13812 | ||
c370783e | 13813 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13814 | PyObject *resultobj; |
13815 | wxDC *arg1 = (wxDC *) 0 ; | |
13816 | int arg2 ; | |
13817 | int result; | |
13818 | PyObject * obj0 = 0 ; | |
13819 | PyObject * obj1 = 0 ; | |
13820 | char *kwnames[] = { | |
13821 | (char *) "self",(char *) "y", NULL | |
13822 | }; | |
13823 | ||
13824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; | |
13825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13827 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13828 | if (PyErr_Occurred()) SWIG_fail; |
13829 | { | |
13830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13831 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
13832 | ||
13833 | wxPyEndAllowThreads(__tstate); | |
13834 | if (PyErr_Occurred()) SWIG_fail; | |
13835 | } | |
c370783e | 13836 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13837 | return resultobj; |
13838 | fail: | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
c370783e | 13843 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13844 | PyObject *resultobj; |
13845 | wxDC *arg1 = (wxDC *) 0 ; | |
13846 | int arg2 ; | |
13847 | int result; | |
13848 | PyObject * obj0 = 0 ; | |
13849 | PyObject * obj1 = 0 ; | |
13850 | char *kwnames[] = { | |
13851 | (char *) "self",(char *) "x", NULL | |
13852 | }; | |
13853 | ||
13854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; | |
13855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13857 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13858 | if (PyErr_Occurred()) SWIG_fail; |
13859 | { | |
13860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13861 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
13862 | ||
13863 | wxPyEndAllowThreads(__tstate); | |
13864 | if (PyErr_Occurred()) SWIG_fail; | |
13865 | } | |
c370783e | 13866 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13867 | return resultobj; |
13868 | fail: | |
13869 | return NULL; | |
13870 | } | |
13871 | ||
13872 | ||
c370783e | 13873 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13874 | PyObject *resultobj; |
13875 | wxDC *arg1 = (wxDC *) 0 ; | |
13876 | int arg2 ; | |
13877 | int result; | |
13878 | PyObject * obj0 = 0 ; | |
13879 | PyObject * obj1 = 0 ; | |
13880 | char *kwnames[] = { | |
13881 | (char *) "self",(char *) "y", NULL | |
13882 | }; | |
13883 | ||
13884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; | |
13885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13887 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13888 | if (PyErr_Occurred()) SWIG_fail; |
13889 | { | |
13890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13891 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
13892 | ||
13893 | wxPyEndAllowThreads(__tstate); | |
13894 | if (PyErr_Occurred()) SWIG_fail; | |
13895 | } | |
c370783e | 13896 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13897 | return resultobj; |
13898 | fail: | |
13899 | return NULL; | |
13900 | } | |
13901 | ||
13902 | ||
c370783e | 13903 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13904 | PyObject *resultobj; |
13905 | wxDC *arg1 = (wxDC *) 0 ; | |
13906 | int arg2 ; | |
13907 | int result; | |
13908 | PyObject * obj0 = 0 ; | |
13909 | PyObject * obj1 = 0 ; | |
13910 | char *kwnames[] = { | |
13911 | (char *) "self",(char *) "x", NULL | |
13912 | }; | |
13913 | ||
13914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; | |
13915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13917 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13918 | if (PyErr_Occurred()) SWIG_fail; |
13919 | { | |
13920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13921 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
13922 | ||
13923 | wxPyEndAllowThreads(__tstate); | |
13924 | if (PyErr_Occurred()) SWIG_fail; | |
13925 | } | |
c370783e | 13926 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13927 | return resultobj; |
13928 | fail: | |
13929 | return NULL; | |
13930 | } | |
13931 | ||
13932 | ||
c370783e | 13933 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13934 | PyObject *resultobj; |
13935 | wxDC *arg1 = (wxDC *) 0 ; | |
13936 | int arg2 ; | |
13937 | int result; | |
13938 | PyObject * obj0 = 0 ; | |
13939 | PyObject * obj1 = 0 ; | |
13940 | char *kwnames[] = { | |
13941 | (char *) "self",(char *) "y", NULL | |
13942 | }; | |
13943 | ||
13944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; | |
13945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13947 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13948 | if (PyErr_Occurred()) SWIG_fail; |
13949 | { | |
13950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13951 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
13952 | ||
13953 | wxPyEndAllowThreads(__tstate); | |
13954 | if (PyErr_Occurred()) SWIG_fail; | |
13955 | } | |
c370783e | 13956 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13957 | return resultobj; |
13958 | fail: | |
13959 | return NULL; | |
13960 | } | |
13961 | ||
13962 | ||
c370783e | 13963 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13964 | PyObject *resultobj; |
13965 | wxDC *arg1 = (wxDC *) 0 ; | |
13966 | bool result; | |
13967 | PyObject * obj0 = 0 ; | |
13968 | char *kwnames[] = { | |
13969 | (char *) "self", NULL | |
13970 | }; | |
13971 | ||
13972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13975 | { | |
13976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13977 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13978 | ||
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
13982 | { | |
13983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13984 | } | |
13985 | return resultobj; | |
13986 | fail: | |
13987 | return NULL; | |
13988 | } | |
13989 | ||
13990 | ||
c370783e | 13991 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13992 | PyObject *resultobj; |
13993 | wxDC *arg1 = (wxDC *) 0 ; | |
13994 | bool result; | |
13995 | PyObject * obj0 = 0 ; | |
13996 | char *kwnames[] = { | |
13997 | (char *) "self", NULL | |
13998 | }; | |
13999 | ||
14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
14001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14003 | { | |
14004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14005 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
14006 | ||
14007 | wxPyEndAllowThreads(__tstate); | |
14008 | if (PyErr_Occurred()) SWIG_fail; | |
14009 | } | |
14010 | { | |
14011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14012 | } | |
14013 | return resultobj; | |
14014 | fail: | |
14015 | return NULL; | |
14016 | } | |
14017 | ||
14018 | ||
c370783e | 14019 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14020 | PyObject *resultobj; |
14021 | wxDC *arg1 = (wxDC *) 0 ; | |
14022 | int result; | |
14023 | PyObject * obj0 = 0 ; | |
14024 | char *kwnames[] = { | |
14025 | (char *) "self", NULL | |
14026 | }; | |
14027 | ||
14028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
14029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14031 | { | |
14032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14033 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
14034 | ||
14035 | wxPyEndAllowThreads(__tstate); | |
14036 | if (PyErr_Occurred()) SWIG_fail; | |
14037 | } | |
c370783e | 14038 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14039 | return resultobj; |
14040 | fail: | |
14041 | return NULL; | |
14042 | } | |
14043 | ||
14044 | ||
c370783e | 14045 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14046 | PyObject *resultobj; |
14047 | wxDC *arg1 = (wxDC *) 0 ; | |
14048 | wxSize result; | |
14049 | PyObject * obj0 = 0 ; | |
14050 | char *kwnames[] = { | |
14051 | (char *) "self", NULL | |
14052 | }; | |
14053 | ||
14054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
14055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14057 | { | |
14058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14059 | result = ((wxDC const *)arg1)->GetPPI(); | |
14060 | ||
14061 | wxPyEndAllowThreads(__tstate); | |
14062 | if (PyErr_Occurred()) SWIG_fail; | |
14063 | } | |
14064 | { | |
14065 | wxSize * resultptr; | |
14066 | resultptr = new wxSize((wxSize &) result); | |
14067 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14068 | } | |
14069 | return resultobj; | |
14070 | fail: | |
14071 | return NULL; | |
14072 | } | |
14073 | ||
14074 | ||
c370783e | 14075 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14076 | PyObject *resultobj; |
14077 | wxDC *arg1 = (wxDC *) 0 ; | |
14078 | bool result; | |
14079 | PyObject * obj0 = 0 ; | |
14080 | char *kwnames[] = { | |
14081 | (char *) "self", NULL | |
14082 | }; | |
14083 | ||
14084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
14085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14087 | { | |
14088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14089 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14090 | ||
14091 | wxPyEndAllowThreads(__tstate); | |
14092 | if (PyErr_Occurred()) SWIG_fail; | |
14093 | } | |
14094 | { | |
14095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14096 | } | |
14097 | return resultobj; | |
14098 | fail: | |
14099 | return NULL; | |
14100 | } | |
14101 | ||
14102 | ||
c370783e | 14103 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14104 | PyObject *resultobj; |
14105 | wxDC *arg1 = (wxDC *) 0 ; | |
14106 | int result; | |
14107 | PyObject * obj0 = 0 ; | |
14108 | char *kwnames[] = { | |
14109 | (char *) "self", NULL | |
14110 | }; | |
14111 | ||
14112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
14113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14115 | { | |
14116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14117 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14118 | ||
14119 | wxPyEndAllowThreads(__tstate); | |
14120 | if (PyErr_Occurred()) SWIG_fail; | |
14121 | } | |
c370783e | 14122 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14123 | return resultobj; |
14124 | fail: | |
14125 | return NULL; | |
14126 | } | |
14127 | ||
14128 | ||
c370783e | 14129 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14130 | PyObject *resultobj; |
14131 | wxDC *arg1 = (wxDC *) 0 ; | |
14132 | wxBrush *result; | |
14133 | PyObject * obj0 = 0 ; | |
14134 | char *kwnames[] = { | |
14135 | (char *) "self", NULL | |
14136 | }; | |
14137 | ||
14138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
14139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14141 | { | |
14142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14143 | { | |
14144 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14145 | result = (wxBrush *) &_result_ref; | |
14146 | } | |
14147 | ||
14148 | wxPyEndAllowThreads(__tstate); | |
14149 | if (PyErr_Occurred()) SWIG_fail; | |
14150 | } | |
14151 | { | |
14152 | wxBrush* resultptr = new wxBrush(*result); | |
14153 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14154 | } | |
14155 | return resultobj; | |
14156 | fail: | |
14157 | return NULL; | |
14158 | } | |
14159 | ||
14160 | ||
c370783e | 14161 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14162 | PyObject *resultobj; |
14163 | wxDC *arg1 = (wxDC *) 0 ; | |
14164 | wxBrush *result; | |
14165 | PyObject * obj0 = 0 ; | |
14166 | char *kwnames[] = { | |
14167 | (char *) "self", NULL | |
14168 | }; | |
14169 | ||
14170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
14171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14173 | { | |
14174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14175 | { | |
14176 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14177 | result = (wxBrush *) &_result_ref; | |
14178 | } | |
14179 | ||
14180 | wxPyEndAllowThreads(__tstate); | |
14181 | if (PyErr_Occurred()) SWIG_fail; | |
14182 | } | |
14183 | { | |
14184 | wxBrush* resultptr = new wxBrush(*result); | |
14185 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14186 | } | |
14187 | return resultobj; | |
14188 | fail: | |
14189 | return NULL; | |
14190 | } | |
14191 | ||
14192 | ||
c370783e | 14193 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14194 | PyObject *resultobj; |
14195 | wxDC *arg1 = (wxDC *) 0 ; | |
14196 | wxFont *result; | |
14197 | PyObject * obj0 = 0 ; | |
14198 | char *kwnames[] = { | |
14199 | (char *) "self", NULL | |
14200 | }; | |
14201 | ||
14202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
14203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14205 | { | |
14206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14207 | { | |
14208 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14209 | result = (wxFont *) &_result_ref; | |
14210 | } | |
14211 | ||
14212 | wxPyEndAllowThreads(__tstate); | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | } | |
14215 | { | |
14216 | wxFont* resultptr = new wxFont(*result); | |
14217 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14218 | } | |
14219 | return resultobj; | |
14220 | fail: | |
14221 | return NULL; | |
14222 | } | |
14223 | ||
14224 | ||
c370783e | 14225 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14226 | PyObject *resultobj; |
14227 | wxDC *arg1 = (wxDC *) 0 ; | |
14228 | wxPen *result; | |
14229 | PyObject * obj0 = 0 ; | |
14230 | char *kwnames[] = { | |
14231 | (char *) "self", NULL | |
14232 | }; | |
14233 | ||
14234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
14235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14237 | { | |
14238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14239 | { | |
14240 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14241 | result = (wxPen *) &_result_ref; | |
14242 | } | |
14243 | ||
14244 | wxPyEndAllowThreads(__tstate); | |
14245 | if (PyErr_Occurred()) SWIG_fail; | |
14246 | } | |
14247 | { | |
14248 | wxPen* resultptr = new wxPen(*result); | |
14249 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14250 | } | |
14251 | return resultobj; | |
14252 | fail: | |
14253 | return NULL; | |
14254 | } | |
14255 | ||
14256 | ||
c370783e | 14257 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14258 | PyObject *resultobj; |
14259 | wxDC *arg1 = (wxDC *) 0 ; | |
14260 | wxColour *result; | |
14261 | PyObject * obj0 = 0 ; | |
14262 | char *kwnames[] = { | |
14263 | (char *) "self", NULL | |
14264 | }; | |
14265 | ||
14266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
14267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14269 | { | |
14270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14271 | { | |
14272 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14273 | result = (wxColour *) &_result_ref; | |
14274 | } | |
14275 | ||
14276 | wxPyEndAllowThreads(__tstate); | |
14277 | if (PyErr_Occurred()) SWIG_fail; | |
14278 | } | |
14279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14280 | return resultobj; | |
14281 | fail: | |
14282 | return NULL; | |
14283 | } | |
14284 | ||
14285 | ||
c370783e | 14286 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14287 | PyObject *resultobj; |
14288 | wxDC *arg1 = (wxDC *) 0 ; | |
14289 | wxColour *result; | |
14290 | PyObject * obj0 = 0 ; | |
14291 | char *kwnames[] = { | |
14292 | (char *) "self", NULL | |
14293 | }; | |
14294 | ||
14295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
14296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14298 | { | |
14299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14300 | { | |
14301 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14302 | result = (wxColour *) &_result_ref; | |
14303 | } | |
14304 | ||
14305 | wxPyEndAllowThreads(__tstate); | |
14306 | if (PyErr_Occurred()) SWIG_fail; | |
14307 | } | |
14308 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14309 | return resultobj; | |
14310 | fail: | |
14311 | return NULL; | |
14312 | } | |
14313 | ||
14314 | ||
c370783e | 14315 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14316 | PyObject *resultobj; |
14317 | wxDC *arg1 = (wxDC *) 0 ; | |
14318 | wxColour *arg2 = 0 ; | |
14319 | wxColour temp2 ; | |
14320 | PyObject * obj0 = 0 ; | |
14321 | PyObject * obj1 = 0 ; | |
14322 | char *kwnames[] = { | |
14323 | (char *) "self",(char *) "colour", NULL | |
14324 | }; | |
14325 | ||
14326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
14327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14329 | { | |
14330 | arg2 = &temp2; | |
14331 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14332 | } | |
14333 | { | |
14334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14335 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14336 | ||
14337 | wxPyEndAllowThreads(__tstate); | |
14338 | if (PyErr_Occurred()) SWIG_fail; | |
14339 | } | |
14340 | Py_INCREF(Py_None); resultobj = Py_None; | |
14341 | return resultobj; | |
14342 | fail: | |
14343 | return NULL; | |
14344 | } | |
14345 | ||
14346 | ||
c370783e | 14347 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14348 | PyObject *resultobj; |
14349 | wxDC *arg1 = (wxDC *) 0 ; | |
14350 | wxColour *arg2 = 0 ; | |
14351 | wxColour temp2 ; | |
14352 | PyObject * obj0 = 0 ; | |
14353 | PyObject * obj1 = 0 ; | |
14354 | char *kwnames[] = { | |
14355 | (char *) "self",(char *) "colour", NULL | |
14356 | }; | |
14357 | ||
14358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
14359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14361 | { | |
14362 | arg2 = &temp2; | |
14363 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14364 | } | |
14365 | { | |
14366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14367 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14368 | ||
14369 | wxPyEndAllowThreads(__tstate); | |
14370 | if (PyErr_Occurred()) SWIG_fail; | |
14371 | } | |
14372 | Py_INCREF(Py_None); resultobj = Py_None; | |
14373 | return resultobj; | |
14374 | fail: | |
14375 | return NULL; | |
14376 | } | |
14377 | ||
14378 | ||
c370783e | 14379 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14380 | PyObject *resultobj; |
14381 | wxDC *arg1 = (wxDC *) 0 ; | |
14382 | int result; | |
14383 | PyObject * obj0 = 0 ; | |
14384 | char *kwnames[] = { | |
14385 | (char *) "self", NULL | |
14386 | }; | |
14387 | ||
14388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
14389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14391 | { | |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14393 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14394 | ||
14395 | wxPyEndAllowThreads(__tstate); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | } | |
c370783e | 14398 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14399 | return resultobj; |
14400 | fail: | |
14401 | return NULL; | |
14402 | } | |
14403 | ||
14404 | ||
c370783e | 14405 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14406 | PyObject *resultobj; |
14407 | wxDC *arg1 = (wxDC *) 0 ; | |
14408 | int arg2 ; | |
14409 | PyObject * obj0 = 0 ; | |
14410 | PyObject * obj1 = 0 ; | |
14411 | char *kwnames[] = { | |
14412 | (char *) "self",(char *) "mode", NULL | |
14413 | }; | |
14414 | ||
14415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; | |
14416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14418 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14419 | if (PyErr_Occurred()) SWIG_fail; |
14420 | { | |
14421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14422 | (arg1)->SetMapMode(arg2); | |
14423 | ||
14424 | wxPyEndAllowThreads(__tstate); | |
14425 | if (PyErr_Occurred()) SWIG_fail; | |
14426 | } | |
14427 | Py_INCREF(Py_None); resultobj = Py_None; | |
14428 | return resultobj; | |
14429 | fail: | |
14430 | return NULL; | |
14431 | } | |
14432 | ||
14433 | ||
c370783e | 14434 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14435 | PyObject *resultobj; |
14436 | wxDC *arg1 = (wxDC *) 0 ; | |
14437 | double *arg2 = (double *) 0 ; | |
14438 | double *arg3 = (double *) 0 ; | |
14439 | double temp2 ; | |
c370783e | 14440 | int res2 = 0 ; |
d55e5bfc | 14441 | double temp3 ; |
c370783e | 14442 | int res3 = 0 ; |
d55e5bfc RD |
14443 | PyObject * obj0 = 0 ; |
14444 | char *kwnames[] = { | |
14445 | (char *) "self", NULL | |
14446 | }; | |
14447 | ||
c370783e RD |
14448 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14449 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; |
14451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14453 | { | |
14454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14455 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14456 | ||
14457 | wxPyEndAllowThreads(__tstate); | |
14458 | if (PyErr_Occurred()) SWIG_fail; | |
14459 | } | |
14460 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
14461 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14462 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14463 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14464 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
14465 | return resultobj; |
14466 | fail: | |
14467 | return NULL; | |
14468 | } | |
14469 | ||
14470 | ||
c370783e | 14471 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14472 | PyObject *resultobj; |
14473 | wxDC *arg1 = (wxDC *) 0 ; | |
14474 | double arg2 ; | |
14475 | double arg3 ; | |
14476 | PyObject * obj0 = 0 ; | |
14477 | PyObject * obj1 = 0 ; | |
14478 | PyObject * obj2 = 0 ; | |
14479 | char *kwnames[] = { | |
14480 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14481 | }; | |
14482 | ||
14483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14486 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 14487 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14488 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
14489 | if (PyErr_Occurred()) SWIG_fail; |
14490 | { | |
14491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14492 | (arg1)->SetUserScale(arg2,arg3); | |
14493 | ||
14494 | wxPyEndAllowThreads(__tstate); | |
14495 | if (PyErr_Occurred()) SWIG_fail; | |
14496 | } | |
14497 | Py_INCREF(Py_None); resultobj = Py_None; | |
14498 | return resultobj; | |
14499 | fail: | |
14500 | return NULL; | |
14501 | } | |
14502 | ||
14503 | ||
c370783e | 14504 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14505 | PyObject *resultobj; |
14506 | wxDC *arg1 = (wxDC *) 0 ; | |
14507 | double *arg2 = (double *) 0 ; | |
14508 | double *arg3 = (double *) 0 ; | |
14509 | double temp2 ; | |
c370783e | 14510 | int res2 = 0 ; |
d55e5bfc | 14511 | double temp3 ; |
c370783e | 14512 | int res3 = 0 ; |
d55e5bfc RD |
14513 | PyObject * obj0 = 0 ; |
14514 | char *kwnames[] = { | |
14515 | (char *) "self", NULL | |
14516 | }; | |
14517 | ||
c370783e RD |
14518 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14519 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; |
14521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14523 | { | |
14524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14525 | (arg1)->GetLogicalScale(arg2,arg3); | |
14526 | ||
14527 | wxPyEndAllowThreads(__tstate); | |
14528 | if (PyErr_Occurred()) SWIG_fail; | |
14529 | } | |
14530 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
14531 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14532 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14533 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14534 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
d55e5bfc RD |
14535 | return resultobj; |
14536 | fail: | |
14537 | return NULL; | |
14538 | } | |
14539 | ||
14540 | ||
c370783e | 14541 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14542 | PyObject *resultobj; |
14543 | wxDC *arg1 = (wxDC *) 0 ; | |
14544 | double arg2 ; | |
14545 | double arg3 ; | |
14546 | PyObject * obj0 = 0 ; | |
14547 | PyObject * obj1 = 0 ; | |
14548 | PyObject * obj2 = 0 ; | |
14549 | char *kwnames[] = { | |
14550 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14551 | }; | |
14552 | ||
14553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14556 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 14557 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14558 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
14559 | if (PyErr_Occurred()) SWIG_fail; |
14560 | { | |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | (arg1)->SetLogicalScale(arg2,arg3); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
14567 | Py_INCREF(Py_None); resultobj = Py_None; | |
14568 | return resultobj; | |
14569 | fail: | |
14570 | return NULL; | |
14571 | } | |
14572 | ||
14573 | ||
c370783e | 14574 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14575 | PyObject *resultobj; |
14576 | wxDC *arg1 = (wxDC *) 0 ; | |
14577 | wxPoint result; | |
14578 | PyObject * obj0 = 0 ; | |
14579 | char *kwnames[] = { | |
14580 | (char *) "self", NULL | |
14581 | }; | |
14582 | ||
14583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
14584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14586 | { | |
14587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14588 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
14589 | ||
14590 | wxPyEndAllowThreads(__tstate); | |
14591 | if (PyErr_Occurred()) SWIG_fail; | |
14592 | } | |
14593 | { | |
14594 | wxPoint * resultptr; | |
14595 | resultptr = new wxPoint((wxPoint &) result); | |
14596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14597 | } | |
14598 | return resultobj; | |
14599 | fail: | |
14600 | return NULL; | |
14601 | } | |
14602 | ||
14603 | ||
c370783e | 14604 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14605 | PyObject *resultobj; |
14606 | wxDC *arg1 = (wxDC *) 0 ; | |
14607 | int *arg2 = (int *) 0 ; | |
14608 | int *arg3 = (int *) 0 ; | |
14609 | int temp2 ; | |
c370783e | 14610 | int res2 = 0 ; |
d55e5bfc | 14611 | int temp3 ; |
c370783e | 14612 | int res3 = 0 ; |
d55e5bfc RD |
14613 | PyObject * obj0 = 0 ; |
14614 | char *kwnames[] = { | |
14615 | (char *) "self", NULL | |
14616 | }; | |
14617 | ||
c370783e RD |
14618 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14619 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; |
14621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14623 | { | |
14624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14625 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
14626 | ||
14627 | wxPyEndAllowThreads(__tstate); | |
14628 | if (PyErr_Occurred()) SWIG_fail; | |
14629 | } | |
14630 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
14631 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14632 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14633 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14634 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
14635 | return resultobj; |
14636 | fail: | |
14637 | return NULL; | |
14638 | } | |
14639 | ||
14640 | ||
c370783e | 14641 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14642 | PyObject *resultobj; |
14643 | wxDC *arg1 = (wxDC *) 0 ; | |
14644 | int arg2 ; | |
14645 | int arg3 ; | |
14646 | PyObject * obj0 = 0 ; | |
14647 | PyObject * obj1 = 0 ; | |
14648 | PyObject * obj2 = 0 ; | |
14649 | char *kwnames[] = { | |
14650 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14651 | }; | |
14652 | ||
14653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14656 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 14657 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14658 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14659 | if (PyErr_Occurred()) SWIG_fail; |
14660 | { | |
14661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14662 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14663 | ||
14664 | wxPyEndAllowThreads(__tstate); | |
14665 | if (PyErr_Occurred()) SWIG_fail; | |
14666 | } | |
14667 | Py_INCREF(Py_None); resultobj = Py_None; | |
14668 | return resultobj; | |
14669 | fail: | |
14670 | return NULL; | |
14671 | } | |
14672 | ||
14673 | ||
c370783e | 14674 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
14675 | PyObject *resultobj; |
14676 | wxDC *arg1 = (wxDC *) 0 ; | |
14677 | wxPoint *arg2 = 0 ; | |
14678 | wxPoint temp2 ; | |
14679 | PyObject * obj0 = 0 ; | |
14680 | PyObject * obj1 = 0 ; | |
14681 | char *kwnames[] = { | |
14682 | (char *) "self",(char *) "point", NULL | |
14683 | }; | |
14684 | ||
14685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14688 | { | |
14689 | arg2 = &temp2; | |
14690 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14691 | } | |
14692 | { | |
14693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14694 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14695 | ||
14696 | wxPyEndAllowThreads(__tstate); | |
14697 | if (PyErr_Occurred()) SWIG_fail; | |
14698 | } | |
14699 | Py_INCREF(Py_None); resultobj = Py_None; | |
14700 | return resultobj; | |
14701 | fail: | |
14702 | return NULL; | |
14703 | } | |
14704 | ||
14705 | ||
c370783e | 14706 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14707 | PyObject *resultobj; |
14708 | wxDC *arg1 = (wxDC *) 0 ; | |
14709 | wxPoint result; | |
14710 | PyObject * obj0 = 0 ; | |
14711 | char *kwnames[] = { | |
14712 | (char *) "self", NULL | |
14713 | }; | |
14714 | ||
14715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
14716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14718 | { | |
14719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14720 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
14721 | ||
14722 | wxPyEndAllowThreads(__tstate); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
14724 | } | |
14725 | { | |
14726 | wxPoint * resultptr; | |
14727 | resultptr = new wxPoint((wxPoint &) result); | |
14728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14729 | } | |
14730 | return resultobj; | |
14731 | fail: | |
14732 | return NULL; | |
14733 | } | |
14734 | ||
14735 | ||
c370783e | 14736 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14737 | PyObject *resultobj; |
14738 | wxDC *arg1 = (wxDC *) 0 ; | |
14739 | int *arg2 = (int *) 0 ; | |
14740 | int *arg3 = (int *) 0 ; | |
14741 | int temp2 ; | |
c370783e | 14742 | int res2 = 0 ; |
d55e5bfc | 14743 | int temp3 ; |
c370783e | 14744 | int res3 = 0 ; |
d55e5bfc RD |
14745 | PyObject * obj0 = 0 ; |
14746 | char *kwnames[] = { | |
14747 | (char *) "self", NULL | |
14748 | }; | |
14749 | ||
c370783e RD |
14750 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14751 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; |
14753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14755 | { | |
14756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14757 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
14758 | ||
14759 | wxPyEndAllowThreads(__tstate); | |
14760 | if (PyErr_Occurred()) SWIG_fail; | |
14761 | } | |
14762 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
14763 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14764 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14765 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14766 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
14767 | return resultobj; |
14768 | fail: | |
14769 | return NULL; | |
14770 | } | |
14771 | ||
14772 | ||
c370783e | 14773 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14774 | PyObject *resultobj; |
14775 | wxDC *arg1 = (wxDC *) 0 ; | |
14776 | int arg2 ; | |
14777 | int arg3 ; | |
14778 | PyObject * obj0 = 0 ; | |
14779 | PyObject * obj1 = 0 ; | |
14780 | PyObject * obj2 = 0 ; | |
14781 | char *kwnames[] = { | |
14782 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14783 | }; | |
14784 | ||
14785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14788 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 14789 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14790 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14791 | if (PyErr_Occurred()) SWIG_fail; |
14792 | { | |
14793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14794 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14795 | ||
14796 | wxPyEndAllowThreads(__tstate); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | } | |
14799 | Py_INCREF(Py_None); resultobj = Py_None; | |
14800 | return resultobj; | |
14801 | fail: | |
14802 | return NULL; | |
14803 | } | |
14804 | ||
14805 | ||
c370783e | 14806 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
14807 | PyObject *resultobj; |
14808 | wxDC *arg1 = (wxDC *) 0 ; | |
14809 | wxPoint *arg2 = 0 ; | |
14810 | wxPoint temp2 ; | |
14811 | PyObject * obj0 = 0 ; | |
14812 | PyObject * obj1 = 0 ; | |
14813 | char *kwnames[] = { | |
14814 | (char *) "self",(char *) "point", NULL | |
14815 | }; | |
14816 | ||
14817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14820 | { | |
14821 | arg2 = &temp2; | |
14822 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14823 | } | |
14824 | { | |
14825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14826 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
14827 | ||
14828 | wxPyEndAllowThreads(__tstate); | |
14829 | if (PyErr_Occurred()) SWIG_fail; | |
14830 | } | |
14831 | Py_INCREF(Py_None); resultobj = Py_None; | |
14832 | return resultobj; | |
14833 | fail: | |
14834 | return NULL; | |
14835 | } | |
14836 | ||
14837 | ||
c370783e | 14838 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14839 | PyObject *resultobj; |
14840 | wxDC *arg1 = (wxDC *) 0 ; | |
14841 | bool arg2 ; | |
14842 | bool arg3 ; | |
14843 | PyObject * obj0 = 0 ; | |
14844 | PyObject * obj1 = 0 ; | |
14845 | PyObject * obj2 = 0 ; | |
14846 | char *kwnames[] = { | |
14847 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14848 | }; | |
14849 | ||
14850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14853 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc | 14854 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14855 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
14856 | if (PyErr_Occurred()) SWIG_fail; |
14857 | { | |
14858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14859 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14860 | ||
14861 | wxPyEndAllowThreads(__tstate); | |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
14863 | } | |
14864 | Py_INCREF(Py_None); resultobj = Py_None; | |
14865 | return resultobj; | |
14866 | fail: | |
14867 | return NULL; | |
14868 | } | |
14869 | ||
14870 | ||
c370783e | 14871 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14872 | PyObject *resultobj; |
14873 | wxDC *arg1 = (wxDC *) 0 ; | |
14874 | int result; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | char *kwnames[] = { | |
14877 | (char *) "self", NULL | |
14878 | }; | |
14879 | ||
14880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
14881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14883 | { | |
14884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14885 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14886 | ||
14887 | wxPyEndAllowThreads(__tstate); | |
14888 | if (PyErr_Occurred()) SWIG_fail; | |
14889 | } | |
c370783e | 14890 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14891 | return resultobj; |
14892 | fail: | |
14893 | return NULL; | |
14894 | } | |
14895 | ||
14896 | ||
c370783e | 14897 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14898 | PyObject *resultobj; |
14899 | wxDC *arg1 = (wxDC *) 0 ; | |
14900 | int arg2 ; | |
14901 | PyObject * obj0 = 0 ; | |
14902 | PyObject * obj1 = 0 ; | |
14903 | char *kwnames[] = { | |
14904 | (char *) "self",(char *) "function", NULL | |
14905 | }; | |
14906 | ||
14907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; | |
14908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14910 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14911 | if (PyErr_Occurred()) SWIG_fail; |
14912 | { | |
14913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14914 | (arg1)->SetLogicalFunction(arg2); | |
14915 | ||
14916 | wxPyEndAllowThreads(__tstate); | |
14917 | if (PyErr_Occurred()) SWIG_fail; | |
14918 | } | |
14919 | Py_INCREF(Py_None); resultobj = Py_None; | |
14920 | return resultobj; | |
14921 | fail: | |
14922 | return NULL; | |
14923 | } | |
14924 | ||
14925 | ||
5cbf236d | 14926 | static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14927 | PyObject *resultobj; |
14928 | wxDC *arg1 = (wxDC *) 0 ; | |
d55e5bfc RD |
14929 | PyObject * obj0 = 0 ; |
14930 | char *kwnames[] = { | |
14931 | (char *) "self", NULL | |
14932 | }; | |
14933 | ||
5cbf236d | 14934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
14935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14937 | { | |
14938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5cbf236d | 14939 | (arg1)->ComputeScaleAndOrigin(); |
d55e5bfc RD |
14940 | |
14941 | wxPyEndAllowThreads(__tstate); | |
14942 | if (PyErr_Occurred()) SWIG_fail; | |
14943 | } | |
5cbf236d | 14944 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
14945 | return resultobj; |
14946 | fail: | |
14947 | return NULL; | |
14948 | } | |
14949 | ||
14950 | ||
c370783e | 14951 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14952 | PyObject *resultobj; |
14953 | wxDC *arg1 = (wxDC *) 0 ; | |
14954 | int arg2 ; | |
14955 | int arg3 ; | |
14956 | PyObject * obj0 = 0 ; | |
14957 | PyObject * obj1 = 0 ; | |
14958 | PyObject * obj2 = 0 ; | |
14959 | char *kwnames[] = { | |
14960 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14961 | }; | |
14962 | ||
14963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14966 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 14967 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 14968 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
14969 | if (PyErr_Occurred()) SWIG_fail; |
14970 | { | |
14971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14972 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14973 | ||
14974 | wxPyEndAllowThreads(__tstate); | |
14975 | if (PyErr_Occurred()) SWIG_fail; | |
14976 | } | |
14977 | Py_INCREF(Py_None); resultobj = Py_None; | |
14978 | return resultobj; | |
14979 | fail: | |
14980 | return NULL; | |
14981 | } | |
14982 | ||
14983 | ||
c370783e | 14984 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d6c14a4c RD |
14985 | PyObject *resultobj; |
14986 | wxDC *arg1 = (wxDC *) 0 ; | |
14987 | wxPoint *arg2 = 0 ; | |
14988 | wxPoint temp2 ; | |
14989 | PyObject * obj0 = 0 ; | |
14990 | PyObject * obj1 = 0 ; | |
14991 | char *kwnames[] = { | |
14992 | (char *) "self",(char *) "point", NULL | |
14993 | }; | |
14994 | ||
14995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
14996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14998 | { | |
14999 | arg2 = &temp2; | |
15000 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15001 | } | |
15002 | { | |
15003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15004 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
15005 | ||
15006 | wxPyEndAllowThreads(__tstate); | |
15007 | if (PyErr_Occurred()) SWIG_fail; | |
15008 | } | |
15009 | Py_INCREF(Py_None); resultobj = Py_None; | |
15010 | return resultobj; | |
15011 | fail: | |
15012 | return NULL; | |
15013 | } | |
15014 | ||
15015 | ||
c370783e | 15016 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15017 | PyObject *resultobj; |
15018 | wxDC *arg1 = (wxDC *) 0 ; | |
15019 | PyObject * obj0 = 0 ; | |
15020 | char *kwnames[] = { | |
15021 | (char *) "self", NULL | |
15022 | }; | |
15023 | ||
15024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15027 | { | |
15028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15029 | (arg1)->ResetBoundingBox(); | |
15030 | ||
15031 | wxPyEndAllowThreads(__tstate); | |
15032 | if (PyErr_Occurred()) SWIG_fail; | |
15033 | } | |
15034 | Py_INCREF(Py_None); resultobj = Py_None; | |
15035 | return resultobj; | |
15036 | fail: | |
15037 | return NULL; | |
15038 | } | |
15039 | ||
15040 | ||
c370783e | 15041 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15042 | PyObject *resultobj; |
15043 | wxDC *arg1 = (wxDC *) 0 ; | |
15044 | int result; | |
15045 | PyObject * obj0 = 0 ; | |
15046 | char *kwnames[] = { | |
15047 | (char *) "self", NULL | |
15048 | }; | |
15049 | ||
15050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15053 | { | |
15054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15055 | result = (int)((wxDC const *)arg1)->MinX(); | |
15056 | ||
15057 | wxPyEndAllowThreads(__tstate); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
c370783e | 15060 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15061 | return resultobj; |
15062 | fail: | |
15063 | return NULL; | |
15064 | } | |
15065 | ||
15066 | ||
c370783e | 15067 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15068 | PyObject *resultobj; |
15069 | wxDC *arg1 = (wxDC *) 0 ; | |
15070 | int result; | |
15071 | PyObject * obj0 = 0 ; | |
15072 | char *kwnames[] = { | |
15073 | (char *) "self", NULL | |
15074 | }; | |
15075 | ||
15076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15079 | { | |
15080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15081 | result = (int)((wxDC const *)arg1)->MaxX(); | |
15082 | ||
15083 | wxPyEndAllowThreads(__tstate); | |
15084 | if (PyErr_Occurred()) SWIG_fail; | |
15085 | } | |
c370783e | 15086 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15087 | return resultobj; |
15088 | fail: | |
15089 | return NULL; | |
15090 | } | |
15091 | ||
15092 | ||
c370783e | 15093 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15094 | PyObject *resultobj; |
15095 | wxDC *arg1 = (wxDC *) 0 ; | |
15096 | int result; | |
15097 | PyObject * obj0 = 0 ; | |
15098 | char *kwnames[] = { | |
15099 | (char *) "self", NULL | |
15100 | }; | |
15101 | ||
15102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15105 | { | |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15107 | result = (int)((wxDC const *)arg1)->MinY(); | |
15108 | ||
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
c370783e | 15112 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15113 | return resultobj; |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
c370783e | 15119 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15120 | PyObject *resultobj; |
15121 | wxDC *arg1 = (wxDC *) 0 ; | |
15122 | int result; | |
15123 | PyObject * obj0 = 0 ; | |
15124 | char *kwnames[] = { | |
15125 | (char *) "self", NULL | |
15126 | }; | |
15127 | ||
15128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15131 | { | |
15132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15133 | result = (int)((wxDC const *)arg1)->MaxY(); | |
15134 | ||
15135 | wxPyEndAllowThreads(__tstate); | |
15136 | if (PyErr_Occurred()) SWIG_fail; | |
15137 | } | |
c370783e | 15138 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15139 | return resultobj; |
15140 | fail: | |
15141 | return NULL; | |
15142 | } | |
15143 | ||
15144 | ||
c370783e | 15145 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15146 | PyObject *resultobj; |
15147 | wxDC *arg1 = (wxDC *) 0 ; | |
15148 | int *arg2 = (int *) 0 ; | |
15149 | int *arg3 = (int *) 0 ; | |
15150 | int *arg4 = (int *) 0 ; | |
15151 | int *arg5 = (int *) 0 ; | |
15152 | int temp2 ; | |
c370783e | 15153 | int res2 = 0 ; |
d55e5bfc | 15154 | int temp3 ; |
c370783e | 15155 | int res3 = 0 ; |
d55e5bfc | 15156 | int temp4 ; |
c370783e | 15157 | int res4 = 0 ; |
d55e5bfc | 15158 | int temp5 ; |
c370783e | 15159 | int res5 = 0 ; |
d55e5bfc RD |
15160 | PyObject * obj0 = 0 ; |
15161 | char *kwnames[] = { | |
15162 | (char *) "self", NULL | |
15163 | }; | |
15164 | ||
c370783e RD |
15165 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15166 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15167 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15168 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; |
15170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15172 | { | |
15173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15174 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15175 | ||
15176 | wxPyEndAllowThreads(__tstate); | |
15177 | if (PyErr_Occurred()) SWIG_fail; | |
15178 | } | |
15179 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
15180 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15181 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15182 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15183 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15184 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15185 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15186 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15187 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
15188 | return resultobj; |
15189 | fail: | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
c370783e | 15194 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15195 | PyObject *resultobj; |
15196 | wxDC *arg1 = (wxDC *) 0 ; | |
15197 | PyObject *arg2 = (PyObject *) 0 ; | |
15198 | PyObject *arg3 = (PyObject *) 0 ; | |
15199 | PyObject *arg4 = (PyObject *) 0 ; | |
15200 | PyObject *result; | |
15201 | PyObject * obj0 = 0 ; | |
15202 | PyObject * obj1 = 0 ; | |
15203 | PyObject * obj2 = 0 ; | |
15204 | PyObject * obj3 = 0 ; | |
15205 | char *kwnames[] = { | |
15206 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15207 | }; | |
15208 | ||
15209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15212 | arg2 = obj1; | |
15213 | arg3 = obj2; | |
15214 | arg4 = obj3; | |
15215 | { | |
15216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15217 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15218 | ||
15219 | wxPyEndAllowThreads(__tstate); | |
15220 | if (PyErr_Occurred()) SWIG_fail; | |
15221 | } | |
15222 | resultobj = result; | |
15223 | return resultobj; | |
15224 | fail: | |
15225 | return NULL; | |
15226 | } | |
15227 | ||
15228 | ||
c370783e | 15229 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15230 | PyObject *resultobj; |
15231 | wxDC *arg1 = (wxDC *) 0 ; | |
15232 | PyObject *arg2 = (PyObject *) 0 ; | |
15233 | PyObject *arg3 = (PyObject *) 0 ; | |
15234 | PyObject *arg4 = (PyObject *) 0 ; | |
15235 | PyObject *result; | |
15236 | PyObject * obj0 = 0 ; | |
15237 | PyObject * obj1 = 0 ; | |
15238 | PyObject * obj2 = 0 ; | |
15239 | PyObject * obj3 = 0 ; | |
15240 | char *kwnames[] = { | |
15241 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15242 | }; | |
15243 | ||
15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15247 | arg2 = obj1; | |
15248 | arg3 = obj2; | |
15249 | arg4 = obj3; | |
15250 | { | |
15251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15252 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15253 | ||
15254 | wxPyEndAllowThreads(__tstate); | |
15255 | if (PyErr_Occurred()) SWIG_fail; | |
15256 | } | |
15257 | resultobj = result; | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
15261 | } | |
15262 | ||
15263 | ||
c370783e | 15264 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15265 | PyObject *resultobj; |
15266 | wxDC *arg1 = (wxDC *) 0 ; | |
15267 | PyObject *arg2 = (PyObject *) 0 ; | |
15268 | PyObject *arg3 = (PyObject *) 0 ; | |
15269 | PyObject *arg4 = (PyObject *) 0 ; | |
15270 | PyObject *result; | |
15271 | PyObject * obj0 = 0 ; | |
15272 | PyObject * obj1 = 0 ; | |
15273 | PyObject * obj2 = 0 ; | |
15274 | PyObject * obj3 = 0 ; | |
15275 | char *kwnames[] = { | |
15276 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15277 | }; | |
15278 | ||
15279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15282 | arg2 = obj1; | |
15283 | arg3 = obj2; | |
15284 | arg4 = obj3; | |
15285 | { | |
15286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15287 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15288 | ||
15289 | wxPyEndAllowThreads(__tstate); | |
15290 | if (PyErr_Occurred()) SWIG_fail; | |
15291 | } | |
15292 | resultobj = result; | |
15293 | return resultobj; | |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
c370783e | 15299 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15300 | PyObject *resultobj; |
15301 | wxDC *arg1 = (wxDC *) 0 ; | |
15302 | PyObject *arg2 = (PyObject *) 0 ; | |
15303 | PyObject *arg3 = (PyObject *) 0 ; | |
15304 | PyObject *arg4 = (PyObject *) 0 ; | |
15305 | PyObject *result; | |
15306 | PyObject * obj0 = 0 ; | |
15307 | PyObject * obj1 = 0 ; | |
15308 | PyObject * obj2 = 0 ; | |
15309 | PyObject * obj3 = 0 ; | |
15310 | char *kwnames[] = { | |
15311 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15312 | }; | |
15313 | ||
15314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15317 | arg2 = obj1; | |
15318 | arg3 = obj2; | |
15319 | arg4 = obj3; | |
15320 | { | |
15321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15322 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15323 | ||
15324 | wxPyEndAllowThreads(__tstate); | |
15325 | if (PyErr_Occurred()) SWIG_fail; | |
15326 | } | |
15327 | resultobj = result; | |
15328 | return resultobj; | |
15329 | fail: | |
15330 | return NULL; | |
15331 | } | |
15332 | ||
15333 | ||
c370783e | 15334 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15335 | PyObject *resultobj; |
15336 | wxDC *arg1 = (wxDC *) 0 ; | |
15337 | PyObject *arg2 = (PyObject *) 0 ; | |
15338 | PyObject *arg3 = (PyObject *) 0 ; | |
15339 | PyObject *arg4 = (PyObject *) 0 ; | |
15340 | PyObject *result; | |
15341 | PyObject * obj0 = 0 ; | |
15342 | PyObject * obj1 = 0 ; | |
15343 | PyObject * obj2 = 0 ; | |
15344 | PyObject * obj3 = 0 ; | |
15345 | char *kwnames[] = { | |
15346 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15347 | }; | |
15348 | ||
15349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15352 | arg2 = obj1; | |
15353 | arg3 = obj2; | |
15354 | arg4 = obj3; | |
15355 | { | |
15356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15357 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15358 | ||
15359 | wxPyEndAllowThreads(__tstate); | |
15360 | if (PyErr_Occurred()) SWIG_fail; | |
15361 | } | |
15362 | resultobj = result; | |
15363 | return resultobj; | |
15364 | fail: | |
15365 | return NULL; | |
15366 | } | |
15367 | ||
15368 | ||
c370783e | 15369 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15370 | PyObject *resultobj; |
15371 | wxDC *arg1 = (wxDC *) 0 ; | |
15372 | PyObject *arg2 = (PyObject *) 0 ; | |
15373 | PyObject *arg3 = (PyObject *) 0 ; | |
15374 | PyObject *arg4 = (PyObject *) 0 ; | |
15375 | PyObject *arg5 = (PyObject *) 0 ; | |
15376 | PyObject *result; | |
15377 | PyObject * obj0 = 0 ; | |
15378 | PyObject * obj1 = 0 ; | |
15379 | PyObject * obj2 = 0 ; | |
15380 | PyObject * obj3 = 0 ; | |
15381 | PyObject * obj4 = 0 ; | |
15382 | char *kwnames[] = { | |
15383 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15384 | }; | |
15385 | ||
15386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15389 | arg2 = obj1; | |
15390 | arg3 = obj2; | |
15391 | arg4 = obj3; | |
15392 | arg5 = obj4; | |
15393 | { | |
15394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15395 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15396 | ||
15397 | wxPyEndAllowThreads(__tstate); | |
15398 | if (PyErr_Occurred()) SWIG_fail; | |
15399 | } | |
15400 | resultobj = result; | |
15401 | return resultobj; | |
15402 | fail: | |
15403 | return NULL; | |
15404 | } | |
15405 | ||
15406 | ||
c370783e | 15407 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15408 | PyObject *obj; |
15409 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15410 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15411 | Py_INCREF(obj); | |
15412 | return Py_BuildValue((char *)""); | |
15413 | } | |
c370783e | 15414 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15415 | PyObject *resultobj; |
15416 | wxMemoryDC *result; | |
15417 | char *kwnames[] = { | |
15418 | NULL | |
15419 | }; | |
15420 | ||
15421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15422 | { | |
0439c23b | 15423 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15425 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15426 | ||
15427 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15428 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15429 | } |
15430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15431 | return resultobj; | |
15432 | fail: | |
15433 | return NULL; | |
15434 | } | |
15435 | ||
15436 | ||
c370783e | 15437 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15438 | PyObject *resultobj; |
15439 | wxDC *arg1 = (wxDC *) 0 ; | |
15440 | wxMemoryDC *result; | |
15441 | PyObject * obj0 = 0 ; | |
15442 | char *kwnames[] = { | |
15443 | (char *) "oldDC", NULL | |
15444 | }; | |
15445 | ||
15446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15449 | { | |
0439c23b | 15450 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15452 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15453 | ||
15454 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15455 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15456 | } |
15457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15458 | return resultobj; | |
15459 | fail: | |
15460 | return NULL; | |
15461 | } | |
15462 | ||
15463 | ||
c370783e | 15464 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15465 | PyObject *resultobj; |
15466 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15467 | wxBitmap *arg2 = 0 ; | |
15468 | PyObject * obj0 = 0 ; | |
15469 | PyObject * obj1 = 0 ; | |
15470 | char *kwnames[] = { | |
15471 | (char *) "self",(char *) "bitmap", NULL | |
15472 | }; | |
15473 | ||
15474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, | |
15476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15478 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15479 | SWIG_fail; | |
15480 | if (arg2 == NULL) { | |
15481 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15482 | SWIG_fail; | |
15483 | } | |
15484 | { | |
15485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15486 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15487 | ||
15488 | wxPyEndAllowThreads(__tstate); | |
15489 | if (PyErr_Occurred()) SWIG_fail; | |
15490 | } | |
15491 | Py_INCREF(Py_None); resultobj = Py_None; | |
15492 | return resultobj; | |
15493 | fail: | |
15494 | return NULL; | |
15495 | } | |
15496 | ||
15497 | ||
c370783e | 15498 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15499 | PyObject *obj; |
15500 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15501 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15502 | Py_INCREF(obj); | |
15503 | return Py_BuildValue((char *)""); | |
15504 | } | |
c370783e | 15505 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
15506 | PyObject *resultobj; |
15507 | wxDC *arg1 = (wxDC *) 0 ; | |
15508 | wxBitmap *arg2 = 0 ; | |
15509 | wxBufferedDC *result; | |
15510 | PyObject * obj0 = 0 ; | |
15511 | PyObject * obj1 = 0 ; | |
15512 | ||
15513 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15517 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15518 | SWIG_fail; | |
15519 | if (arg2 == NULL) { | |
15520 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15521 | SWIG_fail; | |
15522 | } | |
15523 | { | |
0439c23b | 15524 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15526 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15527 | ||
15528 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15529 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15530 | } |
15531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15532 | return resultobj; | |
15533 | fail: | |
15534 | return NULL; | |
15535 | } | |
15536 | ||
15537 | ||
c370783e | 15538 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
15539 | PyObject *resultobj; |
15540 | wxDC *arg1 = (wxDC *) 0 ; | |
15541 | wxSize *arg2 = 0 ; | |
15542 | wxBufferedDC *result; | |
15543 | wxSize temp2 ; | |
15544 | PyObject * obj0 = 0 ; | |
15545 | PyObject * obj1 = 0 ; | |
15546 | ||
15547 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15550 | { | |
15551 | arg2 = &temp2; | |
15552 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15553 | } | |
15554 | { | |
0439c23b | 15555 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15557 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15560 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15561 | } |
15562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15563 | return resultobj; | |
15564 | fail: | |
15565 | return NULL; | |
15566 | } | |
15567 | ||
15568 | ||
15569 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15570 | int argc; | |
15571 | PyObject *argv[3]; | |
15572 | int ii; | |
15573 | ||
15574 | argc = PyObject_Length(args); | |
15575 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
15576 | argv[ii] = PyTuple_GetItem(args,ii); | |
15577 | } | |
15578 | if (argc == 2) { | |
15579 | int _v; | |
15580 | { | |
15581 | void *ptr; | |
15582 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15583 | _v = 0; | |
15584 | PyErr_Clear(); | |
15585 | } else { | |
15586 | _v = 1; | |
15587 | } | |
15588 | } | |
15589 | if (_v) { | |
15590 | { | |
15591 | void *ptr; | |
15592 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
15593 | _v = 0; | |
15594 | PyErr_Clear(); | |
15595 | } else { | |
15596 | _v = 1; | |
15597 | } | |
15598 | } | |
15599 | if (_v) { | |
15600 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15601 | } | |
15602 | } | |
15603 | } | |
15604 | if (argc == 2) { | |
15605 | int _v; | |
15606 | { | |
15607 | void *ptr; | |
15608 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15609 | _v = 0; | |
15610 | PyErr_Clear(); | |
15611 | } else { | |
15612 | _v = 1; | |
15613 | } | |
15614 | } | |
15615 | if (_v) { | |
15616 | { | |
15617 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15618 | } | |
15619 | if (_v) { | |
15620 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
15621 | } | |
15622 | } | |
15623 | } | |
15624 | ||
15625 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15626 | return NULL; | |
15627 | } | |
15628 | ||
15629 | ||
c370783e | 15630 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15631 | PyObject *resultobj; |
15632 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15633 | PyObject * obj0 = 0 ; | |
15634 | char *kwnames[] = { | |
15635 | (char *) "self", NULL | |
15636 | }; | |
15637 | ||
15638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
15639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15641 | { | |
15642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15643 | delete arg1; | |
15644 | ||
15645 | wxPyEndAllowThreads(__tstate); | |
15646 | if (PyErr_Occurred()) SWIG_fail; | |
15647 | } | |
15648 | Py_INCREF(Py_None); resultobj = Py_None; | |
15649 | return resultobj; | |
15650 | fail: | |
15651 | return NULL; | |
15652 | } | |
15653 | ||
15654 | ||
c370783e | 15655 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15656 | PyObject *resultobj; |
15657 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15658 | PyObject * obj0 = 0 ; | |
15659 | char *kwnames[] = { | |
15660 | (char *) "self", NULL | |
15661 | }; | |
15662 | ||
15663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
15664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15666 | { | |
15667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15668 | (arg1)->UnMask(); | |
15669 | ||
15670 | wxPyEndAllowThreads(__tstate); | |
15671 | if (PyErr_Occurred()) SWIG_fail; | |
15672 | } | |
15673 | Py_INCREF(Py_None); resultobj = Py_None; | |
15674 | return resultobj; | |
15675 | fail: | |
15676 | return NULL; | |
15677 | } | |
15678 | ||
15679 | ||
c370783e | 15680 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15681 | PyObject *obj; |
15682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15683 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15684 | Py_INCREF(obj); | |
15685 | return Py_BuildValue((char *)""); | |
15686 | } | |
c370783e | 15687 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15688 | PyObject *resultobj; |
15689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15690 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
15691 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
15692 | wxBufferedPaintDC *result; | |
15693 | PyObject * obj0 = 0 ; | |
15694 | PyObject * obj1 = 0 ; | |
15695 | char *kwnames[] = { | |
15696 | (char *) "window",(char *) "buffer", NULL | |
15697 | }; | |
15698 | ||
15699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
15700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15702 | if (obj1) { | |
15703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15705 | SWIG_fail; | |
15706 | if (arg2 == NULL) { | |
15707 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15708 | SWIG_fail; | |
15709 | } | |
15710 | } | |
15711 | { | |
0439c23b | 15712 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15714 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
15715 | ||
15716 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15717 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15718 | } |
15719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
15720 | return resultobj; | |
15721 | fail: | |
15722 | return NULL; | |
15723 | } | |
15724 | ||
15725 | ||
c370783e | 15726 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15727 | PyObject *obj; |
15728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15729 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15730 | Py_INCREF(obj); | |
15731 | return Py_BuildValue((char *)""); | |
15732 | } | |
c370783e | 15733 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15734 | PyObject *resultobj; |
15735 | wxScreenDC *result; | |
15736 | char *kwnames[] = { | |
15737 | NULL | |
15738 | }; | |
15739 | ||
15740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15741 | { | |
0439c23b | 15742 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15744 | result = (wxScreenDC *)new wxScreenDC(); | |
15745 | ||
15746 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15747 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15748 | } |
15749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
15750 | return resultobj; | |
15751 | fail: | |
15752 | return NULL; | |
15753 | } | |
15754 | ||
15755 | ||
c370783e | 15756 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15757 | PyObject *resultobj; |
15758 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15759 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15760 | bool result; | |
15761 | PyObject * obj0 = 0 ; | |
15762 | PyObject * obj1 = 0 ; | |
15763 | char *kwnames[] = { | |
15764 | (char *) "self",(char *) "window", NULL | |
15765 | }; | |
15766 | ||
15767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15770 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15772 | { | |
15773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15774 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15775 | ||
15776 | wxPyEndAllowThreads(__tstate); | |
15777 | if (PyErr_Occurred()) SWIG_fail; | |
15778 | } | |
15779 | { | |
15780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15781 | } | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
c370783e | 15788 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15789 | PyObject *resultobj; |
15790 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15791 | wxRect *arg2 = (wxRect *) NULL ; | |
15792 | bool result; | |
15793 | PyObject * obj0 = 0 ; | |
15794 | PyObject * obj1 = 0 ; | |
15795 | char *kwnames[] = { | |
15796 | (char *) "self",(char *) "rect", NULL | |
15797 | }; | |
15798 | ||
15799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15802 | if (obj1) { | |
15803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
15804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15805 | } | |
15806 | { | |
15807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15808 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15809 | ||
15810 | wxPyEndAllowThreads(__tstate); | |
15811 | if (PyErr_Occurred()) SWIG_fail; | |
15812 | } | |
15813 | { | |
15814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15815 | } | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
c370783e | 15822 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15823 | PyObject *resultobj; |
15824 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15825 | bool result; | |
15826 | PyObject * obj0 = 0 ; | |
15827 | char *kwnames[] = { | |
15828 | (char *) "self", NULL | |
15829 | }; | |
15830 | ||
15831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15834 | { | |
15835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15836 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15837 | ||
15838 | wxPyEndAllowThreads(__tstate); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
15840 | } | |
15841 | { | |
15842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15843 | } | |
15844 | return resultobj; | |
15845 | fail: | |
15846 | return NULL; | |
15847 | } | |
15848 | ||
15849 | ||
c370783e | 15850 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15851 | PyObject *obj; |
15852 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15853 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15854 | Py_INCREF(obj); | |
15855 | return Py_BuildValue((char *)""); | |
15856 | } | |
c370783e | 15857 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15858 | PyObject *resultobj; |
15859 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15860 | wxClientDC *result; | |
15861 | PyObject * obj0 = 0 ; | |
15862 | char *kwnames[] = { | |
15863 | (char *) "win", NULL | |
15864 | }; | |
15865 | ||
15866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15869 | { | |
0439c23b | 15870 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15872 | result = (wxClientDC *)new wxClientDC(arg1); | |
15873 | ||
15874 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15875 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15876 | } |
15877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
15878 | return resultobj; | |
15879 | fail: | |
15880 | return NULL; | |
15881 | } | |
15882 | ||
15883 | ||
c370783e | 15884 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15885 | PyObject *obj; |
15886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15887 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15888 | Py_INCREF(obj); | |
15889 | return Py_BuildValue((char *)""); | |
15890 | } | |
c370783e | 15891 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15892 | PyObject *resultobj; |
15893 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15894 | wxPaintDC *result; | |
15895 | PyObject * obj0 = 0 ; | |
15896 | char *kwnames[] = { | |
15897 | (char *) "win", NULL | |
15898 | }; | |
15899 | ||
15900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15903 | { | |
0439c23b | 15904 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15906 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15907 | ||
15908 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15909 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15910 | } |
15911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
15912 | return resultobj; | |
15913 | fail: | |
15914 | return NULL; | |
15915 | } | |
15916 | ||
15917 | ||
c370783e | 15918 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15919 | PyObject *obj; |
15920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15921 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15922 | Py_INCREF(obj); | |
15923 | return Py_BuildValue((char *)""); | |
15924 | } | |
c370783e | 15925 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15926 | PyObject *resultobj; |
15927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15928 | wxWindowDC *result; | |
15929 | PyObject * obj0 = 0 ; | |
15930 | char *kwnames[] = { | |
15931 | (char *) "win", NULL | |
15932 | }; | |
15933 | ||
15934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15937 | { | |
0439c23b | 15938 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15940 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15941 | ||
15942 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15943 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15944 | } |
15945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
15946 | return resultobj; | |
15947 | fail: | |
15948 | return NULL; | |
15949 | } | |
15950 | ||
15951 | ||
c370783e | 15952 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15953 | PyObject *obj; |
15954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15955 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15956 | Py_INCREF(obj); | |
15957 | return Py_BuildValue((char *)""); | |
15958 | } | |
c370783e | 15959 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15960 | PyObject *resultobj; |
15961 | wxDC *arg1 = 0 ; | |
15962 | bool arg2 ; | |
15963 | wxMirrorDC *result; | |
15964 | PyObject * obj0 = 0 ; | |
15965 | PyObject * obj1 = 0 ; | |
15966 | char *kwnames[] = { | |
15967 | (char *) "dc",(char *) "mirror", NULL | |
15968 | }; | |
15969 | ||
15970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15972 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15973 | SWIG_fail; | |
15974 | if (arg1 == NULL) { | |
15975 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15976 | SWIG_fail; | |
15977 | } | |
c370783e | 15978 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15979 | if (PyErr_Occurred()) SWIG_fail; |
15980 | { | |
0439c23b | 15981 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15983 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15984 | ||
15985 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15986 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15987 | } |
15988 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
15989 | return resultobj; | |
15990 | fail: | |
15991 | return NULL; | |
15992 | } | |
15993 | ||
15994 | ||
c370783e | 15995 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15996 | PyObject *obj; |
15997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15998 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15999 | Py_INCREF(obj); | |
16000 | return Py_BuildValue((char *)""); | |
16001 | } | |
c370783e | 16002 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16003 | PyObject *resultobj; |
16004 | wxPrintData *arg1 = 0 ; | |
16005 | wxPostScriptDC *result; | |
16006 | PyObject * obj0 = 0 ; | |
16007 | char *kwnames[] = { | |
16008 | (char *) "printData", NULL | |
16009 | }; | |
16010 | ||
16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
16012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16013 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16014 | SWIG_fail; | |
16015 | if (arg1 == NULL) { | |
16016 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16017 | SWIG_fail; | |
16018 | } | |
16019 | { | |
0439c23b | 16020 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16022 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
16023 | ||
16024 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16025 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16026 | } |
16027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
16028 | return resultobj; | |
16029 | fail: | |
16030 | return NULL; | |
16031 | } | |
16032 | ||
16033 | ||
c370783e | 16034 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16035 | PyObject *resultobj; |
16036 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16037 | wxPrintData *result; | |
16038 | PyObject * obj0 = 0 ; | |
16039 | char *kwnames[] = { | |
16040 | (char *) "self", NULL | |
16041 | }; | |
16042 | ||
16043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
16044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16046 | { | |
16047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16048 | { | |
16049 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16050 | result = (wxPrintData *) &_result_ref; | |
16051 | } | |
16052 | ||
16053 | wxPyEndAllowThreads(__tstate); | |
16054 | if (PyErr_Occurred()) SWIG_fail; | |
16055 | } | |
16056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
16057 | return resultobj; | |
16058 | fail: | |
16059 | return NULL; | |
16060 | } | |
16061 | ||
16062 | ||
c370783e | 16063 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16064 | PyObject *resultobj; |
16065 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16066 | wxPrintData *arg2 = 0 ; | |
16067 | PyObject * obj0 = 0 ; | |
16068 | PyObject * obj1 = 0 ; | |
16069 | char *kwnames[] = { | |
16070 | (char *) "self",(char *) "data", NULL | |
16071 | }; | |
16072 | ||
16073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
16074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16076 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16077 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16078 | SWIG_fail; | |
16079 | if (arg2 == NULL) { | |
16080 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16081 | SWIG_fail; | |
16082 | } | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | Py_INCREF(Py_None); resultobj = Py_None; | |
16091 | return resultobj; | |
16092 | fail: | |
16093 | return NULL; | |
16094 | } | |
16095 | ||
16096 | ||
c370783e | 16097 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16098 | PyObject *resultobj; |
16099 | int arg1 ; | |
16100 | PyObject * obj0 = 0 ; | |
16101 | char *kwnames[] = { | |
16102 | (char *) "ppi", NULL | |
16103 | }; | |
16104 | ||
16105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
c370783e | 16106 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
16107 | if (PyErr_Occurred()) SWIG_fail; |
16108 | { | |
16109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16110 | wxPostScriptDC::SetResolution(arg1); | |
16111 | ||
16112 | wxPyEndAllowThreads(__tstate); | |
16113 | if (PyErr_Occurred()) SWIG_fail; | |
16114 | } | |
16115 | Py_INCREF(Py_None); resultobj = Py_None; | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | return NULL; | |
16119 | } | |
16120 | ||
16121 | ||
c370783e | 16122 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16123 | PyObject *resultobj; |
16124 | int result; | |
16125 | char *kwnames[] = { | |
16126 | NULL | |
16127 | }; | |
16128 | ||
16129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16130 | { | |
16131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16132 | result = (int)wxPostScriptDC::GetResolution(); | |
16133 | ||
16134 | wxPyEndAllowThreads(__tstate); | |
16135 | if (PyErr_Occurred()) SWIG_fail; | |
16136 | } | |
c370783e | 16137 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16138 | return resultobj; |
16139 | fail: | |
16140 | return NULL; | |
16141 | } | |
16142 | ||
16143 | ||
c370783e | 16144 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16145 | PyObject *obj; |
16146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16147 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16148 | Py_INCREF(obj); | |
16149 | return Py_BuildValue((char *)""); | |
16150 | } | |
c370783e | 16151 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16152 | PyObject *resultobj; |
16153 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16154 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16155 | wxMetaFile *result; | |
b411df4a | 16156 | bool temp1 = false ; |
d55e5bfc RD |
16157 | PyObject * obj0 = 0 ; |
16158 | char *kwnames[] = { | |
16159 | (char *) "filename", NULL | |
16160 | }; | |
16161 | ||
16162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16163 | if (obj0) { | |
16164 | { | |
16165 | arg1 = wxString_in_helper(obj0); | |
16166 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 16167 | temp1 = true; |
d55e5bfc RD |
16168 | } |
16169 | } | |
16170 | { | |
0439c23b | 16171 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16173 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16174 | ||
16175 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16176 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16177 | } |
16178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
16179 | { | |
16180 | if (temp1) | |
16181 | delete arg1; | |
16182 | } | |
16183 | return resultobj; | |
16184 | fail: | |
16185 | { | |
16186 | if (temp1) | |
16187 | delete arg1; | |
16188 | } | |
16189 | return NULL; | |
16190 | } | |
16191 | ||
16192 | ||
c370783e | 16193 | static PyObject *_wrap_delete_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16194 | PyObject *resultobj; |
16195 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16196 | PyObject * obj0 = 0 ; | |
16197 | char *kwnames[] = { | |
16198 | (char *) "self", NULL | |
16199 | }; | |
16200 | ||
16201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
16202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16204 | { | |
16205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16206 | delete arg1; | |
16207 | ||
16208 | wxPyEndAllowThreads(__tstate); | |
16209 | if (PyErr_Occurred()) SWIG_fail; | |
16210 | } | |
16211 | Py_INCREF(Py_None); resultobj = Py_None; | |
16212 | return resultobj; | |
16213 | fail: | |
16214 | return NULL; | |
16215 | } | |
16216 | ||
16217 | ||
c370783e | 16218 | static PyObject *_wrap_MetaFile_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16219 | PyObject *resultobj; |
16220 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16221 | bool result; | |
16222 | PyObject * obj0 = 0 ; | |
16223 | char *kwnames[] = { | |
16224 | (char *) "self", NULL | |
16225 | }; | |
16226 | ||
16227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
16228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16230 | { | |
16231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16232 | result = (bool)(arg1)->Ok(); | |
16233 | ||
16234 | wxPyEndAllowThreads(__tstate); | |
16235 | if (PyErr_Occurred()) SWIG_fail; | |
16236 | } | |
16237 | { | |
16238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16239 | } | |
16240 | return resultobj; | |
16241 | fail: | |
16242 | return NULL; | |
16243 | } | |
16244 | ||
16245 | ||
c370783e | 16246 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16247 | PyObject *resultobj; |
16248 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16249 | int arg2 = (int) 0 ; | |
16250 | int arg3 = (int) 0 ; | |
16251 | bool result; | |
16252 | PyObject * obj0 = 0 ; | |
16253 | PyObject * obj1 = 0 ; | |
16254 | PyObject * obj2 = 0 ; | |
16255 | char *kwnames[] = { | |
16256 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16257 | }; | |
16258 | ||
16259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16262 | if (obj1) { | |
c370783e | 16263 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16264 | if (PyErr_Occurred()) SWIG_fail; |
16265 | } | |
16266 | if (obj2) { | |
c370783e | 16267 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16268 | if (PyErr_Occurred()) SWIG_fail; |
16269 | } | |
16270 | { | |
16271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16272 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
16273 | ||
16274 | wxPyEndAllowThreads(__tstate); | |
16275 | if (PyErr_Occurred()) SWIG_fail; | |
16276 | } | |
16277 | { | |
16278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16279 | } | |
16280 | return resultobj; | |
16281 | fail: | |
16282 | return NULL; | |
16283 | } | |
16284 | ||
16285 | ||
c370783e | 16286 | static PyObject *_wrap_MetaFile_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16287 | PyObject *resultobj; |
16288 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16289 | wxSize result; | |
16290 | PyObject * obj0 = 0 ; | |
16291 | char *kwnames[] = { | |
16292 | (char *) "self", NULL | |
16293 | }; | |
16294 | ||
16295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
16296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16298 | { | |
16299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16300 | result = (arg1)->GetSize(); | |
16301 | ||
16302 | wxPyEndAllowThreads(__tstate); | |
16303 | if (PyErr_Occurred()) SWIG_fail; | |
16304 | } | |
16305 | { | |
16306 | wxSize * resultptr; | |
16307 | resultptr = new wxSize((wxSize &) result); | |
16308 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16309 | } | |
16310 | return resultobj; | |
16311 | fail: | |
16312 | return NULL; | |
16313 | } | |
16314 | ||
16315 | ||
c370783e | 16316 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16317 | PyObject *resultobj; |
16318 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16319 | int result; | |
16320 | PyObject * obj0 = 0 ; | |
16321 | char *kwnames[] = { | |
16322 | (char *) "self", NULL | |
16323 | }; | |
16324 | ||
16325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
16326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16328 | { | |
16329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16330 | result = (int)(arg1)->GetWidth(); | |
16331 | ||
16332 | wxPyEndAllowThreads(__tstate); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | } | |
c370783e | 16335 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16336 | return resultobj; |
16337 | fail: | |
16338 | return NULL; | |
16339 | } | |
16340 | ||
16341 | ||
c370783e | 16342 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16343 | PyObject *resultobj; |
16344 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16345 | int result; | |
16346 | PyObject * obj0 = 0 ; | |
16347 | char *kwnames[] = { | |
16348 | (char *) "self", NULL | |
16349 | }; | |
16350 | ||
16351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
16352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16354 | { | |
16355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16356 | result = (int)(arg1)->GetHeight(); | |
16357 | ||
16358 | wxPyEndAllowThreads(__tstate); | |
16359 | if (PyErr_Occurred()) SWIG_fail; | |
16360 | } | |
c370783e | 16361 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16362 | return resultobj; |
16363 | fail: | |
16364 | return NULL; | |
16365 | } | |
16366 | ||
16367 | ||
c370783e | 16368 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16369 | PyObject *obj; |
16370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16371 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16372 | Py_INCREF(obj); | |
16373 | return Py_BuildValue((char *)""); | |
16374 | } | |
c370783e | 16375 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16376 | PyObject *resultobj; |
16377 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16378 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16379 | int arg2 = (int) 0 ; | |
16380 | int arg3 = (int) 0 ; | |
16381 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16382 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16383 | wxMetaFileDC *result; | |
b411df4a RD |
16384 | bool temp1 = false ; |
16385 | bool temp4 = false ; | |
d55e5bfc RD |
16386 | PyObject * obj0 = 0 ; |
16387 | PyObject * obj1 = 0 ; | |
16388 | PyObject * obj2 = 0 ; | |
16389 | PyObject * obj3 = 0 ; | |
16390 | char *kwnames[] = { | |
16391 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16392 | }; | |
16393 | ||
16394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16395 | if (obj0) { | |
16396 | { | |
16397 | arg1 = wxString_in_helper(obj0); | |
16398 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 16399 | temp1 = true; |
d55e5bfc RD |
16400 | } |
16401 | } | |
16402 | if (obj1) { | |
c370783e | 16403 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16404 | if (PyErr_Occurred()) SWIG_fail; |
16405 | } | |
16406 | if (obj2) { | |
c370783e | 16407 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16408 | if (PyErr_Occurred()) SWIG_fail; |
16409 | } | |
16410 | if (obj3) { | |
16411 | { | |
16412 | arg4 = wxString_in_helper(obj3); | |
16413 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 16414 | temp4 = true; |
d55e5bfc RD |
16415 | } |
16416 | } | |
16417 | { | |
0439c23b | 16418 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16420 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16421 | ||
16422 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16423 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16424 | } |
16425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
16426 | { | |
16427 | if (temp1) | |
16428 | delete arg1; | |
16429 | } | |
16430 | { | |
16431 | if (temp4) | |
16432 | delete arg4; | |
16433 | } | |
16434 | return resultobj; | |
16435 | fail: | |
16436 | { | |
16437 | if (temp1) | |
16438 | delete arg1; | |
16439 | } | |
16440 | { | |
16441 | if (temp4) | |
16442 | delete arg4; | |
16443 | } | |
16444 | return NULL; | |
16445 | } | |
16446 | ||
16447 | ||
c370783e | 16448 | static PyObject *_wrap_MetaFileDC_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16449 | PyObject *resultobj; |
16450 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
16451 | wxMetaFile *result; | |
16452 | PyObject * obj0 = 0 ; | |
16453 | char *kwnames[] = { | |
16454 | (char *) "self", NULL | |
16455 | }; | |
16456 | ||
16457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
16458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, | |
16459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16460 | { | |
16461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16462 | result = (wxMetaFile *)(arg1)->Close(); | |
16463 | ||
16464 | wxPyEndAllowThreads(__tstate); | |
16465 | if (PyErr_Occurred()) SWIG_fail; | |
16466 | } | |
16467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); | |
16468 | return resultobj; | |
16469 | fail: | |
16470 | return NULL; | |
16471 | } | |
16472 | ||
16473 | ||
c370783e | 16474 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16475 | PyObject *obj; |
16476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16477 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16478 | Py_INCREF(obj); | |
16479 | return Py_BuildValue((char *)""); | |
16480 | } | |
c370783e | 16481 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16482 | PyObject *resultobj; |
16483 | wxPrintData *arg1 = 0 ; | |
16484 | wxPrinterDC *result; | |
16485 | PyObject * obj0 = 0 ; | |
16486 | char *kwnames[] = { | |
16487 | (char *) "printData", NULL | |
16488 | }; | |
16489 | ||
16490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
16491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16492 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16493 | SWIG_fail; | |
16494 | if (arg1 == NULL) { | |
16495 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16496 | SWIG_fail; | |
16497 | } | |
16498 | { | |
0439c23b | 16499 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16501 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16502 | ||
16503 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16504 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16505 | } |
16506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
16507 | return resultobj; | |
16508 | fail: | |
16509 | return NULL; | |
16510 | } | |
16511 | ||
16512 | ||
c370783e | 16513 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16514 | PyObject *obj; |
16515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16516 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16517 | Py_INCREF(obj); | |
16518 | return Py_BuildValue((char *)""); | |
16519 | } | |
c370783e | 16520 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16521 | PyObject *resultobj; |
16522 | int arg1 ; | |
16523 | int arg2 ; | |
b411df4a | 16524 | int arg3 = (int) true ; |
d55e5bfc RD |
16525 | int arg4 = (int) 1 ; |
16526 | wxImageList *result; | |
16527 | PyObject * obj0 = 0 ; | |
16528 | PyObject * obj1 = 0 ; | |
16529 | PyObject * obj2 = 0 ; | |
16530 | PyObject * obj3 = 0 ; | |
16531 | char *kwnames[] = { | |
16532 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16533 | }; | |
16534 | ||
16535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
c370783e | 16536 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 16537 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16538 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16539 | if (PyErr_Occurred()) SWIG_fail; |
16540 | if (obj2) { | |
c370783e | 16541 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
16542 | if (PyErr_Occurred()) SWIG_fail; |
16543 | } | |
16544 | if (obj3) { | |
c370783e | 16545 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
16546 | if (PyErr_Occurred()) SWIG_fail; |
16547 | } | |
16548 | { | |
0439c23b | 16549 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16551 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16552 | ||
16553 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16554 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16555 | } |
16556 | { | |
412d302d | 16557 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
16558 | } |
16559 | return resultobj; | |
16560 | fail: | |
16561 | return NULL; | |
16562 | } | |
16563 | ||
16564 | ||
c370783e | 16565 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16566 | PyObject *resultobj; |
16567 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16568 | PyObject * obj0 = 0 ; | |
16569 | char *kwnames[] = { | |
16570 | (char *) "self", NULL | |
16571 | }; | |
16572 | ||
16573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
16574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16576 | { | |
16577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16578 | delete arg1; | |
16579 | ||
16580 | wxPyEndAllowThreads(__tstate); | |
16581 | if (PyErr_Occurred()) SWIG_fail; | |
16582 | } | |
16583 | Py_INCREF(Py_None); resultobj = Py_None; | |
16584 | return resultobj; | |
16585 | fail: | |
16586 | return NULL; | |
16587 | } | |
16588 | ||
16589 | ||
c370783e | 16590 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16591 | PyObject *resultobj; |
16592 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16593 | wxBitmap *arg2 = 0 ; | |
16594 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16595 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16596 | int result; | |
16597 | PyObject * obj0 = 0 ; | |
16598 | PyObject * obj1 = 0 ; | |
16599 | PyObject * obj2 = 0 ; | |
16600 | char *kwnames[] = { | |
16601 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16602 | }; | |
16603 | ||
16604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16608 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16609 | SWIG_fail; | |
16610 | if (arg2 == NULL) { | |
16611 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16612 | SWIG_fail; | |
16613 | } | |
16614 | if (obj2) { | |
16615 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16617 | SWIG_fail; | |
16618 | if (arg3 == NULL) { | |
16619 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16620 | SWIG_fail; | |
16621 | } | |
16622 | } | |
16623 | { | |
16624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16625 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16626 | ||
16627 | wxPyEndAllowThreads(__tstate); | |
16628 | if (PyErr_Occurred()) SWIG_fail; | |
16629 | } | |
c370783e | 16630 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16631 | return resultobj; |
16632 | fail: | |
16633 | return NULL; | |
16634 | } | |
16635 | ||
16636 | ||
c370783e | 16637 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16638 | PyObject *resultobj; |
16639 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16640 | wxBitmap *arg2 = 0 ; | |
16641 | wxColour *arg3 = 0 ; | |
16642 | int result; | |
16643 | wxColour temp3 ; | |
16644 | PyObject * obj0 = 0 ; | |
16645 | PyObject * obj1 = 0 ; | |
16646 | PyObject * obj2 = 0 ; | |
16647 | char *kwnames[] = { | |
16648 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16649 | }; | |
16650 | ||
16651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16656 | SWIG_fail; | |
16657 | if (arg2 == NULL) { | |
16658 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16659 | SWIG_fail; | |
16660 | } | |
16661 | { | |
16662 | arg3 = &temp3; | |
16663 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16664 | } | |
16665 | { | |
16666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16667 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16668 | ||
16669 | wxPyEndAllowThreads(__tstate); | |
16670 | if (PyErr_Occurred()) SWIG_fail; | |
16671 | } | |
c370783e | 16672 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16673 | return resultobj; |
16674 | fail: | |
16675 | return NULL; | |
16676 | } | |
16677 | ||
16678 | ||
c370783e | 16679 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16680 | PyObject *resultobj; |
16681 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16682 | wxIcon *arg2 = 0 ; | |
16683 | int result; | |
16684 | PyObject * obj0 = 0 ; | |
16685 | PyObject * obj1 = 0 ; | |
16686 | char *kwnames[] = { | |
16687 | (char *) "self",(char *) "icon", NULL | |
16688 | }; | |
16689 | ||
16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
16691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16694 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16695 | SWIG_fail; | |
16696 | if (arg2 == NULL) { | |
16697 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16698 | SWIG_fail; | |
16699 | } | |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16703 | ||
16704 | wxPyEndAllowThreads(__tstate); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | } | |
c370783e | 16707 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16708 | return resultobj; |
16709 | fail: | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
c370783e | 16714 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16715 | PyObject *resultobj; |
16716 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16717 | int arg2 ; | |
16718 | wxBitmap *arg3 = 0 ; | |
16719 | bool result; | |
16720 | PyObject * obj0 = 0 ; | |
16721 | PyObject * obj1 = 0 ; | |
16722 | PyObject * obj2 = 0 ; | |
16723 | char *kwnames[] = { | |
16724 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
16725 | }; | |
16726 | ||
16727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16730 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16731 | if (PyErr_Occurred()) SWIG_fail; |
16732 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16733 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16734 | SWIG_fail; | |
16735 | if (arg3 == NULL) { | |
16736 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16737 | SWIG_fail; | |
16738 | } | |
16739 | { | |
16740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16741 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
16742 | ||
16743 | wxPyEndAllowThreads(__tstate); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | } | |
16746 | { | |
16747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16748 | } | |
16749 | return resultobj; | |
16750 | fail: | |
16751 | return NULL; | |
16752 | } | |
16753 | ||
16754 | ||
c370783e | 16755 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16756 | PyObject *resultobj; |
16757 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16758 | int arg2 ; | |
16759 | wxDC *arg3 = 0 ; | |
16760 | int arg4 ; | |
16761 | int arg5 ; | |
16762 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
b411df4a | 16763 | bool arg7 = (bool) (bool)false ; |
d55e5bfc RD |
16764 | bool result; |
16765 | PyObject * obj0 = 0 ; | |
16766 | PyObject * obj1 = 0 ; | |
16767 | PyObject * obj2 = 0 ; | |
16768 | PyObject * obj3 = 0 ; | |
16769 | PyObject * obj4 = 0 ; | |
16770 | PyObject * obj5 = 0 ; | |
16771 | PyObject * obj6 = 0 ; | |
16772 | char *kwnames[] = { | |
16773 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16774 | }; | |
16775 | ||
16776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16779 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16780 | if (PyErr_Occurred()) SWIG_fail; |
16781 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
16782 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16783 | SWIG_fail; | |
16784 | if (arg3 == NULL) { | |
16785 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16786 | SWIG_fail; | |
16787 | } | |
c370783e | 16788 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 16789 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 16790 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
16791 | if (PyErr_Occurred()) SWIG_fail; |
16792 | if (obj5) { | |
c370783e | 16793 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
16794 | if (PyErr_Occurred()) SWIG_fail; |
16795 | } | |
16796 | if (obj6) { | |
c370783e | 16797 | arg7 = (bool)SWIG_As_bool(obj6); |
d55e5bfc RD |
16798 | if (PyErr_Occurred()) SWIG_fail; |
16799 | } | |
16800 | { | |
16801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16802 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16803 | ||
16804 | wxPyEndAllowThreads(__tstate); | |
16805 | if (PyErr_Occurred()) SWIG_fail; | |
16806 | } | |
16807 | { | |
16808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16809 | } | |
16810 | return resultobj; | |
16811 | fail: | |
16812 | return NULL; | |
16813 | } | |
16814 | ||
16815 | ||
c370783e | 16816 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16817 | PyObject *resultobj; |
16818 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16819 | int result; | |
16820 | PyObject * obj0 = 0 ; | |
16821 | char *kwnames[] = { | |
16822 | (char *) "self", NULL | |
16823 | }; | |
16824 | ||
16825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
16826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16828 | { | |
16829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16830 | result = (int)(arg1)->GetImageCount(); | |
16831 | ||
16832 | wxPyEndAllowThreads(__tstate); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
16834 | } | |
c370783e | 16835 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16836 | return resultobj; |
16837 | fail: | |
16838 | return NULL; | |
16839 | } | |
16840 | ||
16841 | ||
c370783e | 16842 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16843 | PyObject *resultobj; |
16844 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16845 | int arg2 ; | |
16846 | bool result; | |
16847 | PyObject * obj0 = 0 ; | |
16848 | PyObject * obj1 = 0 ; | |
16849 | char *kwnames[] = { | |
16850 | (char *) "self",(char *) "index", NULL | |
16851 | }; | |
16852 | ||
16853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
16854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16856 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16857 | if (PyErr_Occurred()) SWIG_fail; |
16858 | { | |
16859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16860 | result = (bool)(arg1)->Remove(arg2); | |
16861 | ||
16862 | wxPyEndAllowThreads(__tstate); | |
16863 | if (PyErr_Occurred()) SWIG_fail; | |
16864 | } | |
16865 | { | |
16866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16867 | } | |
16868 | return resultobj; | |
16869 | fail: | |
16870 | return NULL; | |
16871 | } | |
16872 | ||
16873 | ||
c370783e | 16874 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16875 | PyObject *resultobj; |
16876 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16877 | bool result; | |
16878 | PyObject * obj0 = 0 ; | |
16879 | char *kwnames[] = { | |
16880 | (char *) "self", NULL | |
16881 | }; | |
16882 | ||
16883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
16884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16886 | { | |
16887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16888 | result = (bool)(arg1)->RemoveAll(); | |
16889 | ||
16890 | wxPyEndAllowThreads(__tstate); | |
16891 | if (PyErr_Occurred()) SWIG_fail; | |
16892 | } | |
16893 | { | |
16894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16895 | } | |
16896 | return resultobj; | |
16897 | fail: | |
16898 | return NULL; | |
16899 | } | |
16900 | ||
16901 | ||
c370783e | 16902 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16903 | PyObject *resultobj; |
16904 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16905 | int arg2 ; | |
16906 | int *arg3 = 0 ; | |
16907 | int *arg4 = 0 ; | |
16908 | int temp3 ; | |
c370783e | 16909 | int res3 = 0 ; |
d55e5bfc | 16910 | int temp4 ; |
c370783e | 16911 | int res4 = 0 ; |
d55e5bfc RD |
16912 | PyObject * obj0 = 0 ; |
16913 | PyObject * obj1 = 0 ; | |
16914 | char *kwnames[] = { | |
16915 | (char *) "self",(char *) "index", NULL | |
16916 | }; | |
16917 | ||
c370783e RD |
16918 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
16919 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
16920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
16921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16923 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16924 | if (PyErr_Occurred()) SWIG_fail; |
16925 | { | |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
16933 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
16934 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
16935 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
16936 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
16937 | return resultobj; |
16938 | fail: | |
16939 | return NULL; | |
16940 | } | |
16941 | ||
16942 | ||
c370783e | 16943 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16944 | PyObject *obj; |
16945 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16946 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16947 | Py_INCREF(obj); | |
16948 | return Py_BuildValue((char *)""); | |
16949 | } | |
c370783e | 16950 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
d55e5bfc RD |
16951 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); |
16952 | return 1; | |
16953 | } | |
16954 | ||
16955 | ||
16956 | static PyObject *_wrap_NORMAL_FONT_get() { | |
16957 | PyObject *pyobj; | |
16958 | ||
16959 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); | |
16960 | return pyobj; | |
16961 | } | |
16962 | ||
16963 | ||
c370783e | 16964 | static int _wrap_SMALL_FONT_set(PyObject *) { |
d55e5bfc RD |
16965 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); |
16966 | return 1; | |
16967 | } | |
16968 | ||
16969 | ||
16970 | static PyObject *_wrap_SMALL_FONT_get() { | |
16971 | PyObject *pyobj; | |
16972 | ||
16973 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); | |
16974 | return pyobj; | |
16975 | } | |
16976 | ||
16977 | ||
c370783e | 16978 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
d55e5bfc RD |
16979 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); |
16980 | return 1; | |
16981 | } | |
16982 | ||
16983 | ||
16984 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16985 | PyObject *pyobj; | |
16986 | ||
16987 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); | |
16988 | return pyobj; | |
16989 | } | |
16990 | ||
16991 | ||
c370783e | 16992 | static int _wrap_SWISS_FONT_set(PyObject *) { |
d55e5bfc RD |
16993 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); |
16994 | return 1; | |
16995 | } | |
16996 | ||
16997 | ||
16998 | static PyObject *_wrap_SWISS_FONT_get() { | |
16999 | PyObject *pyobj; | |
17000 | ||
17001 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); | |
17002 | return pyobj; | |
17003 | } | |
17004 | ||
17005 | ||
c370783e | 17006 | static int _wrap_RED_PEN_set(PyObject *) { |
d55e5bfc RD |
17007 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); |
17008 | return 1; | |
17009 | } | |
17010 | ||
17011 | ||
17012 | static PyObject *_wrap_RED_PEN_get() { | |
17013 | PyObject *pyobj; | |
17014 | ||
17015 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); | |
17016 | return pyobj; | |
17017 | } | |
17018 | ||
17019 | ||
c370783e | 17020 | static int _wrap_CYAN_PEN_set(PyObject *) { |
d55e5bfc RD |
17021 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); |
17022 | return 1; | |
17023 | } | |
17024 | ||
17025 | ||
17026 | static PyObject *_wrap_CYAN_PEN_get() { | |
17027 | PyObject *pyobj; | |
17028 | ||
17029 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); | |
17030 | return pyobj; | |
17031 | } | |
17032 | ||
17033 | ||
c370783e | 17034 | static int _wrap_GREEN_PEN_set(PyObject *) { |
d55e5bfc RD |
17035 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); |
17036 | return 1; | |
17037 | } | |
17038 | ||
17039 | ||
17040 | static PyObject *_wrap_GREEN_PEN_get() { | |
17041 | PyObject *pyobj; | |
17042 | ||
17043 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); | |
17044 | return pyobj; | |
17045 | } | |
17046 | ||
17047 | ||
c370783e | 17048 | static int _wrap_BLACK_PEN_set(PyObject *) { |
d55e5bfc RD |
17049 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); |
17050 | return 1; | |
17051 | } | |
17052 | ||
17053 | ||
17054 | static PyObject *_wrap_BLACK_PEN_get() { | |
17055 | PyObject *pyobj; | |
17056 | ||
17057 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); | |
17058 | return pyobj; | |
17059 | } | |
17060 | ||
17061 | ||
c370783e | 17062 | static int _wrap_WHITE_PEN_set(PyObject *) { |
d55e5bfc RD |
17063 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); |
17064 | return 1; | |
17065 | } | |
17066 | ||
17067 | ||
17068 | static PyObject *_wrap_WHITE_PEN_get() { | |
17069 | PyObject *pyobj; | |
17070 | ||
17071 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); | |
17072 | return pyobj; | |
17073 | } | |
17074 | ||
17075 | ||
c370783e | 17076 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
d55e5bfc RD |
17077 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); |
17078 | return 1; | |
17079 | } | |
17080 | ||
17081 | ||
17082 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
17083 | PyObject *pyobj; | |
17084 | ||
17085 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); | |
17086 | return pyobj; | |
17087 | } | |
17088 | ||
17089 | ||
c370783e | 17090 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
d55e5bfc RD |
17091 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); |
17092 | return 1; | |
17093 | } | |
17094 | ||
17095 | ||
17096 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
17097 | PyObject *pyobj; | |
17098 | ||
17099 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); | |
17100 | return pyobj; | |
17101 | } | |
17102 | ||
17103 | ||
c370783e | 17104 | static int _wrap_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17105 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); |
17106 | return 1; | |
17107 | } | |
17108 | ||
17109 | ||
17110 | static PyObject *_wrap_GREY_PEN_get() { | |
17111 | PyObject *pyobj; | |
17112 | ||
17113 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17114 | return pyobj; | |
17115 | } | |
17116 | ||
17117 | ||
c370783e | 17118 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17119 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); |
17120 | return 1; | |
17121 | } | |
17122 | ||
17123 | ||
17124 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
17125 | PyObject *pyobj; | |
17126 | ||
17127 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17128 | return pyobj; | |
17129 | } | |
17130 | ||
17131 | ||
c370783e | 17132 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
d55e5bfc RD |
17133 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); |
17134 | return 1; | |
17135 | } | |
17136 | ||
17137 | ||
17138 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
17139 | PyObject *pyobj; | |
17140 | ||
17141 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17142 | return pyobj; | |
17143 | } | |
17144 | ||
17145 | ||
c370783e | 17146 | static int _wrap_BLUE_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17147 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); |
17148 | return 1; | |
17149 | } | |
17150 | ||
17151 | ||
17152 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
17153 | PyObject *pyobj; | |
17154 | ||
17155 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17156 | return pyobj; | |
17157 | } | |
17158 | ||
17159 | ||
c370783e | 17160 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17161 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); |
17162 | return 1; | |
17163 | } | |
17164 | ||
17165 | ||
17166 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
17167 | PyObject *pyobj; | |
17168 | ||
17169 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17170 | return pyobj; | |
17171 | } | |
17172 | ||
17173 | ||
c370783e | 17174 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17175 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); |
17176 | return 1; | |
17177 | } | |
17178 | ||
17179 | ||
17180 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
17181 | PyObject *pyobj; | |
17182 | ||
17183 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17184 | return pyobj; | |
17185 | } | |
17186 | ||
17187 | ||
c370783e | 17188 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17189 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); |
17190 | return 1; | |
17191 | } | |
17192 | ||
17193 | ||
17194 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
17195 | PyObject *pyobj; | |
17196 | ||
17197 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17198 | return pyobj; | |
17199 | } | |
17200 | ||
17201 | ||
c370783e | 17202 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17203 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); |
17204 | return 1; | |
17205 | } | |
17206 | ||
17207 | ||
17208 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
17209 | PyObject *pyobj; | |
17210 | ||
17211 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17212 | return pyobj; | |
17213 | } | |
17214 | ||
17215 | ||
c370783e | 17216 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17217 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); |
17218 | return 1; | |
17219 | } | |
17220 | ||
17221 | ||
17222 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
17223 | PyObject *pyobj; | |
17224 | ||
17225 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17226 | return pyobj; | |
17227 | } | |
17228 | ||
17229 | ||
c370783e | 17230 | static int _wrap_RED_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17231 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); |
17232 | return 1; | |
17233 | } | |
17234 | ||
17235 | ||
17236 | static PyObject *_wrap_RED_BRUSH_get() { | |
17237 | PyObject *pyobj; | |
17238 | ||
17239 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17240 | return pyobj; | |
17241 | } | |
17242 | ||
17243 | ||
c370783e | 17244 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17245 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); |
17246 | return 1; | |
17247 | } | |
17248 | ||
17249 | ||
17250 | static PyObject *_wrap_GREY_BRUSH_get() { | |
17251 | PyObject *pyobj; | |
17252 | ||
17253 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17254 | return pyobj; | |
17255 | } | |
17256 | ||
17257 | ||
c370783e | 17258 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17259 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); |
17260 | return 1; | |
17261 | } | |
17262 | ||
17263 | ||
17264 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
17265 | PyObject *pyobj; | |
17266 | ||
17267 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17268 | return pyobj; | |
17269 | } | |
17270 | ||
17271 | ||
c370783e | 17272 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
d55e5bfc RD |
17273 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); |
17274 | return 1; | |
17275 | } | |
17276 | ||
17277 | ||
17278 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
17279 | PyObject *pyobj; | |
17280 | ||
17281 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17282 | return pyobj; | |
17283 | } | |
17284 | ||
17285 | ||
c370783e | 17286 | static int _wrap_BLACK_set(PyObject *) { |
d55e5bfc RD |
17287 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); |
17288 | return 1; | |
17289 | } | |
17290 | ||
17291 | ||
17292 | static PyObject *_wrap_BLACK_get() { | |
17293 | PyObject *pyobj; | |
17294 | ||
17295 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
17296 | return pyobj; | |
17297 | } | |
17298 | ||
17299 | ||
c370783e | 17300 | static int _wrap_WHITE_set(PyObject *) { |
d55e5bfc RD |
17301 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); |
17302 | return 1; | |
17303 | } | |
17304 | ||
17305 | ||
17306 | static PyObject *_wrap_WHITE_get() { | |
17307 | PyObject *pyobj; | |
17308 | ||
17309 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
17310 | return pyobj; | |
17311 | } | |
17312 | ||
17313 | ||
c370783e | 17314 | static int _wrap_RED_set(PyObject *) { |
d55e5bfc RD |
17315 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); |
17316 | return 1; | |
17317 | } | |
17318 | ||
17319 | ||
17320 | static PyObject *_wrap_RED_get() { | |
17321 | PyObject *pyobj; | |
17322 | ||
17323 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
17324 | return pyobj; | |
17325 | } | |
17326 | ||
17327 | ||
c370783e | 17328 | static int _wrap_BLUE_set(PyObject *) { |
d55e5bfc RD |
17329 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); |
17330 | return 1; | |
17331 | } | |
17332 | ||
17333 | ||
17334 | static PyObject *_wrap_BLUE_get() { | |
17335 | PyObject *pyobj; | |
17336 | ||
17337 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
17338 | return pyobj; | |
17339 | } | |
17340 | ||
17341 | ||
c370783e | 17342 | static int _wrap_GREEN_set(PyObject *) { |
d55e5bfc RD |
17343 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
17344 | return 1; | |
17345 | } | |
17346 | ||
17347 | ||
17348 | static PyObject *_wrap_GREEN_get() { | |
17349 | PyObject *pyobj; | |
17350 | ||
17351 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
17352 | return pyobj; | |
17353 | } | |
17354 | ||
17355 | ||
c370783e | 17356 | static int _wrap_CYAN_set(PyObject *) { |
d55e5bfc RD |
17357 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
17358 | return 1; | |
17359 | } | |
17360 | ||
17361 | ||
17362 | static PyObject *_wrap_CYAN_get() { | |
17363 | PyObject *pyobj; | |
17364 | ||
17365 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
17366 | return pyobj; | |
17367 | } | |
17368 | ||
17369 | ||
c370783e | 17370 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
d55e5bfc RD |
17371 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
17372 | return 1; | |
17373 | } | |
17374 | ||
17375 | ||
17376 | static PyObject *_wrap_LIGHT_GREY_get() { | |
17377 | PyObject *pyobj; | |
17378 | ||
17379 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
17380 | return pyobj; | |
17381 | } | |
17382 | ||
17383 | ||
c370783e | 17384 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
d55e5bfc RD |
17385 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
17386 | return 1; | |
17387 | } | |
17388 | ||
17389 | ||
17390 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
17391 | PyObject *pyobj; | |
17392 | ||
17393 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17394 | return pyobj; | |
17395 | } | |
17396 | ||
17397 | ||
c370783e | 17398 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
d55e5bfc RD |
17399 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
17400 | return 1; | |
17401 | } | |
17402 | ||
17403 | ||
17404 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
17405 | PyObject *pyobj; | |
17406 | ||
17407 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17408 | return pyobj; | |
17409 | } | |
17410 | ||
17411 | ||
c370783e | 17412 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
d55e5bfc RD |
17413 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
17414 | return 1; | |
17415 | } | |
17416 | ||
17417 | ||
17418 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
17419 | PyObject *pyobj; | |
17420 | ||
17421 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17422 | return pyobj; | |
17423 | } | |
17424 | ||
17425 | ||
c370783e | 17426 | static int _wrap_NullBitmap_set(PyObject *) { |
d55e5bfc RD |
17427 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
17428 | return 1; | |
17429 | } | |
17430 | ||
17431 | ||
17432 | static PyObject *_wrap_NullBitmap_get() { | |
17433 | PyObject *pyobj; | |
17434 | ||
17435 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
17436 | return pyobj; | |
17437 | } | |
17438 | ||
17439 | ||
c370783e | 17440 | static int _wrap_NullIcon_set(PyObject *) { |
d55e5bfc RD |
17441 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
17442 | return 1; | |
17443 | } | |
17444 | ||
17445 | ||
17446 | static PyObject *_wrap_NullIcon_get() { | |
17447 | PyObject *pyobj; | |
17448 | ||
17449 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
17450 | return pyobj; | |
17451 | } | |
17452 | ||
17453 | ||
c370783e | 17454 | static int _wrap_NullCursor_set(PyObject *) { |
d55e5bfc RD |
17455 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
17456 | return 1; | |
17457 | } | |
17458 | ||
17459 | ||
17460 | static PyObject *_wrap_NullCursor_get() { | |
17461 | PyObject *pyobj; | |
17462 | ||
17463 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
17464 | return pyobj; | |
17465 | } | |
17466 | ||
17467 | ||
c370783e | 17468 | static int _wrap_NullPen_set(PyObject *) { |
d55e5bfc RD |
17469 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
17470 | return 1; | |
17471 | } | |
17472 | ||
17473 | ||
17474 | static PyObject *_wrap_NullPen_get() { | |
17475 | PyObject *pyobj; | |
17476 | ||
17477 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
17478 | return pyobj; | |
17479 | } | |
17480 | ||
17481 | ||
c370783e | 17482 | static int _wrap_NullBrush_set(PyObject *) { |
d55e5bfc RD |
17483 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
17484 | return 1; | |
17485 | } | |
17486 | ||
17487 | ||
17488 | static PyObject *_wrap_NullBrush_get() { | |
17489 | PyObject *pyobj; | |
17490 | ||
17491 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
17492 | return pyobj; | |
17493 | } | |
17494 | ||
17495 | ||
c370783e | 17496 | static int _wrap_NullPalette_set(PyObject *) { |
d55e5bfc RD |
17497 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
17498 | return 1; | |
17499 | } | |
17500 | ||
17501 | ||
17502 | static PyObject *_wrap_NullPalette_get() { | |
17503 | PyObject *pyobj; | |
17504 | ||
17505 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
17506 | return pyobj; | |
17507 | } | |
17508 | ||
17509 | ||
c370783e | 17510 | static int _wrap_NullFont_set(PyObject *) { |
d55e5bfc RD |
17511 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
17512 | return 1; | |
17513 | } | |
17514 | ||
17515 | ||
17516 | static PyObject *_wrap_NullFont_get() { | |
17517 | PyObject *pyobj; | |
17518 | ||
17519 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
17520 | return pyobj; | |
17521 | } | |
17522 | ||
17523 | ||
c370783e | 17524 | static int _wrap_NullColour_set(PyObject *) { |
d55e5bfc RD |
17525 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
17526 | return 1; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static PyObject *_wrap_NullColour_get() { | |
17531 | PyObject *pyobj; | |
17532 | ||
17533 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
17534 | return pyobj; | |
17535 | } | |
17536 | ||
17537 | ||
c370783e | 17538 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17539 | PyObject *resultobj; |
17540 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17541 | wxPen *arg2 = (wxPen *) 0 ; | |
17542 | PyObject * obj0 = 0 ; | |
17543 | PyObject * obj1 = 0 ; | |
17544 | char *kwnames[] = { | |
17545 | (char *) "self",(char *) "pen", NULL | |
17546 | }; | |
17547 | ||
17548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
17549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17553 | { | |
17554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17555 | (arg1)->AddPen(arg2); | |
17556 | ||
17557 | wxPyEndAllowThreads(__tstate); | |
17558 | if (PyErr_Occurred()) SWIG_fail; | |
17559 | } | |
17560 | Py_INCREF(Py_None); resultobj = Py_None; | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | return NULL; | |
17564 | } | |
17565 | ||
17566 | ||
c370783e | 17567 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17568 | PyObject *resultobj; |
17569 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17570 | wxColour *arg2 = 0 ; | |
17571 | int arg3 ; | |
17572 | int arg4 ; | |
17573 | wxPen *result; | |
17574 | wxColour temp2 ; | |
17575 | PyObject * obj0 = 0 ; | |
17576 | PyObject * obj1 = 0 ; | |
17577 | PyObject * obj2 = 0 ; | |
17578 | PyObject * obj3 = 0 ; | |
17579 | char *kwnames[] = { | |
17580 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17581 | }; | |
17582 | ||
17583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17586 | { | |
17587 | arg2 = &temp2; | |
17588 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17589 | } | |
c370783e | 17590 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 17591 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 17592 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
17593 | if (PyErr_Occurred()) SWIG_fail; |
17594 | { | |
17595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17596 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17597 | ||
17598 | wxPyEndAllowThreads(__tstate); | |
17599 | if (PyErr_Occurred()) SWIG_fail; | |
17600 | } | |
17601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
17602 | return resultobj; | |
17603 | fail: | |
17604 | return NULL; | |
17605 | } | |
17606 | ||
17607 | ||
c370783e | 17608 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17609 | PyObject *resultobj; |
17610 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17611 | wxPen *arg2 = (wxPen *) 0 ; | |
17612 | PyObject * obj0 = 0 ; | |
17613 | PyObject * obj1 = 0 ; | |
17614 | char *kwnames[] = { | |
17615 | (char *) "self",(char *) "pen", NULL | |
17616 | }; | |
17617 | ||
17618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
17619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17623 | { | |
17624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17625 | (arg1)->RemovePen(arg2); | |
17626 | ||
17627 | wxPyEndAllowThreads(__tstate); | |
17628 | if (PyErr_Occurred()) SWIG_fail; | |
17629 | } | |
17630 | Py_INCREF(Py_None); resultobj = Py_None; | |
17631 | return resultobj; | |
17632 | fail: | |
17633 | return NULL; | |
17634 | } | |
17635 | ||
17636 | ||
c370783e | 17637 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17638 | PyObject *resultobj; |
17639 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17640 | int result; | |
17641 | PyObject * obj0 = 0 ; | |
17642 | char *kwnames[] = { | |
17643 | (char *) "self", NULL | |
17644 | }; | |
17645 | ||
17646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
17647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17649 | { | |
17650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17651 | result = (int)(arg1)->GetCount(); | |
17652 | ||
17653 | wxPyEndAllowThreads(__tstate); | |
17654 | if (PyErr_Occurred()) SWIG_fail; | |
17655 | } | |
c370783e | 17656 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17657 | return resultobj; |
17658 | fail: | |
17659 | return NULL; | |
17660 | } | |
17661 | ||
17662 | ||
c370783e | 17663 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17664 | PyObject *obj; |
17665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17666 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17667 | Py_INCREF(obj); | |
17668 | return Py_BuildValue((char *)""); | |
17669 | } | |
c370783e | 17670 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17671 | PyObject *resultobj; |
17672 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17673 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17674 | PyObject * obj0 = 0 ; | |
17675 | PyObject * obj1 = 0 ; | |
17676 | char *kwnames[] = { | |
17677 | (char *) "self",(char *) "brush", NULL | |
17678 | }; | |
17679 | ||
17680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
17681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17685 | { | |
17686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17687 | (arg1)->AddBrush(arg2); | |
17688 | ||
17689 | wxPyEndAllowThreads(__tstate); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
17691 | } | |
17692 | Py_INCREF(Py_None); resultobj = Py_None; | |
17693 | return resultobj; | |
17694 | fail: | |
17695 | return NULL; | |
17696 | } | |
17697 | ||
17698 | ||
c370783e | 17699 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17700 | PyObject *resultobj; |
17701 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17702 | wxColour *arg2 = 0 ; | |
17703 | int arg3 ; | |
17704 | wxBrush *result; | |
17705 | wxColour temp2 ; | |
17706 | PyObject * obj0 = 0 ; | |
17707 | PyObject * obj1 = 0 ; | |
17708 | PyObject * obj2 = 0 ; | |
17709 | char *kwnames[] = { | |
17710 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17711 | }; | |
17712 | ||
17713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17716 | { | |
17717 | arg2 = &temp2; | |
17718 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17719 | } | |
c370783e | 17720 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17721 | if (PyErr_Occurred()) SWIG_fail; |
17722 | { | |
17723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17724 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17725 | ||
17726 | wxPyEndAllowThreads(__tstate); | |
17727 | if (PyErr_Occurred()) SWIG_fail; | |
17728 | } | |
17729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
17730 | return resultobj; | |
17731 | fail: | |
17732 | return NULL; | |
17733 | } | |
17734 | ||
17735 | ||
c370783e | 17736 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17737 | PyObject *resultobj; |
17738 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17739 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17740 | PyObject * obj0 = 0 ; | |
17741 | PyObject * obj1 = 0 ; | |
17742 | char *kwnames[] = { | |
17743 | (char *) "self",(char *) "brush", NULL | |
17744 | }; | |
17745 | ||
17746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
17747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17751 | { | |
17752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17753 | (arg1)->RemoveBrush(arg2); | |
17754 | ||
17755 | wxPyEndAllowThreads(__tstate); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
17758 | Py_INCREF(Py_None); resultobj = Py_None; | |
17759 | return resultobj; | |
17760 | fail: | |
17761 | return NULL; | |
17762 | } | |
17763 | ||
17764 | ||
c370783e | 17765 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17766 | PyObject *resultobj; |
17767 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17768 | int result; | |
17769 | PyObject * obj0 = 0 ; | |
17770 | char *kwnames[] = { | |
17771 | (char *) "self", NULL | |
17772 | }; | |
17773 | ||
17774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
17775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17777 | { | |
17778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17779 | result = (int)(arg1)->GetCount(); | |
17780 | ||
17781 | wxPyEndAllowThreads(__tstate); | |
17782 | if (PyErr_Occurred()) SWIG_fail; | |
17783 | } | |
c370783e | 17784 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17785 | return resultobj; |
17786 | fail: | |
17787 | return NULL; | |
17788 | } | |
17789 | ||
17790 | ||
c370783e | 17791 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17792 | PyObject *obj; |
17793 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17794 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17795 | Py_INCREF(obj); | |
17796 | return Py_BuildValue((char *)""); | |
17797 | } | |
c370783e | 17798 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17799 | PyObject *resultobj; |
17800 | wxColourDatabase *result; | |
17801 | char *kwnames[] = { | |
17802 | NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
17806 | { | |
0439c23b | 17807 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17809 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17810 | ||
17811 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17812 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17813 | } |
17814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
17815 | return resultobj; | |
17816 | fail: | |
17817 | return NULL; | |
17818 | } | |
17819 | ||
17820 | ||
c370783e | 17821 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17822 | PyObject *resultobj; |
17823 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17824 | PyObject * obj0 = 0 ; | |
17825 | char *kwnames[] = { | |
17826 | (char *) "self", NULL | |
17827 | }; | |
17828 | ||
17829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
17830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17832 | { | |
17833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17834 | delete arg1; | |
17835 | ||
17836 | wxPyEndAllowThreads(__tstate); | |
17837 | if (PyErr_Occurred()) SWIG_fail; | |
17838 | } | |
17839 | Py_INCREF(Py_None); resultobj = Py_None; | |
17840 | return resultobj; | |
17841 | fail: | |
17842 | return NULL; | |
17843 | } | |
17844 | ||
17845 | ||
c370783e | 17846 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17847 | PyObject *resultobj; |
17848 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17849 | wxString *arg2 = 0 ; | |
17850 | wxColour result; | |
b411df4a | 17851 | bool temp2 = false ; |
d55e5bfc RD |
17852 | PyObject * obj0 = 0 ; |
17853 | PyObject * obj1 = 0 ; | |
17854 | char *kwnames[] = { | |
17855 | (char *) "self",(char *) "name", NULL | |
17856 | }; | |
17857 | ||
17858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
17859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17861 | { | |
17862 | arg2 = wxString_in_helper(obj1); | |
17863 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17864 | temp2 = true; |
d55e5bfc RD |
17865 | } |
17866 | { | |
17867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17868 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17869 | ||
17870 | wxPyEndAllowThreads(__tstate); | |
17871 | if (PyErr_Occurred()) SWIG_fail; | |
17872 | } | |
17873 | { | |
17874 | wxColour * resultptr; | |
17875 | resultptr = new wxColour((wxColour &) result); | |
17876 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17877 | } | |
17878 | { | |
17879 | if (temp2) | |
17880 | delete arg2; | |
17881 | } | |
17882 | return resultobj; | |
17883 | fail: | |
17884 | { | |
17885 | if (temp2) | |
17886 | delete arg2; | |
17887 | } | |
17888 | return NULL; | |
17889 | } | |
17890 | ||
17891 | ||
c370783e | 17892 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17893 | PyObject *resultobj; |
17894 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17895 | wxColour *arg2 = 0 ; | |
17896 | wxString result; | |
17897 | wxColour temp2 ; | |
17898 | PyObject * obj0 = 0 ; | |
17899 | PyObject * obj1 = 0 ; | |
17900 | char *kwnames[] = { | |
17901 | (char *) "self",(char *) "colour", NULL | |
17902 | }; | |
17903 | ||
17904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
17905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17907 | { | |
17908 | arg2 = &temp2; | |
17909 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17910 | } | |
17911 | { | |
17912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17913 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17914 | ||
17915 | wxPyEndAllowThreads(__tstate); | |
17916 | if (PyErr_Occurred()) SWIG_fail; | |
17917 | } | |
17918 | { | |
17919 | #if wxUSE_UNICODE | |
17920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17921 | #else | |
17922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17923 | #endif | |
17924 | } | |
17925 | return resultobj; | |
17926 | fail: | |
17927 | return NULL; | |
17928 | } | |
17929 | ||
17930 | ||
c370783e | 17931 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17932 | PyObject *resultobj; |
17933 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17934 | wxString *arg2 = 0 ; | |
17935 | wxColour *arg3 = 0 ; | |
b411df4a | 17936 | bool temp2 = false ; |
d55e5bfc RD |
17937 | wxColour temp3 ; |
17938 | PyObject * obj0 = 0 ; | |
17939 | PyObject * obj1 = 0 ; | |
17940 | PyObject * obj2 = 0 ; | |
17941 | char *kwnames[] = { | |
17942 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17943 | }; | |
17944 | ||
17945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17948 | { | |
17949 | arg2 = wxString_in_helper(obj1); | |
17950 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 17951 | temp2 = true; |
d55e5bfc RD |
17952 | } |
17953 | { | |
17954 | arg3 = &temp3; | |
17955 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17956 | } | |
17957 | { | |
17958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17959 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17960 | ||
17961 | wxPyEndAllowThreads(__tstate); | |
17962 | if (PyErr_Occurred()) SWIG_fail; | |
17963 | } | |
17964 | Py_INCREF(Py_None); resultobj = Py_None; | |
17965 | { | |
17966 | if (temp2) | |
17967 | delete arg2; | |
17968 | } | |
17969 | return resultobj; | |
17970 | fail: | |
17971 | { | |
17972 | if (temp2) | |
17973 | delete arg2; | |
17974 | } | |
17975 | return NULL; | |
17976 | } | |
17977 | ||
17978 | ||
c370783e | 17979 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17980 | PyObject *resultobj; |
17981 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17982 | wxString *arg2 = 0 ; | |
17983 | int arg3 ; | |
17984 | int arg4 ; | |
17985 | int arg5 ; | |
b411df4a | 17986 | bool temp2 = false ; |
d55e5bfc RD |
17987 | PyObject * obj0 = 0 ; |
17988 | PyObject * obj1 = 0 ; | |
17989 | PyObject * obj2 = 0 ; | |
17990 | PyObject * obj3 = 0 ; | |
17991 | PyObject * obj4 = 0 ; | |
17992 | char *kwnames[] = { | |
17993 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17994 | }; | |
17995 | ||
17996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17999 | { | |
18000 | arg2 = wxString_in_helper(obj1); | |
18001 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18002 | temp2 = true; |
d55e5bfc | 18003 | } |
c370783e | 18004 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 18005 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18006 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 18007 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18008 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18009 | if (PyErr_Occurred()) SWIG_fail; |
18010 | { | |
18011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18012 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18013 | ||
18014 | wxPyEndAllowThreads(__tstate); | |
18015 | if (PyErr_Occurred()) SWIG_fail; | |
18016 | } | |
18017 | Py_INCREF(Py_None); resultobj = Py_None; | |
18018 | { | |
18019 | if (temp2) | |
18020 | delete arg2; | |
18021 | } | |
18022 | return resultobj; | |
18023 | fail: | |
18024 | { | |
18025 | if (temp2) | |
18026 | delete arg2; | |
18027 | } | |
18028 | return NULL; | |
18029 | } | |
18030 | ||
18031 | ||
c370783e | 18032 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18033 | PyObject *obj; |
18034 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18035 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
18036 | Py_INCREF(obj); | |
18037 | return Py_BuildValue((char *)""); | |
18038 | } | |
c370783e | 18039 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18040 | PyObject *resultobj; |
18041 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18042 | wxFont *arg2 = (wxFont *) 0 ; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | PyObject * obj1 = 0 ; | |
18045 | char *kwnames[] = { | |
18046 | (char *) "self",(char *) "font", NULL | |
18047 | }; | |
18048 | ||
18049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
18050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18054 | { | |
18055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18056 | (arg1)->AddFont(arg2); | |
18057 | ||
18058 | wxPyEndAllowThreads(__tstate); | |
18059 | if (PyErr_Occurred()) SWIG_fail; | |
18060 | } | |
18061 | Py_INCREF(Py_None); resultobj = Py_None; | |
18062 | return resultobj; | |
18063 | fail: | |
18064 | return NULL; | |
18065 | } | |
18066 | ||
18067 | ||
c370783e | 18068 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18069 | PyObject *resultobj; |
18070 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18071 | int arg2 ; | |
18072 | int arg3 ; | |
18073 | int arg4 ; | |
18074 | int arg5 ; | |
b411df4a | 18075 | bool arg6 = (bool) false ; |
d55e5bfc RD |
18076 | wxString const &arg7_defvalue = wxPyEmptyString ; |
18077 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18078 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
18079 | wxFont *result; | |
b411df4a | 18080 | bool temp7 = false ; |
d55e5bfc RD |
18081 | PyObject * obj0 = 0 ; |
18082 | PyObject * obj1 = 0 ; | |
18083 | PyObject * obj2 = 0 ; | |
18084 | PyObject * obj3 = 0 ; | |
18085 | PyObject * obj4 = 0 ; | |
18086 | PyObject * obj5 = 0 ; | |
18087 | PyObject * obj6 = 0 ; | |
18088 | PyObject * obj7 = 0 ; | |
18089 | char *kwnames[] = { | |
18090 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
18091 | }; | |
18092 | ||
18093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18096 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 18097 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18098 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 18099 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18100 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 18101 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 18102 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
18103 | if (PyErr_Occurred()) SWIG_fail; |
18104 | if (obj5) { | |
c370783e | 18105 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
18106 | if (PyErr_Occurred()) SWIG_fail; |
18107 | } | |
18108 | if (obj6) { | |
18109 | { | |
18110 | arg7 = wxString_in_helper(obj6); | |
18111 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 18112 | temp7 = true; |
d55e5bfc RD |
18113 | } |
18114 | } | |
18115 | if (obj7) { | |
c370783e | 18116 | arg8 = (int)SWIG_As_int(obj7); |
d55e5bfc RD |
18117 | if (PyErr_Occurred()) SWIG_fail; |
18118 | } | |
18119 | { | |
18120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18121 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
18122 | ||
18123 | wxPyEndAllowThreads(__tstate); | |
18124 | if (PyErr_Occurred()) SWIG_fail; | |
18125 | } | |
18126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
18127 | { | |
18128 | if (temp7) | |
18129 | delete arg7; | |
18130 | } | |
18131 | return resultobj; | |
18132 | fail: | |
18133 | { | |
18134 | if (temp7) | |
18135 | delete arg7; | |
18136 | } | |
18137 | return NULL; | |
18138 | } | |
18139 | ||
18140 | ||
c370783e | 18141 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18142 | PyObject *resultobj; |
18143 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18144 | wxFont *arg2 = (wxFont *) 0 ; | |
18145 | PyObject * obj0 = 0 ; | |
18146 | PyObject * obj1 = 0 ; | |
18147 | char *kwnames[] = { | |
18148 | (char *) "self",(char *) "font", NULL | |
18149 | }; | |
18150 | ||
18151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
18152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18156 | { | |
18157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18158 | (arg1)->RemoveFont(arg2); | |
18159 | ||
18160 | wxPyEndAllowThreads(__tstate); | |
18161 | if (PyErr_Occurred()) SWIG_fail; | |
18162 | } | |
18163 | Py_INCREF(Py_None); resultobj = Py_None; | |
18164 | return resultobj; | |
18165 | fail: | |
18166 | return NULL; | |
18167 | } | |
18168 | ||
18169 | ||
c370783e | 18170 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18171 | PyObject *resultobj; |
18172 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18173 | int result; | |
18174 | PyObject * obj0 = 0 ; | |
18175 | char *kwnames[] = { | |
18176 | (char *) "self", NULL | |
18177 | }; | |
18178 | ||
18179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
18180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18182 | { | |
18183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18184 | result = (int)(arg1)->GetCount(); | |
18185 | ||
18186 | wxPyEndAllowThreads(__tstate); | |
18187 | if (PyErr_Occurred()) SWIG_fail; | |
18188 | } | |
c370783e | 18189 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18190 | return resultobj; |
18191 | fail: | |
18192 | return NULL; | |
18193 | } | |
18194 | ||
18195 | ||
c370783e | 18196 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18197 | PyObject *obj; |
18198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18199 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
18200 | Py_INCREF(obj); | |
18201 | return Py_BuildValue((char *)""); | |
18202 | } | |
c370783e | 18203 | static int _wrap_TheFontList_set(PyObject *) { |
d55e5bfc RD |
18204 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
18205 | return 1; | |
18206 | } | |
18207 | ||
18208 | ||
18209 | static PyObject *_wrap_TheFontList_get() { | |
18210 | PyObject *pyobj; | |
18211 | ||
18212 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
18213 | return pyobj; | |
18214 | } | |
18215 | ||
18216 | ||
c370783e | 18217 | static int _wrap_ThePenList_set(PyObject *) { |
d55e5bfc RD |
18218 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
18219 | return 1; | |
18220 | } | |
18221 | ||
18222 | ||
18223 | static PyObject *_wrap_ThePenList_get() { | |
18224 | PyObject *pyobj; | |
18225 | ||
18226 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
18227 | return pyobj; | |
18228 | } | |
18229 | ||
18230 | ||
c370783e | 18231 | static int _wrap_TheBrushList_set(PyObject *) { |
d55e5bfc RD |
18232 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
18233 | return 1; | |
18234 | } | |
18235 | ||
18236 | ||
18237 | static PyObject *_wrap_TheBrushList_get() { | |
18238 | PyObject *pyobj; | |
18239 | ||
18240 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
18241 | return pyobj; | |
18242 | } | |
18243 | ||
18244 | ||
c370783e | 18245 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d55e5bfc RD |
18246 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
18247 | return 1; | |
18248 | } | |
18249 | ||
18250 | ||
18251 | static PyObject *_wrap_TheColourDatabase_get() { | |
18252 | PyObject *pyobj; | |
18253 | ||
18254 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
18255 | return pyobj; | |
18256 | } | |
18257 | ||
18258 | ||
c370783e | 18259 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18260 | PyObject *resultobj; |
18261 | wxEffects *result; | |
18262 | char *kwnames[] = { | |
18263 | NULL | |
18264 | }; | |
18265 | ||
18266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
18267 | { | |
18268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18269 | result = (wxEffects *)new wxEffects(); | |
18270 | ||
18271 | wxPyEndAllowThreads(__tstate); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
18274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
18275 | return resultobj; | |
18276 | fail: | |
18277 | return NULL; | |
18278 | } | |
18279 | ||
18280 | ||
c370783e | 18281 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18282 | PyObject *resultobj; |
18283 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18284 | wxColour result; | |
18285 | PyObject * obj0 = 0 ; | |
18286 | char *kwnames[] = { | |
18287 | (char *) "self", NULL | |
18288 | }; | |
18289 | ||
18290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
18291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18293 | { | |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
18296 | ||
18297 | wxPyEndAllowThreads(__tstate); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | } | |
18300 | { | |
18301 | wxColour * resultptr; | |
18302 | resultptr = new wxColour((wxColour &) result); | |
18303 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18304 | } | |
18305 | return resultobj; | |
18306 | fail: | |
18307 | return NULL; | |
18308 | } | |
18309 | ||
18310 | ||
c370783e | 18311 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18312 | PyObject *resultobj; |
18313 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18314 | wxColour result; | |
18315 | PyObject * obj0 = 0 ; | |
18316 | char *kwnames[] = { | |
18317 | (char *) "self", NULL | |
18318 | }; | |
18319 | ||
18320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
18321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18323 | { | |
18324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18325 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
18326 | ||
18327 | wxPyEndAllowThreads(__tstate); | |
18328 | if (PyErr_Occurred()) SWIG_fail; | |
18329 | } | |
18330 | { | |
18331 | wxColour * resultptr; | |
18332 | resultptr = new wxColour((wxColour &) result); | |
18333 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18334 | } | |
18335 | return resultobj; | |
18336 | fail: | |
18337 | return NULL; | |
18338 | } | |
18339 | ||
18340 | ||
c370783e | 18341 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18342 | PyObject *resultobj; |
18343 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18344 | wxColour result; | |
18345 | PyObject * obj0 = 0 ; | |
18346 | char *kwnames[] = { | |
18347 | (char *) "self", NULL | |
18348 | }; | |
18349 | ||
18350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
18351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18353 | { | |
18354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18355 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
18356 | ||
18357 | wxPyEndAllowThreads(__tstate); | |
18358 | if (PyErr_Occurred()) SWIG_fail; | |
18359 | } | |
18360 | { | |
18361 | wxColour * resultptr; | |
18362 | resultptr = new wxColour((wxColour &) result); | |
18363 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18364 | } | |
18365 | return resultobj; | |
18366 | fail: | |
18367 | return NULL; | |
18368 | } | |
18369 | ||
18370 | ||
c370783e | 18371 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18372 | PyObject *resultobj; |
18373 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18374 | wxColour result; | |
18375 | PyObject * obj0 = 0 ; | |
18376 | char *kwnames[] = { | |
18377 | (char *) "self", NULL | |
18378 | }; | |
18379 | ||
18380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
18381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18383 | { | |
18384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18385 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18386 | ||
18387 | wxPyEndAllowThreads(__tstate); | |
18388 | if (PyErr_Occurred()) SWIG_fail; | |
18389 | } | |
18390 | { | |
18391 | wxColour * resultptr; | |
18392 | resultptr = new wxColour((wxColour &) result); | |
18393 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18394 | } | |
18395 | return resultobj; | |
18396 | fail: | |
18397 | return NULL; | |
18398 | } | |
18399 | ||
18400 | ||
c370783e | 18401 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18402 | PyObject *resultobj; |
18403 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18404 | wxColour result; | |
18405 | PyObject * obj0 = 0 ; | |
18406 | char *kwnames[] = { | |
18407 | (char *) "self", NULL | |
18408 | }; | |
18409 | ||
18410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
18411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18413 | { | |
18414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18415 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18416 | ||
18417 | wxPyEndAllowThreads(__tstate); | |
18418 | if (PyErr_Occurred()) SWIG_fail; | |
18419 | } | |
18420 | { | |
18421 | wxColour * resultptr; | |
18422 | resultptr = new wxColour((wxColour &) result); | |
18423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18424 | } | |
18425 | return resultobj; | |
18426 | fail: | |
18427 | return NULL; | |
18428 | } | |
18429 | ||
18430 | ||
c370783e | 18431 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18432 | PyObject *resultobj; |
18433 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18434 | wxColour *arg2 = 0 ; | |
18435 | wxColour temp2 ; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | PyObject * obj1 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "self",(char *) "c", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
18443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18445 | { | |
18446 | arg2 = &temp2; | |
18447 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18448 | } | |
18449 | { | |
18450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18451 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18452 | ||
18453 | wxPyEndAllowThreads(__tstate); | |
18454 | if (PyErr_Occurred()) SWIG_fail; | |
18455 | } | |
18456 | Py_INCREF(Py_None); resultobj = Py_None; | |
18457 | return resultobj; | |
18458 | fail: | |
18459 | return NULL; | |
18460 | } | |
18461 | ||
18462 | ||
c370783e | 18463 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18464 | PyObject *resultobj; |
18465 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18466 | wxColour *arg2 = 0 ; | |
18467 | wxColour temp2 ; | |
18468 | PyObject * obj0 = 0 ; | |
18469 | PyObject * obj1 = 0 ; | |
18470 | char *kwnames[] = { | |
18471 | (char *) "self",(char *) "c", NULL | |
18472 | }; | |
18473 | ||
18474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
18475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18477 | { | |
18478 | arg2 = &temp2; | |
18479 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18480 | } | |
18481 | { | |
18482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18483 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18484 | ||
18485 | wxPyEndAllowThreads(__tstate); | |
18486 | if (PyErr_Occurred()) SWIG_fail; | |
18487 | } | |
18488 | Py_INCREF(Py_None); resultobj = Py_None; | |
18489 | return resultobj; | |
18490 | fail: | |
18491 | return NULL; | |
18492 | } | |
18493 | ||
18494 | ||
c370783e | 18495 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18496 | PyObject *resultobj; |
18497 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18498 | wxColour *arg2 = 0 ; | |
18499 | wxColour temp2 ; | |
18500 | PyObject * obj0 = 0 ; | |
18501 | PyObject * obj1 = 0 ; | |
18502 | char *kwnames[] = { | |
18503 | (char *) "self",(char *) "c", NULL | |
18504 | }; | |
18505 | ||
18506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
18507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18509 | { | |
18510 | arg2 = &temp2; | |
18511 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18512 | } | |
18513 | { | |
18514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18515 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18516 | ||
18517 | wxPyEndAllowThreads(__tstate); | |
18518 | if (PyErr_Occurred()) SWIG_fail; | |
18519 | } | |
18520 | Py_INCREF(Py_None); resultobj = Py_None; | |
18521 | return resultobj; | |
18522 | fail: | |
18523 | return NULL; | |
18524 | } | |
18525 | ||
18526 | ||
c370783e | 18527 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18528 | PyObject *resultobj; |
18529 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18530 | wxColour *arg2 = 0 ; | |
18531 | wxColour temp2 ; | |
18532 | PyObject * obj0 = 0 ; | |
18533 | PyObject * obj1 = 0 ; | |
18534 | char *kwnames[] = { | |
18535 | (char *) "self",(char *) "c", NULL | |
18536 | }; | |
18537 | ||
18538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
18539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18541 | { | |
18542 | arg2 = &temp2; | |
18543 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18544 | } | |
18545 | { | |
18546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18547 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18548 | ||
18549 | wxPyEndAllowThreads(__tstate); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
18552 | Py_INCREF(Py_None); resultobj = Py_None; | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
18556 | } | |
18557 | ||
18558 | ||
c370783e | 18559 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18560 | PyObject *resultobj; |
18561 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18562 | wxColour *arg2 = 0 ; | |
18563 | wxColour temp2 ; | |
18564 | PyObject * obj0 = 0 ; | |
18565 | PyObject * obj1 = 0 ; | |
18566 | char *kwnames[] = { | |
18567 | (char *) "self",(char *) "c", NULL | |
18568 | }; | |
18569 | ||
18570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
18571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18573 | { | |
18574 | arg2 = &temp2; | |
18575 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18576 | } | |
18577 | { | |
18578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18579 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18580 | ||
18581 | wxPyEndAllowThreads(__tstate); | |
18582 | if (PyErr_Occurred()) SWIG_fail; | |
18583 | } | |
18584 | Py_INCREF(Py_None); resultobj = Py_None; | |
18585 | return resultobj; | |
18586 | fail: | |
18587 | return NULL; | |
18588 | } | |
18589 | ||
18590 | ||
c370783e | 18591 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18592 | PyObject *resultobj; |
18593 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18594 | wxColour *arg2 = 0 ; | |
18595 | wxColour *arg3 = 0 ; | |
18596 | wxColour *arg4 = 0 ; | |
18597 | wxColour *arg5 = 0 ; | |
18598 | wxColour *arg6 = 0 ; | |
18599 | wxColour temp2 ; | |
18600 | wxColour temp3 ; | |
18601 | wxColour temp4 ; | |
18602 | wxColour temp5 ; | |
18603 | wxColour temp6 ; | |
18604 | PyObject * obj0 = 0 ; | |
18605 | PyObject * obj1 = 0 ; | |
18606 | PyObject * obj2 = 0 ; | |
18607 | PyObject * obj3 = 0 ; | |
18608 | PyObject * obj4 = 0 ; | |
18609 | PyObject * obj5 = 0 ; | |
18610 | char *kwnames[] = { | |
18611 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18617 | { | |
18618 | arg2 = &temp2; | |
18619 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18620 | } | |
18621 | { | |
18622 | arg3 = &temp3; | |
18623 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18624 | } | |
18625 | { | |
18626 | arg4 = &temp4; | |
18627 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18628 | } | |
18629 | { | |
18630 | arg5 = &temp5; | |
18631 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18632 | } | |
18633 | { | |
18634 | arg6 = &temp6; | |
18635 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18636 | } | |
18637 | { | |
18638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18639 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18640 | ||
18641 | wxPyEndAllowThreads(__tstate); | |
18642 | if (PyErr_Occurred()) SWIG_fail; | |
18643 | } | |
18644 | Py_INCREF(Py_None); resultobj = Py_None; | |
18645 | return resultobj; | |
18646 | fail: | |
18647 | return NULL; | |
18648 | } | |
18649 | ||
18650 | ||
c370783e | 18651 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18652 | PyObject *resultobj; |
18653 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18654 | wxDC *arg2 = 0 ; | |
18655 | wxRect *arg3 = 0 ; | |
18656 | int arg4 = (int) 1 ; | |
18657 | wxRect temp3 ; | |
18658 | PyObject * obj0 = 0 ; | |
18659 | PyObject * obj1 = 0 ; | |
18660 | PyObject * obj2 = 0 ; | |
18661 | PyObject * obj3 = 0 ; | |
18662 | char *kwnames[] = { | |
18663 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18664 | }; | |
18665 | ||
18666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18670 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18671 | SWIG_fail; | |
18672 | if (arg2 == NULL) { | |
18673 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18674 | SWIG_fail; | |
18675 | } | |
18676 | { | |
18677 | arg3 = &temp3; | |
18678 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18679 | } | |
18680 | if (obj3) { | |
c370783e | 18681 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
18682 | if (PyErr_Occurred()) SWIG_fail; |
18683 | } | |
18684 | { | |
18685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18686 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18687 | ||
18688 | wxPyEndAllowThreads(__tstate); | |
18689 | if (PyErr_Occurred()) SWIG_fail; | |
18690 | } | |
18691 | Py_INCREF(Py_None); resultobj = Py_None; | |
18692 | return resultobj; | |
18693 | fail: | |
18694 | return NULL; | |
18695 | } | |
18696 | ||
18697 | ||
c370783e | 18698 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18699 | PyObject *resultobj; |
18700 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18701 | wxRect *arg2 = 0 ; | |
18702 | wxDC *arg3 = 0 ; | |
18703 | wxBitmap *arg4 = 0 ; | |
18704 | bool result; | |
18705 | wxRect temp2 ; | |
18706 | PyObject * obj0 = 0 ; | |
18707 | PyObject * obj1 = 0 ; | |
18708 | PyObject * obj2 = 0 ; | |
18709 | PyObject * obj3 = 0 ; | |
18710 | char *kwnames[] = { | |
18711 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18712 | }; | |
18713 | ||
18714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18717 | { | |
18718 | arg2 = &temp2; | |
18719 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18720 | } | |
18721 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
18722 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18723 | SWIG_fail; | |
18724 | if (arg3 == NULL) { | |
18725 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18726 | SWIG_fail; | |
18727 | } | |
18728 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
18729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18730 | SWIG_fail; | |
18731 | if (arg4 == NULL) { | |
18732 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18733 | SWIG_fail; | |
18734 | } | |
18735 | { | |
18736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18737 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18738 | ||
18739 | wxPyEndAllowThreads(__tstate); | |
18740 | if (PyErr_Occurred()) SWIG_fail; | |
18741 | } | |
18742 | { | |
18743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18744 | } | |
18745 | return resultobj; | |
18746 | fail: | |
18747 | return NULL; | |
18748 | } | |
18749 | ||
18750 | ||
c370783e | 18751 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18752 | PyObject *obj; |
18753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18754 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18755 | Py_INCREF(obj); | |
18756 | return Py_BuildValue((char *)""); | |
18757 | } | |
18758 | static PyMethodDef SwigMethods[] = { | |
c370783e RD |
18759 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
18760 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18761 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18762 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18763 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18764 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL }, | |
18765 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18766 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18767 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18768 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18769 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18770 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18771 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18772 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18773 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18774 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18775 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18776 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18777 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18778 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18779 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18780 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18781 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL }, | |
18782 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18783 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18784 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18785 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5cbf236d | 18786 | { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
18787 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, |
18788 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL }, | |
18789 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18790 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18791 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18792 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18793 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18794 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18795 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18796 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18797 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18798 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18799 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18800 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18801 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18802 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18803 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18804 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18805 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18806 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18807 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL }, | |
18808 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18809 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18810 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18811 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18812 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18813 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18814 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18815 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
f78cc896 | 18816 | { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
18817 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, |
18818 | { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18819 | { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18820 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL }, | |
18821 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18822 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18823 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18824 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18825 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18826 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18827 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18828 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18829 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18830 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18831 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18832 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18833 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18834 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18835 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18836 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18837 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18838 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18839 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
070c48b4 | 18840 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
18841 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, |
18842 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18843 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18844 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18845 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18846 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18847 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18848 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL }, | |
18849 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18850 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL }, | |
18851 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18852 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18853 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18854 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18855 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18856 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18857 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18858 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18859 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18860 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18861 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18862 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18863 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18864 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18865 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL }, | |
18866 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18867 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18868 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18869 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18870 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18871 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18872 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18873 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL }, | |
18874 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18875 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18876 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18877 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18878 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18879 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18880 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18881 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL }, | |
18882 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18883 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18884 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18885 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18886 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18887 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL }, | |
18888 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18889 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18890 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18891 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18892 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18893 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
070c48b4 | 18894 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
18895 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL }, |
18896 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18897 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18898 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18899 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18900 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18901 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18902 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18903 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18904 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18905 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18906 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18907 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18908 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18909 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18910 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18911 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18912 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18913 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18914 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18915 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18916 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL }, | |
18917 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18918 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18919 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18920 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18921 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18922 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18923 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18924 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18925 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18926 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18927 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18928 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18929 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18930 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL }, | |
18931 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18932 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18933 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18934 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18935 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18936 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18937 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18938 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18939 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18940 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18941 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18942 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18943 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18944 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18945 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18946 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18947 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18948 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18949 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18950 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18951 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18952 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18953 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18954 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL }, | |
18955 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18956 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18957 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18958 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18959 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18960 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18961 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18962 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18963 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL }, | |
18964 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18965 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18966 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18967 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18968 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18969 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18970 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18971 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18972 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18973 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18974 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18975 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18976 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18977 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18978 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18979 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18980 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18981 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18982 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18983 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL }, | |
18984 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18985 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18986 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18987 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18988 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 | 18989 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
18990 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, |
18991 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18992 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18993 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 RD |
18994 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
18995 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e RD |
18996 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
18997 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18998 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18999 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19000 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19001 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19002 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19003 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19004 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19005 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19006 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5e483524 | 19007 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
19008 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, |
19009 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19010 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19011 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19012 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19013 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19014 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19015 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19016 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19017 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19018 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19019 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19020 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19021 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19022 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19023 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19024 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL }, | |
19025 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19026 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19027 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19028 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19029 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19030 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19031 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19032 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL }, | |
19033 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19034 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19035 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19036 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19037 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19038 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19039 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL }, | |
19040 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19041 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19042 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19043 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19044 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19045 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19046 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19047 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19048 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19049 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19050 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19051 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19052 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19053 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19054 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19055 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19056 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19057 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19058 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19059 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19060 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19061 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL }, | |
19062 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19063 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL }, | |
19064 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19065 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19066 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19067 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19068 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19069 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19070 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19071 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL }, | |
19072 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19073 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19074 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19075 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19076 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19077 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19078 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19079 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19080 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19081 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19082 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19083 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19084 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19085 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19086 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19087 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19088 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19089 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19090 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19091 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19092 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19093 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19094 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19095 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19096 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19097 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19098 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19099 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19100 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19101 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19102 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19103 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19104 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19105 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19106 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19107 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19108 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19109 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19110 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19111 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19112 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19113 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19114 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19115 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19116 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19117 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19118 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19119 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19120 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19121 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19122 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19123 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19124 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19125 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19126 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19127 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19128 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19129 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19130 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19131 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19132 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19133 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19134 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19135 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19136 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19137 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19138 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19139 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19140 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19141 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19142 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19143 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19144 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19145 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19146 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19147 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19148 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19149 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19150 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19151 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19152 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19153 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19154 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19155 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19156 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19157 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19158 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19159 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19160 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19161 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19162 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19163 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19164 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19165 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19166 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19167 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19168 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19169 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19170 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19171 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19172 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19173 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19174 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19175 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19176 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19177 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19178 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19179 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19180 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19181 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19182 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19183 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5cbf236d | 19184 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
19185 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, |
19186 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19187 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19188 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19189 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19190 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19191 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19192 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19193 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19194 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19195 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19196 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19197 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19198 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19199 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL }, | |
19200 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19201 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19202 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19203 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL }, | |
19204 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL }, | |
19205 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19206 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19207 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL }, | |
19208 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19209 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL }, | |
19210 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19211 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19212 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19213 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19214 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL }, | |
19215 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19216 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL }, | |
19217 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19218 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL }, | |
19219 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19220 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL }, | |
19221 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19222 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL }, | |
19223 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19224 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19225 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19226 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19227 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19228 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL }, | |
19229 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19230 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19231 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19232 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19233 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19234 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19235 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19236 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL }, | |
19237 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19238 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19239 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL }, | |
19240 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19241 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL }, | |
19242 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19243 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19244 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19245 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19246 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19247 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19248 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19249 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19250 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19251 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19252 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19253 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL }, | |
19254 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19255 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19256 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19257 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19258 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL }, | |
19259 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19260 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19261 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19262 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19263 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL }, | |
19264 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19265 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19266 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19267 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19268 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19269 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19270 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL }, | |
19271 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19272 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19273 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19274 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19275 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL }, | |
19276 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19277 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19278 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19279 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19280 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19281 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19282 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19283 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19284 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19285 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19286 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19287 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19288 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19289 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19290 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL }, | |
19291 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
19292 | }; |
19293 | ||
19294 | ||
19295 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19296 | ||
19297 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
19298 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19299 | } | |
19300 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19301 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19302 | } | |
19303 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19304 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19305 | } | |
19306 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
19307 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19308 | } | |
19309 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19310 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19311 | } | |
19312 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
19313 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19314 | } | |
19315 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19316 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19317 | } | |
19318 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19319 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19320 | } | |
19321 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19322 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19323 | } | |
19324 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19325 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19326 | } | |
19327 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19328 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19329 | } | |
19330 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19331 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19332 | } | |
19333 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19334 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19335 | } | |
19336 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19337 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19338 | } | |
19339 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19340 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19341 | } | |
19342 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19343 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19344 | } | |
19345 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19346 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19347 | } | |
19348 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19349 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19350 | } | |
19351 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19352 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19353 | } | |
19354 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19355 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19356 | } | |
19357 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19358 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19359 | } | |
19360 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19361 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19362 | } | |
19363 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19364 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19365 | } | |
19366 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19367 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19368 | } | |
19369 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19370 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19371 | } | |
19372 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19373 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19374 | } | |
19375 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19376 | return (void *)((wxObject *) ((wxDC *) x)); | |
19377 | } | |
19378 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19379 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19380 | } | |
19381 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19382 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19383 | } | |
19384 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19385 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19386 | } | |
19387 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19388 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19389 | } | |
19390 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19391 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19392 | } | |
19393 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19394 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19395 | } | |
19396 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19397 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19398 | } | |
19399 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19400 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19401 | } | |
19402 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19403 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19404 | } | |
19405 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19406 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19407 | } | |
19408 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19409 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19410 | } | |
19411 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19412 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19413 | } | |
19414 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19415 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19416 | } | |
19417 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19418 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19419 | } | |
19420 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19421 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19422 | } | |
19423 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19424 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19425 | } | |
19426 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19427 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19428 | } | |
19429 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19430 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19431 | } | |
19432 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19433 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19434 | } | |
19435 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19436 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19437 | } | |
19438 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19439 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19440 | } | |
19441 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19442 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19443 | } | |
19444 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19445 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19446 | } | |
19447 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19448 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19449 | } | |
19450 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19451 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19452 | } | |
19453 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19454 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19455 | } | |
19456 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19457 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19458 | } | |
19459 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19460 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19461 | } | |
19462 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19463 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19464 | } | |
19465 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19466 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19467 | } | |
19468 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19469 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19470 | } | |
19471 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19472 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19473 | } | |
19474 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19475 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19476 | } | |
19477 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19478 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19479 | } | |
19480 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19481 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19482 | } | |
19483 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19484 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19485 | } | |
19486 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19487 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19488 | } | |
19489 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19490 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19491 | } | |
19492 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19493 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19494 | } | |
19495 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19496 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19497 | } | |
19498 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19499 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19500 | } | |
19501 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19502 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19503 | } | |
19504 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19505 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19506 | } | |
19507 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19508 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19509 | } | |
19510 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
19511 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19512 | } | |
19513 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
19514 | return (void *)((wxObject *) ((wxImage *) x)); | |
19515 | } | |
19516 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19517 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19518 | } | |
19519 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
19520 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19521 | } | |
19522 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19523 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19524 | } | |
19525 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19526 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19527 | } | |
19528 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19529 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19530 | } | |
19531 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19532 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19533 | } | |
19534 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19535 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19536 | } | |
19537 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19538 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19539 | } | |
19540 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19541 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19542 | } | |
19543 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19544 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19545 | } | |
19546 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19547 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19548 | } | |
19549 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19550 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19551 | } | |
19552 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19553 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19554 | } | |
19555 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19556 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19557 | } | |
19558 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19559 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19560 | } | |
d55e5bfc RD |
19561 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
19562 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19563 | } | |
19564 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19565 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19566 | } | |
19567 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19568 | return (void *)((wxObject *) ((wxMask *) x)); | |
19569 | } | |
19570 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19571 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19572 | } | |
19573 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19574 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19575 | } | |
19576 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19577 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19578 | } | |
19579 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19580 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19581 | } | |
19582 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19583 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19584 | } | |
19585 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19586 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19587 | } | |
19588 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19589 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19590 | } | |
19591 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19592 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19593 | } | |
19594 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19595 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19596 | } | |
19597 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19598 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19599 | } | |
19600 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19601 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19602 | } | |
19603 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19604 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19605 | } | |
19606 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19607 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19608 | } | |
19609 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19610 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19611 | } | |
19612 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19613 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19614 | } | |
19615 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19616 | return (void *)((wxObject *) ((wxColour *) x)); | |
19617 | } | |
19618 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19619 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19620 | } | |
19621 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19622 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19623 | } | |
19624 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19625 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19626 | } | |
19627 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
19628 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19629 | } | |
19630 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
19631 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
19632 | } | |
19633 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
19634 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19635 | } | |
19636 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19637 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19638 | } | |
19639 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19640 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19641 | } | |
19642 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19643 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19644 | } | |
19645 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19646 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19647 | } | |
19648 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19649 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19650 | } | |
19651 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19652 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19653 | } | |
19654 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19655 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19656 | } | |
19657 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19658 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19659 | } | |
19660 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19661 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19662 | } | |
d55e5bfc RD |
19663 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
19664 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19665 | } | |
19666 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19667 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19668 | } | |
19669 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19670 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19671 | } | |
19672 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19673 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19674 | } | |
19675 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19676 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19677 | } | |
19678 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19679 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19680 | } | |
19681 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19682 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19683 | } | |
19684 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19685 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19686 | } | |
d55e5bfc RD |
19687 | 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}}; |
19688 | 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}}; | |
19689 | 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}}; | |
19690 | 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}}; | |
19691 | 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}}; | |
19692 | 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}}; | |
19693 | 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}}; | |
19694 | 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}}; | |
19695 | 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}}; | |
19696 | 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}}; | |
19697 | 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}}; | |
19698 | 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}}; | |
19699 | 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}}; | |
19700 | 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}}; | |
19701 | 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}}; | |
19702 | 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}}; | |
19703 | 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}}; | |
19704 | 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}}; | |
19705 | 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}}; | |
19706 | 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}}; | |
19707 | 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}}; | |
19708 | 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}}; | |
d6c14a4c | 19709 | 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 |
19710 | 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}}; |
19711 | 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}}; | |
19712 | 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}}; | |
19713 | 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}}; | |
19714 | 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}}; | |
19715 | 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}}; | |
19716 | 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}}; | |
19717 | 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}}; | |
19718 | 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}}; | |
19719 | 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}}; | |
19720 | 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}}; | |
19721 | 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}}; | |
19722 | 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}}; | |
d6c14a4c | 19723 | 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 |
19724 | 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}}; |
19725 | 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}}; | |
19726 | 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 | 19727 | 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}}; |
d6c14a4c | 19728 | 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 |
19729 | 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}}; |
19730 | 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}}; | |
19731 | 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}}; | |
19732 | 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}}; | |
d6c14a4c | 19733 | 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 |
19734 | 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}}; |
19735 | 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}}; | |
19736 | 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 |
19737 | 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}}; |
19738 | 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}}; | |
19739 | 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}}; | |
19740 | 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}}; | |
19741 | 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}}; | |
19742 | ||
19743 | static swig_type_info *swig_types_initial[] = { | |
19744 | _swigt__p_wxPostScriptDC, | |
19745 | _swigt__p_wxBrush, | |
19746 | _swigt__p_wxColour, | |
19747 | _swigt__p_wxDC, | |
19748 | _swigt__p_wxMirrorDC, | |
19749 | _swigt__p_byte, | |
19750 | _swigt__p_wxPyFontEnumerator, | |
19751 | _swigt__p_char, | |
19752 | _swigt__p_wxIconLocation, | |
19753 | _swigt__p_wxImage, | |
19754 | _swigt__p_wxMetaFileDC, | |
19755 | _swigt__p_wxMask, | |
19756 | _swigt__p_wxSize, | |
19757 | _swigt__p_wxFont, | |
19758 | _swigt__p_wxWindow, | |
19759 | _swigt__p_double, | |
19760 | _swigt__p_wxMemoryDC, | |
19761 | _swigt__p_wxFontMapper, | |
19762 | _swigt__p_wxEffects, | |
19763 | _swigt__p_wxNativeEncodingInfo, | |
19764 | _swigt__p_wxPalette, | |
19765 | _swigt__p_wxBitmap, | |
19766 | _swigt__p_wxObject, | |
19767 | _swigt__p_wxRegionIterator, | |
19768 | _swigt__p_wxRect, | |
19769 | _swigt__p_wxString, | |
19770 | _swigt__p_wxPrinterDC, | |
19771 | _swigt__p_wxIconBundle, | |
19772 | _swigt__p_wxPoint, | |
19773 | _swigt__p_wxDash, | |
19774 | _swigt__p_wxScreenDC, | |
19775 | _swigt__p_wxCursor, | |
19776 | _swigt__p_wxClientDC, | |
19777 | _swigt__p_wxBufferedDC, | |
19778 | _swigt__p_wxImageList, | |
19779 | _swigt__p_unsigned_char, | |
19780 | _swigt__p_wxGDIObject, | |
19781 | _swigt__p_wxIcon, | |
19782 | _swigt__p_wxLocale, | |
19783 | _swigt__p_wxRegion, | |
d55e5bfc | 19784 | _swigt__p_wxLanguageInfo, |
d6c14a4c | 19785 | _swigt__p_wxConfigBase, |
d55e5bfc RD |
19786 | _swigt__p_wxWindowDC, |
19787 | _swigt__p_wxPrintData, | |
19788 | _swigt__p_wxBrushList, | |
19789 | _swigt__p_wxFontList, | |
19790 | _swigt__p_wxPen, | |
19791 | _swigt__p_wxBufferedPaintDC, | |
19792 | _swigt__p_wxPaintDC, | |
19793 | _swigt__p_wxPenList, | |
d55e5bfc RD |
19794 | _swigt__p_int, |
19795 | _swigt__p_wxMetaFile, | |
19796 | _swigt__p_wxNativeFontInfo, | |
19797 | _swigt__p_wxEncodingConverter, | |
19798 | _swigt__p_wxColourDatabase, | |
19799 | 0 | |
19800 | }; | |
19801 | ||
19802 | ||
19803 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19804 | ||
19805 | static swig_const_info swig_const_table[] = { | |
c370783e | 19806 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
19807 | |
19808 | #ifdef __cplusplus | |
19809 | } | |
19810 | #endif | |
19811 | ||
19812 | #ifdef __cplusplus | |
19813 | extern "C" | |
19814 | #endif | |
19815 | SWIGEXPORT(void) SWIG_init(void) { | |
19816 | static PyObject *SWIG_globals = 0; | |
19817 | static int typeinit = 0; | |
19818 | PyObject *m, *d; | |
19819 | int i; | |
19820 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19821 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19822 | d = PyModule_GetDict(m); | |
19823 | ||
19824 | if (!typeinit) { | |
19825 | for (i = 0; swig_types_initial[i]; i++) { | |
19826 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19827 | } | |
19828 | typeinit = 1; | |
19829 | } | |
19830 | SWIG_InstallConstants(d,swig_const_table); | |
19831 | ||
c370783e RD |
19832 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion)); |
19833 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion)); | |
19834 | PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion)); | |
19835 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT)); | |
19836 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE)); | |
19837 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN)); | |
19838 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT)); | |
19839 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS)); | |
19840 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN)); | |
19841 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE)); | |
19842 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX)); | |
19843 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN)); | |
19844 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL)); | |
19845 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC)); | |
19846 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT)); | |
19847 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX)); | |
19848 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL)); | |
19849 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT)); | |
19850 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD)); | |
19851 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX)); | |
19852 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT)); | |
19853 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC)); | |
19854 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT)); | |
19855 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT)); | |
19856 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD)); | |
19857 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED)); | |
19858 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19859 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED)); | |
19860 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH)); | |
19861 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK)); | |
19862 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM)); | |
19863 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT)); | |
19864 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1)); | |
19865 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2)); | |
19866 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3)); | |
19867 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4)); | |
19868 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5)); | |
19869 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6)); | |
19870 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7)); | |
19871 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8)); | |
19872 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9)); | |
19873 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10)); | |
19874 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11)); | |
19875 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12)); | |
19876 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13)); | |
19877 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14)); | |
19878 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15)); | |
19879 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX)); | |
19880 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8)); | |
19881 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U)); | |
19882 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE)); | |
19883 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN)); | |
19884 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437)); | |
19885 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850)); | |
19886 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852)); | |
19887 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855)); | |
19888 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866)); | |
19889 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874)); | |
19890 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932)); | |
19891 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936)); | |
19892 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949)); | |
19893 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950)); | |
19894 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250)); | |
19895 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251)); | |
19896 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252)); | |
19897 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253)); | |
19898 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254)); | |
19899 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255)); | |
19900 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256)); | |
19901 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257)); | |
19902 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX)); | |
19903 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7)); | |
19904 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8)); | |
19905 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP)); | |
19906 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE)); | |
19907 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE)); | |
19908 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE)); | |
19909 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE)); | |
19910 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN)); | |
19911 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE)); | |
19912 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD)); | |
19913 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN)); | |
19914 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC)); | |
19915 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW)); | |
19916 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK)); | |
19917 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC)); | |
19918 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI)); | |
19919 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI)); | |
19920 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI)); | |
19921 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA)); | |
19922 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI)); | |
19923 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL)); | |
19924 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU)); | |
19925 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA)); | |
19926 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM)); | |
19927 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE)); | |
19928 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE)); | |
19929 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER)); | |
19930 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI)); | |
19931 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN)); | |
19932 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN)); | |
19933 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN)); | |
19934 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP)); | |
19935 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN)); | |
19936 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN)); | |
19937 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC)); | |
19938 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR)); | |
19939 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE)); | |
19940 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT)); | |
19941 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL)); | |
19942 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS)); | |
19943 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH)); | |
19944 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN)); | |
19945 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC)); | |
19946 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN)); | |
19947 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC)); | |
19948 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC)); | |
19949 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD)); | |
19950 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN)); | |
19951 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX)); | |
19952 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX)); | |
19953 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16)); | |
19954 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32)); | |
19955 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE)); | |
19956 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312)); | |
19957 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5)); | |
19958 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS)); | |
d55e5bfc RD |
19959 | |
19960 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19961 | ||
c370783e RD |
19962 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT)); |
19963 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN)); | |
19964 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN)); | |
19965 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR)); | |
19966 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS)); | |
19967 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN)); | |
19968 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC)); | |
19969 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC)); | |
19970 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19971 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19972 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19973 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19974 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19975 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19976 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19977 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19978 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19979 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN)); | |
19980 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR)); | |
19981 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19982 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19983 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19984 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19985 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE)); | |
19986 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19987 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN)); | |
19988 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE)); | |
19989 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA)); | |
19990 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI)); | |
19991 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19992 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN)); | |
19993 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR)); | |
19994 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE)); | |
19995 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN)); | |
19996 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI)); | |
19997 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI)); | |
19998 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI)); | |
19999 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA)); | |
20000 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON)); | |
20001 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN)); | |
20002 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE)); | |
20003 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN)); | |
20004 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN)); | |
20005 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE)); | |
20006 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
20007 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
20008 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
20009 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU)); | |
20010 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
20011 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
20012 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN)); | |
20013 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN)); | |
20014 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH)); | |
20015 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH)); | |
20016 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH)); | |
20017 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
20018 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH)); | |
20019 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK)); | |
20020 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US)); | |
20021 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
20022 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
20023 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
20024 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA)); | |
20025 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
20026 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
20027 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE)); | |
20028 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
20029 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
20030 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
20031 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
20032 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
20033 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
20034 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO)); | |
20035 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN)); | |
20036 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE)); | |
20037 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI)); | |
20038 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI)); | |
20039 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH)); | |
20040 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH)); | |
20041 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
20042 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
20043 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
20044 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO)); | |
20045 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS)); | |
20046 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN)); | |
20047 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN)); | |
20048 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN)); | |
20049 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN)); | |
20050 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
20051 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
20052 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
20053 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
20054 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS)); | |
20055 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK)); | |
20056 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC)); | |
20057 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI)); | |
20058 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI)); | |
20059 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA)); | |
20060 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW)); | |
20061 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI)); | |
20062 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN)); | |
20063 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC)); | |
20064 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN)); | |
20065 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA)); | |
20066 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE)); | |
20067 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT)); | |
20068 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK)); | |
20069 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH)); | |
20070 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN)); | |
20071 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS)); | |
20072 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE)); | |
20073 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE)); | |
20074 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA)); | |
20075 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI)); | |
20076 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
20077 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH)); | |
20078 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK)); | |
20079 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA)); | |
20080 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ)); | |
20081 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI)); | |
20082 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI)); | |
20083 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN)); | |
20084 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH)); | |
20085 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN)); | |
20086 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN)); | |
20087 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN)); | |
20088 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA)); | |
20089 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN)); | |
20090 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN)); | |
20091 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY)); | |
20092 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY)); | |
20093 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM)); | |
20094 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
20095 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
20096 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE)); | |
20097 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI)); | |
20098 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI)); | |
20099 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI)); | |
20100 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN)); | |
20101 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN)); | |
20102 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU)); | |
20103 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI)); | |
20104 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA)); | |
20105 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
20106 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
20107 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN)); | |
20108 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA)); | |
20109 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO)); | |
20110 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO)); | |
20111 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH)); | |
20112 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE)); | |
20113 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
20114 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI)); | |
20115 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA)); | |
20116 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
20117 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN)); | |
20118 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN)); | |
20119 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
20120 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN)); | |
20121 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO)); | |
20122 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT)); | |
20123 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC)); | |
20124 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN)); | |
20125 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
20126 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN)); | |
20127 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN)); | |
20128 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO)); | |
20129 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA)); | |
20130 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA)); | |
20131 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI)); | |
20132 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE)); | |
20133 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI)); | |
20134 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK)); | |
20135 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN)); | |
20136 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI)); | |
20137 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH)); | |
20138 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
20139 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
20140 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE)); | |
20141 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
20142 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
20143 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
20144 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
20145 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
20146 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
20147 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
20148 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
20149 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN)); | |
20150 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
20151 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA)); | |
20152 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
20153 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU)); | |
20154 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
20155 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
20156 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US)); | |
20157 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
20158 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE)); | |
20159 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI)); | |
20160 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH)); | |
20161 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
20162 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG)); | |
20163 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK)); | |
20164 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL)); | |
20165 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR)); | |
20166 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU)); | |
20167 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI)); | |
20168 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN)); | |
20169 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA)); | |
20170 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA)); | |
20171 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA)); | |
20172 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH)); | |
20173 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN)); | |
20174 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI)); | |
20175 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR)); | |
20176 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN)); | |
20177 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU)); | |
20178 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA)); | |
20179 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN)); | |
20180 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK)); | |
20181 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
20182 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN)); | |
20183 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE)); | |
20184 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK)); | |
20185 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH)); | |
20186 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF)); | |
20187 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA)); | |
20188 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH)); | |
20189 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA)); | |
20190 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG)); | |
20191 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU)); | |
20192 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED)); | |
20193 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER)); | |
20194 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE)); | |
20195 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY)); | |
20196 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX)); | |
20197 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP)); | |
20198 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT)); | |
20199 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT)); | |
20200 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING)); | |
20201 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT)); | |
20202 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE)); | |
20203 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT)); | |
20204 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX)); | |
20205 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS)); | |
20206 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2)); | |
20207 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC)); | |
20208 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL)); | |
20209 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
20210 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED)); | |
20211 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED)); | |
20212 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL)); | |
20213 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL)); | |
20214 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE)); | |
d55e5bfc RD |
20215 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
20216 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20217 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20218 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20219 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20220 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20221 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20222 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20223 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20224 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20225 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20226 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20227 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20228 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20229 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20230 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20231 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20232 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20233 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20234 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20235 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20236 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20237 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20238 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20239 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20240 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20241 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20242 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20243 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20244 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20245 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20246 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20247 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20248 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20249 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20250 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20251 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20252 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20253 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20254 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20255 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20256 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20257 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20258 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20259 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20260 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20261 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
20262 | ||
20263 | // Work around a chicken/egg problem in drawlist.cpp | |
20264 | wxPyDrawList_SetAPIPtr(); | |
20265 | ||
20266 | } | |
20267 |