]>
Commit | Line | Data |
---|---|---|
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 | |
46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName | |
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 *); | |
117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); | |
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 | ||
128 | ||
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 | ||
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 | ||
208 | ||
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] | |
251 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] | |
252 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
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] | |
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]; | |
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 | ||
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 | |
283 | ||
284 | #ifdef __cplusplus | |
285 | #define SWIGSTATICINLINE(a) static inline a | |
286 | #define SWIGSTATIC(a) static a | |
287 | #define swig_new_array(size,Type) (new Type[(size)]) | |
288 | #define swig_delete(cptr) delete cptr | |
289 | #define swig_delete_array(cptr) delete[] cptr | |
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) | |
295 | ||
296 | #else /* C case */ | |
297 | ||
298 | #define SWIGSTATICINLINE(a) static a | |
299 | #define SWIGSTATIC(a) static a | |
300 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) | |
301 | #define swig_delete(cptr) free((char*)cptr) | |
302 | #define swig_delete_array(cptr) free((char*)cptr) | |
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))) | |
308 | ||
309 | #endif /* __cplusplus */ | |
310 | ||
311 | ||
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 | /*@@*/ | |
336 | ||
337 | ||
338 | #include "wx/wxPython/wxPython.h" | |
339 | #include "wx/wxPython/pyclasses.h" | |
340 | ||
341 | ||
342 | static const wxString wxPyEmptyString(wxEmptyString); | |
343 | ||
344 | #include <limits.h> | |
345 | ||
346 | ||
347 | SWIGSTATICINLINE(int) | |
348 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
349 | const char *errmsg) | |
350 | { | |
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; | |
367 | } | |
368 | ||
369 | ||
370 | // See my_fragments.i | |
371 | SWIGSTATICINLINE(int) | |
372 | SWIG_AsVal_long(PyObject* obj, long* val) | |
373 | { | |
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 | } | |
384 | return 0; | |
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 | } | |
401 | } else { | |
402 | PyErr_Clear(); | |
403 | } | |
404 | if (val) { | |
405 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
406 | } | |
407 | return 0; | |
408 | } | |
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 | |
416 | ||
417 | ||
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 | } | |
440 | ||
441 | ||
442 | SWIGSTATICINLINE(bool) | |
443 | SWIG_As_bool(PyObject* obj) | |
444 | { | |
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)); | |
453 | } | |
454 | return v; | |
455 | } | |
456 | ||
457 | ||
458 | SWIGSTATICINLINE(int) | |
459 | SWIG_Check_bool(PyObject* obj) | |
460 | { | |
461 | return SWIG_AsVal_bool(obj, (bool*)0); | |
462 | } | |
463 | ||
464 | ||
465 | // See my_fragments.i | |
466 | SWIGSTATICINLINE(int) | |
467 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
468 | { | |
469 | long v = 0; | |
470 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
471 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
472 | return 0; | |
473 | } | |
474 | else if (val) | |
475 | *val = (unsigned long)v; | |
476 | return 1; | |
477 | } | |
478 | ||
479 | ||
480 | SWIGSTATICINLINE(int) | |
481 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
482 | unsigned long max_value, | |
483 | const char *errmsg) | |
484 | { | |
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); | |
490 | } | |
491 | return 0; | |
492 | } | |
493 | return 1; | |
494 | } | |
495 | ||
496 | ||
497 | SWIGSTATICINLINE(int) | |
498 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
499 | { | |
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; | |
516 | } | |
517 | ||
518 | ||
519 | SWIGSTATICINLINE(unsigned char) | |
520 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
521 | { | |
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)); | |
530 | } | |
531 | return v; | |
532 | } | |
533 | ||
534 | ||
535 | SWIGSTATICINLINE(int) | |
536 | SWIG_Check_unsigned_SS_char(PyObject* obj) | |
537 | { | |
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)); | |
553 | } | |
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); | |
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* ) | |
584 | SWIG_From_unsigned_SS_long(unsigned long value) | |
585 | { | |
586 | return (value > LONG_MAX) ? | |
587 | PyLong_FromUnsignedLong(value) | |
588 | : PyInt_FromLong(swig_numeric_cast(value,long)); | |
589 | } | |
590 | ||
591 | ||
592 | SWIGSTATICINLINE(int) | |
593 | SWIG_As_int(PyObject* obj) | |
594 | { | |
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)); | |
603 | } | |
604 | return v; | |
605 | } | |
606 | ||
607 | ||
608 | SWIGSTATICINLINE(int) | |
609 | SWIG_Check_int(PyObject* obj) | |
610 | { | |
611 | return SWIG_AsVal_int(obj, (int*)0); | |
612 | } | |
613 | ||
614 | ||
615 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
616 | PyObject* o2; | |
617 | PyObject* o3; | |
618 | ||
619 | if (!target) { | |
620 | target = o; | |
621 | } else if (target == Py_None) { | |
622 | Py_DECREF(Py_None); | |
623 | target = o; | |
624 | } else { | |
625 | if (!PyTuple_Check(target)) { | |
626 | o2 = target; | |
627 | target = PyTuple_New(1); | |
628 | PyTuple_SetItem(target, 0, o2); | |
629 | } | |
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; | |
639 | } | |
640 | ||
641 | ||
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); | |
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 | } | |
652 | wxPyEndBlockThreads(blocked); | |
653 | return retval; | |
654 | } | |
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 | } | |
674 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } | |
675 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
676 | ||
677 | #include <wx/image.h> | |
678 | ||
679 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
680 | char** cArray = NULL; | |
681 | int count; | |
682 | ||
683 | if (!PyList_Check(listOfStrings)) { | |
684 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
685 | return NULL; | |
686 | } | |
687 | count = PyList_Size(listOfStrings); | |
688 | cArray = new char*[count]; | |
689 | ||
690 | for(int x=0; x<count; x++) { | |
691 | // TODO: Need some validation and error checking here | |
692 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
693 | } | |
694 | return cArray; | |
695 | } | |
696 | ||
697 | ||
698 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
699 | char** cArray = NULL; | |
700 | wxBitmap* bmp; | |
701 | ||
702 | cArray = ConvertListOfStrings(listOfStrings); | |
703 | if (! cArray) | |
704 | return NULL; | |
705 | bmp = new wxBitmap(cArray); | |
706 | delete [] cArray; | |
707 | return bmp; | |
708 | } | |
709 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
710 | char* buf; | |
711 | int length; | |
712 | PyString_AsStringAndSize(bits, &buf, &length); | |
713 | return new wxBitmap(buf, width, height, depth); | |
714 | } | |
715 | wxSize wxBitmap_GetSize(wxBitmap *self){ | |
716 | wxSize size(self->GetWidth(), self->GetHeight()); | |
717 | return size; | |
718 | } | |
719 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
720 | wxMask *mask = new wxMask(*self, colour); | |
721 | self->SetMask(mask); | |
722 | } | |
723 | void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
724 | self->SetWidth(size.x); | |
725 | self->SetHeight(size.y); | |
726 | } | |
727 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } | |
728 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
729 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ | |
730 | if ( !colour.Ok() ) | |
731 | return new wxMask(bitmap, *wxBLACK); | |
732 | else | |
733 | return new wxMask(bitmap, colour); | |
734 | } | |
735 | ||
736 | #include <wx/iconbndl.h> | |
737 | ||
738 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
739 | wxIcon* icon = new wxIcon(); | |
740 | icon->CopyFromBitmap(bmp); | |
741 | return icon; | |
742 | } | |
743 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
744 | char** cArray = NULL; | |
745 | wxIcon* icon; | |
746 | ||
747 | cArray = ConvertListOfStrings(listOfStrings); | |
748 | if (! cArray) | |
749 | return NULL; | |
750 | icon = new wxIcon(cArray); | |
751 | delete [] cArray; | |
752 | return icon; | |
753 | } | |
754 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
755 | ||
756 | ||
757 | ||
758 | return new wxIconLocation(*filename); | |
759 | ||
760 | } | |
761 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
762 | ||
763 | ||
764 | ||
765 | // do nothing | |
766 | ||
767 | } | |
768 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
769 | ||
770 | ||
771 | ||
772 | return -1; | |
773 | ||
774 | } | |
775 | ||
776 | SWIGSTATICINLINE(long) | |
777 | SWIG_As_long(PyObject* obj) | |
778 | { | |
779 | long v; | |
780 | if (!SWIG_AsVal_long(obj, &v)) { | |
781 | /* | |
782 | this is needed to make valgrind/purify happier. the other | |
783 | solution is throw an exception, but since this code should work | |
784 | with plain C .... | |
785 | */ | |
786 | memset((void*)&v, 0, sizeof(long)); | |
787 | } | |
788 | return v; | |
789 | } | |
790 | ||
791 | ||
792 | SWIGSTATICINLINE(int) | |
793 | SWIG_Check_long(PyObject* obj) | |
794 | { | |
795 | return SWIG_AsVal_long(obj, (long*)0); | |
796 | } | |
797 | ||
798 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ | |
799 | #ifdef __WXGTK__ | |
800 | wxCHECK_MSG(false, NULL, | |
801 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); | |
802 | #else | |
803 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
804 | #endif | |
805 | } | |
806 | ||
807 | ||
808 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
809 | (*self) ++; | |
810 | } | |
811 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
812 | return self->operator bool(); | |
813 | } | |
814 | ||
815 | #include <wx/fontutil.h> | |
816 | #include <wx/fontmap.h> | |
817 | #include <wx/fontenum.h> | |
818 | ||
819 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
820 | return self->ToString(); | |
821 | } | |
822 | ||
823 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
824 | static wxNativeEncodingInfo info; | |
825 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
826 | return &info; | |
827 | else | |
828 | return NULL; | |
829 | } | |
830 | ||
831 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
832 | wxFontEncoding alt_enc; | |
833 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
834 | return PyInt_FromLong(alt_enc); | |
835 | else { | |
836 | Py_INCREF(Py_None); | |
837 | return Py_None; | |
838 | } | |
839 | } | |
840 | wxFont *new_wxFont(wxString const &info){ | |
841 | wxNativeFontInfo nfi; | |
842 | nfi.FromString(info); | |
843 | return new wxFont(nfi); | |
844 | } | |
845 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
846 | return wxFont::New(pointSize, family, flags, face, encoding); | |
847 | } | |
848 | wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined,wxString const &face,wxFontEncoding encoding){ | |
849 | return wxFontBase::New(pixelSize, family, | |
850 | style, weight, underlined, | |
851 | face, encoding); | |
852 | } | |
853 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } | |
854 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
855 | ||
856 | class wxPyFontEnumerator : public wxFontEnumerator { | |
857 | public: | |
858 | wxPyFontEnumerator() {} | |
859 | ~wxPyFontEnumerator() {} | |
860 | ||
861 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
862 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
863 | ||
864 | PYPRIVATE; | |
865 | }; | |
866 | ||
867 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
868 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
869 | ||
870 | ||
871 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
872 | wxArrayString* arr = self->GetEncodings(); | |
873 | if (arr) | |
874 | return wxArrayString2PyList_helper(*arr); | |
875 | else | |
876 | return PyList_New(0); | |
877 | } | |
878 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
879 | wxArrayString* arr = self->GetFacenames(); | |
880 | if (arr) | |
881 | return wxArrayString2PyList_helper(*arr); | |
882 | else | |
883 | return PyList_New(0); | |
884 | } | |
885 | ||
886 | #include <locale.h> | |
887 | ||
888 | wxLocale *new_wxLocale(int language,int flags){ | |
889 | wxLocale* loc; | |
890 | if (language == -1) | |
891 | loc = new wxLocale(); | |
892 | else | |
893 | loc = new wxLocale(language, flags); | |
894 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
895 | // for the floating point conversions and such to work right. | |
896 | #if PY_VERSION_HEX < 0x02040000 | |
897 | setlocale(LC_NUMERIC, "C"); | |
898 | #endif | |
899 | return loc; | |
900 | } | |
901 | bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort,wxString const &szLocale,bool bLoadDefault,bool bConvertEncoding){ | |
902 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); | |
903 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
904 | // for the floating point conversions and such to work right. | |
905 | #if PY_VERSION_HEX < 0x02040000 | |
906 | setlocale(LC_NUMERIC, "C"); | |
907 | #endif | |
908 | return rc; | |
909 | } | |
910 | bool wxLocale_Init2(wxLocale *self,int language,int flags){ | |
911 | bool rc = self->Init(language, flags); | |
912 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
913 | // for the floating point conversions and such to work right. | |
914 | #if PY_VERSION_HEX < 0x02040000 | |
915 | setlocale(LC_NUMERIC, "C"); | |
916 | #endif | |
917 | return rc; | |
918 | } | |
919 | ||
920 | #include "wx/wxPython/pydrawxxx.h" | |
921 | ||
922 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ | |
923 | wxColour col; | |
924 | self->GetPixel(x, y, &col); | |
925 | return col; | |
926 | } | |
927 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ | |
928 | wxColour col; | |
929 | self->GetPixel(pt, &col); | |
930 | return col; | |
931 | } | |
932 | ||
933 | // See my_fragments.i | |
934 | SWIGSTATICINLINE(int) | |
935 | SWIG_AsVal_double(PyObject *obj, double* val) | |
936 | { | |
937 | if (PyNumber_Check(obj)) { | |
938 | if (val) *val = PyFloat_AsDouble(obj); | |
939 | return 1; | |
940 | } | |
941 | else { | |
942 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
943 | obj->ob_type->tp_name); | |
944 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
945 | Py_DECREF(errmsg); | |
946 | } | |
947 | return 0; | |
948 | } | |
949 | ||
950 | ||
951 | SWIGSTATICINLINE(double) | |
952 | SWIG_As_double(PyObject* obj) | |
953 | { | |
954 | double v; | |
955 | if (!SWIG_AsVal_double(obj, &v)) { | |
956 | /* | |
957 | this is needed to make valgrind/purify happier. the other | |
958 | solution is throw an exception, but since this code should work | |
959 | with plain C .... | |
960 | */ | |
961 | memset((void*)&v, 0, sizeof(double)); | |
962 | } | |
963 | return v; | |
964 | } | |
965 | ||
966 | ||
967 | SWIGSTATICINLINE(int) | |
968 | SWIG_Check_double(PyObject* obj) | |
969 | { | |
970 | return SWIG_AsVal_double(obj, (double*)0); | |
971 | } | |
972 | ||
973 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
974 | wxRect rv; | |
975 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
976 | return rv; | |
977 | } | |
978 | ||
979 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
980 | wxRect rect; | |
981 | self->GetClippingBox(rect); | |
982 | return rect; | |
983 | } | |
984 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
985 | wxArrayInt widths; | |
986 | self->GetPartialTextExtents(text, widths); | |
987 | return widths; | |
988 | } | |
989 | ||
990 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ | |
991 | self->SetLogicalOrigin(point.x, point.y); | |
992 | } | |
993 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
994 | self->SetDeviceOrigin(point.x, point.y); | |
995 | } | |
996 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
997 | self->CalcBoundingBox(point.x, point.y); | |
998 | } | |
999 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1000 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
1001 | } | |
1002 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1003 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
1004 | } | |
1005 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1006 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
1007 | } | |
1008 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1009 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
1010 | } | |
1011 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
1012 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
1013 | } | |
1014 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
1015 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
1016 | } | |
1017 | ||
1018 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
1019 | *x1 = dc->MinX(); | |
1020 | *y1 = dc->MinY(); | |
1021 | *x2 = dc->MaxX(); | |
1022 | *y2 = dc->MaxY(); | |
1023 | } | |
1024 | ||
1025 | ||
1026 | #include <wx/dcbuffer.h> | |
1027 | ||
1028 | ||
1029 | #include <wx/dcps.h> | |
1030 | ||
1031 | ||
1032 | class wxMetaFile : public wxObject { | |
1033 | public: | |
1034 | wxMetaFile(const wxString&) | |
1035 | { wxPyRaiseNotImplemented(); } | |
1036 | }; | |
1037 | ||
1038 | class wxMetaFileDC : public wxClientDC { | |
1039 | public: | |
1040 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
1041 | { wxPyRaiseNotImplemented(); } | |
1042 | }; | |
1043 | ||
1044 | ||
1045 | ||
1046 | class wxPrinterDC : public wxClientDC { | |
1047 | public: | |
1048 | wxPrinterDC(const wxPrintData&) | |
1049 | { wxPyRaiseNotImplemented(); } | |
1050 | ||
1051 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) | |
1052 | // { wxPyRaiseNotImplemented(); } | |
1053 | }; | |
1054 | ||
1055 | ||
1056 | ||
1057 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
1058 | self->AddColour(name, wxColour(red, green, blue)); | |
1059 | } | |
1060 | ||
1061 | #include <wx/effects.h> | |
1062 | ||
1063 | #ifdef __cplusplus | |
1064 | extern "C" { | |
1065 | #endif | |
1066 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
1067 | PyObject *resultobj; | |
1068 | wxGDIObject *result; | |
1069 | char *kwnames[] = { | |
1070 | NULL | |
1071 | }; | |
1072 | ||
1073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
1074 | { | |
1075 | if (!wxPyCheckForApp()) SWIG_fail; | |
1076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1077 | result = (wxGDIObject *)new wxGDIObject(); | |
1078 | ||
1079 | wxPyEndAllowThreads(__tstate); | |
1080 | if (PyErr_Occurred()) SWIG_fail; | |
1081 | } | |
1082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); | |
1083 | return resultobj; | |
1084 | fail: | |
1085 | return NULL; | |
1086 | } | |
1087 | ||
1088 | ||
1089 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
1090 | PyObject *resultobj; | |
1091 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1092 | PyObject * obj0 = 0 ; | |
1093 | char *kwnames[] = { | |
1094 | (char *) "self", NULL | |
1095 | }; | |
1096 | ||
1097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
1098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1100 | { | |
1101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1102 | delete arg1; | |
1103 | ||
1104 | wxPyEndAllowThreads(__tstate); | |
1105 | if (PyErr_Occurred()) SWIG_fail; | |
1106 | } | |
1107 | Py_INCREF(Py_None); resultobj = Py_None; | |
1108 | return resultobj; | |
1109 | fail: | |
1110 | return NULL; | |
1111 | } | |
1112 | ||
1113 | ||
1114 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
1115 | PyObject *resultobj; | |
1116 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1117 | bool result; | |
1118 | PyObject * obj0 = 0 ; | |
1119 | char *kwnames[] = { | |
1120 | (char *) "self", NULL | |
1121 | }; | |
1122 | ||
1123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
1124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1126 | { | |
1127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1128 | result = (bool)(arg1)->GetVisible(); | |
1129 | ||
1130 | wxPyEndAllowThreads(__tstate); | |
1131 | if (PyErr_Occurred()) SWIG_fail; | |
1132 | } | |
1133 | { | |
1134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1135 | } | |
1136 | return resultobj; | |
1137 | fail: | |
1138 | return NULL; | |
1139 | } | |
1140 | ||
1141 | ||
1142 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { | |
1143 | PyObject *resultobj; | |
1144 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1145 | bool arg2 ; | |
1146 | PyObject * obj0 = 0 ; | |
1147 | PyObject * obj1 = 0 ; | |
1148 | char *kwnames[] = { | |
1149 | (char *) "self",(char *) "visible", NULL | |
1150 | }; | |
1151 | ||
1152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
1153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1155 | arg2 = (bool)SWIG_As_bool(obj1); | |
1156 | if (PyErr_Occurred()) SWIG_fail; | |
1157 | { | |
1158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1159 | (arg1)->SetVisible(arg2); | |
1160 | ||
1161 | wxPyEndAllowThreads(__tstate); | |
1162 | if (PyErr_Occurred()) SWIG_fail; | |
1163 | } | |
1164 | Py_INCREF(Py_None); resultobj = Py_None; | |
1165 | return resultobj; | |
1166 | fail: | |
1167 | return NULL; | |
1168 | } | |
1169 | ||
1170 | ||
1171 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { | |
1172 | PyObject *resultobj; | |
1173 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1174 | bool result; | |
1175 | PyObject * obj0 = 0 ; | |
1176 | char *kwnames[] = { | |
1177 | (char *) "self", NULL | |
1178 | }; | |
1179 | ||
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
1181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1183 | { | |
1184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1185 | result = (bool)(arg1)->IsNull(); | |
1186 | ||
1187 | wxPyEndAllowThreads(__tstate); | |
1188 | if (PyErr_Occurred()) SWIG_fail; | |
1189 | } | |
1190 | { | |
1191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1192 | } | |
1193 | return resultobj; | |
1194 | fail: | |
1195 | return NULL; | |
1196 | } | |
1197 | ||
1198 | ||
1199 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { | |
1200 | PyObject *obj; | |
1201 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1202 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1203 | Py_INCREF(obj); | |
1204 | return Py_BuildValue((char *)""); | |
1205 | } | |
1206 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1207 | PyObject *resultobj; | |
1208 | byte arg1 = (byte) 0 ; | |
1209 | byte arg2 = (byte) 0 ; | |
1210 | byte arg3 = (byte) 0 ; | |
1211 | wxColour *result; | |
1212 | PyObject * obj0 = 0 ; | |
1213 | PyObject * obj1 = 0 ; | |
1214 | PyObject * obj2 = 0 ; | |
1215 | char *kwnames[] = { | |
1216 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1217 | }; | |
1218 | ||
1219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1220 | if (obj0) { | |
1221 | arg1 = (byte)SWIG_As_unsigned_SS_char(obj0); | |
1222 | if (PyErr_Occurred()) SWIG_fail; | |
1223 | } | |
1224 | if (obj1) { | |
1225 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); | |
1226 | if (PyErr_Occurred()) SWIG_fail; | |
1227 | } | |
1228 | if (obj2) { | |
1229 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); | |
1230 | if (PyErr_Occurred()) SWIG_fail; | |
1231 | } | |
1232 | { | |
1233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1234 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1235 | ||
1236 | wxPyEndAllowThreads(__tstate); | |
1237 | if (PyErr_Occurred()) SWIG_fail; | |
1238 | } | |
1239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1240 | return resultobj; | |
1241 | fail: | |
1242 | return NULL; | |
1243 | } | |
1244 | ||
1245 | ||
1246 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1247 | PyObject *resultobj; | |
1248 | wxString *arg1 = 0 ; | |
1249 | wxColour *result; | |
1250 | bool temp1 = false ; | |
1251 | PyObject * obj0 = 0 ; | |
1252 | char *kwnames[] = { | |
1253 | (char *) "colorName", NULL | |
1254 | }; | |
1255 | ||
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1257 | { | |
1258 | arg1 = wxString_in_helper(obj0); | |
1259 | if (arg1 == NULL) SWIG_fail; | |
1260 | temp1 = true; | |
1261 | } | |
1262 | { | |
1263 | if (!wxPyCheckForApp()) SWIG_fail; | |
1264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1265 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1266 | ||
1267 | wxPyEndAllowThreads(__tstate); | |
1268 | if (PyErr_Occurred()) SWIG_fail; | |
1269 | } | |
1270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1271 | { | |
1272 | if (temp1) | |
1273 | delete arg1; | |
1274 | } | |
1275 | return resultobj; | |
1276 | fail: | |
1277 | { | |
1278 | if (temp1) | |
1279 | delete arg1; | |
1280 | } | |
1281 | return NULL; | |
1282 | } | |
1283 | ||
1284 | ||
1285 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { | |
1286 | PyObject *resultobj; | |
1287 | unsigned long arg1 ; | |
1288 | wxColour *result; | |
1289 | PyObject * obj0 = 0 ; | |
1290 | char *kwnames[] = { | |
1291 | (char *) "colRGB", NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
1295 | arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0); | |
1296 | if (PyErr_Occurred()) SWIG_fail; | |
1297 | { | |
1298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1299 | result = (wxColour *)new wxColour(arg1); | |
1300 | ||
1301 | wxPyEndAllowThreads(__tstate); | |
1302 | if (PyErr_Occurred()) SWIG_fail; | |
1303 | } | |
1304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1305 | return resultobj; | |
1306 | fail: | |
1307 | return NULL; | |
1308 | } | |
1309 | ||
1310 | ||
1311 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { | |
1312 | PyObject *resultobj; | |
1313 | wxColour *arg1 = (wxColour *) 0 ; | |
1314 | PyObject * obj0 = 0 ; | |
1315 | char *kwnames[] = { | |
1316 | (char *) "self", NULL | |
1317 | }; | |
1318 | ||
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1322 | { | |
1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1324 | delete arg1; | |
1325 | ||
1326 | wxPyEndAllowThreads(__tstate); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
1329 | Py_INCREF(Py_None); resultobj = Py_None; | |
1330 | return resultobj; | |
1331 | fail: | |
1332 | return NULL; | |
1333 | } | |
1334 | ||
1335 | ||
1336 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { | |
1337 | PyObject *resultobj; | |
1338 | wxColour *arg1 = (wxColour *) 0 ; | |
1339 | byte result; | |
1340 | PyObject * obj0 = 0 ; | |
1341 | char *kwnames[] = { | |
1342 | (char *) "self", NULL | |
1343 | }; | |
1344 | ||
1345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1348 | { | |
1349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1350 | result = (byte)(arg1)->Red(); | |
1351 | ||
1352 | wxPyEndAllowThreads(__tstate); | |
1353 | if (PyErr_Occurred()) SWIG_fail; | |
1354 | } | |
1355 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); | |
1356 | return resultobj; | |
1357 | fail: | |
1358 | return NULL; | |
1359 | } | |
1360 | ||
1361 | ||
1362 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject *resultobj; | |
1364 | wxColour *arg1 = (wxColour *) 0 ; | |
1365 | byte result; | |
1366 | PyObject * obj0 = 0 ; | |
1367 | char *kwnames[] = { | |
1368 | (char *) "self", NULL | |
1369 | }; | |
1370 | ||
1371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1374 | { | |
1375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1376 | result = (byte)(arg1)->Green(); | |
1377 | ||
1378 | wxPyEndAllowThreads(__tstate); | |
1379 | if (PyErr_Occurred()) SWIG_fail; | |
1380 | } | |
1381 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); | |
1382 | return resultobj; | |
1383 | fail: | |
1384 | return NULL; | |
1385 | } | |
1386 | ||
1387 | ||
1388 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { | |
1389 | PyObject *resultobj; | |
1390 | wxColour *arg1 = (wxColour *) 0 ; | |
1391 | byte result; | |
1392 | PyObject * obj0 = 0 ; | |
1393 | char *kwnames[] = { | |
1394 | (char *) "self", NULL | |
1395 | }; | |
1396 | ||
1397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1400 | { | |
1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1402 | result = (byte)(arg1)->Blue(); | |
1403 | ||
1404 | wxPyEndAllowThreads(__tstate); | |
1405 | if (PyErr_Occurred()) SWIG_fail; | |
1406 | } | |
1407 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); | |
1408 | return resultobj; | |
1409 | fail: | |
1410 | return NULL; | |
1411 | } | |
1412 | ||
1413 | ||
1414 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
1415 | PyObject *resultobj; | |
1416 | wxColour *arg1 = (wxColour *) 0 ; | |
1417 | bool result; | |
1418 | PyObject * obj0 = 0 ; | |
1419 | char *kwnames[] = { | |
1420 | (char *) "self", NULL | |
1421 | }; | |
1422 | ||
1423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1426 | { | |
1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1428 | result = (bool)(arg1)->Ok(); | |
1429 | ||
1430 | wxPyEndAllowThreads(__tstate); | |
1431 | if (PyErr_Occurred()) SWIG_fail; | |
1432 | } | |
1433 | { | |
1434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1435 | } | |
1436 | return resultobj; | |
1437 | fail: | |
1438 | return NULL; | |
1439 | } | |
1440 | ||
1441 | ||
1442 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
1443 | PyObject *resultobj; | |
1444 | wxColour *arg1 = (wxColour *) 0 ; | |
1445 | byte arg2 ; | |
1446 | byte arg3 ; | |
1447 | byte arg4 ; | |
1448 | PyObject * obj0 = 0 ; | |
1449 | PyObject * obj1 = 0 ; | |
1450 | PyObject * obj2 = 0 ; | |
1451 | PyObject * obj3 = 0 ; | |
1452 | char *kwnames[] = { | |
1453 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1454 | }; | |
1455 | ||
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1459 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); | |
1460 | if (PyErr_Occurred()) SWIG_fail; | |
1461 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); | |
1462 | if (PyErr_Occurred()) SWIG_fail; | |
1463 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); | |
1464 | if (PyErr_Occurred()) SWIG_fail; | |
1465 | { | |
1466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1467 | (arg1)->Set(arg2,arg3,arg4); | |
1468 | ||
1469 | wxPyEndAllowThreads(__tstate); | |
1470 | if (PyErr_Occurred()) SWIG_fail; | |
1471 | } | |
1472 | Py_INCREF(Py_None); resultobj = Py_None; | |
1473 | return resultobj; | |
1474 | fail: | |
1475 | return NULL; | |
1476 | } | |
1477 | ||
1478 | ||
1479 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject *resultobj; | |
1481 | wxColour *arg1 = (wxColour *) 0 ; | |
1482 | unsigned long arg2 ; | |
1483 | PyObject * obj0 = 0 ; | |
1484 | PyObject * obj1 = 0 ; | |
1485 | char *kwnames[] = { | |
1486 | (char *) "self",(char *) "colRGB", NULL | |
1487 | }; | |
1488 | ||
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1492 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); | |
1493 | if (PyErr_Occurred()) SWIG_fail; | |
1494 | { | |
1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1496 | (arg1)->Set(arg2); | |
1497 | ||
1498 | wxPyEndAllowThreads(__tstate); | |
1499 | if (PyErr_Occurred()) SWIG_fail; | |
1500 | } | |
1501 | Py_INCREF(Py_None); resultobj = Py_None; | |
1502 | return resultobj; | |
1503 | fail: | |
1504 | return NULL; | |
1505 | } | |
1506 | ||
1507 | ||
1508 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject *resultobj; | |
1510 | wxColour *arg1 = (wxColour *) 0 ; | |
1511 | wxString *arg2 = 0 ; | |
1512 | bool temp2 = false ; | |
1513 | PyObject * obj0 = 0 ; | |
1514 | PyObject * obj1 = 0 ; | |
1515 | char *kwnames[] = { | |
1516 | (char *) "self",(char *) "colourName", NULL | |
1517 | }; | |
1518 | ||
1519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1522 | { | |
1523 | arg2 = wxString_in_helper(obj1); | |
1524 | if (arg2 == NULL) SWIG_fail; | |
1525 | temp2 = true; | |
1526 | } | |
1527 | { | |
1528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1529 | (arg1)->InitFromName((wxString const &)*arg2); | |
1530 | ||
1531 | wxPyEndAllowThreads(__tstate); | |
1532 | if (PyErr_Occurred()) SWIG_fail; | |
1533 | } | |
1534 | Py_INCREF(Py_None); resultobj = Py_None; | |
1535 | { | |
1536 | if (temp2) | |
1537 | delete arg2; | |
1538 | } | |
1539 | return resultobj; | |
1540 | fail: | |
1541 | { | |
1542 | if (temp2) | |
1543 | delete arg2; | |
1544 | } | |
1545 | return NULL; | |
1546 | } | |
1547 | ||
1548 | ||
1549 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject *resultobj; | |
1551 | wxColour *arg1 = (wxColour *) 0 ; | |
1552 | long result; | |
1553 | PyObject * obj0 = 0 ; | |
1554 | char *kwnames[] = { | |
1555 | (char *) "self", NULL | |
1556 | }; | |
1557 | ||
1558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1561 | { | |
1562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1563 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1564 | ||
1565 | wxPyEndAllowThreads(__tstate); | |
1566 | if (PyErr_Occurred()) SWIG_fail; | |
1567 | } | |
1568 | resultobj = SWIG_From_long((long)result); | |
1569 | return resultobj; | |
1570 | fail: | |
1571 | return NULL; | |
1572 | } | |
1573 | ||
1574 | ||
1575 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
1576 | PyObject *resultobj; | |
1577 | wxColour *arg1 = (wxColour *) 0 ; | |
1578 | wxColour *arg2 = 0 ; | |
1579 | bool result; | |
1580 | wxColour temp2 ; | |
1581 | PyObject * obj0 = 0 ; | |
1582 | PyObject * obj1 = 0 ; | |
1583 | char *kwnames[] = { | |
1584 | (char *) "self",(char *) "colour", NULL | |
1585 | }; | |
1586 | ||
1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1590 | { | |
1591 | arg2 = &temp2; | |
1592 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1593 | } | |
1594 | { | |
1595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1596 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1597 | ||
1598 | wxPyEndAllowThreads(__tstate); | |
1599 | if (PyErr_Occurred()) SWIG_fail; | |
1600 | } | |
1601 | { | |
1602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1603 | } | |
1604 | return resultobj; | |
1605 | fail: | |
1606 | return NULL; | |
1607 | } | |
1608 | ||
1609 | ||
1610 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
1611 | PyObject *resultobj; | |
1612 | wxColour *arg1 = (wxColour *) 0 ; | |
1613 | wxColour *arg2 = 0 ; | |
1614 | bool result; | |
1615 | wxColour temp2 ; | |
1616 | PyObject * obj0 = 0 ; | |
1617 | PyObject * obj1 = 0 ; | |
1618 | char *kwnames[] = { | |
1619 | (char *) "self",(char *) "colour", NULL | |
1620 | }; | |
1621 | ||
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1625 | { | |
1626 | arg2 = &temp2; | |
1627 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1628 | } | |
1629 | { | |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1631 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
1634 | if (PyErr_Occurred()) SWIG_fail; | |
1635 | } | |
1636 | { | |
1637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1638 | } | |
1639 | return resultobj; | |
1640 | fail: | |
1641 | return NULL; | |
1642 | } | |
1643 | ||
1644 | ||
1645 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
1646 | PyObject *resultobj; | |
1647 | wxColour *arg1 = (wxColour *) 0 ; | |
1648 | PyObject *result; | |
1649 | PyObject * obj0 = 0 ; | |
1650 | char *kwnames[] = { | |
1651 | (char *) "self", NULL | |
1652 | }; | |
1653 | ||
1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1657 | { | |
1658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1659 | result = (PyObject *)wxColour_Get(arg1); | |
1660 | ||
1661 | wxPyEndAllowThreads(__tstate); | |
1662 | if (PyErr_Occurred()) SWIG_fail; | |
1663 | } | |
1664 | resultobj = result; | |
1665 | return resultobj; | |
1666 | fail: | |
1667 | return NULL; | |
1668 | } | |
1669 | ||
1670 | ||
1671 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { | |
1672 | PyObject *resultobj; | |
1673 | wxColour *arg1 = (wxColour *) 0 ; | |
1674 | unsigned long result; | |
1675 | PyObject * obj0 = 0 ; | |
1676 | char *kwnames[] = { | |
1677 | (char *) "self", NULL | |
1678 | }; | |
1679 | ||
1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; | |
1681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1683 | { | |
1684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1685 | result = (unsigned long)wxColour_GetRGB(arg1); | |
1686 | ||
1687 | wxPyEndAllowThreads(__tstate); | |
1688 | if (PyErr_Occurred()) SWIG_fail; | |
1689 | } | |
1690 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
1691 | return resultobj; | |
1692 | fail: | |
1693 | return NULL; | |
1694 | } | |
1695 | ||
1696 | ||
1697 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { | |
1698 | PyObject *obj; | |
1699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1700 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1701 | Py_INCREF(obj); | |
1702 | return Py_BuildValue((char *)""); | |
1703 | } | |
1704 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { | |
1705 | PyObject *resultobj; | |
1706 | int arg1 ; | |
1707 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1708 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1709 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1710 | wxPalette *result; | |
1711 | PyObject * obj0 = 0 ; | |
1712 | PyObject * obj1 = 0 ; | |
1713 | PyObject * obj2 = 0 ; | |
1714 | PyObject * obj3 = 0 ; | |
1715 | char *kwnames[] = { | |
1716 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1717 | }; | |
1718 | ||
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1720 | arg1 = (int)SWIG_As_int(obj0); | |
1721 | if (PyErr_Occurred()) SWIG_fail; | |
1722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1724 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1726 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1728 | { | |
1729 | if (!wxPyCheckForApp()) SWIG_fail; | |
1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1731 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1732 | ||
1733 | wxPyEndAllowThreads(__tstate); | |
1734 | if (PyErr_Occurred()) SWIG_fail; | |
1735 | } | |
1736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); | |
1737 | return resultobj; | |
1738 | fail: | |
1739 | return NULL; | |
1740 | } | |
1741 | ||
1742 | ||
1743 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { | |
1744 | PyObject *resultobj; | |
1745 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1746 | PyObject * obj0 = 0 ; | |
1747 | char *kwnames[] = { | |
1748 | (char *) "self", NULL | |
1749 | }; | |
1750 | ||
1751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1754 | { | |
1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1756 | delete arg1; | |
1757 | ||
1758 | wxPyEndAllowThreads(__tstate); | |
1759 | if (PyErr_Occurred()) SWIG_fail; | |
1760 | } | |
1761 | Py_INCREF(Py_None); resultobj = Py_None; | |
1762 | return resultobj; | |
1763 | fail: | |
1764 | return NULL; | |
1765 | } | |
1766 | ||
1767 | ||
1768 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { | |
1769 | PyObject *resultobj; | |
1770 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1771 | byte arg2 ; | |
1772 | byte arg3 ; | |
1773 | byte arg4 ; | |
1774 | int result; | |
1775 | PyObject * obj0 = 0 ; | |
1776 | PyObject * obj1 = 0 ; | |
1777 | PyObject * obj2 = 0 ; | |
1778 | PyObject * obj3 = 0 ; | |
1779 | char *kwnames[] = { | |
1780 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1781 | }; | |
1782 | ||
1783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1786 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); | |
1787 | if (PyErr_Occurred()) SWIG_fail; | |
1788 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); | |
1789 | if (PyErr_Occurred()) SWIG_fail; | |
1790 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); | |
1791 | if (PyErr_Occurred()) SWIG_fail; | |
1792 | { | |
1793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1794 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1795 | ||
1796 | wxPyEndAllowThreads(__tstate); | |
1797 | if (PyErr_Occurred()) SWIG_fail; | |
1798 | } | |
1799 | resultobj = SWIG_From_int((int)result); | |
1800 | return resultobj; | |
1801 | fail: | |
1802 | return NULL; | |
1803 | } | |
1804 | ||
1805 | ||
1806 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { | |
1807 | PyObject *resultobj; | |
1808 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1809 | int arg2 ; | |
1810 | byte *arg3 = (byte *) 0 ; | |
1811 | byte *arg4 = (byte *) 0 ; | |
1812 | byte *arg5 = (byte *) 0 ; | |
1813 | bool result; | |
1814 | byte temp3 ; | |
1815 | int res3 = 0 ; | |
1816 | byte temp4 ; | |
1817 | int res4 = 0 ; | |
1818 | byte temp5 ; | |
1819 | int res5 = 0 ; | |
1820 | PyObject * obj0 = 0 ; | |
1821 | PyObject * obj1 = 0 ; | |
1822 | char *kwnames[] = { | |
1823 | (char *) "self",(char *) "pixel", NULL | |
1824 | }; | |
1825 | ||
1826 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
1827 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
1828 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
1829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1832 | arg2 = (int)SWIG_As_int(obj1); | |
1833 | if (PyErr_Occurred()) SWIG_fail; | |
1834 | { | |
1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1836 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1837 | ||
1838 | wxPyEndAllowThreads(__tstate); | |
1839 | if (PyErr_Occurred()) SWIG_fail; | |
1840 | } | |
1841 | { | |
1842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1843 | } | |
1844 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
1845 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
1846 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
1847 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
1848 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
1849 | SWIG_From_unsigned_SS_char((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_byte, 0))); | |
1850 | return resultobj; | |
1851 | fail: | |
1852 | return NULL; | |
1853 | } | |
1854 | ||
1855 | ||
1856 | static PyObject *_wrap_Palette_GetColoursCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
1857 | PyObject *resultobj; | |
1858 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1859 | int result; | |
1860 | PyObject * obj0 = 0 ; | |
1861 | char *kwnames[] = { | |
1862 | (char *) "self", NULL | |
1863 | }; | |
1864 | ||
1865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_GetColoursCount",kwnames,&obj0)) goto fail; | |
1866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1868 | { | |
1869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1870 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
1871 | ||
1872 | wxPyEndAllowThreads(__tstate); | |
1873 | if (PyErr_Occurred()) SWIG_fail; | |
1874 | } | |
1875 | resultobj = SWIG_From_int((int)result); | |
1876 | return resultobj; | |
1877 | fail: | |
1878 | return NULL; | |
1879 | } | |
1880 | ||
1881 | ||
1882 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
1883 | PyObject *resultobj; | |
1884 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1885 | bool result; | |
1886 | PyObject * obj0 = 0 ; | |
1887 | char *kwnames[] = { | |
1888 | (char *) "self", NULL | |
1889 | }; | |
1890 | ||
1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1894 | { | |
1895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1896 | result = (bool)(arg1)->Ok(); | |
1897 | ||
1898 | wxPyEndAllowThreads(__tstate); | |
1899 | if (PyErr_Occurred()) SWIG_fail; | |
1900 | } | |
1901 | { | |
1902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1903 | } | |
1904 | return resultobj; | |
1905 | fail: | |
1906 | return NULL; | |
1907 | } | |
1908 | ||
1909 | ||
1910 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { | |
1911 | PyObject *obj; | |
1912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1913 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1914 | Py_INCREF(obj); | |
1915 | return Py_BuildValue((char *)""); | |
1916 | } | |
1917 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { | |
1918 | PyObject *resultobj; | |
1919 | wxColour *arg1 = 0 ; | |
1920 | int arg2 = (int) 1 ; | |
1921 | int arg3 = (int) wxSOLID ; | |
1922 | wxPen *result; | |
1923 | wxColour temp1 ; | |
1924 | PyObject * obj0 = 0 ; | |
1925 | PyObject * obj1 = 0 ; | |
1926 | PyObject * obj2 = 0 ; | |
1927 | char *kwnames[] = { | |
1928 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1929 | }; | |
1930 | ||
1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1932 | { | |
1933 | arg1 = &temp1; | |
1934 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1935 | } | |
1936 | if (obj1) { | |
1937 | arg2 = (int)SWIG_As_int(obj1); | |
1938 | if (PyErr_Occurred()) SWIG_fail; | |
1939 | } | |
1940 | if (obj2) { | |
1941 | arg3 = (int)SWIG_As_int(obj2); | |
1942 | if (PyErr_Occurred()) SWIG_fail; | |
1943 | } | |
1944 | { | |
1945 | if (!wxPyCheckForApp()) SWIG_fail; | |
1946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1947 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1948 | ||
1949 | wxPyEndAllowThreads(__tstate); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | } | |
1952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); | |
1953 | return resultobj; | |
1954 | fail: | |
1955 | return NULL; | |
1956 | } | |
1957 | ||
1958 | ||
1959 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { | |
1960 | PyObject *resultobj; | |
1961 | wxPen *arg1 = (wxPen *) 0 ; | |
1962 | PyObject * obj0 = 0 ; | |
1963 | char *kwnames[] = { | |
1964 | (char *) "self", NULL | |
1965 | }; | |
1966 | ||
1967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1970 | { | |
1971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1972 | delete arg1; | |
1973 | ||
1974 | wxPyEndAllowThreads(__tstate); | |
1975 | if (PyErr_Occurred()) SWIG_fail; | |
1976 | } | |
1977 | Py_INCREF(Py_None); resultobj = Py_None; | |
1978 | return resultobj; | |
1979 | fail: | |
1980 | return NULL; | |
1981 | } | |
1982 | ||
1983 | ||
1984 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { | |
1985 | PyObject *resultobj; | |
1986 | wxPen *arg1 = (wxPen *) 0 ; | |
1987 | int result; | |
1988 | PyObject * obj0 = 0 ; | |
1989 | char *kwnames[] = { | |
1990 | (char *) "self", NULL | |
1991 | }; | |
1992 | ||
1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1996 | { | |
1997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1998 | result = (int)(arg1)->GetCap(); | |
1999 | ||
2000 | wxPyEndAllowThreads(__tstate); | |
2001 | if (PyErr_Occurred()) SWIG_fail; | |
2002 | } | |
2003 | resultobj = SWIG_From_int((int)result); | |
2004 | return resultobj; | |
2005 | fail: | |
2006 | return NULL; | |
2007 | } | |
2008 | ||
2009 | ||
2010 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
2011 | PyObject *resultobj; | |
2012 | wxPen *arg1 = (wxPen *) 0 ; | |
2013 | wxColour result; | |
2014 | PyObject * obj0 = 0 ; | |
2015 | char *kwnames[] = { | |
2016 | (char *) "self", NULL | |
2017 | }; | |
2018 | ||
2019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
2020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2022 | { | |
2023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2024 | result = (arg1)->GetColour(); | |
2025 | ||
2026 | wxPyEndAllowThreads(__tstate); | |
2027 | if (PyErr_Occurred()) SWIG_fail; | |
2028 | } | |
2029 | { | |
2030 | wxColour * resultptr; | |
2031 | resultptr = new wxColour((wxColour &) result); | |
2032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2033 | } | |
2034 | return resultobj; | |
2035 | fail: | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
2040 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { | |
2041 | PyObject *resultobj; | |
2042 | wxPen *arg1 = (wxPen *) 0 ; | |
2043 | int result; | |
2044 | PyObject * obj0 = 0 ; | |
2045 | char *kwnames[] = { | |
2046 | (char *) "self", NULL | |
2047 | }; | |
2048 | ||
2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
2050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2052 | { | |
2053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2054 | result = (int)(arg1)->GetJoin(); | |
2055 | ||
2056 | wxPyEndAllowThreads(__tstate); | |
2057 | if (PyErr_Occurred()) SWIG_fail; | |
2058 | } | |
2059 | resultobj = SWIG_From_int((int)result); | |
2060 | return resultobj; | |
2061 | fail: | |
2062 | return NULL; | |
2063 | } | |
2064 | ||
2065 | ||
2066 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
2067 | PyObject *resultobj; | |
2068 | wxPen *arg1 = (wxPen *) 0 ; | |
2069 | int result; | |
2070 | PyObject * obj0 = 0 ; | |
2071 | char *kwnames[] = { | |
2072 | (char *) "self", NULL | |
2073 | }; | |
2074 | ||
2075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
2076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2078 | { | |
2079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2080 | result = (int)(arg1)->GetStyle(); | |
2081 | ||
2082 | wxPyEndAllowThreads(__tstate); | |
2083 | if (PyErr_Occurred()) SWIG_fail; | |
2084 | } | |
2085 | resultobj = SWIG_From_int((int)result); | |
2086 | return resultobj; | |
2087 | fail: | |
2088 | return NULL; | |
2089 | } | |
2090 | ||
2091 | ||
2092 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
2093 | PyObject *resultobj; | |
2094 | wxPen *arg1 = (wxPen *) 0 ; | |
2095 | int result; | |
2096 | PyObject * obj0 = 0 ; | |
2097 | char *kwnames[] = { | |
2098 | (char *) "self", NULL | |
2099 | }; | |
2100 | ||
2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
2102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2104 | { | |
2105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2106 | result = (int)(arg1)->GetWidth(); | |
2107 | ||
2108 | wxPyEndAllowThreads(__tstate); | |
2109 | if (PyErr_Occurred()) SWIG_fail; | |
2110 | } | |
2111 | resultobj = SWIG_From_int((int)result); | |
2112 | return resultobj; | |
2113 | fail: | |
2114 | return NULL; | |
2115 | } | |
2116 | ||
2117 | ||
2118 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
2119 | PyObject *resultobj; | |
2120 | wxPen *arg1 = (wxPen *) 0 ; | |
2121 | bool result; | |
2122 | PyObject * obj0 = 0 ; | |
2123 | char *kwnames[] = { | |
2124 | (char *) "self", NULL | |
2125 | }; | |
2126 | ||
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
2128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2130 | { | |
2131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2132 | result = (bool)(arg1)->Ok(); | |
2133 | ||
2134 | wxPyEndAllowThreads(__tstate); | |
2135 | if (PyErr_Occurred()) SWIG_fail; | |
2136 | } | |
2137 | { | |
2138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2139 | } | |
2140 | return resultobj; | |
2141 | fail: | |
2142 | return NULL; | |
2143 | } | |
2144 | ||
2145 | ||
2146 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { | |
2147 | PyObject *resultobj; | |
2148 | wxPen *arg1 = (wxPen *) 0 ; | |
2149 | int arg2 ; | |
2150 | PyObject * obj0 = 0 ; | |
2151 | PyObject * obj1 = 0 ; | |
2152 | char *kwnames[] = { | |
2153 | (char *) "self",(char *) "cap_style", NULL | |
2154 | }; | |
2155 | ||
2156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; | |
2157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2159 | arg2 = (int)SWIG_As_int(obj1); | |
2160 | if (PyErr_Occurred()) SWIG_fail; | |
2161 | { | |
2162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2163 | (arg1)->SetCap(arg2); | |
2164 | ||
2165 | wxPyEndAllowThreads(__tstate); | |
2166 | if (PyErr_Occurred()) SWIG_fail; | |
2167 | } | |
2168 | Py_INCREF(Py_None); resultobj = Py_None; | |
2169 | return resultobj; | |
2170 | fail: | |
2171 | return NULL; | |
2172 | } | |
2173 | ||
2174 | ||
2175 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
2176 | PyObject *resultobj; | |
2177 | wxPen *arg1 = (wxPen *) 0 ; | |
2178 | wxColour *arg2 = 0 ; | |
2179 | wxColour temp2 ; | |
2180 | PyObject * obj0 = 0 ; | |
2181 | PyObject * obj1 = 0 ; | |
2182 | char *kwnames[] = { | |
2183 | (char *) "self",(char *) "colour", NULL | |
2184 | }; | |
2185 | ||
2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2189 | { | |
2190 | arg2 = &temp2; | |
2191 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2192 | } | |
2193 | { | |
2194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2195 | (arg1)->SetColour(*arg2); | |
2196 | ||
2197 | wxPyEndAllowThreads(__tstate); | |
2198 | if (PyErr_Occurred()) SWIG_fail; | |
2199 | } | |
2200 | Py_INCREF(Py_None); resultobj = Py_None; | |
2201 | return resultobj; | |
2202 | fail: | |
2203 | return NULL; | |
2204 | } | |
2205 | ||
2206 | ||
2207 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { | |
2208 | PyObject *resultobj; | |
2209 | wxPen *arg1 = (wxPen *) 0 ; | |
2210 | int arg2 ; | |
2211 | PyObject * obj0 = 0 ; | |
2212 | PyObject * obj1 = 0 ; | |
2213 | char *kwnames[] = { | |
2214 | (char *) "self",(char *) "join_style", NULL | |
2215 | }; | |
2216 | ||
2217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; | |
2218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2220 | arg2 = (int)SWIG_As_int(obj1); | |
2221 | if (PyErr_Occurred()) SWIG_fail; | |
2222 | { | |
2223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2224 | (arg1)->SetJoin(arg2); | |
2225 | ||
2226 | wxPyEndAllowThreads(__tstate); | |
2227 | if (PyErr_Occurred()) SWIG_fail; | |
2228 | } | |
2229 | Py_INCREF(Py_None); resultobj = Py_None; | |
2230 | return resultobj; | |
2231 | fail: | |
2232 | return NULL; | |
2233 | } | |
2234 | ||
2235 | ||
2236 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
2237 | PyObject *resultobj; | |
2238 | wxPen *arg1 = (wxPen *) 0 ; | |
2239 | int arg2 ; | |
2240 | PyObject * obj0 = 0 ; | |
2241 | PyObject * obj1 = 0 ; | |
2242 | char *kwnames[] = { | |
2243 | (char *) "self",(char *) "style", NULL | |
2244 | }; | |
2245 | ||
2246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2249 | arg2 = (int)SWIG_As_int(obj1); | |
2250 | if (PyErr_Occurred()) SWIG_fail; | |
2251 | { | |
2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2253 | (arg1)->SetStyle(arg2); | |
2254 | ||
2255 | wxPyEndAllowThreads(__tstate); | |
2256 | if (PyErr_Occurred()) SWIG_fail; | |
2257 | } | |
2258 | Py_INCREF(Py_None); resultobj = Py_None; | |
2259 | return resultobj; | |
2260 | fail: | |
2261 | return NULL; | |
2262 | } | |
2263 | ||
2264 | ||
2265 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
2266 | PyObject *resultobj; | |
2267 | wxPen *arg1 = (wxPen *) 0 ; | |
2268 | int arg2 ; | |
2269 | PyObject * obj0 = 0 ; | |
2270 | PyObject * obj1 = 0 ; | |
2271 | char *kwnames[] = { | |
2272 | (char *) "self",(char *) "width", NULL | |
2273 | }; | |
2274 | ||
2275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2278 | arg2 = (int)SWIG_As_int(obj1); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | { | |
2281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2282 | (arg1)->SetWidth(arg2); | |
2283 | ||
2284 | wxPyEndAllowThreads(__tstate); | |
2285 | if (PyErr_Occurred()) SWIG_fail; | |
2286 | } | |
2287 | Py_INCREF(Py_None); resultobj = Py_None; | |
2288 | return resultobj; | |
2289 | fail: | |
2290 | return NULL; | |
2291 | } | |
2292 | ||
2293 | ||
2294 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { | |
2295 | PyObject *resultobj; | |
2296 | wxPen *arg1 = (wxPen *) 0 ; | |
2297 | int arg2 ; | |
2298 | wxDash *arg3 = (wxDash *) 0 ; | |
2299 | PyObject * obj0 = 0 ; | |
2300 | PyObject * obj1 = 0 ; | |
2301 | char *kwnames[] = { | |
2302 | (char *) "self",(char *) "dashes", NULL | |
2303 | }; | |
2304 | ||
2305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2308 | { | |
2309 | arg2 = PyList_Size(obj1); | |
2310 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2311 | if (arg3 == NULL) SWIG_fail; | |
2312 | } | |
2313 | { | |
2314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2315 | (arg1)->SetDashes(arg2,arg3); | |
2316 | ||
2317 | wxPyEndAllowThreads(__tstate); | |
2318 | if (PyErr_Occurred()) SWIG_fail; | |
2319 | } | |
2320 | Py_INCREF(Py_None); resultobj = Py_None; | |
2321 | { | |
2322 | if (arg3) delete [] arg3; | |
2323 | } | |
2324 | return resultobj; | |
2325 | fail: | |
2326 | { | |
2327 | if (arg3) delete [] arg3; | |
2328 | } | |
2329 | return NULL; | |
2330 | } | |
2331 | ||
2332 | ||
2333 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { | |
2334 | PyObject *resultobj; | |
2335 | wxPen *arg1 = (wxPen *) 0 ; | |
2336 | PyObject *result; | |
2337 | PyObject * obj0 = 0 ; | |
2338 | char *kwnames[] = { | |
2339 | (char *) "self", NULL | |
2340 | }; | |
2341 | ||
2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2345 | { | |
2346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2347 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2348 | ||
2349 | wxPyEndAllowThreads(__tstate); | |
2350 | if (PyErr_Occurred()) SWIG_fail; | |
2351 | } | |
2352 | resultobj = result; | |
2353 | return resultobj; | |
2354 | fail: | |
2355 | return NULL; | |
2356 | } | |
2357 | ||
2358 | ||
2359 | static PyObject *_wrap_Pen__SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { | |
2360 | PyObject *resultobj; | |
2361 | wxPen *arg1 = (wxPen *) 0 ; | |
2362 | PyObject *arg2 = (PyObject *) 0 ; | |
2363 | PyObject *arg3 = (PyObject *) 0 ; | |
2364 | PyObject * obj0 = 0 ; | |
2365 | PyObject * obj1 = 0 ; | |
2366 | PyObject * obj2 = 0 ; | |
2367 | char *kwnames[] = { | |
2368 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
2369 | }; | |
2370 | ||
2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2374 | arg2 = obj1; | |
2375 | arg3 = obj2; | |
2376 | { | |
2377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2378 | wxPen__SetDashes(arg1,arg2,arg3); | |
2379 | ||
2380 | wxPyEndAllowThreads(__tstate); | |
2381 | if (PyErr_Occurred()) SWIG_fail; | |
2382 | } | |
2383 | Py_INCREF(Py_None); resultobj = Py_None; | |
2384 | return resultobj; | |
2385 | fail: | |
2386 | return NULL; | |
2387 | } | |
2388 | ||
2389 | ||
2390 | static PyObject *_wrap_Pen_GetDashCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
2391 | PyObject *resultobj; | |
2392 | wxPen *arg1 = (wxPen *) 0 ; | |
2393 | int result; | |
2394 | PyObject * obj0 = 0 ; | |
2395 | char *kwnames[] = { | |
2396 | (char *) "self", NULL | |
2397 | }; | |
2398 | ||
2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2402 | { | |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2404 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2405 | ||
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) SWIG_fail; | |
2408 | } | |
2409 | resultobj = SWIG_From_int((int)result); | |
2410 | return resultobj; | |
2411 | fail: | |
2412 | return NULL; | |
2413 | } | |
2414 | ||
2415 | ||
2416 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
2417 | PyObject *resultobj; | |
2418 | wxPen *arg1 = (wxPen *) 0 ; | |
2419 | wxPen *arg2 = (wxPen *) 0 ; | |
2420 | bool result; | |
2421 | PyObject * obj0 = 0 ; | |
2422 | PyObject * obj1 = 0 ; | |
2423 | char *kwnames[] = { | |
2424 | (char *) "self",(char *) "other", NULL | |
2425 | }; | |
2426 | ||
2427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2430 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2432 | { | |
2433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2434 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
2435 | ||
2436 | wxPyEndAllowThreads(__tstate); | |
2437 | if (PyErr_Occurred()) SWIG_fail; | |
2438 | } | |
2439 | { | |
2440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2441 | } | |
2442 | return resultobj; | |
2443 | fail: | |
2444 | return NULL; | |
2445 | } | |
2446 | ||
2447 | ||
2448 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
2449 | PyObject *resultobj; | |
2450 | wxPen *arg1 = (wxPen *) 0 ; | |
2451 | wxPen *arg2 = (wxPen *) 0 ; | |
2452 | bool result; | |
2453 | PyObject * obj0 = 0 ; | |
2454 | PyObject * obj1 = 0 ; | |
2455 | char *kwnames[] = { | |
2456 | (char *) "self",(char *) "other", NULL | |
2457 | }; | |
2458 | ||
2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2464 | { | |
2465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2466 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
2467 | ||
2468 | wxPyEndAllowThreads(__tstate); | |
2469 | if (PyErr_Occurred()) SWIG_fail; | |
2470 | } | |
2471 | { | |
2472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2473 | } | |
2474 | return resultobj; | |
2475 | fail: | |
2476 | return NULL; | |
2477 | } | |
2478 | ||
2479 | ||
2480 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { | |
2481 | PyObject *obj; | |
2482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2483 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2484 | Py_INCREF(obj); | |
2485 | return Py_BuildValue((char *)""); | |
2486 | } | |
2487 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { | |
2488 | PyObject *resultobj; | |
2489 | wxColour *arg1 = 0 ; | |
2490 | int arg2 = (int) wxSOLID ; | |
2491 | wxBrush *result; | |
2492 | wxColour temp1 ; | |
2493 | PyObject * obj0 = 0 ; | |
2494 | PyObject * obj1 = 0 ; | |
2495 | char *kwnames[] = { | |
2496 | (char *) "colour",(char *) "style", NULL | |
2497 | }; | |
2498 | ||
2499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; | |
2500 | { | |
2501 | arg1 = &temp1; | |
2502 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2503 | } | |
2504 | if (obj1) { | |
2505 | arg2 = (int)SWIG_As_int(obj1); | |
2506 | if (PyErr_Occurred()) SWIG_fail; | |
2507 | } | |
2508 | { | |
2509 | if (!wxPyCheckForApp()) SWIG_fail; | |
2510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2511 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2512 | ||
2513 | wxPyEndAllowThreads(__tstate); | |
2514 | if (PyErr_Occurred()) SWIG_fail; | |
2515 | } | |
2516 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
2517 | return resultobj; | |
2518 | fail: | |
2519 | return NULL; | |
2520 | } | |
2521 | ||
2522 | ||
2523 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { | |
2524 | PyObject *resultobj; | |
2525 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2526 | PyObject * obj0 = 0 ; | |
2527 | char *kwnames[] = { | |
2528 | (char *) "self", NULL | |
2529 | }; | |
2530 | ||
2531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2534 | { | |
2535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2536 | delete arg1; | |
2537 | ||
2538 | wxPyEndAllowThreads(__tstate); | |
2539 | if (PyErr_Occurred()) SWIG_fail; | |
2540 | } | |
2541 | Py_INCREF(Py_None); resultobj = Py_None; | |
2542 | return resultobj; | |
2543 | fail: | |
2544 | return NULL; | |
2545 | } | |
2546 | ||
2547 | ||
2548 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
2549 | PyObject *resultobj; | |
2550 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2551 | wxColour *arg2 = 0 ; | |
2552 | wxColour temp2 ; | |
2553 | PyObject * obj0 = 0 ; | |
2554 | PyObject * obj1 = 0 ; | |
2555 | char *kwnames[] = { | |
2556 | (char *) "self",(char *) "col", NULL | |
2557 | }; | |
2558 | ||
2559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2562 | { | |
2563 | arg2 = &temp2; | |
2564 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2565 | } | |
2566 | { | |
2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2568 | (arg1)->SetColour((wxColour const &)*arg2); | |
2569 | ||
2570 | wxPyEndAllowThreads(__tstate); | |
2571 | if (PyErr_Occurred()) SWIG_fail; | |
2572 | } | |
2573 | Py_INCREF(Py_None); resultobj = Py_None; | |
2574 | return resultobj; | |
2575 | fail: | |
2576 | return NULL; | |
2577 | } | |
2578 | ||
2579 | ||
2580 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
2581 | PyObject *resultobj; | |
2582 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2583 | int arg2 ; | |
2584 | PyObject * obj0 = 0 ; | |
2585 | PyObject * obj1 = 0 ; | |
2586 | char *kwnames[] = { | |
2587 | (char *) "self",(char *) "style", NULL | |
2588 | }; | |
2589 | ||
2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2593 | arg2 = (int)SWIG_As_int(obj1); | |
2594 | if (PyErr_Occurred()) SWIG_fail; | |
2595 | { | |
2596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2597 | (arg1)->SetStyle(arg2); | |
2598 | ||
2599 | wxPyEndAllowThreads(__tstate); | |
2600 | if (PyErr_Occurred()) SWIG_fail; | |
2601 | } | |
2602 | Py_INCREF(Py_None); resultobj = Py_None; | |
2603 | return resultobj; | |
2604 | fail: | |
2605 | return NULL; | |
2606 | } | |
2607 | ||
2608 | ||
2609 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { | |
2610 | PyObject *resultobj; | |
2611 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2612 | wxBitmap *arg2 = 0 ; | |
2613 | PyObject * obj0 = 0 ; | |
2614 | PyObject * obj1 = 0 ; | |
2615 | char *kwnames[] = { | |
2616 | (char *) "self",(char *) "stipple", NULL | |
2617 | }; | |
2618 | ||
2619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2623 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2624 | SWIG_fail; | |
2625 | if (arg2 == NULL) { | |
2626 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2627 | SWIG_fail; | |
2628 | } | |
2629 | { | |
2630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2631 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2632 | ||
2633 | wxPyEndAllowThreads(__tstate); | |
2634 | if (PyErr_Occurred()) SWIG_fail; | |
2635 | } | |
2636 | Py_INCREF(Py_None); resultobj = Py_None; | |
2637 | return resultobj; | |
2638 | fail: | |
2639 | return NULL; | |
2640 | } | |
2641 | ||
2642 | ||
2643 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
2644 | PyObject *resultobj; | |
2645 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2646 | wxColour result; | |
2647 | PyObject * obj0 = 0 ; | |
2648 | char *kwnames[] = { | |
2649 | (char *) "self", NULL | |
2650 | }; | |
2651 | ||
2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2655 | { | |
2656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2657 | result = ((wxBrush const *)arg1)->GetColour(); | |
2658 | ||
2659 | wxPyEndAllowThreads(__tstate); | |
2660 | if (PyErr_Occurred()) SWIG_fail; | |
2661 | } | |
2662 | { | |
2663 | wxColour * resultptr; | |
2664 | resultptr = new wxColour((wxColour &) result); | |
2665 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2666 | } | |
2667 | return resultobj; | |
2668 | fail: | |
2669 | return NULL; | |
2670 | } | |
2671 | ||
2672 | ||
2673 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
2674 | PyObject *resultobj; | |
2675 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2676 | int result; | |
2677 | PyObject * obj0 = 0 ; | |
2678 | char *kwnames[] = { | |
2679 | (char *) "self", NULL | |
2680 | }; | |
2681 | ||
2682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2685 | { | |
2686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2687 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2688 | ||
2689 | wxPyEndAllowThreads(__tstate); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | } | |
2692 | resultobj = SWIG_From_int((int)result); | |
2693 | return resultobj; | |
2694 | fail: | |
2695 | return NULL; | |
2696 | } | |
2697 | ||
2698 | ||
2699 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { | |
2700 | PyObject *resultobj; | |
2701 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2702 | wxBitmap *result; | |
2703 | PyObject * obj0 = 0 ; | |
2704 | char *kwnames[] = { | |
2705 | (char *) "self", NULL | |
2706 | }; | |
2707 | ||
2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2711 | { | |
2712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2713 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2714 | ||
2715 | wxPyEndAllowThreads(__tstate); | |
2716 | if (PyErr_Occurred()) SWIG_fail; | |
2717 | } | |
2718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2719 | return resultobj; | |
2720 | fail: | |
2721 | return NULL; | |
2722 | } | |
2723 | ||
2724 | ||
2725 | static PyObject *_wrap_Brush_IsHatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
2726 | PyObject *resultobj; | |
2727 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2728 | bool result; | |
2729 | PyObject * obj0 = 0 ; | |
2730 | char *kwnames[] = { | |
2731 | (char *) "self", NULL | |
2732 | }; | |
2733 | ||
2734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_IsHatch",kwnames,&obj0)) goto fail; | |
2735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2737 | { | |
2738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2739 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
2740 | ||
2741 | wxPyEndAllowThreads(__tstate); | |
2742 | if (PyErr_Occurred()) SWIG_fail; | |
2743 | } | |
2744 | { | |
2745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2746 | } | |
2747 | return resultobj; | |
2748 | fail: | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
2753 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
2754 | PyObject *resultobj; | |
2755 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2756 | bool result; | |
2757 | PyObject * obj0 = 0 ; | |
2758 | char *kwnames[] = { | |
2759 | (char *) "self", NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2765 | { | |
2766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2767 | result = (bool)(arg1)->Ok(); | |
2768 | ||
2769 | wxPyEndAllowThreads(__tstate); | |
2770 | if (PyErr_Occurred()) SWIG_fail; | |
2771 | } | |
2772 | { | |
2773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2774 | } | |
2775 | return resultobj; | |
2776 | fail: | |
2777 | return NULL; | |
2778 | } | |
2779 | ||
2780 | ||
2781 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { | |
2782 | PyObject *obj; | |
2783 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2784 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2785 | Py_INCREF(obj); | |
2786 | return Py_BuildValue((char *)""); | |
2787 | } | |
2788 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject *resultobj; | |
2790 | wxString *arg1 = 0 ; | |
2791 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2792 | wxBitmap *result; | |
2793 | bool temp1 = false ; | |
2794 | PyObject * obj0 = 0 ; | |
2795 | PyObject * obj1 = 0 ; | |
2796 | char *kwnames[] = { | |
2797 | (char *) "name",(char *) "type", NULL | |
2798 | }; | |
2799 | ||
2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; | |
2801 | { | |
2802 | arg1 = wxString_in_helper(obj0); | |
2803 | if (arg1 == NULL) SWIG_fail; | |
2804 | temp1 = true; | |
2805 | } | |
2806 | if (obj1) { | |
2807 | arg2 = (int)SWIG_As_int(obj1); | |
2808 | if (PyErr_Occurred()) SWIG_fail; | |
2809 | } | |
2810 | { | |
2811 | if (!wxPyCheckForApp()) SWIG_fail; | |
2812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2813 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2814 | ||
2815 | wxPyEndAllowThreads(__tstate); | |
2816 | if (PyErr_Occurred()) SWIG_fail; | |
2817 | } | |
2818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2819 | { | |
2820 | if (temp1) | |
2821 | delete arg1; | |
2822 | } | |
2823 | return resultobj; | |
2824 | fail: | |
2825 | { | |
2826 | if (temp1) | |
2827 | delete arg1; | |
2828 | } | |
2829 | return NULL; | |
2830 | } | |
2831 | ||
2832 | ||
2833 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
2834 | PyObject *resultobj; | |
2835 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2836 | PyObject * obj0 = 0 ; | |
2837 | char *kwnames[] = { | |
2838 | (char *) "self", NULL | |
2839 | }; | |
2840 | ||
2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2844 | { | |
2845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2846 | delete arg1; | |
2847 | ||
2848 | wxPyEndAllowThreads(__tstate); | |
2849 | if (PyErr_Occurred()) SWIG_fail; | |
2850 | } | |
2851 | Py_INCREF(Py_None); resultobj = Py_None; | |
2852 | return resultobj; | |
2853 | fail: | |
2854 | return NULL; | |
2855 | } | |
2856 | ||
2857 | ||
2858 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject *resultobj; | |
2860 | int arg1 ; | |
2861 | int arg2 ; | |
2862 | int arg3 = (int) -1 ; | |
2863 | wxBitmap *result; | |
2864 | PyObject * obj0 = 0 ; | |
2865 | PyObject * obj1 = 0 ; | |
2866 | PyObject * obj2 = 0 ; | |
2867 | char *kwnames[] = { | |
2868 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2869 | }; | |
2870 | ||
2871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2872 | arg1 = (int)SWIG_As_int(obj0); | |
2873 | if (PyErr_Occurred()) SWIG_fail; | |
2874 | arg2 = (int)SWIG_As_int(obj1); | |
2875 | if (PyErr_Occurred()) SWIG_fail; | |
2876 | if (obj2) { | |
2877 | arg3 = (int)SWIG_As_int(obj2); | |
2878 | if (PyErr_Occurred()) SWIG_fail; | |
2879 | } | |
2880 | { | |
2881 | if (!wxPyCheckForApp()) SWIG_fail; | |
2882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2883 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2884 | ||
2885 | wxPyEndAllowThreads(__tstate); | |
2886 | if (PyErr_Occurred()) SWIG_fail; | |
2887 | } | |
2888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2889 | return resultobj; | |
2890 | fail: | |
2891 | return NULL; | |
2892 | } | |
2893 | ||
2894 | ||
2895 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
2896 | PyObject *resultobj; | |
2897 | wxIcon *arg1 = 0 ; | |
2898 | wxBitmap *result; | |
2899 | PyObject * obj0 = 0 ; | |
2900 | char *kwnames[] = { | |
2901 | (char *) "icon", NULL | |
2902 | }; | |
2903 | ||
2904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
2906 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2907 | SWIG_fail; | |
2908 | if (arg1 == NULL) { | |
2909 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2910 | SWIG_fail; | |
2911 | } | |
2912 | { | |
2913 | if (!wxPyCheckForApp()) SWIG_fail; | |
2914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2915 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2916 | ||
2917 | wxPyEndAllowThreads(__tstate); | |
2918 | if (PyErr_Occurred()) SWIG_fail; | |
2919 | } | |
2920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2921 | return resultobj; | |
2922 | fail: | |
2923 | return NULL; | |
2924 | } | |
2925 | ||
2926 | ||
2927 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
2928 | PyObject *resultobj; | |
2929 | wxImage *arg1 = 0 ; | |
2930 | int arg2 = (int) -1 ; | |
2931 | wxBitmap *result; | |
2932 | PyObject * obj0 = 0 ; | |
2933 | PyObject * obj1 = 0 ; | |
2934 | char *kwnames[] = { | |
2935 | (char *) "image",(char *) "depth", NULL | |
2936 | }; | |
2937 | ||
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; | |
2939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
2940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2941 | SWIG_fail; | |
2942 | if (arg1 == NULL) { | |
2943 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2944 | SWIG_fail; | |
2945 | } | |
2946 | if (obj1) { | |
2947 | arg2 = (int)SWIG_As_int(obj1); | |
2948 | if (PyErr_Occurred()) SWIG_fail; | |
2949 | } | |
2950 | { | |
2951 | if (!wxPyCheckForApp()) SWIG_fail; | |
2952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2953 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2954 | ||
2955 | wxPyEndAllowThreads(__tstate); | |
2956 | if (PyErr_Occurred()) SWIG_fail; | |
2957 | } | |
2958 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2959 | return resultobj; | |
2960 | fail: | |
2961 | return NULL; | |
2962 | } | |
2963 | ||
2964 | ||
2965 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { | |
2966 | PyObject *resultobj; | |
2967 | PyObject *arg1 = (PyObject *) 0 ; | |
2968 | wxBitmap *result; | |
2969 | PyObject * obj0 = 0 ; | |
2970 | char *kwnames[] = { | |
2971 | (char *) "listOfStrings", NULL | |
2972 | }; | |
2973 | ||
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2975 | arg1 = obj0; | |
2976 | { | |
2977 | if (!wxPyCheckForApp()) SWIG_fail; | |
2978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2979 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2985 | return resultobj; | |
2986 | fail: | |
2987 | return NULL; | |
2988 | } | |
2989 | ||
2990 | ||
2991 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { | |
2992 | PyObject *resultobj; | |
2993 | PyObject *arg1 = (PyObject *) 0 ; | |
2994 | int arg2 ; | |
2995 | int arg3 ; | |
2996 | int arg4 = (int) 1 ; | |
2997 | wxBitmap *result; | |
2998 | PyObject * obj0 = 0 ; | |
2999 | PyObject * obj1 = 0 ; | |
3000 | PyObject * obj2 = 0 ; | |
3001 | PyObject * obj3 = 0 ; | |
3002 | char *kwnames[] = { | |
3003 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
3004 | }; | |
3005 | ||
3006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3007 | arg1 = obj0; | |
3008 | arg2 = (int)SWIG_As_int(obj1); | |
3009 | if (PyErr_Occurred()) SWIG_fail; | |
3010 | arg3 = (int)SWIG_As_int(obj2); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | if (obj3) { | |
3013 | arg4 = (int)SWIG_As_int(obj3); | |
3014 | if (PyErr_Occurred()) SWIG_fail; | |
3015 | } | |
3016 | { | |
3017 | if (!wxPyCheckForApp()) SWIG_fail; | |
3018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3019 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
3020 | ||
3021 | wxPyEndAllowThreads(__tstate); | |
3022 | if (PyErr_Occurred()) SWIG_fail; | |
3023 | } | |
3024 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
3025 | return resultobj; | |
3026 | fail: | |
3027 | return NULL; | |
3028 | } | |
3029 | ||
3030 | ||
3031 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
3032 | PyObject *resultobj; | |
3033 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3034 | bool result; | |
3035 | PyObject * obj0 = 0 ; | |
3036 | char *kwnames[] = { | |
3037 | (char *) "self", NULL | |
3038 | }; | |
3039 | ||
3040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
3041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3043 | { | |
3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3045 | result = (bool)(arg1)->Ok(); | |
3046 | ||
3047 | wxPyEndAllowThreads(__tstate); | |
3048 | if (PyErr_Occurred()) SWIG_fail; | |
3049 | } | |
3050 | { | |
3051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3052 | } | |
3053 | return resultobj; | |
3054 | fail: | |
3055 | return NULL; | |
3056 | } | |
3057 | ||
3058 | ||
3059 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
3060 | PyObject *resultobj; | |
3061 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3062 | int result; | |
3063 | PyObject * obj0 = 0 ; | |
3064 | char *kwnames[] = { | |
3065 | (char *) "self", NULL | |
3066 | }; | |
3067 | ||
3068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
3069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3071 | { | |
3072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3073 | result = (int)(arg1)->GetWidth(); | |
3074 | ||
3075 | wxPyEndAllowThreads(__tstate); | |
3076 | if (PyErr_Occurred()) SWIG_fail; | |
3077 | } | |
3078 | resultobj = SWIG_From_int((int)result); | |
3079 | return resultobj; | |
3080 | fail: | |
3081 | return NULL; | |
3082 | } | |
3083 | ||
3084 | ||
3085 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
3086 | PyObject *resultobj; | |
3087 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3088 | int result; | |
3089 | PyObject * obj0 = 0 ; | |
3090 | char *kwnames[] = { | |
3091 | (char *) "self", NULL | |
3092 | }; | |
3093 | ||
3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
3095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3097 | { | |
3098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3099 | result = (int)(arg1)->GetHeight(); | |
3100 | ||
3101 | wxPyEndAllowThreads(__tstate); | |
3102 | if (PyErr_Occurred()) SWIG_fail; | |
3103 | } | |
3104 | resultobj = SWIG_From_int((int)result); | |
3105 | return resultobj; | |
3106 | fail: | |
3107 | return NULL; | |
3108 | } | |
3109 | ||
3110 | ||
3111 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
3112 | PyObject *resultobj; | |
3113 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3114 | int result; | |
3115 | PyObject * obj0 = 0 ; | |
3116 | char *kwnames[] = { | |
3117 | (char *) "self", NULL | |
3118 | }; | |
3119 | ||
3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
3121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3123 | { | |
3124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3125 | result = (int)(arg1)->GetDepth(); | |
3126 | ||
3127 | wxPyEndAllowThreads(__tstate); | |
3128 | if (PyErr_Occurred()) SWIG_fail; | |
3129 | } | |
3130 | resultobj = SWIG_From_int((int)result); | |
3131 | return resultobj; | |
3132 | fail: | |
3133 | return NULL; | |
3134 | } | |
3135 | ||
3136 | ||
3137 | static PyObject *_wrap_Bitmap_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject *resultobj; | |
3139 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3140 | wxSize result; | |
3141 | PyObject * obj0 = 0 ; | |
3142 | char *kwnames[] = { | |
3143 | (char *) "self", NULL | |
3144 | }; | |
3145 | ||
3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3149 | { | |
3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3151 | result = wxBitmap_GetSize(arg1); | |
3152 | ||
3153 | wxPyEndAllowThreads(__tstate); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
3156 | { | |
3157 | wxSize * resultptr; | |
3158 | resultptr = new wxSize((wxSize &) result); | |
3159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3160 | } | |
3161 | return resultobj; | |
3162 | fail: | |
3163 | return NULL; | |
3164 | } | |
3165 | ||
3166 | ||
3167 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject *resultobj; | |
3169 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3170 | SwigValueWrapper< wxImage > result; | |
3171 | PyObject * obj0 = 0 ; | |
3172 | char *kwnames[] = { | |
3173 | (char *) "self", NULL | |
3174 | }; | |
3175 | ||
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
3177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3179 | { | |
3180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3181 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3182 | ||
3183 | wxPyEndAllowThreads(__tstate); | |
3184 | if (PyErr_Occurred()) SWIG_fail; | |
3185 | } | |
3186 | { | |
3187 | wxImage * resultptr; | |
3188 | resultptr = new wxImage((wxImage &) result); | |
3189 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
3190 | } | |
3191 | return resultobj; | |
3192 | fail: | |
3193 | return NULL; | |
3194 | } | |
3195 | ||
3196 | ||
3197 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
3198 | PyObject *resultobj; | |
3199 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3200 | wxMask *result; | |
3201 | PyObject * obj0 = 0 ; | |
3202 | char *kwnames[] = { | |
3203 | (char *) "self", NULL | |
3204 | }; | |
3205 | ||
3206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3209 | { | |
3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3211 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3212 | ||
3213 | wxPyEndAllowThreads(__tstate); | |
3214 | if (PyErr_Occurred()) SWIG_fail; | |
3215 | } | |
3216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); | |
3217 | return resultobj; | |
3218 | fail: | |
3219 | return NULL; | |
3220 | } | |
3221 | ||
3222 | ||
3223 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
3224 | PyObject *resultobj; | |
3225 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3226 | wxMask *arg2 = (wxMask *) 0 ; | |
3227 | PyObject * obj0 = 0 ; | |
3228 | PyObject * obj1 = 0 ; | |
3229 | char *kwnames[] = { | |
3230 | (char *) "self",(char *) "mask", NULL | |
3231 | }; | |
3232 | ||
3233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3236 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3238 | { | |
3239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3240 | (arg1)->SetMask(arg2); | |
3241 | ||
3242 | wxPyEndAllowThreads(__tstate); | |
3243 | if (PyErr_Occurred()) SWIG_fail; | |
3244 | } | |
3245 | Py_INCREF(Py_None); resultobj = Py_None; | |
3246 | return resultobj; | |
3247 | fail: | |
3248 | return NULL; | |
3249 | } | |
3250 | ||
3251 | ||
3252 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
3253 | PyObject *resultobj; | |
3254 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3255 | wxColour *arg2 = 0 ; | |
3256 | wxColour temp2 ; | |
3257 | PyObject * obj0 = 0 ; | |
3258 | PyObject * obj1 = 0 ; | |
3259 | char *kwnames[] = { | |
3260 | (char *) "self",(char *) "colour", NULL | |
3261 | }; | |
3262 | ||
3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3266 | { | |
3267 | arg2 = &temp2; | |
3268 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3269 | } | |
3270 | { | |
3271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3272 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3273 | ||
3274 | wxPyEndAllowThreads(__tstate); | |
3275 | if (PyErr_Occurred()) SWIG_fail; | |
3276 | } | |
3277 | Py_INCREF(Py_None); resultobj = Py_None; | |
3278 | return resultobj; | |
3279 | fail: | |
3280 | return NULL; | |
3281 | } | |
3282 | ||
3283 | ||
3284 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject *resultobj; | |
3286 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3287 | wxRect *arg2 = 0 ; | |
3288 | SwigValueWrapper< wxBitmap > result; | |
3289 | wxRect temp2 ; | |
3290 | PyObject * obj0 = 0 ; | |
3291 | PyObject * obj1 = 0 ; | |
3292 | char *kwnames[] = { | |
3293 | (char *) "self",(char *) "rect", NULL | |
3294 | }; | |
3295 | ||
3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3299 | { | |
3300 | arg2 = &temp2; | |
3301 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3302 | } | |
3303 | { | |
3304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3305 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3306 | ||
3307 | wxPyEndAllowThreads(__tstate); | |
3308 | if (PyErr_Occurred()) SWIG_fail; | |
3309 | } | |
3310 | { | |
3311 | wxBitmap * resultptr; | |
3312 | resultptr = new wxBitmap((wxBitmap &) result); | |
3313 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3314 | } | |
3315 | return resultobj; | |
3316 | fail: | |
3317 | return NULL; | |
3318 | } | |
3319 | ||
3320 | ||
3321 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject *resultobj; | |
3323 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3324 | wxString *arg2 = 0 ; | |
3325 | int arg3 ; | |
3326 | wxPalette *arg4 = (wxPalette *) NULL ; | |
3327 | bool result; | |
3328 | bool temp2 = false ; | |
3329 | PyObject * obj0 = 0 ; | |
3330 | PyObject * obj1 = 0 ; | |
3331 | PyObject * obj2 = 0 ; | |
3332 | PyObject * obj3 = 0 ; | |
3333 | char *kwnames[] = { | |
3334 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3335 | }; | |
3336 | ||
3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3340 | { | |
3341 | arg2 = wxString_in_helper(obj1); | |
3342 | if (arg2 == NULL) SWIG_fail; | |
3343 | temp2 = true; | |
3344 | } | |
3345 | arg3 = (int)SWIG_As_int(obj2); | |
3346 | if (PyErr_Occurred()) SWIG_fail; | |
3347 | if (obj3) { | |
3348 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, | |
3349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3350 | } | |
3351 | { | |
3352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3353 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3354 | ||
3355 | wxPyEndAllowThreads(__tstate); | |
3356 | if (PyErr_Occurred()) SWIG_fail; | |
3357 | } | |
3358 | { | |
3359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3360 | } | |
3361 | { | |
3362 | if (temp2) | |
3363 | delete arg2; | |
3364 | } | |
3365 | return resultobj; | |
3366 | fail: | |
3367 | { | |
3368 | if (temp2) | |
3369 | delete arg2; | |
3370 | } | |
3371 | return NULL; | |
3372 | } | |
3373 | ||
3374 | ||
3375 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
3376 | PyObject *resultobj; | |
3377 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3378 | wxString *arg2 = 0 ; | |
3379 | int arg3 ; | |
3380 | bool result; | |
3381 | bool temp2 = false ; | |
3382 | PyObject * obj0 = 0 ; | |
3383 | PyObject * obj1 = 0 ; | |
3384 | PyObject * obj2 = 0 ; | |
3385 | char *kwnames[] = { | |
3386 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3387 | }; | |
3388 | ||
3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3392 | { | |
3393 | arg2 = wxString_in_helper(obj1); | |
3394 | if (arg2 == NULL) SWIG_fail; | |
3395 | temp2 = true; | |
3396 | } | |
3397 | arg3 = (int)SWIG_As_int(obj2); | |
3398 | if (PyErr_Occurred()) SWIG_fail; | |
3399 | { | |
3400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3401 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3402 | ||
3403 | wxPyEndAllowThreads(__tstate); | |
3404 | if (PyErr_Occurred()) SWIG_fail; | |
3405 | } | |
3406 | { | |
3407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3408 | } | |
3409 | { | |
3410 | if (temp2) | |
3411 | delete arg2; | |
3412 | } | |
3413 | return resultobj; | |
3414 | fail: | |
3415 | { | |
3416 | if (temp2) | |
3417 | delete arg2; | |
3418 | } | |
3419 | return NULL; | |
3420 | } | |
3421 | ||
3422 | ||
3423 | static PyObject *_wrap_Bitmap_GetPalette(PyObject *, PyObject *args, PyObject *kwargs) { | |
3424 | PyObject *resultobj; | |
3425 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3426 | wxPalette *result; | |
3427 | PyObject * obj0 = 0 ; | |
3428 | char *kwnames[] = { | |
3429 | (char *) "self", NULL | |
3430 | }; | |
3431 | ||
3432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetPalette",kwnames,&obj0)) goto fail; | |
3433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 0); | |
3443 | return resultobj; | |
3444 | fail: | |
3445 | return NULL; | |
3446 | } | |
3447 | ||
3448 | ||
3449 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
3450 | PyObject *resultobj; | |
3451 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3452 | wxIcon *arg2 = 0 ; | |
3453 | bool result; | |
3454 | PyObject * obj0 = 0 ; | |
3455 | PyObject * obj1 = 0 ; | |
3456 | char *kwnames[] = { | |
3457 | (char *) "self",(char *) "icon", NULL | |
3458 | }; | |
3459 | ||
3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3465 | SWIG_fail; | |
3466 | if (arg2 == NULL) { | |
3467 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3468 | SWIG_fail; | |
3469 | } | |
3470 | { | |
3471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3472 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3473 | ||
3474 | wxPyEndAllowThreads(__tstate); | |
3475 | if (PyErr_Occurred()) SWIG_fail; | |
3476 | } | |
3477 | { | |
3478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3479 | } | |
3480 | return resultobj; | |
3481 | fail: | |
3482 | return NULL; | |
3483 | } | |
3484 | ||
3485 | ||
3486 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
3487 | PyObject *resultobj; | |
3488 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3489 | int arg2 ; | |
3490 | PyObject * obj0 = 0 ; | |
3491 | PyObject * obj1 = 0 ; | |
3492 | char *kwnames[] = { | |
3493 | (char *) "self",(char *) "height", NULL | |
3494 | }; | |
3495 | ||
3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3499 | arg2 = (int)SWIG_As_int(obj1); | |
3500 | if (PyErr_Occurred()) SWIG_fail; | |
3501 | { | |
3502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3503 | (arg1)->SetHeight(arg2); | |
3504 | ||
3505 | wxPyEndAllowThreads(__tstate); | |
3506 | if (PyErr_Occurred()) SWIG_fail; | |
3507 | } | |
3508 | Py_INCREF(Py_None); resultobj = Py_None; | |
3509 | return resultobj; | |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
3515 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject *resultobj; | |
3517 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3518 | int arg2 ; | |
3519 | PyObject * obj0 = 0 ; | |
3520 | PyObject * obj1 = 0 ; | |
3521 | char *kwnames[] = { | |
3522 | (char *) "self",(char *) "width", NULL | |
3523 | }; | |
3524 | ||
3525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3528 | arg2 = (int)SWIG_As_int(obj1); | |
3529 | if (PyErr_Occurred()) SWIG_fail; | |
3530 | { | |
3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3532 | (arg1)->SetWidth(arg2); | |
3533 | ||
3534 | wxPyEndAllowThreads(__tstate); | |
3535 | if (PyErr_Occurred()) SWIG_fail; | |
3536 | } | |
3537 | Py_INCREF(Py_None); resultobj = Py_None; | |
3538 | return resultobj; | |
3539 | fail: | |
3540 | return NULL; | |
3541 | } | |
3542 | ||
3543 | ||
3544 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
3545 | PyObject *resultobj; | |
3546 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3547 | int arg2 ; | |
3548 | PyObject * obj0 = 0 ; | |
3549 | PyObject * obj1 = 0 ; | |
3550 | char *kwnames[] = { | |
3551 | (char *) "self",(char *) "depth", NULL | |
3552 | }; | |
3553 | ||
3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3557 | arg2 = (int)SWIG_As_int(obj1); | |
3558 | if (PyErr_Occurred()) SWIG_fail; | |
3559 | { | |
3560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3561 | (arg1)->SetDepth(arg2); | |
3562 | ||
3563 | wxPyEndAllowThreads(__tstate); | |
3564 | if (PyErr_Occurred()) SWIG_fail; | |
3565 | } | |
3566 | Py_INCREF(Py_None); resultobj = Py_None; | |
3567 | return resultobj; | |
3568 | fail: | |
3569 | return NULL; | |
3570 | } | |
3571 | ||
3572 | ||
3573 | static PyObject *_wrap_Bitmap_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
3574 | PyObject *resultobj; | |
3575 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3576 | wxSize *arg2 = 0 ; | |
3577 | wxSize temp2 ; | |
3578 | PyObject * obj0 = 0 ; | |
3579 | PyObject * obj1 = 0 ; | |
3580 | char *kwnames[] = { | |
3581 | (char *) "self",(char *) "size", NULL | |
3582 | }; | |
3583 | ||
3584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3587 | { | |
3588 | arg2 = &temp2; | |
3589 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3590 | } | |
3591 | { | |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3593 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3594 | ||
3595 | wxPyEndAllowThreads(__tstate); | |
3596 | if (PyErr_Occurred()) SWIG_fail; | |
3597 | } | |
3598 | Py_INCREF(Py_None); resultobj = Py_None; | |
3599 | return resultobj; | |
3600 | fail: | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | static PyObject *_wrap_Bitmap___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj; | |
3607 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3608 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3609 | bool result; | |
3610 | PyObject * obj0 = 0 ; | |
3611 | PyObject * obj1 = 0 ; | |
3612 | char *kwnames[] = { | |
3613 | (char *) "self",(char *) "other", NULL | |
3614 | }; | |
3615 | ||
3616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3621 | { | |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3624 | ||
3625 | wxPyEndAllowThreads(__tstate); | |
3626 | if (PyErr_Occurred()) SWIG_fail; | |
3627 | } | |
3628 | { | |
3629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3630 | } | |
3631 | return resultobj; | |
3632 | fail: | |
3633 | return NULL; | |
3634 | } | |
3635 | ||
3636 | ||
3637 | static PyObject *_wrap_Bitmap___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
3638 | PyObject *resultobj; | |
3639 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3640 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3641 | bool result; | |
3642 | PyObject * obj0 = 0 ; | |
3643 | PyObject * obj1 = 0 ; | |
3644 | char *kwnames[] = { | |
3645 | (char *) "self",(char *) "other", NULL | |
3646 | }; | |
3647 | ||
3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | { | |
3661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3662 | } | |
3663 | return resultobj; | |
3664 | fail: | |
3665 | return NULL; | |
3666 | } | |
3667 | ||
3668 | ||
3669 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { | |
3670 | PyObject *obj; | |
3671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3672 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3673 | Py_INCREF(obj); | |
3674 | return Py_BuildValue((char *)""); | |
3675 | } | |
3676 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { | |
3677 | PyObject *resultobj; | |
3678 | wxBitmap *arg1 = 0 ; | |
3679 | wxColour const &arg2_defvalue = wxNullColour ; | |
3680 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3681 | wxMask *result; | |
3682 | wxColour temp2 ; | |
3683 | PyObject * obj0 = 0 ; | |
3684 | PyObject * obj1 = 0 ; | |
3685 | char *kwnames[] = { | |
3686 | (char *) "bitmap",(char *) "colour", NULL | |
3687 | }; | |
3688 | ||
3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; | |
3690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3691 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3692 | SWIG_fail; | |
3693 | if (arg1 == NULL) { | |
3694 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3695 | SWIG_fail; | |
3696 | } | |
3697 | if (obj1) { | |
3698 | { | |
3699 | arg2 = &temp2; | |
3700 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3701 | } | |
3702 | } | |
3703 | { | |
3704 | if (!wxPyCheckForApp()) SWIG_fail; | |
3705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3706 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3707 | ||
3708 | wxPyEndAllowThreads(__tstate); | |
3709 | if (PyErr_Occurred()) SWIG_fail; | |
3710 | } | |
3711 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); | |
3712 | return resultobj; | |
3713 | fail: | |
3714 | return NULL; | |
3715 | } | |
3716 | ||
3717 | ||
3718 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { | |
3719 | PyObject *obj; | |
3720 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3721 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3722 | Py_INCREF(obj); | |
3723 | return Py_BuildValue((char *)""); | |
3724 | } | |
3725 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { | |
3726 | PyObject *resultobj; | |
3727 | wxString *arg1 = 0 ; | |
3728 | int arg2 ; | |
3729 | int arg3 = (int) -1 ; | |
3730 | int arg4 = (int) -1 ; | |
3731 | wxIcon *result; | |
3732 | bool temp1 = false ; | |
3733 | PyObject * obj0 = 0 ; | |
3734 | PyObject * obj1 = 0 ; | |
3735 | PyObject * obj2 = 0 ; | |
3736 | PyObject * obj3 = 0 ; | |
3737 | char *kwnames[] = { | |
3738 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3739 | }; | |
3740 | ||
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3742 | { | |
3743 | arg1 = wxString_in_helper(obj0); | |
3744 | if (arg1 == NULL) SWIG_fail; | |
3745 | temp1 = true; | |
3746 | } | |
3747 | arg2 = (int)SWIG_As_int(obj1); | |
3748 | if (PyErr_Occurred()) SWIG_fail; | |
3749 | if (obj2) { | |
3750 | arg3 = (int)SWIG_As_int(obj2); | |
3751 | if (PyErr_Occurred()) SWIG_fail; | |
3752 | } | |
3753 | if (obj3) { | |
3754 | arg4 = (int)SWIG_As_int(obj3); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
3756 | } | |
3757 | { | |
3758 | if (!wxPyCheckForApp()) SWIG_fail; | |
3759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3760 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3761 | ||
3762 | wxPyEndAllowThreads(__tstate); | |
3763 | if (PyErr_Occurred()) SWIG_fail; | |
3764 | } | |
3765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3766 | { | |
3767 | if (temp1) | |
3768 | delete arg1; | |
3769 | } | |
3770 | return resultobj; | |
3771 | fail: | |
3772 | { | |
3773 | if (temp1) | |
3774 | delete arg1; | |
3775 | } | |
3776 | return NULL; | |
3777 | } | |
3778 | ||
3779 | ||
3780 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { | |
3781 | PyObject *resultobj; | |
3782 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3783 | PyObject * obj0 = 0 ; | |
3784 | char *kwnames[] = { | |
3785 | (char *) "self", NULL | |
3786 | }; | |
3787 | ||
3788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3791 | { | |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3793 | delete arg1; | |
3794 | ||
3795 | wxPyEndAllowThreads(__tstate); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
3798 | Py_INCREF(Py_None); resultobj = Py_None; | |
3799 | return resultobj; | |
3800 | fail: | |
3801 | return NULL; | |
3802 | } | |
3803 | ||
3804 | ||
3805 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject *resultobj; | |
3807 | wxIcon *result; | |
3808 | char *kwnames[] = { | |
3809 | NULL | |
3810 | }; | |
3811 | ||
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3813 | { | |
3814 | if (!wxPyCheckForApp()) SWIG_fail; | |
3815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3816 | result = (wxIcon *)new wxIcon(); | |
3817 | ||
3818 | wxPyEndAllowThreads(__tstate); | |
3819 | if (PyErr_Occurred()) SWIG_fail; | |
3820 | } | |
3821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3822 | return resultobj; | |
3823 | fail: | |
3824 | return NULL; | |
3825 | } | |
3826 | ||
3827 | ||
3828 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { | |
3829 | PyObject *resultobj; | |
3830 | wxIconLocation *arg1 = 0 ; | |
3831 | wxIcon *result; | |
3832 | PyObject * obj0 = 0 ; | |
3833 | char *kwnames[] = { | |
3834 | (char *) "loc", NULL | |
3835 | }; | |
3836 | ||
3837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
3839 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3840 | SWIG_fail; | |
3841 | if (arg1 == NULL) { | |
3842 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3843 | SWIG_fail; | |
3844 | } | |
3845 | { | |
3846 | if (!wxPyCheckForApp()) SWIG_fail; | |
3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3848 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
3852 | } | |
3853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3854 | return resultobj; | |
3855 | fail: | |
3856 | return NULL; | |
3857 | } | |
3858 | ||
3859 | ||
3860 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
3861 | PyObject *resultobj; | |
3862 | wxBitmap *arg1 = 0 ; | |
3863 | wxIcon *result; | |
3864 | PyObject * obj0 = 0 ; | |
3865 | char *kwnames[] = { | |
3866 | (char *) "bmp", NULL | |
3867 | }; | |
3868 | ||
3869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3871 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3872 | SWIG_fail; | |
3873 | if (arg1 == NULL) { | |
3874 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3875 | SWIG_fail; | |
3876 | } | |
3877 | { | |
3878 | if (!wxPyCheckForApp()) SWIG_fail; | |
3879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3880 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3881 | ||
3882 | wxPyEndAllowThreads(__tstate); | |
3883 | if (PyErr_Occurred()) SWIG_fail; | |
3884 | } | |
3885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3886 | return resultobj; | |
3887 | fail: | |
3888 | return NULL; | |
3889 | } | |
3890 | ||
3891 | ||
3892 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { | |
3893 | PyObject *resultobj; | |
3894 | PyObject *arg1 = (PyObject *) 0 ; | |
3895 | wxIcon *result; | |
3896 | PyObject * obj0 = 0 ; | |
3897 | char *kwnames[] = { | |
3898 | (char *) "listOfStrings", NULL | |
3899 | }; | |
3900 | ||
3901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3902 | arg1 = obj0; | |
3903 | { | |
3904 | if (!wxPyCheckForApp()) SWIG_fail; | |
3905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3906 | result = (wxIcon *)new_wxIcon(arg1); | |
3907 | ||
3908 | wxPyEndAllowThreads(__tstate); | |
3909 | if (PyErr_Occurred()) SWIG_fail; | |
3910 | } | |
3911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3912 | return resultobj; | |
3913 | fail: | |
3914 | return NULL; | |
3915 | } | |
3916 | ||
3917 | ||
3918 | static PyObject *_wrap_Icon_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
3919 | PyObject *resultobj; | |
3920 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3921 | wxString *arg2 = 0 ; | |
3922 | int arg3 ; | |
3923 | bool result; | |
3924 | bool temp2 = false ; | |
3925 | PyObject * obj0 = 0 ; | |
3926 | PyObject * obj1 = 0 ; | |
3927 | PyObject * obj2 = 0 ; | |
3928 | char *kwnames[] = { | |
3929 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3930 | }; | |
3931 | ||
3932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3935 | { | |
3936 | arg2 = wxString_in_helper(obj1); | |
3937 | if (arg2 == NULL) SWIG_fail; | |
3938 | temp2 = true; | |
3939 | } | |
3940 | arg3 = (int)SWIG_As_int(obj2); | |
3941 | if (PyErr_Occurred()) SWIG_fail; | |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3945 | ||
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | { | |
3950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3951 | } | |
3952 | { | |
3953 | if (temp2) | |
3954 | delete arg2; | |
3955 | } | |
3956 | return resultobj; | |
3957 | fail: | |
3958 | { | |
3959 | if (temp2) | |
3960 | delete arg2; | |
3961 | } | |
3962 | return NULL; | |
3963 | } | |
3964 | ||
3965 | ||
3966 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
3967 | PyObject *resultobj; | |
3968 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3969 | bool result; | |
3970 | PyObject * obj0 = 0 ; | |
3971 | char *kwnames[] = { | |
3972 | (char *) "self", NULL | |
3973 | }; | |
3974 | ||
3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3978 | { | |
3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3980 | result = (bool)(arg1)->Ok(); | |
3981 | ||
3982 | wxPyEndAllowThreads(__tstate); | |
3983 | if (PyErr_Occurred()) SWIG_fail; | |
3984 | } | |
3985 | { | |
3986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3987 | } | |
3988 | return resultobj; | |
3989 | fail: | |
3990 | return NULL; | |
3991 | } | |
3992 | ||
3993 | ||
3994 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
3995 | PyObject *resultobj; | |
3996 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3997 | int result; | |
3998 | PyObject * obj0 = 0 ; | |
3999 | char *kwnames[] = { | |
4000 | (char *) "self", NULL | |
4001 | }; | |
4002 | ||
4003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
4004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4006 | { | |
4007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4008 | result = (int)(arg1)->GetWidth(); | |
4009 | ||
4010 | wxPyEndAllowThreads(__tstate); | |
4011 | if (PyErr_Occurred()) SWIG_fail; | |
4012 | } | |
4013 | resultobj = SWIG_From_int((int)result); | |
4014 | return resultobj; | |
4015 | fail: | |
4016 | return NULL; | |
4017 | } | |
4018 | ||
4019 | ||
4020 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
4021 | PyObject *resultobj; | |
4022 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4023 | int result; | |
4024 | PyObject * obj0 = 0 ; | |
4025 | char *kwnames[] = { | |
4026 | (char *) "self", NULL | |
4027 | }; | |
4028 | ||
4029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
4030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | result = (int)(arg1)->GetHeight(); | |
4035 | ||
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | resultobj = SWIG_From_int((int)result); | |
4040 | return resultobj; | |
4041 | fail: | |
4042 | return NULL; | |
4043 | } | |
4044 | ||
4045 | ||
4046 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
4047 | PyObject *resultobj; | |
4048 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4049 | int result; | |
4050 | PyObject * obj0 = 0 ; | |
4051 | char *kwnames[] = { | |
4052 | (char *) "self", NULL | |
4053 | }; | |
4054 | ||
4055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
4056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4058 | { | |
4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4060 | result = (int)(arg1)->GetDepth(); | |
4061 | ||
4062 | wxPyEndAllowThreads(__tstate); | |
4063 | if (PyErr_Occurred()) SWIG_fail; | |
4064 | } | |
4065 | resultobj = SWIG_From_int((int)result); | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | return NULL; | |
4069 | } | |
4070 | ||
4071 | ||
4072 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject *resultobj; | |
4074 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4075 | int arg2 ; | |
4076 | PyObject * obj0 = 0 ; | |
4077 | PyObject * obj1 = 0 ; | |
4078 | char *kwnames[] = { | |
4079 | (char *) "self",(char *) "w", NULL | |
4080 | }; | |
4081 | ||
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
4083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4085 | arg2 = (int)SWIG_As_int(obj1); | |
4086 | if (PyErr_Occurred()) SWIG_fail; | |
4087 | { | |
4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4089 | (arg1)->SetWidth(arg2); | |
4090 | ||
4091 | wxPyEndAllowThreads(__tstate); | |
4092 | if (PyErr_Occurred()) SWIG_fail; | |
4093 | } | |
4094 | Py_INCREF(Py_None); resultobj = Py_None; | |
4095 | return resultobj; | |
4096 | fail: | |
4097 | return NULL; | |
4098 | } | |
4099 | ||
4100 | ||
4101 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
4102 | PyObject *resultobj; | |
4103 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4104 | int arg2 ; | |
4105 | PyObject * obj0 = 0 ; | |
4106 | PyObject * obj1 = 0 ; | |
4107 | char *kwnames[] = { | |
4108 | (char *) "self",(char *) "h", NULL | |
4109 | }; | |
4110 | ||
4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
4112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4114 | arg2 = (int)SWIG_As_int(obj1); | |
4115 | if (PyErr_Occurred()) SWIG_fail; | |
4116 | { | |
4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4118 | (arg1)->SetHeight(arg2); | |
4119 | ||
4120 | wxPyEndAllowThreads(__tstate); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
4122 | } | |
4123 | Py_INCREF(Py_None); resultobj = Py_None; | |
4124 | return resultobj; | |
4125 | fail: | |
4126 | return NULL; | |
4127 | } | |
4128 | ||
4129 | ||
4130 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject *resultobj; | |
4132 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4133 | int arg2 ; | |
4134 | PyObject * obj0 = 0 ; | |
4135 | PyObject * obj1 = 0 ; | |
4136 | char *kwnames[] = { | |
4137 | (char *) "self",(char *) "d", NULL | |
4138 | }; | |
4139 | ||
4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
4141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4143 | arg2 = (int)SWIG_As_int(obj1); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | { | |
4146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4147 | (arg1)->SetDepth(arg2); | |
4148 | ||
4149 | wxPyEndAllowThreads(__tstate); | |
4150 | if (PyErr_Occurred()) SWIG_fail; | |
4151 | } | |
4152 | Py_INCREF(Py_None); resultobj = Py_None; | |
4153 | return resultobj; | |
4154 | fail: | |
4155 | return NULL; | |
4156 | } | |
4157 | ||
4158 | ||
4159 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
4160 | PyObject *resultobj; | |
4161 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4162 | wxBitmap *arg2 = 0 ; | |
4163 | PyObject * obj0 = 0 ; | |
4164 | PyObject * obj1 = 0 ; | |
4165 | char *kwnames[] = { | |
4166 | (char *) "self",(char *) "bmp", NULL | |
4167 | }; | |
4168 | ||
4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4172 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4173 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4174 | SWIG_fail; | |
4175 | if (arg2 == NULL) { | |
4176 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4177 | SWIG_fail; | |
4178 | } | |
4179 | { | |
4180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4181 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4182 | ||
4183 | wxPyEndAllowThreads(__tstate); | |
4184 | if (PyErr_Occurred()) SWIG_fail; | |
4185 | } | |
4186 | Py_INCREF(Py_None); resultobj = Py_None; | |
4187 | return resultobj; | |
4188 | fail: | |
4189 | return NULL; | |
4190 | } | |
4191 | ||
4192 | ||
4193 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { | |
4194 | PyObject *obj; | |
4195 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4196 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4197 | Py_INCREF(obj); | |
4198 | return Py_BuildValue((char *)""); | |
4199 | } | |
4200 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { | |
4201 | PyObject *resultobj; | |
4202 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4203 | int arg2 = (int) 0 ; | |
4204 | wxIconLocation *result; | |
4205 | bool temp1 = false ; | |
4206 | PyObject * obj0 = 0 ; | |
4207 | PyObject * obj1 = 0 ; | |
4208 | char *kwnames[] = { | |
4209 | (char *) "filename",(char *) "num", NULL | |
4210 | }; | |
4211 | ||
4212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; | |
4213 | if (obj0) { | |
4214 | { | |
4215 | arg1 = wxString_in_helper(obj0); | |
4216 | if (arg1 == NULL) SWIG_fail; | |
4217 | temp1 = true; | |
4218 | } | |
4219 | } | |
4220 | if (obj1) { | |
4221 | arg2 = (int)SWIG_As_int(obj1); | |
4222 | if (PyErr_Occurred()) SWIG_fail; | |
4223 | } | |
4224 | { | |
4225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4226 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4227 | ||
4228 | wxPyEndAllowThreads(__tstate); | |
4229 | if (PyErr_Occurred()) SWIG_fail; | |
4230 | } | |
4231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); | |
4232 | { | |
4233 | if (temp1) | |
4234 | delete arg1; | |
4235 | } | |
4236 | return resultobj; | |
4237 | fail: | |
4238 | { | |
4239 | if (temp1) | |
4240 | delete arg1; | |
4241 | } | |
4242 | return NULL; | |
4243 | } | |
4244 | ||
4245 | ||
4246 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { | |
4247 | PyObject *resultobj; | |
4248 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4249 | PyObject * obj0 = 0 ; | |
4250 | char *kwnames[] = { | |
4251 | (char *) "self", NULL | |
4252 | }; | |
4253 | ||
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
4255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4257 | { | |
4258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4259 | delete arg1; | |
4260 | ||
4261 | wxPyEndAllowThreads(__tstate); | |
4262 | if (PyErr_Occurred()) SWIG_fail; | |
4263 | } | |
4264 | Py_INCREF(Py_None); resultobj = Py_None; | |
4265 | return resultobj; | |
4266 | fail: | |
4267 | return NULL; | |
4268 | } | |
4269 | ||
4270 | ||
4271 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject *resultobj; | |
4273 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4274 | bool result; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | char *kwnames[] = { | |
4277 | (char *) "self", NULL | |
4278 | }; | |
4279 | ||
4280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
4281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4283 | { | |
4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4285 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4286 | ||
4287 | wxPyEndAllowThreads(__tstate); | |
4288 | if (PyErr_Occurred()) SWIG_fail; | |
4289 | } | |
4290 | { | |
4291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4292 | } | |
4293 | return resultobj; | |
4294 | fail: | |
4295 | return NULL; | |
4296 | } | |
4297 | ||
4298 | ||
4299 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4300 | PyObject *resultobj; | |
4301 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4302 | wxString *arg2 = 0 ; | |
4303 | bool temp2 = false ; | |
4304 | PyObject * obj0 = 0 ; | |
4305 | PyObject * obj1 = 0 ; | |
4306 | char *kwnames[] = { | |
4307 | (char *) "self",(char *) "filename", NULL | |
4308 | }; | |
4309 | ||
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4313 | { | |
4314 | arg2 = wxString_in_helper(obj1); | |
4315 | if (arg2 == NULL) SWIG_fail; | |
4316 | temp2 = true; | |
4317 | } | |
4318 | { | |
4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4320 | (arg1)->SetFileName((wxString const &)*arg2); | |
4321 | ||
4322 | wxPyEndAllowThreads(__tstate); | |
4323 | if (PyErr_Occurred()) SWIG_fail; | |
4324 | } | |
4325 | Py_INCREF(Py_None); resultobj = Py_None; | |
4326 | { | |
4327 | if (temp2) | |
4328 | delete arg2; | |
4329 | } | |
4330 | return resultobj; | |
4331 | fail: | |
4332 | { | |
4333 | if (temp2) | |
4334 | delete arg2; | |
4335 | } | |
4336 | return NULL; | |
4337 | } | |
4338 | ||
4339 | ||
4340 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { | |
4341 | PyObject *resultobj; | |
4342 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4343 | wxString *result; | |
4344 | PyObject * obj0 = 0 ; | |
4345 | char *kwnames[] = { | |
4346 | (char *) "self", NULL | |
4347 | }; | |
4348 | ||
4349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4352 | { | |
4353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4354 | { | |
4355 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4356 | result = (wxString *) &_result_ref; | |
4357 | } | |
4358 | ||
4359 | wxPyEndAllowThreads(__tstate); | |
4360 | if (PyErr_Occurred()) SWIG_fail; | |
4361 | } | |
4362 | { | |
4363 | #if wxUSE_UNICODE | |
4364 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4365 | #else | |
4366 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4367 | #endif | |
4368 | } | |
4369 | return resultobj; | |
4370 | fail: | |
4371 | return NULL; | |
4372 | } | |
4373 | ||
4374 | ||
4375 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
4376 | PyObject *resultobj; | |
4377 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4378 | int arg2 ; | |
4379 | PyObject * obj0 = 0 ; | |
4380 | PyObject * obj1 = 0 ; | |
4381 | char *kwnames[] = { | |
4382 | (char *) "self",(char *) "num", NULL | |
4383 | }; | |
4384 | ||
4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; | |
4386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4388 | arg2 = (int)SWIG_As_int(obj1); | |
4389 | if (PyErr_Occurred()) SWIG_fail; | |
4390 | { | |
4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4392 | wxIconLocation_SetIndex(arg1,arg2); | |
4393 | ||
4394 | wxPyEndAllowThreads(__tstate); | |
4395 | if (PyErr_Occurred()) SWIG_fail; | |
4396 | } | |
4397 | Py_INCREF(Py_None); resultobj = Py_None; | |
4398 | return resultobj; | |
4399 | fail: | |
4400 | return NULL; | |
4401 | } | |
4402 | ||
4403 | ||
4404 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { | |
4405 | PyObject *resultobj; | |
4406 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4407 | int result; | |
4408 | PyObject * obj0 = 0 ; | |
4409 | char *kwnames[] = { | |
4410 | (char *) "self", NULL | |
4411 | }; | |
4412 | ||
4413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4416 | { | |
4417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4418 | result = (int)wxIconLocation_GetIndex(arg1); | |
4419 | ||
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
4423 | resultobj = SWIG_From_int((int)result); | |
4424 | return resultobj; | |
4425 | fail: | |
4426 | return NULL; | |
4427 | } | |
4428 | ||
4429 | ||
4430 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { | |
4431 | PyObject *obj; | |
4432 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4433 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4434 | Py_INCREF(obj); | |
4435 | return Py_BuildValue((char *)""); | |
4436 | } | |
4437 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { | |
4438 | PyObject *resultobj; | |
4439 | wxIconBundle *result; | |
4440 | char *kwnames[] = { | |
4441 | NULL | |
4442 | }; | |
4443 | ||
4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4445 | { | |
4446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4447 | result = (wxIconBundle *)new wxIconBundle(); | |
4448 | ||
4449 | wxPyEndAllowThreads(__tstate); | |
4450 | if (PyErr_Occurred()) SWIG_fail; | |
4451 | } | |
4452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4453 | return resultobj; | |
4454 | fail: | |
4455 | return NULL; | |
4456 | } | |
4457 | ||
4458 | ||
4459 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
4460 | PyObject *resultobj; | |
4461 | wxString *arg1 = 0 ; | |
4462 | long arg2 ; | |
4463 | wxIconBundle *result; | |
4464 | bool temp1 = false ; | |
4465 | PyObject * obj0 = 0 ; | |
4466 | PyObject * obj1 = 0 ; | |
4467 | char *kwnames[] = { | |
4468 | (char *) "file",(char *) "type", NULL | |
4469 | }; | |
4470 | ||
4471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; | |
4472 | { | |
4473 | arg1 = wxString_in_helper(obj0); | |
4474 | if (arg1 == NULL) SWIG_fail; | |
4475 | temp1 = true; | |
4476 | } | |
4477 | arg2 = (long)SWIG_As_long(obj1); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
4479 | { | |
4480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4481 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4482 | ||
4483 | wxPyEndAllowThreads(__tstate); | |
4484 | if (PyErr_Occurred()) SWIG_fail; | |
4485 | } | |
4486 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4487 | { | |
4488 | if (temp1) | |
4489 | delete arg1; | |
4490 | } | |
4491 | return resultobj; | |
4492 | fail: | |
4493 | { | |
4494 | if (temp1) | |
4495 | delete arg1; | |
4496 | } | |
4497 | return NULL; | |
4498 | } | |
4499 | ||
4500 | ||
4501 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
4502 | PyObject *resultobj; | |
4503 | wxIcon *arg1 = 0 ; | |
4504 | wxIconBundle *result; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "icon", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4512 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4513 | SWIG_fail; | |
4514 | if (arg1 == NULL) { | |
4515 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4516 | SWIG_fail; | |
4517 | } | |
4518 | { | |
4519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4520 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4521 | ||
4522 | wxPyEndAllowThreads(__tstate); | |
4523 | if (PyErr_Occurred()) SWIG_fail; | |
4524 | } | |
4525 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4526 | return resultobj; | |
4527 | fail: | |
4528 | return NULL; | |
4529 | } | |
4530 | ||
4531 | ||
4532 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { | |
4533 | PyObject *resultobj; | |
4534 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4535 | PyObject * obj0 = 0 ; | |
4536 | char *kwnames[] = { | |
4537 | (char *) "self", NULL | |
4538 | }; | |
4539 | ||
4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4543 | { | |
4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4545 | delete arg1; | |
4546 | ||
4547 | wxPyEndAllowThreads(__tstate); | |
4548 | if (PyErr_Occurred()) SWIG_fail; | |
4549 | } | |
4550 | Py_INCREF(Py_None); resultobj = Py_None; | |
4551 | return resultobj; | |
4552 | fail: | |
4553 | return NULL; | |
4554 | } | |
4555 | ||
4556 | ||
4557 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
4558 | PyObject *resultobj; | |
4559 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4560 | wxIcon *arg2 = 0 ; | |
4561 | PyObject * obj0 = 0 ; | |
4562 | PyObject * obj1 = 0 ; | |
4563 | char *kwnames[] = { | |
4564 | (char *) "self",(char *) "icon", NULL | |
4565 | }; | |
4566 | ||
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4572 | SWIG_fail; | |
4573 | if (arg2 == NULL) { | |
4574 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4575 | SWIG_fail; | |
4576 | } | |
4577 | { | |
4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4579 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4580 | ||
4581 | wxPyEndAllowThreads(__tstate); | |
4582 | if (PyErr_Occurred()) SWIG_fail; | |
4583 | } | |
4584 | Py_INCREF(Py_None); resultobj = Py_None; | |
4585 | return resultobj; | |
4586 | fail: | |
4587 | return NULL; | |
4588 | } | |
4589 | ||
4590 | ||
4591 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
4592 | PyObject *resultobj; | |
4593 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4594 | wxString *arg2 = 0 ; | |
4595 | long arg3 ; | |
4596 | bool temp2 = false ; | |
4597 | PyObject * obj0 = 0 ; | |
4598 | PyObject * obj1 = 0 ; | |
4599 | PyObject * obj2 = 0 ; | |
4600 | char *kwnames[] = { | |
4601 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4602 | }; | |
4603 | ||
4604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4607 | { | |
4608 | arg2 = wxString_in_helper(obj1); | |
4609 | if (arg2 == NULL) SWIG_fail; | |
4610 | temp2 = true; | |
4611 | } | |
4612 | arg3 = (long)SWIG_As_long(obj2); | |
4613 | if (PyErr_Occurred()) SWIG_fail; | |
4614 | { | |
4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4616 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4617 | ||
4618 | wxPyEndAllowThreads(__tstate); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
4620 | } | |
4621 | Py_INCREF(Py_None); resultobj = Py_None; | |
4622 | { | |
4623 | if (temp2) | |
4624 | delete arg2; | |
4625 | } | |
4626 | return resultobj; | |
4627 | fail: | |
4628 | { | |
4629 | if (temp2) | |
4630 | delete arg2; | |
4631 | } | |
4632 | return NULL; | |
4633 | } | |
4634 | ||
4635 | ||
4636 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
4637 | PyObject *resultobj; | |
4638 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4639 | wxSize *arg2 = 0 ; | |
4640 | wxIcon *result; | |
4641 | wxSize temp2 ; | |
4642 | PyObject * obj0 = 0 ; | |
4643 | PyObject * obj1 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "self",(char *) "size", NULL | |
4646 | }; | |
4647 | ||
4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4651 | { | |
4652 | arg2 = &temp2; | |
4653 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4654 | } | |
4655 | { | |
4656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4657 | { | |
4658 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4659 | result = (wxIcon *) &_result_ref; | |
4660 | } | |
4661 | ||
4662 | wxPyEndAllowThreads(__tstate); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
4664 | } | |
4665 | { | |
4666 | wxIcon* resultptr = new wxIcon(*result); | |
4667 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4668 | } | |
4669 | return resultobj; | |
4670 | fail: | |
4671 | return NULL; | |
4672 | } | |
4673 | ||
4674 | ||
4675 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { | |
4676 | PyObject *obj; | |
4677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4678 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4679 | Py_INCREF(obj); | |
4680 | return Py_BuildValue((char *)""); | |
4681 | } | |
4682 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
4683 | PyObject *resultobj; | |
4684 | wxString *arg1 = (wxString *) 0 ; | |
4685 | long arg2 ; | |
4686 | int arg3 = (int) 0 ; | |
4687 | int arg4 = (int) 0 ; | |
4688 | wxCursor *result; | |
4689 | bool temp1 = false ; | |
4690 | PyObject * obj0 = 0 ; | |
4691 | PyObject * obj1 = 0 ; | |
4692 | PyObject * obj2 = 0 ; | |
4693 | PyObject * obj3 = 0 ; | |
4694 | char *kwnames[] = { | |
4695 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4696 | }; | |
4697 | ||
4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4699 | { | |
4700 | arg1 = wxString_in_helper(obj0); | |
4701 | if (arg1 == NULL) SWIG_fail; | |
4702 | temp1 = true; | |
4703 | } | |
4704 | arg2 = (long)SWIG_As_long(obj1); | |
4705 | if (PyErr_Occurred()) SWIG_fail; | |
4706 | if (obj2) { | |
4707 | arg3 = (int)SWIG_As_int(obj2); | |
4708 | if (PyErr_Occurred()) SWIG_fail; | |
4709 | } | |
4710 | if (obj3) { | |
4711 | arg4 = (int)SWIG_As_int(obj3); | |
4712 | if (PyErr_Occurred()) SWIG_fail; | |
4713 | } | |
4714 | { | |
4715 | if (!wxPyCheckForApp()) SWIG_fail; | |
4716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4717 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4718 | ||
4719 | wxPyEndAllowThreads(__tstate); | |
4720 | if (PyErr_Occurred()) SWIG_fail; | |
4721 | } | |
4722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4723 | { | |
4724 | if (temp1) | |
4725 | delete arg1; | |
4726 | } | |
4727 | return resultobj; | |
4728 | fail: | |
4729 | { | |
4730 | if (temp1) | |
4731 | delete arg1; | |
4732 | } | |
4733 | return NULL; | |
4734 | } | |
4735 | ||
4736 | ||
4737 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
4738 | PyObject *resultobj; | |
4739 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4740 | PyObject * obj0 = 0 ; | |
4741 | char *kwnames[] = { | |
4742 | (char *) "self", NULL | |
4743 | }; | |
4744 | ||
4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4748 | { | |
4749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4750 | delete arg1; | |
4751 | ||
4752 | wxPyEndAllowThreads(__tstate); | |
4753 | if (PyErr_Occurred()) SWIG_fail; | |
4754 | } | |
4755 | Py_INCREF(Py_None); resultobj = Py_None; | |
4756 | return resultobj; | |
4757 | fail: | |
4758 | return NULL; | |
4759 | } | |
4760 | ||
4761 | ||
4762 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { | |
4763 | PyObject *resultobj; | |
4764 | int arg1 ; | |
4765 | wxCursor *result; | |
4766 | PyObject * obj0 = 0 ; | |
4767 | char *kwnames[] = { | |
4768 | (char *) "id", NULL | |
4769 | }; | |
4770 | ||
4771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; | |
4772 | arg1 = (int)SWIG_As_int(obj0); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | { | |
4775 | if (!wxPyCheckForApp()) SWIG_fail; | |
4776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4777 | result = (wxCursor *)new wxCursor(arg1); | |
4778 | ||
4779 | wxPyEndAllowThreads(__tstate); | |
4780 | if (PyErr_Occurred()) SWIG_fail; | |
4781 | } | |
4782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4783 | return resultobj; | |
4784 | fail: | |
4785 | return NULL; | |
4786 | } | |
4787 | ||
4788 | ||
4789 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { | |
4790 | PyObject *resultobj; | |
4791 | wxImage *arg1 = 0 ; | |
4792 | wxCursor *result; | |
4793 | PyObject * obj0 = 0 ; | |
4794 | char *kwnames[] = { | |
4795 | (char *) "image", NULL | |
4796 | }; | |
4797 | ||
4798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
4800 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4801 | SWIG_fail; | |
4802 | if (arg1 == NULL) { | |
4803 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4804 | SWIG_fail; | |
4805 | } | |
4806 | { | |
4807 | if (!wxPyCheckForApp()) SWIG_fail; | |
4808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4809 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4810 | ||
4811 | wxPyEndAllowThreads(__tstate); | |
4812 | if (PyErr_Occurred()) SWIG_fail; | |
4813 | } | |
4814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4815 | return resultobj; | |
4816 | fail: | |
4817 | return NULL; | |
4818 | } | |
4819 | ||
4820 | ||
4821 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
4822 | PyObject *resultobj; | |
4823 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4824 | bool result; | |
4825 | PyObject * obj0 = 0 ; | |
4826 | char *kwnames[] = { | |
4827 | (char *) "self", NULL | |
4828 | }; | |
4829 | ||
4830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4833 | { | |
4834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4835 | result = (bool)(arg1)->Ok(); | |
4836 | ||
4837 | wxPyEndAllowThreads(__tstate); | |
4838 | if (PyErr_Occurred()) SWIG_fail; | |
4839 | } | |
4840 | { | |
4841 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4842 | } | |
4843 | return resultobj; | |
4844 | fail: | |
4845 | return NULL; | |
4846 | } | |
4847 | ||
4848 | ||
4849 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { | |
4850 | PyObject *obj; | |
4851 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4852 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4853 | Py_INCREF(obj); | |
4854 | return Py_BuildValue((char *)""); | |
4855 | } | |
4856 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { | |
4857 | PyObject *resultobj; | |
4858 | int arg1 = (int) 0 ; | |
4859 | int arg2 = (int) 0 ; | |
4860 | int arg3 = (int) 0 ; | |
4861 | int arg4 = (int) 0 ; | |
4862 | wxRegion *result; | |
4863 | PyObject * obj0 = 0 ; | |
4864 | PyObject * obj1 = 0 ; | |
4865 | PyObject * obj2 = 0 ; | |
4866 | PyObject * obj3 = 0 ; | |
4867 | char *kwnames[] = { | |
4868 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4869 | }; | |
4870 | ||
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4872 | if (obj0) { | |
4873 | arg1 = (int)SWIG_As_int(obj0); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | if (obj1) { | |
4877 | arg2 = (int)SWIG_As_int(obj1); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | } | |
4880 | if (obj2) { | |
4881 | arg3 = (int)SWIG_As_int(obj2); | |
4882 | if (PyErr_Occurred()) SWIG_fail; | |
4883 | } | |
4884 | if (obj3) { | |
4885 | arg4 = (int)SWIG_As_int(obj3); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | } | |
4888 | { | |
4889 | if (!wxPyCheckForApp()) SWIG_fail; | |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4892 | ||
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
4896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4897 | return resultobj; | |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
4904 | PyObject *resultobj; | |
4905 | wxBitmap *arg1 = 0 ; | |
4906 | wxRegion *result; | |
4907 | PyObject * obj0 = 0 ; | |
4908 | char *kwnames[] = { | |
4909 | (char *) "bmp", NULL | |
4910 | }; | |
4911 | ||
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
4913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4914 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4915 | SWIG_fail; | |
4916 | if (arg1 == NULL) { | |
4917 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4918 | SWIG_fail; | |
4919 | } | |
4920 | { | |
4921 | if (!wxPyCheckForApp()) SWIG_fail; | |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) SWIG_fail; | |
4927 | } | |
4928 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4929 | return resultobj; | |
4930 | fail: | |
4931 | return NULL; | |
4932 | } | |
4933 | ||
4934 | ||
4935 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject *resultobj; | |
4937 | wxBitmap *arg1 = 0 ; | |
4938 | wxColour *arg2 = 0 ; | |
4939 | int arg3 = (int) 0 ; | |
4940 | wxRegion *result; | |
4941 | wxColour temp2 ; | |
4942 | PyObject * obj0 = 0 ; | |
4943 | PyObject * obj1 = 0 ; | |
4944 | PyObject * obj2 = 0 ; | |
4945 | char *kwnames[] = { | |
4946 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4947 | }; | |
4948 | ||
4949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4952 | SWIG_fail; | |
4953 | if (arg1 == NULL) { | |
4954 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4955 | SWIG_fail; | |
4956 | } | |
4957 | { | |
4958 | arg2 = &temp2; | |
4959 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4960 | } | |
4961 | if (obj2) { | |
4962 | arg3 = (int)SWIG_As_int(obj2); | |
4963 | if (PyErr_Occurred()) SWIG_fail; | |
4964 | } | |
4965 | { | |
4966 | if (!wxPyCheckForApp()) SWIG_fail; | |
4967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4968 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4969 | ||
4970 | wxPyEndAllowThreads(__tstate); | |
4971 | if (PyErr_Occurred()) SWIG_fail; | |
4972 | } | |
4973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
4980 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject *resultobj; | |
4982 | int arg1 ; | |
4983 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4984 | int arg3 = (int) wxWINDING_RULE ; | |
4985 | wxRegion *result; | |
4986 | PyObject * obj0 = 0 ; | |
4987 | PyObject * obj1 = 0 ; | |
4988 | char *kwnames[] = { | |
4989 | (char *) "points",(char *) "fillStyle", NULL | |
4990 | }; | |
4991 | ||
4992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; | |
4993 | { | |
4994 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4995 | if (arg2 == NULL) SWIG_fail; | |
4996 | } | |
4997 | if (obj1) { | |
4998 | arg3 = (int)SWIG_As_int(obj1); | |
4999 | if (PyErr_Occurred()) SWIG_fail; | |
5000 | } | |
5001 | { | |
5002 | if (!wxPyCheckForApp()) SWIG_fail; | |
5003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5004 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
5005 | ||
5006 | wxPyEndAllowThreads(__tstate); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
5009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5010 | { | |
5011 | if (arg2) delete [] arg2; | |
5012 | } | |
5013 | return resultobj; | |
5014 | fail: | |
5015 | { | |
5016 | if (arg2) delete [] arg2; | |
5017 | } | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj; | |
5024 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5025 | PyObject * obj0 = 0 ; | |
5026 | char *kwnames[] = { | |
5027 | (char *) "self", NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
5031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5033 | { | |
5034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5035 | delete arg1; | |
5036 | ||
5037 | wxPyEndAllowThreads(__tstate); | |
5038 | if (PyErr_Occurred()) SWIG_fail; | |
5039 | } | |
5040 | Py_INCREF(Py_None); resultobj = Py_None; | |
5041 | return resultobj; | |
5042 | fail: | |
5043 | return NULL; | |
5044 | } | |
5045 | ||
5046 | ||
5047 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
5048 | PyObject *resultobj; | |
5049 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5050 | PyObject * obj0 = 0 ; | |
5051 | char *kwnames[] = { | |
5052 | (char *) "self", NULL | |
5053 | }; | |
5054 | ||
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
5056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5058 | { | |
5059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5060 | (arg1)->Clear(); | |
5061 | ||
5062 | wxPyEndAllowThreads(__tstate); | |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
5064 | } | |
5065 | Py_INCREF(Py_None); resultobj = Py_None; | |
5066 | return resultobj; | |
5067 | fail: | |
5068 | return NULL; | |
5069 | } | |
5070 | ||
5071 | ||
5072 | static PyObject *_wrap_Region_Offset(PyObject *, PyObject *args, PyObject *kwargs) { | |
5073 | PyObject *resultobj; | |
5074 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5075 | int arg2 ; | |
5076 | int arg3 ; | |
5077 | bool result; | |
5078 | PyObject * obj0 = 0 ; | |
5079 | PyObject * obj1 = 0 ; | |
5080 | PyObject * obj2 = 0 ; | |
5081 | char *kwnames[] = { | |
5082 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5083 | }; | |
5084 | ||
5085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5088 | arg2 = (int)SWIG_As_int(obj1); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | arg3 = (int)SWIG_As_int(obj2); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | { | |
5093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5094 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5095 | ||
5096 | wxPyEndAllowThreads(__tstate); | |
5097 | if (PyErr_Occurred()) SWIG_fail; | |
5098 | } | |
5099 | { | |
5100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5101 | } | |
5102 | return resultobj; | |
5103 | fail: | |
5104 | return NULL; | |
5105 | } | |
5106 | ||
5107 | ||
5108 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { | |
5109 | PyObject *resultobj; | |
5110 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5111 | int arg2 ; | |
5112 | int arg3 ; | |
5113 | int result; | |
5114 | PyObject * obj0 = 0 ; | |
5115 | PyObject * obj1 = 0 ; | |
5116 | PyObject * obj2 = 0 ; | |
5117 | char *kwnames[] = { | |
5118 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5119 | }; | |
5120 | ||
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5124 | arg2 = (int)SWIG_As_int(obj1); | |
5125 | if (PyErr_Occurred()) SWIG_fail; | |
5126 | arg3 = (int)SWIG_As_int(obj2); | |
5127 | if (PyErr_Occurred()) SWIG_fail; | |
5128 | { | |
5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5130 | result = (int)(arg1)->Contains(arg2,arg3); | |
5131 | ||
5132 | wxPyEndAllowThreads(__tstate); | |
5133 | if (PyErr_Occurred()) SWIG_fail; | |
5134 | } | |
5135 | resultobj = SWIG_From_int((int)result); | |
5136 | return resultobj; | |
5137 | fail: | |
5138 | return NULL; | |
5139 | } | |
5140 | ||
5141 | ||
5142 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
5143 | PyObject *resultobj; | |
5144 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5145 | wxPoint *arg2 = 0 ; | |
5146 | int result; | |
5147 | wxPoint temp2 ; | |
5148 | PyObject * obj0 = 0 ; | |
5149 | PyObject * obj1 = 0 ; | |
5150 | char *kwnames[] = { | |
5151 | (char *) "self",(char *) "pt", NULL | |
5152 | }; | |
5153 | ||
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
5155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5157 | { | |
5158 | arg2 = &temp2; | |
5159 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5160 | } | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
5166 | if (PyErr_Occurred()) SWIG_fail; | |
5167 | } | |
5168 | resultobj = SWIG_From_int((int)result); | |
5169 | return resultobj; | |
5170 | fail: | |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
5175 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject *resultobj; | |
5177 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5178 | wxRect *arg2 = 0 ; | |
5179 | int result; | |
5180 | wxRect temp2 ; | |
5181 | PyObject * obj0 = 0 ; | |
5182 | PyObject * obj1 = 0 ; | |
5183 | char *kwnames[] = { | |
5184 | (char *) "self",(char *) "rect", NULL | |
5185 | }; | |
5186 | ||
5187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
5188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5190 | { | |
5191 | arg2 = &temp2; | |
5192 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5193 | } | |
5194 | { | |
5195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5196 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5197 | ||
5198 | wxPyEndAllowThreads(__tstate); | |
5199 | if (PyErr_Occurred()) SWIG_fail; | |
5200 | } | |
5201 | resultobj = SWIG_From_int((int)result); | |
5202 | return resultobj; | |
5203 | fail: | |
5204 | return NULL; | |
5205 | } | |
5206 | ||
5207 | ||
5208 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { | |
5209 | PyObject *resultobj; | |
5210 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5211 | int arg2 ; | |
5212 | int arg3 ; | |
5213 | int arg4 ; | |
5214 | int arg5 ; | |
5215 | int result; | |
5216 | PyObject * obj0 = 0 ; | |
5217 | PyObject * obj1 = 0 ; | |
5218 | PyObject * obj2 = 0 ; | |
5219 | PyObject * obj3 = 0 ; | |
5220 | PyObject * obj4 = 0 ; | |
5221 | char *kwnames[] = { | |
5222 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5223 | }; | |
5224 | ||
5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5228 | arg2 = (int)SWIG_As_int(obj1); | |
5229 | if (PyErr_Occurred()) SWIG_fail; | |
5230 | arg3 = (int)SWIG_As_int(obj2); | |
5231 | if (PyErr_Occurred()) SWIG_fail; | |
5232 | arg4 = (int)SWIG_As_int(obj3); | |
5233 | if (PyErr_Occurred()) SWIG_fail; | |
5234 | arg5 = (int)SWIG_As_int(obj4); | |
5235 | if (PyErr_Occurred()) SWIG_fail; | |
5236 | { | |
5237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5238 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5239 | ||
5240 | wxPyEndAllowThreads(__tstate); | |
5241 | if (PyErr_Occurred()) SWIG_fail; | |
5242 | } | |
5243 | resultobj = SWIG_From_int((int)result); | |
5244 | return resultobj; | |
5245 | fail: | |
5246 | return NULL; | |
5247 | } | |
5248 | ||
5249 | ||
5250 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
5251 | PyObject *resultobj; | |
5252 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5253 | wxRect result; | |
5254 | PyObject * obj0 = 0 ; | |
5255 | char *kwnames[] = { | |
5256 | (char *) "self", NULL | |
5257 | }; | |
5258 | ||
5259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
5260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5262 | { | |
5263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5264 | result = (arg1)->GetBox(); | |
5265 | ||
5266 | wxPyEndAllowThreads(__tstate); | |
5267 | if (PyErr_Occurred()) SWIG_fail; | |
5268 | } | |
5269 | { | |
5270 | wxRect * resultptr; | |
5271 | resultptr = new wxRect((wxRect &) result); | |
5272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5273 | } | |
5274 | return resultobj; | |
5275 | fail: | |
5276 | return NULL; | |
5277 | } | |
5278 | ||
5279 | ||
5280 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5281 | PyObject *resultobj; | |
5282 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5283 | int arg2 ; | |
5284 | int arg3 ; | |
5285 | int arg4 ; | |
5286 | int arg5 ; | |
5287 | bool result; | |
5288 | PyObject * obj0 = 0 ; | |
5289 | PyObject * obj1 = 0 ; | |
5290 | PyObject * obj2 = 0 ; | |
5291 | PyObject * obj3 = 0 ; | |
5292 | PyObject * obj4 = 0 ; | |
5293 | char *kwnames[] = { | |
5294 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5295 | }; | |
5296 | ||
5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5300 | arg2 = (int)SWIG_As_int(obj1); | |
5301 | if (PyErr_Occurred()) SWIG_fail; | |
5302 | arg3 = (int)SWIG_As_int(obj2); | |
5303 | if (PyErr_Occurred()) SWIG_fail; | |
5304 | arg4 = (int)SWIG_As_int(obj3); | |
5305 | if (PyErr_Occurred()) SWIG_fail; | |
5306 | arg5 = (int)SWIG_As_int(obj4); | |
5307 | if (PyErr_Occurred()) SWIG_fail; | |
5308 | { | |
5309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5310 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5311 | ||
5312 | wxPyEndAllowThreads(__tstate); | |
5313 | if (PyErr_Occurred()) SWIG_fail; | |
5314 | } | |
5315 | { | |
5316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5317 | } | |
5318 | return resultobj; | |
5319 | fail: | |
5320 | return NULL; | |
5321 | } | |
5322 | ||
5323 | ||
5324 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5325 | PyObject *resultobj; | |
5326 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5327 | wxRect *arg2 = 0 ; | |
5328 | bool result; | |
5329 | wxRect temp2 ; | |
5330 | PyObject * obj0 = 0 ; | |
5331 | PyObject * obj1 = 0 ; | |
5332 | char *kwnames[] = { | |
5333 | (char *) "self",(char *) "rect", NULL | |
5334 | }; | |
5335 | ||
5336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5339 | { | |
5340 | arg2 = &temp2; | |
5341 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5342 | } | |
5343 | { | |
5344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5345 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5346 | ||
5347 | wxPyEndAllowThreads(__tstate); | |
5348 | if (PyErr_Occurred()) SWIG_fail; | |
5349 | } | |
5350 | { | |
5351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5352 | } | |
5353 | return resultobj; | |
5354 | fail: | |
5355 | return NULL; | |
5356 | } | |
5357 | ||
5358 | ||
5359 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
5360 | PyObject *resultobj; | |
5361 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5362 | wxRegion *arg2 = 0 ; | |
5363 | bool result; | |
5364 | PyObject * obj0 = 0 ; | |
5365 | PyObject * obj1 = 0 ; | |
5366 | char *kwnames[] = { | |
5367 | (char *) "self",(char *) "region", NULL | |
5368 | }; | |
5369 | ||
5370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5373 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5374 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5375 | SWIG_fail; | |
5376 | if (arg2 == NULL) { | |
5377 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5378 | SWIG_fail; | |
5379 | } | |
5380 | { | |
5381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5382 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5383 | ||
5384 | wxPyEndAllowThreads(__tstate); | |
5385 | if (PyErr_Occurred()) SWIG_fail; | |
5386 | } | |
5387 | { | |
5388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5389 | } | |
5390 | return resultobj; | |
5391 | fail: | |
5392 | return NULL; | |
5393 | } | |
5394 | ||
5395 | ||
5396 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject *resultobj; | |
5398 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5399 | bool result; | |
5400 | PyObject * obj0 = 0 ; | |
5401 | char *kwnames[] = { | |
5402 | (char *) "self", NULL | |
5403 | }; | |
5404 | ||
5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5408 | { | |
5409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5410 | result = (bool)(arg1)->IsEmpty(); | |
5411 | ||
5412 | wxPyEndAllowThreads(__tstate); | |
5413 | if (PyErr_Occurred()) SWIG_fail; | |
5414 | } | |
5415 | { | |
5416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5417 | } | |
5418 | return resultobj; | |
5419 | fail: | |
5420 | return NULL; | |
5421 | } | |
5422 | ||
5423 | ||
5424 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { | |
5425 | PyObject *resultobj; | |
5426 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5427 | int arg2 ; | |
5428 | int arg3 ; | |
5429 | int arg4 ; | |
5430 | int arg5 ; | |
5431 | bool result; | |
5432 | PyObject * obj0 = 0 ; | |
5433 | PyObject * obj1 = 0 ; | |
5434 | PyObject * obj2 = 0 ; | |
5435 | PyObject * obj3 = 0 ; | |
5436 | PyObject * obj4 = 0 ; | |
5437 | char *kwnames[] = { | |
5438 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5439 | }; | |
5440 | ||
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5444 | arg2 = (int)SWIG_As_int(obj1); | |
5445 | if (PyErr_Occurred()) SWIG_fail; | |
5446 | arg3 = (int)SWIG_As_int(obj2); | |
5447 | if (PyErr_Occurred()) SWIG_fail; | |
5448 | arg4 = (int)SWIG_As_int(obj3); | |
5449 | if (PyErr_Occurred()) SWIG_fail; | |
5450 | arg5 = (int)SWIG_As_int(obj4); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | { | |
5453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5454 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5455 | ||
5456 | wxPyEndAllowThreads(__tstate); | |
5457 | if (PyErr_Occurred()) SWIG_fail; | |
5458 | } | |
5459 | { | |
5460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5461 | } | |
5462 | return resultobj; | |
5463 | fail: | |
5464 | return NULL; | |
5465 | } | |
5466 | ||
5467 | ||
5468 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject *resultobj; | |
5470 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5471 | wxRect *arg2 = 0 ; | |
5472 | bool result; | |
5473 | wxRect temp2 ; | |
5474 | PyObject * obj0 = 0 ; | |
5475 | PyObject * obj1 = 0 ; | |
5476 | char *kwnames[] = { | |
5477 | (char *) "self",(char *) "rect", NULL | |
5478 | }; | |
5479 | ||
5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5483 | { | |
5484 | arg2 = &temp2; | |
5485 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5486 | } | |
5487 | { | |
5488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5489 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5490 | ||
5491 | wxPyEndAllowThreads(__tstate); | |
5492 | if (PyErr_Occurred()) SWIG_fail; | |
5493 | } | |
5494 | { | |
5495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5496 | } | |
5497 | return resultobj; | |
5498 | fail: | |
5499 | return NULL; | |
5500 | } | |
5501 | ||
5502 | ||
5503 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
5504 | PyObject *resultobj; | |
5505 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5506 | wxRegion *arg2 = 0 ; | |
5507 | bool result; | |
5508 | PyObject * obj0 = 0 ; | |
5509 | PyObject * obj1 = 0 ; | |
5510 | char *kwnames[] = { | |
5511 | (char *) "self",(char *) "region", NULL | |
5512 | }; | |
5513 | ||
5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5517 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5518 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5519 | SWIG_fail; | |
5520 | if (arg2 == NULL) { | |
5521 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5522 | SWIG_fail; | |
5523 | } | |
5524 | { | |
5525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5526 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5527 | ||
5528 | wxPyEndAllowThreads(__tstate); | |
5529 | if (PyErr_Occurred()) SWIG_fail; | |
5530 | } | |
5531 | { | |
5532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5533 | } | |
5534 | return resultobj; | |
5535 | fail: | |
5536 | return NULL; | |
5537 | } | |
5538 | ||
5539 | ||
5540 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject *resultobj; | |
5542 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5543 | int arg2 ; | |
5544 | int arg3 ; | |
5545 | int arg4 ; | |
5546 | int arg5 ; | |
5547 | bool result; | |
5548 | PyObject * obj0 = 0 ; | |
5549 | PyObject * obj1 = 0 ; | |
5550 | PyObject * obj2 = 0 ; | |
5551 | PyObject * obj3 = 0 ; | |
5552 | PyObject * obj4 = 0 ; | |
5553 | char *kwnames[] = { | |
5554 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5555 | }; | |
5556 | ||
5557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5560 | arg2 = (int)SWIG_As_int(obj1); | |
5561 | if (PyErr_Occurred()) SWIG_fail; | |
5562 | arg3 = (int)SWIG_As_int(obj2); | |
5563 | if (PyErr_Occurred()) SWIG_fail; | |
5564 | arg4 = (int)SWIG_As_int(obj3); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | arg5 = (int)SWIG_As_int(obj4); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
5568 | { | |
5569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5570 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5571 | ||
5572 | wxPyEndAllowThreads(__tstate); | |
5573 | if (PyErr_Occurred()) SWIG_fail; | |
5574 | } | |
5575 | { | |
5576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5577 | } | |
5578 | return resultobj; | |
5579 | fail: | |
5580 | return NULL; | |
5581 | } | |
5582 | ||
5583 | ||
5584 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5585 | PyObject *resultobj; | |
5586 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5587 | wxRect *arg2 = 0 ; | |
5588 | bool result; | |
5589 | wxRect temp2 ; | |
5590 | PyObject * obj0 = 0 ; | |
5591 | PyObject * obj1 = 0 ; | |
5592 | char *kwnames[] = { | |
5593 | (char *) "self",(char *) "rect", NULL | |
5594 | }; | |
5595 | ||
5596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5599 | { | |
5600 | arg2 = &temp2; | |
5601 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5602 | } | |
5603 | { | |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) SWIG_fail; | |
5609 | } | |
5610 | { | |
5611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5612 | } | |
5613 | return resultobj; | |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
5619 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject *resultobj; | |
5621 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5622 | wxRegion *arg2 = 0 ; | |
5623 | bool result; | |
5624 | PyObject * obj0 = 0 ; | |
5625 | PyObject * obj1 = 0 ; | |
5626 | char *kwnames[] = { | |
5627 | (char *) "self",(char *) "region", NULL | |
5628 | }; | |
5629 | ||
5630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5633 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5635 | SWIG_fail; | |
5636 | if (arg2 == NULL) { | |
5637 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5638 | SWIG_fail; | |
5639 | } | |
5640 | { | |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5642 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
5645 | if (PyErr_Occurred()) SWIG_fail; | |
5646 | } | |
5647 | { | |
5648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5649 | } | |
5650 | return resultobj; | |
5651 | fail: | |
5652 | return NULL; | |
5653 | } | |
5654 | ||
5655 | ||
5656 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { | |
5657 | PyObject *resultobj; | |
5658 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5659 | int arg2 ; | |
5660 | int arg3 ; | |
5661 | int arg4 ; | |
5662 | int arg5 ; | |
5663 | bool result; | |
5664 | PyObject * obj0 = 0 ; | |
5665 | PyObject * obj1 = 0 ; | |
5666 | PyObject * obj2 = 0 ; | |
5667 | PyObject * obj3 = 0 ; | |
5668 | PyObject * obj4 = 0 ; | |
5669 | char *kwnames[] = { | |
5670 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5671 | }; | |
5672 | ||
5673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5676 | arg2 = (int)SWIG_As_int(obj1); | |
5677 | if (PyErr_Occurred()) SWIG_fail; | |
5678 | arg3 = (int)SWIG_As_int(obj2); | |
5679 | if (PyErr_Occurred()) SWIG_fail; | |
5680 | arg4 = (int)SWIG_As_int(obj3); | |
5681 | if (PyErr_Occurred()) SWIG_fail; | |
5682 | arg5 = (int)SWIG_As_int(obj4); | |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
5684 | { | |
5685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5686 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5687 | ||
5688 | wxPyEndAllowThreads(__tstate); | |
5689 | if (PyErr_Occurred()) SWIG_fail; | |
5690 | } | |
5691 | { | |
5692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5693 | } | |
5694 | return resultobj; | |
5695 | fail: | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5703 | wxRect *arg2 = 0 ; | |
5704 | bool result; | |
5705 | wxRect temp2 ; | |
5706 | PyObject * obj0 = 0 ; | |
5707 | PyObject * obj1 = 0 ; | |
5708 | char *kwnames[] = { | |
5709 | (char *) "self",(char *) "rect", NULL | |
5710 | }; | |
5711 | ||
5712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5715 | { | |
5716 | arg2 = &temp2; | |
5717 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5718 | } | |
5719 | { | |
5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5721 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5722 | ||
5723 | wxPyEndAllowThreads(__tstate); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
5726 | { | |
5727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5728 | } | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | return NULL; | |
5732 | } | |
5733 | ||
5734 | ||
5735 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
5736 | PyObject *resultobj; | |
5737 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5738 | wxRegion *arg2 = 0 ; | |
5739 | bool result; | |
5740 | PyObject * obj0 = 0 ; | |
5741 | PyObject * obj1 = 0 ; | |
5742 | char *kwnames[] = { | |
5743 | (char *) "self",(char *) "region", NULL | |
5744 | }; | |
5745 | ||
5746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5750 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5751 | SWIG_fail; | |
5752 | if (arg2 == NULL) { | |
5753 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5754 | SWIG_fail; | |
5755 | } | |
5756 | { | |
5757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5758 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5759 | ||
5760 | wxPyEndAllowThreads(__tstate); | |
5761 | if (PyErr_Occurred()) SWIG_fail; | |
5762 | } | |
5763 | { | |
5764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5765 | } | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
5769 | } | |
5770 | ||
5771 | ||
5772 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject *resultobj; | |
5774 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5775 | SwigValueWrapper< wxBitmap > result; | |
5776 | PyObject * obj0 = 0 ; | |
5777 | char *kwnames[] = { | |
5778 | (char *) "self", NULL | |
5779 | }; | |
5780 | ||
5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5784 | { | |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | result = (arg1)->ConvertToBitmap(); | |
5787 | ||
5788 | wxPyEndAllowThreads(__tstate); | |
5789 | if (PyErr_Occurred()) SWIG_fail; | |
5790 | } | |
5791 | { | |
5792 | wxBitmap * resultptr; | |
5793 | resultptr = new wxBitmap((wxBitmap &) result); | |
5794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5795 | } | |
5796 | return resultobj; | |
5797 | fail: | |
5798 | return NULL; | |
5799 | } | |
5800 | ||
5801 | ||
5802 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
5803 | PyObject *resultobj; | |
5804 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5805 | wxBitmap *arg2 = 0 ; | |
5806 | bool result; | |
5807 | PyObject * obj0 = 0 ; | |
5808 | PyObject * obj1 = 0 ; | |
5809 | char *kwnames[] = { | |
5810 | (char *) "self",(char *) "bmp", NULL | |
5811 | }; | |
5812 | ||
5813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5817 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5818 | SWIG_fail; | |
5819 | if (arg2 == NULL) { | |
5820 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5821 | SWIG_fail; | |
5822 | } | |
5823 | { | |
5824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5825 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
5826 | ||
5827 | wxPyEndAllowThreads(__tstate); | |
5828 | if (PyErr_Occurred()) SWIG_fail; | |
5829 | } | |
5830 | { | |
5831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5832 | } | |
5833 | return resultobj; | |
5834 | fail: | |
5835 | return NULL; | |
5836 | } | |
5837 | ||
5838 | ||
5839 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
5840 | PyObject *resultobj; | |
5841 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5842 | wxBitmap *arg2 = 0 ; | |
5843 | wxColour *arg3 = 0 ; | |
5844 | int arg4 = (int) 0 ; | |
5845 | bool result; | |
5846 | wxColour temp3 ; | |
5847 | PyObject * obj0 = 0 ; | |
5848 | PyObject * obj1 = 0 ; | |
5849 | PyObject * obj2 = 0 ; | |
5850 | PyObject * obj3 = 0 ; | |
5851 | char *kwnames[] = { | |
5852 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5853 | }; | |
5854 | ||
5855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5859 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5860 | SWIG_fail; | |
5861 | if (arg2 == NULL) { | |
5862 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5863 | SWIG_fail; | |
5864 | } | |
5865 | { | |
5866 | arg3 = &temp3; | |
5867 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5868 | } | |
5869 | if (obj3) { | |
5870 | arg4 = (int)SWIG_As_int(obj3); | |
5871 | if (PyErr_Occurred()) SWIG_fail; | |
5872 | } | |
5873 | { | |
5874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5875 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5876 | ||
5877 | wxPyEndAllowThreads(__tstate); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | } | |
5880 | { | |
5881 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5882 | } | |
5883 | return resultobj; | |
5884 | fail: | |
5885 | return NULL; | |
5886 | } | |
5887 | ||
5888 | ||
5889 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { | |
5890 | PyObject *obj; | |
5891 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5892 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5893 | Py_INCREF(obj); | |
5894 | return Py_BuildValue((char *)""); | |
5895 | } | |
5896 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { | |
5897 | PyObject *resultobj; | |
5898 | wxRegion *arg1 = 0 ; | |
5899 | wxRegionIterator *result; | |
5900 | PyObject * obj0 = 0 ; | |
5901 | char *kwnames[] = { | |
5902 | (char *) "region", NULL | |
5903 | }; | |
5904 | ||
5905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5907 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5908 | SWIG_fail; | |
5909 | if (arg1 == NULL) { | |
5910 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5911 | SWIG_fail; | |
5912 | } | |
5913 | { | |
5914 | if (!wxPyCheckForApp()) SWIG_fail; | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); | |
5922 | return resultobj; | |
5923 | fail: | |
5924 | return NULL; | |
5925 | } | |
5926 | ||
5927 | ||
5928 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { | |
5929 | PyObject *resultobj; | |
5930 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5931 | PyObject * obj0 = 0 ; | |
5932 | char *kwnames[] = { | |
5933 | (char *) "self", NULL | |
5934 | }; | |
5935 | ||
5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5939 | { | |
5940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5941 | delete arg1; | |
5942 | ||
5943 | wxPyEndAllowThreads(__tstate); | |
5944 | if (PyErr_Occurred()) SWIG_fail; | |
5945 | } | |
5946 | Py_INCREF(Py_None); resultobj = Py_None; | |
5947 | return resultobj; | |
5948 | fail: | |
5949 | return NULL; | |
5950 | } | |
5951 | ||
5952 | ||
5953 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { | |
5954 | PyObject *resultobj; | |
5955 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5956 | int result; | |
5957 | PyObject * obj0 = 0 ; | |
5958 | char *kwnames[] = { | |
5959 | (char *) "self", NULL | |
5960 | }; | |
5961 | ||
5962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5965 | { | |
5966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5967 | result = (int)(arg1)->GetX(); | |
5968 | ||
5969 | wxPyEndAllowThreads(__tstate); | |
5970 | if (PyErr_Occurred()) SWIG_fail; | |
5971 | } | |
5972 | resultobj = SWIG_From_int((int)result); | |
5973 | return resultobj; | |
5974 | fail: | |
5975 | return NULL; | |
5976 | } | |
5977 | ||
5978 | ||
5979 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { | |
5980 | PyObject *resultobj; | |
5981 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5982 | int result; | |
5983 | PyObject * obj0 = 0 ; | |
5984 | char *kwnames[] = { | |
5985 | (char *) "self", NULL | |
5986 | }; | |
5987 | ||
5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5991 | { | |
5992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5993 | result = (int)(arg1)->GetY(); | |
5994 | ||
5995 | wxPyEndAllowThreads(__tstate); | |
5996 | if (PyErr_Occurred()) SWIG_fail; | |
5997 | } | |
5998 | resultobj = SWIG_From_int((int)result); | |
5999 | return resultobj; | |
6000 | fail: | |
6001 | return NULL; | |
6002 | } | |
6003 | ||
6004 | ||
6005 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { | |
6006 | PyObject *resultobj; | |
6007 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6008 | int result; | |
6009 | PyObject * obj0 = 0 ; | |
6010 | char *kwnames[] = { | |
6011 | (char *) "self", NULL | |
6012 | }; | |
6013 | ||
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
6015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6017 | { | |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | result = (int)(arg1)->GetW(); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
6024 | resultobj = SWIG_From_int((int)result); | |
6025 | return resultobj; | |
6026 | fail: | |
6027 | return NULL; | |
6028 | } | |
6029 | ||
6030 | ||
6031 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
6032 | PyObject *resultobj; | |
6033 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6034 | int result; | |
6035 | PyObject * obj0 = 0 ; | |
6036 | char *kwnames[] = { | |
6037 | (char *) "self", NULL | |
6038 | }; | |
6039 | ||
6040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
6041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6043 | { | |
6044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6045 | result = (int)(arg1)->GetWidth(); | |
6046 | ||
6047 | wxPyEndAllowThreads(__tstate); | |
6048 | if (PyErr_Occurred()) SWIG_fail; | |
6049 | } | |
6050 | resultobj = SWIG_From_int((int)result); | |
6051 | return resultobj; | |
6052 | fail: | |
6053 | return NULL; | |
6054 | } | |
6055 | ||
6056 | ||
6057 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { | |
6058 | PyObject *resultobj; | |
6059 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6060 | int result; | |
6061 | PyObject * obj0 = 0 ; | |
6062 | char *kwnames[] = { | |
6063 | (char *) "self", NULL | |
6064 | }; | |
6065 | ||
6066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
6067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6069 | { | |
6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6071 | result = (int)(arg1)->GetH(); | |
6072 | ||
6073 | wxPyEndAllowThreads(__tstate); | |
6074 | if (PyErr_Occurred()) SWIG_fail; | |
6075 | } | |
6076 | resultobj = SWIG_From_int((int)result); | |
6077 | return resultobj; | |
6078 | fail: | |
6079 | return NULL; | |
6080 | } | |
6081 | ||
6082 | ||
6083 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
6084 | PyObject *resultobj; | |
6085 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6086 | int result; | |
6087 | PyObject * obj0 = 0 ; | |
6088 | char *kwnames[] = { | |
6089 | (char *) "self", NULL | |
6090 | }; | |
6091 | ||
6092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
6093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6095 | { | |
6096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6097 | result = (int)(arg1)->GetHeight(); | |
6098 | ||
6099 | wxPyEndAllowThreads(__tstate); | |
6100 | if (PyErr_Occurred()) SWIG_fail; | |
6101 | } | |
6102 | resultobj = SWIG_From_int((int)result); | |
6103 | return resultobj; | |
6104 | fail: | |
6105 | return NULL; | |
6106 | } | |
6107 | ||
6108 | ||
6109 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
6110 | PyObject *resultobj; | |
6111 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6112 | wxRect result; | |
6113 | PyObject * obj0 = 0 ; | |
6114 | char *kwnames[] = { | |
6115 | (char *) "self", NULL | |
6116 | }; | |
6117 | ||
6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
6119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6121 | { | |
6122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6123 | result = (arg1)->GetRect(); | |
6124 | ||
6125 | wxPyEndAllowThreads(__tstate); | |
6126 | if (PyErr_Occurred()) SWIG_fail; | |
6127 | } | |
6128 | { | |
6129 | wxRect * resultptr; | |
6130 | resultptr = new wxRect((wxRect &) result); | |
6131 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
6132 | } | |
6133 | return resultobj; | |
6134 | fail: | |
6135 | return NULL; | |
6136 | } | |
6137 | ||
6138 | ||
6139 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { | |
6140 | PyObject *resultobj; | |
6141 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6142 | bool result; | |
6143 | PyObject * obj0 = 0 ; | |
6144 | char *kwnames[] = { | |
6145 | (char *) "self", NULL | |
6146 | }; | |
6147 | ||
6148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
6149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6151 | { | |
6152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6153 | result = (bool)(arg1)->HaveRects(); | |
6154 | ||
6155 | wxPyEndAllowThreads(__tstate); | |
6156 | if (PyErr_Occurred()) SWIG_fail; | |
6157 | } | |
6158 | { | |
6159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6160 | } | |
6161 | return resultobj; | |
6162 | fail: | |
6163 | return NULL; | |
6164 | } | |
6165 | ||
6166 | ||
6167 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { | |
6168 | PyObject *resultobj; | |
6169 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6170 | PyObject * obj0 = 0 ; | |
6171 | char *kwnames[] = { | |
6172 | (char *) "self", NULL | |
6173 | }; | |
6174 | ||
6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
6176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6178 | { | |
6179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6180 | (arg1)->Reset(); | |
6181 | ||
6182 | wxPyEndAllowThreads(__tstate); | |
6183 | if (PyErr_Occurred()) SWIG_fail; | |
6184 | } | |
6185 | Py_INCREF(Py_None); resultobj = Py_None; | |
6186 | return resultobj; | |
6187 | fail: | |
6188 | return NULL; | |
6189 | } | |
6190 | ||
6191 | ||
6192 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { | |
6193 | PyObject *resultobj; | |
6194 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6195 | PyObject * obj0 = 0 ; | |
6196 | char *kwnames[] = { | |
6197 | (char *) "self", NULL | |
6198 | }; | |
6199 | ||
6200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
6201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6203 | { | |
6204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6205 | wxRegionIterator_Next(arg1); | |
6206 | ||
6207 | wxPyEndAllowThreads(__tstate); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
6210 | Py_INCREF(Py_None); resultobj = Py_None; | |
6211 | return resultobj; | |
6212 | fail: | |
6213 | return NULL; | |
6214 | } | |
6215 | ||
6216 | ||
6217 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { | |
6218 | PyObject *resultobj; | |
6219 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6220 | bool result; | |
6221 | PyObject * obj0 = 0 ; | |
6222 | char *kwnames[] = { | |
6223 | (char *) "self", NULL | |
6224 | }; | |
6225 | ||
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
6227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6229 | { | |
6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6231 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6232 | ||
6233 | wxPyEndAllowThreads(__tstate); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
6235 | } | |
6236 | { | |
6237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6238 | } | |
6239 | return resultobj; | |
6240 | fail: | |
6241 | return NULL; | |
6242 | } | |
6243 | ||
6244 | ||
6245 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { | |
6246 | PyObject *obj; | |
6247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6248 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6249 | Py_INCREF(obj); | |
6250 | return Py_BuildValue((char *)""); | |
6251 | } | |
6252 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
6253 | PyObject *resultobj; | |
6254 | wxNativeFontInfo *result; | |
6255 | char *kwnames[] = { | |
6256 | NULL | |
6257 | }; | |
6258 | ||
6259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6260 | { | |
6261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6262 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6263 | ||
6264 | wxPyEndAllowThreads(__tstate); | |
6265 | if (PyErr_Occurred()) SWIG_fail; | |
6266 | } | |
6267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); | |
6268 | return resultobj; | |
6269 | fail: | |
6270 | return NULL; | |
6271 | } | |
6272 | ||
6273 | ||
6274 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
6275 | PyObject *resultobj; | |
6276 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | char *kwnames[] = { | |
6279 | (char *) "self", NULL | |
6280 | }; | |
6281 | ||
6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
6283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6285 | { | |
6286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6287 | delete arg1; | |
6288 | ||
6289 | wxPyEndAllowThreads(__tstate); | |
6290 | if (PyErr_Occurred()) SWIG_fail; | |
6291 | } | |
6292 | Py_INCREF(Py_None); resultobj = Py_None; | |
6293 | return resultobj; | |
6294 | fail: | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
6299 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject *resultobj; | |
6301 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6302 | PyObject * obj0 = 0 ; | |
6303 | char *kwnames[] = { | |
6304 | (char *) "self", NULL | |
6305 | }; | |
6306 | ||
6307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
6308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6310 | { | |
6311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6312 | (arg1)->Init(); | |
6313 | ||
6314 | wxPyEndAllowThreads(__tstate); | |
6315 | if (PyErr_Occurred()) SWIG_fail; | |
6316 | } | |
6317 | Py_INCREF(Py_None); resultobj = Py_None; | |
6318 | return resultobj; | |
6319 | fail: | |
6320 | return NULL; | |
6321 | } | |
6322 | ||
6323 | ||
6324 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
6325 | PyObject *resultobj; | |
6326 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6327 | wxFont *arg2 = 0 ; | |
6328 | PyObject * obj0 = 0 ; | |
6329 | PyObject * obj1 = 0 ; | |
6330 | char *kwnames[] = { | |
6331 | (char *) "self",(char *) "font", NULL | |
6332 | }; | |
6333 | ||
6334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
6335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6339 | SWIG_fail; | |
6340 | if (arg2 == NULL) { | |
6341 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6342 | SWIG_fail; | |
6343 | } | |
6344 | { | |
6345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6346 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6347 | ||
6348 | wxPyEndAllowThreads(__tstate); | |
6349 | if (PyErr_Occurred()) SWIG_fail; | |
6350 | } | |
6351 | Py_INCREF(Py_None); resultobj = Py_None; | |
6352 | return resultobj; | |
6353 | fail: | |
6354 | return NULL; | |
6355 | } | |
6356 | ||
6357 | ||
6358 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6359 | PyObject *resultobj; | |
6360 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6361 | int result; | |
6362 | PyObject * obj0 = 0 ; | |
6363 | char *kwnames[] = { | |
6364 | (char *) "self", NULL | |
6365 | }; | |
6366 | ||
6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
6368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6370 | { | |
6371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6372 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6373 | ||
6374 | wxPyEndAllowThreads(__tstate); | |
6375 | if (PyErr_Occurred()) SWIG_fail; | |
6376 | } | |
6377 | resultobj = SWIG_From_int((int)result); | |
6378 | return resultobj; | |
6379 | fail: | |
6380 | return NULL; | |
6381 | } | |
6382 | ||
6383 | ||
6384 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
6385 | PyObject *resultobj; | |
6386 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6387 | int result; | |
6388 | PyObject * obj0 = 0 ; | |
6389 | char *kwnames[] = { | |
6390 | (char *) "self", NULL | |
6391 | }; | |
6392 | ||
6393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6396 | { | |
6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6398 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6399 | ||
6400 | wxPyEndAllowThreads(__tstate); | |
6401 | if (PyErr_Occurred()) SWIG_fail; | |
6402 | } | |
6403 | resultobj = SWIG_From_int((int)result); | |
6404 | return resultobj; | |
6405 | fail: | |
6406 | return NULL; | |
6407 | } | |
6408 | ||
6409 | ||
6410 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
6411 | PyObject *resultobj; | |
6412 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6413 | int result; | |
6414 | PyObject * obj0 = 0 ; | |
6415 | char *kwnames[] = { | |
6416 | (char *) "self", NULL | |
6417 | }; | |
6418 | ||
6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6422 | { | |
6423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6424 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6425 | ||
6426 | wxPyEndAllowThreads(__tstate); | |
6427 | if (PyErr_Occurred()) SWIG_fail; | |
6428 | } | |
6429 | resultobj = SWIG_From_int((int)result); | |
6430 | return resultobj; | |
6431 | fail: | |
6432 | return NULL; | |
6433 | } | |
6434 | ||
6435 | ||
6436 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { | |
6437 | PyObject *resultobj; | |
6438 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6439 | bool result; | |
6440 | PyObject * obj0 = 0 ; | |
6441 | char *kwnames[] = { | |
6442 | (char *) "self", NULL | |
6443 | }; | |
6444 | ||
6445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6448 | { | |
6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6450 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6451 | ||
6452 | wxPyEndAllowThreads(__tstate); | |
6453 | if (PyErr_Occurred()) SWIG_fail; | |
6454 | } | |
6455 | { | |
6456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6457 | } | |
6458 | return resultobj; | |
6459 | fail: | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
6464 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject *resultobj; | |
6466 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6467 | wxString result; | |
6468 | PyObject * obj0 = 0 ; | |
6469 | char *kwnames[] = { | |
6470 | (char *) "self", NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
6474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6476 | { | |
6477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6478 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6479 | ||
6480 | wxPyEndAllowThreads(__tstate); | |
6481 | if (PyErr_Occurred()) SWIG_fail; | |
6482 | } | |
6483 | { | |
6484 | #if wxUSE_UNICODE | |
6485 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6486 | #else | |
6487 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6488 | #endif | |
6489 | } | |
6490 | return resultobj; | |
6491 | fail: | |
6492 | return NULL; | |
6493 | } | |
6494 | ||
6495 | ||
6496 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { | |
6497 | PyObject *resultobj; | |
6498 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6499 | int result; | |
6500 | PyObject * obj0 = 0 ; | |
6501 | char *kwnames[] = { | |
6502 | (char *) "self", NULL | |
6503 | }; | |
6504 | ||
6505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6508 | { | |
6509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6510 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6511 | ||
6512 | wxPyEndAllowThreads(__tstate); | |
6513 | if (PyErr_Occurred()) SWIG_fail; | |
6514 | } | |
6515 | resultobj = SWIG_From_int((int)result); | |
6516 | return resultobj; | |
6517 | fail: | |
6518 | return NULL; | |
6519 | } | |
6520 | ||
6521 | ||
6522 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
6523 | PyObject *resultobj; | |
6524 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6525 | int result; | |
6526 | PyObject * obj0 = 0 ; | |
6527 | char *kwnames[] = { | |
6528 | (char *) "self", NULL | |
6529 | }; | |
6530 | ||
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6534 | { | |
6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6536 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6537 | ||
6538 | wxPyEndAllowThreads(__tstate); | |
6539 | if (PyErr_Occurred()) SWIG_fail; | |
6540 | } | |
6541 | resultobj = SWIG_From_int((int)result); | |
6542 | return resultobj; | |
6543 | fail: | |
6544 | return NULL; | |
6545 | } | |
6546 | ||
6547 | ||
6548 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
6549 | PyObject *resultobj; | |
6550 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6551 | int arg2 ; | |
6552 | PyObject * obj0 = 0 ; | |
6553 | PyObject * obj1 = 0 ; | |
6554 | char *kwnames[] = { | |
6555 | (char *) "self",(char *) "pointsize", NULL | |
6556 | }; | |
6557 | ||
6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
6559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6561 | arg2 = (int)SWIG_As_int(obj1); | |
6562 | if (PyErr_Occurred()) SWIG_fail; | |
6563 | { | |
6564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6565 | (arg1)->SetPointSize(arg2); | |
6566 | ||
6567 | wxPyEndAllowThreads(__tstate); | |
6568 | if (PyErr_Occurred()) SWIG_fail; | |
6569 | } | |
6570 | Py_INCREF(Py_None); resultobj = Py_None; | |
6571 | return resultobj; | |
6572 | fail: | |
6573 | return NULL; | |
6574 | } | |
6575 | ||
6576 | ||
6577 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
6578 | PyObject *resultobj; | |
6579 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6580 | int arg2 ; | |
6581 | PyObject * obj0 = 0 ; | |
6582 | PyObject * obj1 = 0 ; | |
6583 | char *kwnames[] = { | |
6584 | (char *) "self",(char *) "style", NULL | |
6585 | }; | |
6586 | ||
6587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
6588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6590 | arg2 = (int)SWIG_As_int(obj1); | |
6591 | if (PyErr_Occurred()) SWIG_fail; | |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | Py_INCREF(Py_None); resultobj = Py_None; | |
6600 | return resultobj; | |
6601 | fail: | |
6602 | return NULL; | |
6603 | } | |
6604 | ||
6605 | ||
6606 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject *resultobj; | |
6608 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6609 | int arg2 ; | |
6610 | PyObject * obj0 = 0 ; | |
6611 | PyObject * obj1 = 0 ; | |
6612 | char *kwnames[] = { | |
6613 | (char *) "self",(char *) "weight", NULL | |
6614 | }; | |
6615 | ||
6616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
6617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6619 | arg2 = (int)SWIG_As_int(obj1); | |
6620 | if (PyErr_Occurred()) SWIG_fail; | |
6621 | { | |
6622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6623 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6624 | ||
6625 | wxPyEndAllowThreads(__tstate); | |
6626 | if (PyErr_Occurred()) SWIG_fail; | |
6627 | } | |
6628 | Py_INCREF(Py_None); resultobj = Py_None; | |
6629 | return resultobj; | |
6630 | fail: | |
6631 | return NULL; | |
6632 | } | |
6633 | ||
6634 | ||
6635 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { | |
6636 | PyObject *resultobj; | |
6637 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6638 | bool arg2 ; | |
6639 | PyObject * obj0 = 0 ; | |
6640 | PyObject * obj1 = 0 ; | |
6641 | char *kwnames[] = { | |
6642 | (char *) "self",(char *) "underlined", NULL | |
6643 | }; | |
6644 | ||
6645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6648 | arg2 = (bool)SWIG_As_bool(obj1); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | { | |
6651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6652 | (arg1)->SetUnderlined(arg2); | |
6653 | ||
6654 | wxPyEndAllowThreads(__tstate); | |
6655 | if (PyErr_Occurred()) SWIG_fail; | |
6656 | } | |
6657 | Py_INCREF(Py_None); resultobj = Py_None; | |
6658 | return resultobj; | |
6659 | fail: | |
6660 | return NULL; | |
6661 | } | |
6662 | ||
6663 | ||
6664 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { | |
6665 | PyObject *resultobj; | |
6666 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6667 | wxString arg2 ; | |
6668 | PyObject * obj0 = 0 ; | |
6669 | PyObject * obj1 = 0 ; | |
6670 | char *kwnames[] = { | |
6671 | (char *) "self",(char *) "facename", NULL | |
6672 | }; | |
6673 | ||
6674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6677 | { | |
6678 | wxString* sptr = wxString_in_helper(obj1); | |
6679 | if (sptr == NULL) SWIG_fail; | |
6680 | arg2 = *sptr; | |
6681 | delete sptr; | |
6682 | } | |
6683 | { | |
6684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6685 | (arg1)->SetFaceName(arg2); | |
6686 | ||
6687 | wxPyEndAllowThreads(__tstate); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
6689 | } | |
6690 | Py_INCREF(Py_None); resultobj = Py_None; | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
6697 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { | |
6698 | PyObject *resultobj; | |
6699 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6700 | int arg2 ; | |
6701 | PyObject * obj0 = 0 ; | |
6702 | PyObject * obj1 = 0 ; | |
6703 | char *kwnames[] = { | |
6704 | (char *) "self",(char *) "family", NULL | |
6705 | }; | |
6706 | ||
6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6710 | arg2 = (int)SWIG_As_int(obj1); | |
6711 | if (PyErr_Occurred()) SWIG_fail; | |
6712 | { | |
6713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6714 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
6719 | Py_INCREF(Py_None); resultobj = Py_None; | |
6720 | return resultobj; | |
6721 | fail: | |
6722 | return NULL; | |
6723 | } | |
6724 | ||
6725 | ||
6726 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
6727 | PyObject *resultobj; | |
6728 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6729 | int arg2 ; | |
6730 | PyObject * obj0 = 0 ; | |
6731 | PyObject * obj1 = 0 ; | |
6732 | char *kwnames[] = { | |
6733 | (char *) "self",(char *) "encoding", NULL | |
6734 | }; | |
6735 | ||
6736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
6737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6739 | arg2 = (int)SWIG_As_int(obj1); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | { | |
6742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6743 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6744 | ||
6745 | wxPyEndAllowThreads(__tstate); | |
6746 | if (PyErr_Occurred()) SWIG_fail; | |
6747 | } | |
6748 | Py_INCREF(Py_None); resultobj = Py_None; | |
6749 | return resultobj; | |
6750 | fail: | |
6751 | return NULL; | |
6752 | } | |
6753 | ||
6754 | ||
6755 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { | |
6756 | PyObject *resultobj; | |
6757 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6758 | wxString *arg2 = 0 ; | |
6759 | bool result; | |
6760 | bool temp2 = false ; | |
6761 | PyObject * obj0 = 0 ; | |
6762 | PyObject * obj1 = 0 ; | |
6763 | char *kwnames[] = { | |
6764 | (char *) "self",(char *) "s", NULL | |
6765 | }; | |
6766 | ||
6767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6770 | { | |
6771 | arg2 = wxString_in_helper(obj1); | |
6772 | if (arg2 == NULL) SWIG_fail; | |
6773 | temp2 = true; | |
6774 | } | |
6775 | { | |
6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6777 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6778 | ||
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
6782 | { | |
6783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6784 | } | |
6785 | { | |
6786 | if (temp2) | |
6787 | delete arg2; | |
6788 | } | |
6789 | return resultobj; | |
6790 | fail: | |
6791 | { | |
6792 | if (temp2) | |
6793 | delete arg2; | |
6794 | } | |
6795 | return NULL; | |
6796 | } | |
6797 | ||
6798 | ||
6799 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject *resultobj; | |
6801 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6802 | wxString result; | |
6803 | PyObject * obj0 = 0 ; | |
6804 | char *kwnames[] = { | |
6805 | (char *) "self", NULL | |
6806 | }; | |
6807 | ||
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6811 | { | |
6812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6813 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6814 | ||
6815 | wxPyEndAllowThreads(__tstate); | |
6816 | if (PyErr_Occurred()) SWIG_fail; | |
6817 | } | |
6818 | { | |
6819 | #if wxUSE_UNICODE | |
6820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6821 | #else | |
6822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6823 | #endif | |
6824 | } | |
6825 | return resultobj; | |
6826 | fail: | |
6827 | return NULL; | |
6828 | } | |
6829 | ||
6830 | ||
6831 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { | |
6832 | PyObject *resultobj; | |
6833 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6834 | wxString result; | |
6835 | PyObject * obj0 = 0 ; | |
6836 | char *kwnames[] = { | |
6837 | (char *) "self", NULL | |
6838 | }; | |
6839 | ||
6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6843 | { | |
6844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6845 | result = wxNativeFontInfo___str__(arg1); | |
6846 | ||
6847 | wxPyEndAllowThreads(__tstate); | |
6848 | if (PyErr_Occurred()) SWIG_fail; | |
6849 | } | |
6850 | { | |
6851 | #if wxUSE_UNICODE | |
6852 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6853 | #else | |
6854 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6855 | #endif | |
6856 | } | |
6857 | return resultobj; | |
6858 | fail: | |
6859 | return NULL; | |
6860 | } | |
6861 | ||
6862 | ||
6863 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { | |
6864 | PyObject *resultobj; | |
6865 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6866 | wxString *arg2 = 0 ; | |
6867 | bool result; | |
6868 | bool temp2 = false ; | |
6869 | PyObject * obj0 = 0 ; | |
6870 | PyObject * obj1 = 0 ; | |
6871 | char *kwnames[] = { | |
6872 | (char *) "self",(char *) "s", NULL | |
6873 | }; | |
6874 | ||
6875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6878 | { | |
6879 | arg2 = wxString_in_helper(obj1); | |
6880 | if (arg2 == NULL) SWIG_fail; | |
6881 | temp2 = true; | |
6882 | } | |
6883 | { | |
6884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6885 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6886 | ||
6887 | wxPyEndAllowThreads(__tstate); | |
6888 | if (PyErr_Occurred()) SWIG_fail; | |
6889 | } | |
6890 | { | |
6891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6892 | } | |
6893 | { | |
6894 | if (temp2) | |
6895 | delete arg2; | |
6896 | } | |
6897 | return resultobj; | |
6898 | fail: | |
6899 | { | |
6900 | if (temp2) | |
6901 | delete arg2; | |
6902 | } | |
6903 | return NULL; | |
6904 | } | |
6905 | ||
6906 | ||
6907 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { | |
6908 | PyObject *resultobj; | |
6909 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6910 | wxString result; | |
6911 | PyObject * obj0 = 0 ; | |
6912 | char *kwnames[] = { | |
6913 | (char *) "self", NULL | |
6914 | }; | |
6915 | ||
6916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6919 | { | |
6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6921 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6922 | ||
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) SWIG_fail; | |
6925 | } | |
6926 | { | |
6927 | #if wxUSE_UNICODE | |
6928 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6929 | #else | |
6930 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6931 | #endif | |
6932 | } | |
6933 | return resultobj; | |
6934 | fail: | |
6935 | return NULL; | |
6936 | } | |
6937 | ||
6938 | ||
6939 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { | |
6940 | PyObject *obj; | |
6941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6942 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6943 | Py_INCREF(obj); | |
6944 | return Py_BuildValue((char *)""); | |
6945 | } | |
6946 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
6947 | PyObject *resultobj; | |
6948 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6949 | wxString *arg2 = (wxString *) 0 ; | |
6950 | bool temp2 = false ; | |
6951 | PyObject * obj0 = 0 ; | |
6952 | PyObject * obj1 = 0 ; | |
6953 | char *kwnames[] = { | |
6954 | (char *) "self",(char *) "facename", NULL | |
6955 | }; | |
6956 | ||
6957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6960 | { | |
6961 | arg2 = wxString_in_helper(obj1); | |
6962 | if (arg2 == NULL) SWIG_fail; | |
6963 | temp2 = true; | |
6964 | } | |
6965 | if (arg1) (arg1)->facename = *arg2; | |
6966 | ||
6967 | Py_INCREF(Py_None); resultobj = Py_None; | |
6968 | { | |
6969 | if (temp2) | |
6970 | delete arg2; | |
6971 | } | |
6972 | return resultobj; | |
6973 | fail: | |
6974 | { | |
6975 | if (temp2) | |
6976 | delete arg2; | |
6977 | } | |
6978 | return NULL; | |
6979 | } | |
6980 | ||
6981 | ||
6982 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
6983 | PyObject *resultobj; | |
6984 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6985 | wxString *result; | |
6986 | PyObject * obj0 = 0 ; | |
6987 | char *kwnames[] = { | |
6988 | (char *) "self", NULL | |
6989 | }; | |
6990 | ||
6991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6994 | result = (wxString *)& ((arg1)->facename); | |
6995 | ||
6996 | { | |
6997 | #if wxUSE_UNICODE | |
6998 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6999 | #else | |
7000 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7001 | #endif | |
7002 | } | |
7003 | return resultobj; | |
7004 | fail: | |
7005 | return NULL; | |
7006 | } | |
7007 | ||
7008 | ||
7009 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
7010 | PyObject *resultobj; | |
7011 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7012 | int arg2 ; | |
7013 | PyObject * obj0 = 0 ; | |
7014 | PyObject * obj1 = 0 ; | |
7015 | char *kwnames[] = { | |
7016 | (char *) "self",(char *) "encoding", NULL | |
7017 | }; | |
7018 | ||
7019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; | |
7020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7022 | arg2 = (int)SWIG_As_int(obj1); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
7025 | ||
7026 | Py_INCREF(Py_None); resultobj = Py_None; | |
7027 | return resultobj; | |
7028 | fail: | |
7029 | return NULL; | |
7030 | } | |
7031 | ||
7032 | ||
7033 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
7034 | PyObject *resultobj; | |
7035 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7036 | int result; | |
7037 | PyObject * obj0 = 0 ; | |
7038 | char *kwnames[] = { | |
7039 | (char *) "self", NULL | |
7040 | }; | |
7041 | ||
7042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
7043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7045 | result = (int) ((arg1)->encoding); | |
7046 | ||
7047 | resultobj = SWIG_From_int((int)result); | |
7048 | return resultobj; | |
7049 | fail: | |
7050 | return NULL; | |
7051 | } | |
7052 | ||
7053 | ||
7054 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
7055 | PyObject *resultobj; | |
7056 | wxNativeEncodingInfo *result; | |
7057 | char *kwnames[] = { | |
7058 | NULL | |
7059 | }; | |
7060 | ||
7061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7062 | { | |
7063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7064 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7065 | ||
7066 | wxPyEndAllowThreads(__tstate); | |
7067 | if (PyErr_Occurred()) SWIG_fail; | |
7068 | } | |
7069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
7070 | return resultobj; | |
7071 | fail: | |
7072 | return NULL; | |
7073 | } | |
7074 | ||
7075 | ||
7076 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
7077 | PyObject *resultobj; | |
7078 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7079 | PyObject * obj0 = 0 ; | |
7080 | char *kwnames[] = { | |
7081 | (char *) "self", NULL | |
7082 | }; | |
7083 | ||
7084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
7085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | delete arg1; | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
7093 | } | |
7094 | Py_INCREF(Py_None); resultobj = Py_None; | |
7095 | return resultobj; | |
7096 | fail: | |
7097 | return NULL; | |
7098 | } | |
7099 | ||
7100 | ||
7101 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { | |
7102 | PyObject *resultobj; | |
7103 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7104 | wxString *arg2 = 0 ; | |
7105 | bool result; | |
7106 | bool temp2 = false ; | |
7107 | PyObject * obj0 = 0 ; | |
7108 | PyObject * obj1 = 0 ; | |
7109 | char *kwnames[] = { | |
7110 | (char *) "self",(char *) "s", NULL | |
7111 | }; | |
7112 | ||
7113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7116 | { | |
7117 | arg2 = wxString_in_helper(obj1); | |
7118 | if (arg2 == NULL) SWIG_fail; | |
7119 | temp2 = true; | |
7120 | } | |
7121 | { | |
7122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7123 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7124 | ||
7125 | wxPyEndAllowThreads(__tstate); | |
7126 | if (PyErr_Occurred()) SWIG_fail; | |
7127 | } | |
7128 | { | |
7129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7130 | } | |
7131 | { | |
7132 | if (temp2) | |
7133 | delete arg2; | |
7134 | } | |
7135 | return resultobj; | |
7136 | fail: | |
7137 | { | |
7138 | if (temp2) | |
7139 | delete arg2; | |
7140 | } | |
7141 | return NULL; | |
7142 | } | |
7143 | ||
7144 | ||
7145 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { | |
7146 | PyObject *resultobj; | |
7147 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7148 | wxString result; | |
7149 | PyObject * obj0 = 0 ; | |
7150 | char *kwnames[] = { | |
7151 | (char *) "self", NULL | |
7152 | }; | |
7153 | ||
7154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
7155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7157 | { | |
7158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7159 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7160 | ||
7161 | wxPyEndAllowThreads(__tstate); | |
7162 | if (PyErr_Occurred()) SWIG_fail; | |
7163 | } | |
7164 | { | |
7165 | #if wxUSE_UNICODE | |
7166 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7167 | #else | |
7168 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7169 | #endif | |
7170 | } | |
7171 | return resultobj; | |
7172 | fail: | |
7173 | return NULL; | |
7174 | } | |
7175 | ||
7176 | ||
7177 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { | |
7178 | PyObject *obj; | |
7179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7180 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7181 | Py_INCREF(obj); | |
7182 | return Py_BuildValue((char *)""); | |
7183 | } | |
7184 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
7185 | PyObject *resultobj; | |
7186 | int arg1 ; | |
7187 | wxNativeEncodingInfo *result; | |
7188 | PyObject * obj0 = 0 ; | |
7189 | char *kwnames[] = { | |
7190 | (char *) "encoding", NULL | |
7191 | }; | |
7192 | ||
7193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; | |
7194 | arg1 = (int)SWIG_As_int(obj0); | |
7195 | if (PyErr_Occurred()) SWIG_fail; | |
7196 | { | |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
7204 | return resultobj; | |
7205 | fail: | |
7206 | return NULL; | |
7207 | } | |
7208 | ||
7209 | ||
7210 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
7211 | PyObject *resultobj; | |
7212 | wxNativeEncodingInfo *arg1 = 0 ; | |
7213 | bool result; | |
7214 | PyObject * obj0 = 0 ; | |
7215 | char *kwnames[] = { | |
7216 | (char *) "info", NULL | |
7217 | }; | |
7218 | ||
7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
7220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7221 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7222 | SWIG_fail; | |
7223 | if (arg1 == NULL) { | |
7224 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7225 | SWIG_fail; | |
7226 | } | |
7227 | { | |
7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7229 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7230 | ||
7231 | wxPyEndAllowThreads(__tstate); | |
7232 | if (PyErr_Occurred()) SWIG_fail; | |
7233 | } | |
7234 | { | |
7235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7236 | } | |
7237 | return resultobj; | |
7238 | fail: | |
7239 | return NULL; | |
7240 | } | |
7241 | ||
7242 | ||
7243 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject *resultobj; | |
7245 | wxFontMapper *result; | |
7246 | char *kwnames[] = { | |
7247 | NULL | |
7248 | }; | |
7249 | ||
7250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7251 | { | |
7252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7253 | result = (wxFontMapper *)new wxFontMapper(); | |
7254 | ||
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
7265 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { | |
7266 | PyObject *resultobj; | |
7267 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7268 | PyObject * obj0 = 0 ; | |
7269 | char *kwnames[] = { | |
7270 | (char *) "self", NULL | |
7271 | }; | |
7272 | ||
7273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
7274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7276 | { | |
7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7278 | delete arg1; | |
7279 | ||
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) SWIG_fail; | |
7282 | } | |
7283 | Py_INCREF(Py_None); resultobj = Py_None; | |
7284 | return resultobj; | |
7285 | fail: | |
7286 | return NULL; | |
7287 | } | |
7288 | ||
7289 | ||
7290 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { | |
7291 | PyObject *resultobj; | |
7292 | wxFontMapper *result; | |
7293 | char *kwnames[] = { | |
7294 | NULL | |
7295 | }; | |
7296 | ||
7297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7298 | { | |
7299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7300 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7301 | ||
7302 | wxPyEndAllowThreads(__tstate); | |
7303 | if (PyErr_Occurred()) SWIG_fail; | |
7304 | } | |
7305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | return NULL; | |
7309 | } | |
7310 | ||
7311 | ||
7312 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
7313 | PyObject *resultobj; | |
7314 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7315 | wxFontMapper *result; | |
7316 | PyObject * obj0 = 0 ; | |
7317 | char *kwnames[] = { | |
7318 | (char *) "mapper", NULL | |
7319 | }; | |
7320 | ||
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
7322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7324 | { | |
7325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7326 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7327 | ||
7328 | wxPyEndAllowThreads(__tstate); | |
7329 | if (PyErr_Occurred()) SWIG_fail; | |
7330 | } | |
7331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7332 | return resultobj; | |
7333 | fail: | |
7334 | return NULL; | |
7335 | } | |
7336 | ||
7337 | ||
7338 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
7339 | PyObject *resultobj; | |
7340 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7341 | wxString *arg2 = 0 ; | |
7342 | bool arg3 = (bool) true ; | |
7343 | int result; | |
7344 | bool temp2 = false ; | |
7345 | PyObject * obj0 = 0 ; | |
7346 | PyObject * obj1 = 0 ; | |
7347 | PyObject * obj2 = 0 ; | |
7348 | char *kwnames[] = { | |
7349 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7350 | }; | |
7351 | ||
7352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7355 | { | |
7356 | arg2 = wxString_in_helper(obj1); | |
7357 | if (arg2 == NULL) SWIG_fail; | |
7358 | temp2 = true; | |
7359 | } | |
7360 | if (obj2) { | |
7361 | arg3 = (bool)SWIG_As_bool(obj2); | |
7362 | if (PyErr_Occurred()) SWIG_fail; | |
7363 | } | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | resultobj = SWIG_From_int((int)result); | |
7372 | { | |
7373 | if (temp2) | |
7374 | delete arg2; | |
7375 | } | |
7376 | return resultobj; | |
7377 | fail: | |
7378 | { | |
7379 | if (temp2) | |
7380 | delete arg2; | |
7381 | } | |
7382 | return NULL; | |
7383 | } | |
7384 | ||
7385 | ||
7386 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
7387 | PyObject *resultobj; | |
7388 | size_t result; | |
7389 | char *kwnames[] = { | |
7390 | NULL | |
7391 | }; | |
7392 | ||
7393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7394 | { | |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7397 | ||
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
7401 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); | |
7402 | return resultobj; | |
7403 | fail: | |
7404 | return NULL; | |
7405 | } | |
7406 | ||
7407 | ||
7408 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject *resultobj; | |
7410 | size_t arg1 ; | |
7411 | int result; | |
7412 | PyObject * obj0 = 0 ; | |
7413 | char *kwnames[] = { | |
7414 | (char *) "n", NULL | |
7415 | }; | |
7416 | ||
7417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
7418 | arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | { | |
7421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7422 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7423 | ||
7424 | wxPyEndAllowThreads(__tstate); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | resultobj = SWIG_From_int((int)result); | |
7428 | return resultobj; | |
7429 | fail: | |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
7434 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject *resultobj; | |
7436 | int arg1 ; | |
7437 | wxString result; | |
7438 | PyObject * obj0 = 0 ; | |
7439 | char *kwnames[] = { | |
7440 | (char *) "encoding", NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; | |
7444 | arg1 = (int)SWIG_As_int(obj0); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | { | |
7447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7448 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7449 | ||
7450 | wxPyEndAllowThreads(__tstate); | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | } | |
7453 | { | |
7454 | #if wxUSE_UNICODE | |
7455 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7456 | #else | |
7457 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7458 | #endif | |
7459 | } | |
7460 | return resultobj; | |
7461 | fail: | |
7462 | return NULL; | |
7463 | } | |
7464 | ||
7465 | ||
7466 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { | |
7467 | PyObject *resultobj; | |
7468 | int arg1 ; | |
7469 | wxString result; | |
7470 | PyObject * obj0 = 0 ; | |
7471 | char *kwnames[] = { | |
7472 | (char *) "encoding", NULL | |
7473 | }; | |
7474 | ||
7475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; | |
7476 | arg1 = (int)SWIG_As_int(obj0); | |
7477 | if (PyErr_Occurred()) SWIG_fail; | |
7478 | { | |
7479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7480 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7481 | ||
7482 | wxPyEndAllowThreads(__tstate); | |
7483 | if (PyErr_Occurred()) SWIG_fail; | |
7484 | } | |
7485 | { | |
7486 | #if wxUSE_UNICODE | |
7487 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7488 | #else | |
7489 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7490 | #endif | |
7491 | } | |
7492 | return resultobj; | |
7493 | fail: | |
7494 | return NULL; | |
7495 | } | |
7496 | ||
7497 | ||
7498 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *, PyObject *args, PyObject *kwargs) { | |
7499 | PyObject *resultobj; | |
7500 | wxString *arg1 = 0 ; | |
7501 | int result; | |
7502 | bool temp1 = false ; | |
7503 | PyObject * obj0 = 0 ; | |
7504 | char *kwnames[] = { | |
7505 | (char *) "name", NULL | |
7506 | }; | |
7507 | ||
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7509 | { | |
7510 | arg1 = wxString_in_helper(obj0); | |
7511 | if (arg1 == NULL) SWIG_fail; | |
7512 | temp1 = true; | |
7513 | } | |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | resultobj = SWIG_From_int((int)result); | |
7522 | { | |
7523 | if (temp1) | |
7524 | delete arg1; | |
7525 | } | |
7526 | return resultobj; | |
7527 | fail: | |
7528 | { | |
7529 | if (temp1) | |
7530 | delete arg1; | |
7531 | } | |
7532 | return NULL; | |
7533 | } | |
7534 | ||
7535 | ||
7536 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { | |
7537 | PyObject *resultobj; | |
7538 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7539 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7540 | PyObject * obj0 = 0 ; | |
7541 | PyObject * obj1 = 0 ; | |
7542 | char *kwnames[] = { | |
7543 | (char *) "self",(char *) "config", NULL | |
7544 | }; | |
7545 | ||
7546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7551 | { | |
7552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7553 | (arg1)->SetConfig(arg2); | |
7554 | ||
7555 | wxPyEndAllowThreads(__tstate); | |
7556 | if (PyErr_Occurred()) SWIG_fail; | |
7557 | } | |
7558 | Py_INCREF(Py_None); resultobj = Py_None; | |
7559 | return resultobj; | |
7560 | fail: | |
7561 | return NULL; | |
7562 | } | |
7563 | ||
7564 | ||
7565 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
7566 | PyObject *resultobj; | |
7567 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7568 | wxString *arg2 = 0 ; | |
7569 | bool temp2 = false ; | |
7570 | PyObject * obj0 = 0 ; | |
7571 | PyObject * obj1 = 0 ; | |
7572 | char *kwnames[] = { | |
7573 | (char *) "self",(char *) "prefix", NULL | |
7574 | }; | |
7575 | ||
7576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
7577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7579 | { | |
7580 | arg2 = wxString_in_helper(obj1); | |
7581 | if (arg2 == NULL) SWIG_fail; | |
7582 | temp2 = true; | |
7583 | } | |
7584 | { | |
7585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7586 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7587 | ||
7588 | wxPyEndAllowThreads(__tstate); | |
7589 | if (PyErr_Occurred()) SWIG_fail; | |
7590 | } | |
7591 | Py_INCREF(Py_None); resultobj = Py_None; | |
7592 | { | |
7593 | if (temp2) | |
7594 | delete arg2; | |
7595 | } | |
7596 | return resultobj; | |
7597 | fail: | |
7598 | { | |
7599 | if (temp2) | |
7600 | delete arg2; | |
7601 | } | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
7606 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { | |
7607 | PyObject *resultobj; | |
7608 | wxString result; | |
7609 | char *kwnames[] = { | |
7610 | NULL | |
7611 | }; | |
7612 | ||
7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7614 | { | |
7615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7616 | result = wxFontMapper::GetDefaultConfigPath(); | |
7617 | ||
7618 | wxPyEndAllowThreads(__tstate); | |
7619 | if (PyErr_Occurred()) SWIG_fail; | |
7620 | } | |
7621 | { | |
7622 | #if wxUSE_UNICODE | |
7623 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7624 | #else | |
7625 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7626 | #endif | |
7627 | } | |
7628 | return resultobj; | |
7629 | fail: | |
7630 | return NULL; | |
7631 | } | |
7632 | ||
7633 | ||
7634 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
7635 | PyObject *resultobj; | |
7636 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7637 | int arg2 ; | |
7638 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7639 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7640 | bool arg4 = (bool) true ; | |
7641 | PyObject *result; | |
7642 | bool temp3 = false ; | |
7643 | PyObject * obj0 = 0 ; | |
7644 | PyObject * obj1 = 0 ; | |
7645 | PyObject * obj2 = 0 ; | |
7646 | PyObject * obj3 = 0 ; | |
7647 | char *kwnames[] = { | |
7648 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7649 | }; | |
7650 | ||
7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7654 | arg2 = (int)SWIG_As_int(obj1); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | if (obj2) { | |
7657 | { | |
7658 | arg3 = wxString_in_helper(obj2); | |
7659 | if (arg3 == NULL) SWIG_fail; | |
7660 | temp3 = true; | |
7661 | } | |
7662 | } | |
7663 | if (obj3) { | |
7664 | arg4 = (bool)SWIG_As_bool(obj3); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | } | |
7667 | { | |
7668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7669 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7670 | ||
7671 | wxPyEndAllowThreads(__tstate); | |
7672 | if (PyErr_Occurred()) SWIG_fail; | |
7673 | } | |
7674 | resultobj = result; | |
7675 | { | |
7676 | if (temp3) | |
7677 | delete arg3; | |
7678 | } | |
7679 | return resultobj; | |
7680 | fail: | |
7681 | { | |
7682 | if (temp3) | |
7683 | delete arg3; | |
7684 | } | |
7685 | return NULL; | |
7686 | } | |
7687 | ||
7688 | ||
7689 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { | |
7690 | PyObject *resultobj; | |
7691 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7692 | int arg2 ; | |
7693 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7694 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7695 | bool result; | |
7696 | bool temp3 = false ; | |
7697 | PyObject * obj0 = 0 ; | |
7698 | PyObject * obj1 = 0 ; | |
7699 | PyObject * obj2 = 0 ; | |
7700 | char *kwnames[] = { | |
7701 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7702 | }; | |
7703 | ||
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7707 | arg2 = (int)SWIG_As_int(obj1); | |
7708 | if (PyErr_Occurred()) SWIG_fail; | |
7709 | if (obj2) { | |
7710 | { | |
7711 | arg3 = wxString_in_helper(obj2); | |
7712 | if (arg3 == NULL) SWIG_fail; | |
7713 | temp3 = true; | |
7714 | } | |
7715 | } | |
7716 | { | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7719 | ||
7720 | wxPyEndAllowThreads(__tstate); | |
7721 | if (PyErr_Occurred()) SWIG_fail; | |
7722 | } | |
7723 | { | |
7724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7725 | } | |
7726 | { | |
7727 | if (temp3) | |
7728 | delete arg3; | |
7729 | } | |
7730 | return resultobj; | |
7731 | fail: | |
7732 | { | |
7733 | if (temp3) | |
7734 | delete arg3; | |
7735 | } | |
7736 | return NULL; | |
7737 | } | |
7738 | ||
7739 | ||
7740 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { | |
7741 | PyObject *resultobj; | |
7742 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7743 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7744 | PyObject * obj0 = 0 ; | |
7745 | PyObject * obj1 = 0 ; | |
7746 | char *kwnames[] = { | |
7747 | (char *) "self",(char *) "parent", NULL | |
7748 | }; | |
7749 | ||
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7755 | { | |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | (arg1)->SetDialogParent(arg2); | |
7758 | ||
7759 | wxPyEndAllowThreads(__tstate); | |
7760 | if (PyErr_Occurred()) SWIG_fail; | |
7761 | } | |
7762 | Py_INCREF(Py_None); resultobj = Py_None; | |
7763 | return resultobj; | |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
7769 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { | |
7770 | PyObject *resultobj; | |
7771 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7772 | wxString *arg2 = 0 ; | |
7773 | bool temp2 = false ; | |
7774 | PyObject * obj0 = 0 ; | |
7775 | PyObject * obj1 = 0 ; | |
7776 | char *kwnames[] = { | |
7777 | (char *) "self",(char *) "title", NULL | |
7778 | }; | |
7779 | ||
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7783 | { | |
7784 | arg2 = wxString_in_helper(obj1); | |
7785 | if (arg2 == NULL) SWIG_fail; | |
7786 | temp2 = true; | |
7787 | } | |
7788 | { | |
7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7790 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7791 | ||
7792 | wxPyEndAllowThreads(__tstate); | |
7793 | if (PyErr_Occurred()) SWIG_fail; | |
7794 | } | |
7795 | Py_INCREF(Py_None); resultobj = Py_None; | |
7796 | { | |
7797 | if (temp2) | |
7798 | delete arg2; | |
7799 | } | |
7800 | return resultobj; | |
7801 | fail: | |
7802 | { | |
7803 | if (temp2) | |
7804 | delete arg2; | |
7805 | } | |
7806 | return NULL; | |
7807 | } | |
7808 | ||
7809 | ||
7810 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { | |
7811 | PyObject *obj; | |
7812 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7813 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7814 | Py_INCREF(obj); | |
7815 | return Py_BuildValue((char *)""); | |
7816 | } | |
7817 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { | |
7818 | PyObject *resultobj; | |
7819 | int arg1 ; | |
7820 | int arg2 ; | |
7821 | int arg3 ; | |
7822 | int arg4 ; | |
7823 | bool arg5 = (bool) false ; | |
7824 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
7825 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7826 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7827 | wxFont *result; | |
7828 | bool temp6 = false ; | |
7829 | PyObject * obj0 = 0 ; | |
7830 | PyObject * obj1 = 0 ; | |
7831 | PyObject * obj2 = 0 ; | |
7832 | PyObject * obj3 = 0 ; | |
7833 | PyObject * obj4 = 0 ; | |
7834 | PyObject * obj5 = 0 ; | |
7835 | PyObject * obj6 = 0 ; | |
7836 | char *kwnames[] = { | |
7837 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7838 | }; | |
7839 | ||
7840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
7841 | arg1 = (int)SWIG_As_int(obj0); | |
7842 | if (PyErr_Occurred()) SWIG_fail; | |
7843 | arg2 = (int)SWIG_As_int(obj1); | |
7844 | if (PyErr_Occurred()) SWIG_fail; | |
7845 | arg3 = (int)SWIG_As_int(obj2); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
7847 | arg4 = (int)SWIG_As_int(obj3); | |
7848 | if (PyErr_Occurred()) SWIG_fail; | |
7849 | if (obj4) { | |
7850 | arg5 = (bool)SWIG_As_bool(obj4); | |
7851 | if (PyErr_Occurred()) SWIG_fail; | |
7852 | } | |
7853 | if (obj5) { | |
7854 | { | |
7855 | arg6 = wxString_in_helper(obj5); | |
7856 | if (arg6 == NULL) SWIG_fail; | |
7857 | temp6 = true; | |
7858 | } | |
7859 | } | |
7860 | if (obj6) { | |
7861 | arg7 = (int)SWIG_As_int(obj6); | |
7862 | if (PyErr_Occurred()) SWIG_fail; | |
7863 | } | |
7864 | { | |
7865 | if (!wxPyCheckForApp()) SWIG_fail; | |
7866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7867 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7868 | ||
7869 | wxPyEndAllowThreads(__tstate); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | } | |
7872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7873 | { | |
7874 | if (temp6) | |
7875 | delete arg6; | |
7876 | } | |
7877 | return resultobj; | |
7878 | fail: | |
7879 | { | |
7880 | if (temp6) | |
7881 | delete arg6; | |
7882 | } | |
7883 | return NULL; | |
7884 | } | |
7885 | ||
7886 | ||
7887 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { | |
7888 | PyObject *resultobj; | |
7889 | wxFont *arg1 = (wxFont *) 0 ; | |
7890 | PyObject * obj0 = 0 ; | |
7891 | char *kwnames[] = { | |
7892 | (char *) "self", NULL | |
7893 | }; | |
7894 | ||
7895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7898 | { | |
7899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7900 | delete arg1; | |
7901 | ||
7902 | wxPyEndAllowThreads(__tstate); | |
7903 | if (PyErr_Occurred()) SWIG_fail; | |
7904 | } | |
7905 | Py_INCREF(Py_None); resultobj = Py_None; | |
7906 | return resultobj; | |
7907 | fail: | |
7908 | return NULL; | |
7909 | } | |
7910 | ||
7911 | ||
7912 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
7913 | PyObject *resultobj; | |
7914 | wxNativeFontInfo *arg1 = 0 ; | |
7915 | wxFont *result; | |
7916 | PyObject * obj0 = 0 ; | |
7917 | char *kwnames[] = { | |
7918 | (char *) "info", NULL | |
7919 | }; | |
7920 | ||
7921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7923 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7924 | SWIG_fail; | |
7925 | if (arg1 == NULL) { | |
7926 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7927 | SWIG_fail; | |
7928 | } | |
7929 | { | |
7930 | if (!wxPyCheckForApp()) SWIG_fail; | |
7931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7932 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7933 | ||
7934 | wxPyEndAllowThreads(__tstate); | |
7935 | if (PyErr_Occurred()) SWIG_fail; | |
7936 | } | |
7937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7938 | return resultobj; | |
7939 | fail: | |
7940 | return NULL; | |
7941 | } | |
7942 | ||
7943 | ||
7944 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { | |
7945 | PyObject *resultobj; | |
7946 | wxString *arg1 = 0 ; | |
7947 | wxFont *result; | |
7948 | bool temp1 = false ; | |
7949 | PyObject * obj0 = 0 ; | |
7950 | char *kwnames[] = { | |
7951 | (char *) "info", NULL | |
7952 | }; | |
7953 | ||
7954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7955 | { | |
7956 | arg1 = wxString_in_helper(obj0); | |
7957 | if (arg1 == NULL) SWIG_fail; | |
7958 | temp1 = true; | |
7959 | } | |
7960 | { | |
7961 | if (!wxPyCheckForApp()) SWIG_fail; | |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7963 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7964 | ||
7965 | wxPyEndAllowThreads(__tstate); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | } | |
7968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7969 | { | |
7970 | if (temp1) | |
7971 | delete arg1; | |
7972 | } | |
7973 | return resultobj; | |
7974 | fail: | |
7975 | { | |
7976 | if (temp1) | |
7977 | delete arg1; | |
7978 | } | |
7979 | return NULL; | |
7980 | } | |
7981 | ||
7982 | ||
7983 | static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) { | |
7984 | PyObject *resultobj; | |
7985 | int arg1 ; | |
7986 | int arg2 ; | |
7987 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7988 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7989 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7990 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7991 | wxFont *result; | |
7992 | bool temp4 = false ; | |
7993 | PyObject * obj0 = 0 ; | |
7994 | PyObject * obj1 = 0 ; | |
7995 | PyObject * obj2 = 0 ; | |
7996 | PyObject * obj3 = 0 ; | |
7997 | PyObject * obj4 = 0 ; | |
7998 | char *kwnames[] = { | |
7999 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
8000 | }; | |
8001 | ||
8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8003 | arg1 = (int)SWIG_As_int(obj0); | |
8004 | if (PyErr_Occurred()) SWIG_fail; | |
8005 | arg2 = (int)SWIG_As_int(obj1); | |
8006 | if (PyErr_Occurred()) SWIG_fail; | |
8007 | if (obj2) { | |
8008 | arg3 = (int)SWIG_As_int(obj2); | |
8009 | if (PyErr_Occurred()) SWIG_fail; | |
8010 | } | |
8011 | if (obj3) { | |
8012 | { | |
8013 | arg4 = wxString_in_helper(obj3); | |
8014 | if (arg4 == NULL) SWIG_fail; | |
8015 | temp4 = true; | |
8016 | } | |
8017 | } | |
8018 | if (obj4) { | |
8019 | arg5 = (int)SWIG_As_int(obj4); | |
8020 | if (PyErr_Occurred()) SWIG_fail; | |
8021 | } | |
8022 | { | |
8023 | if (!wxPyCheckForApp()) SWIG_fail; | |
8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8025 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8026 | ||
8027 | wxPyEndAllowThreads(__tstate); | |
8028 | if (PyErr_Occurred()) SWIG_fail; | |
8029 | } | |
8030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8031 | { | |
8032 | if (temp4) | |
8033 | delete arg4; | |
8034 | } | |
8035 | return resultobj; | |
8036 | fail: | |
8037 | { | |
8038 | if (temp4) | |
8039 | delete arg4; | |
8040 | } | |
8041 | return NULL; | |
8042 | } | |
8043 | ||
8044 | ||
8045 | static PyObject *_wrap_new_FontFromPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
8046 | PyObject *resultobj; | |
8047 | wxSize *arg1 = 0 ; | |
8048 | int arg2 ; | |
8049 | int arg3 ; | |
8050 | int arg4 ; | |
8051 | bool arg5 = (bool) false ; | |
8052 | wxString const &arg6_defvalue = wxEmptyString ; | |
8053 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8054 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8055 | wxFont *result; | |
8056 | wxSize temp1 ; | |
8057 | bool temp6 = false ; | |
8058 | PyObject * obj0 = 0 ; | |
8059 | PyObject * obj1 = 0 ; | |
8060 | PyObject * obj2 = 0 ; | |
8061 | PyObject * obj3 = 0 ; | |
8062 | PyObject * obj4 = 0 ; | |
8063 | PyObject * obj5 = 0 ; | |
8064 | PyObject * obj6 = 0 ; | |
8065 | char *kwnames[] = { | |
8066 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
8067 | }; | |
8068 | ||
8069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8070 | { | |
8071 | arg1 = &temp1; | |
8072 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
8073 | } | |
8074 | arg2 = (int)SWIG_As_int(obj1); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | arg3 = (int)SWIG_As_int(obj2); | |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
8078 | arg4 = (int)SWIG_As_int(obj3); | |
8079 | if (PyErr_Occurred()) SWIG_fail; | |
8080 | if (obj4) { | |
8081 | arg5 = (bool)SWIG_As_bool(obj4); | |
8082 | if (PyErr_Occurred()) SWIG_fail; | |
8083 | } | |
8084 | if (obj5) { | |
8085 | { | |
8086 | arg6 = wxString_in_helper(obj5); | |
8087 | if (arg6 == NULL) SWIG_fail; | |
8088 | temp6 = true; | |
8089 | } | |
8090 | } | |
8091 | if (obj6) { | |
8092 | arg7 = (int)SWIG_As_int(obj6); | |
8093 | if (PyErr_Occurred()) SWIG_fail; | |
8094 | } | |
8095 | { | |
8096 | if (!wxPyCheckForApp()) SWIG_fail; | |
8097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8098 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8099 | ||
8100 | wxPyEndAllowThreads(__tstate); | |
8101 | if (PyErr_Occurred()) SWIG_fail; | |
8102 | } | |
8103 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8104 | { | |
8105 | if (temp6) | |
8106 | delete arg6; | |
8107 | } | |
8108 | return resultobj; | |
8109 | fail: | |
8110 | { | |
8111 | if (temp6) | |
8112 | delete arg6; | |
8113 | } | |
8114 | return NULL; | |
8115 | } | |
8116 | ||
8117 | ||
8118 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
8119 | PyObject *resultobj; | |
8120 | wxFont *arg1 = (wxFont *) 0 ; | |
8121 | bool result; | |
8122 | PyObject * obj0 = 0 ; | |
8123 | char *kwnames[] = { | |
8124 | (char *) "self", NULL | |
8125 | }; | |
8126 | ||
8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
8128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8130 | { | |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8133 | ||
8134 | wxPyEndAllowThreads(__tstate); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | } | |
8137 | { | |
8138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8139 | } | |
8140 | return resultobj; | |
8141 | fail: | |
8142 | return NULL; | |
8143 | } | |
8144 | ||
8145 | ||
8146 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { | |
8147 | PyObject *resultobj; | |
8148 | wxFont *arg1 = (wxFont *) 0 ; | |
8149 | wxFont *arg2 = (wxFont *) 0 ; | |
8150 | bool result; | |
8151 | PyObject * obj0 = 0 ; | |
8152 | PyObject * obj1 = 0 ; | |
8153 | char *kwnames[] = { | |
8154 | (char *) "self",(char *) "other", NULL | |
8155 | }; | |
8156 | ||
8157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
8158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8160 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8162 | { | |
8163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8164 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
8165 | ||
8166 | wxPyEndAllowThreads(__tstate); | |
8167 | if (PyErr_Occurred()) SWIG_fail; | |
8168 | } | |
8169 | { | |
8170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8171 | } | |
8172 | return resultobj; | |
8173 | fail: | |
8174 | return NULL; | |
8175 | } | |
8176 | ||
8177 | ||
8178 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { | |
8179 | PyObject *resultobj; | |
8180 | wxFont *arg1 = (wxFont *) 0 ; | |
8181 | wxFont *arg2 = (wxFont *) 0 ; | |
8182 | bool result; | |
8183 | PyObject * obj0 = 0 ; | |
8184 | PyObject * obj1 = 0 ; | |
8185 | char *kwnames[] = { | |
8186 | (char *) "self",(char *) "other", NULL | |
8187 | }; | |
8188 | ||
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
8190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8194 | { | |
8195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8196 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) SWIG_fail; | |
8200 | } | |
8201 | { | |
8202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8203 | } | |
8204 | return resultobj; | |
8205 | fail: | |
8206 | return NULL; | |
8207 | } | |
8208 | ||
8209 | ||
8210 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
8211 | PyObject *resultobj; | |
8212 | wxFont *arg1 = (wxFont *) 0 ; | |
8213 | int result; | |
8214 | PyObject * obj0 = 0 ; | |
8215 | char *kwnames[] = { | |
8216 | (char *) "self", NULL | |
8217 | }; | |
8218 | ||
8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
8220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8222 | { | |
8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8224 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8225 | ||
8226 | wxPyEndAllowThreads(__tstate); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
8228 | } | |
8229 | resultobj = SWIG_From_int((int)result); | |
8230 | return resultobj; | |
8231 | fail: | |
8232 | return NULL; | |
8233 | } | |
8234 | ||
8235 | ||
8236 | static PyObject *_wrap_Font_GetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
8237 | PyObject *resultobj; | |
8238 | wxFont *arg1 = (wxFont *) 0 ; | |
8239 | wxSize result; | |
8240 | PyObject * obj0 = 0 ; | |
8241 | char *kwnames[] = { | |
8242 | (char *) "self", NULL | |
8243 | }; | |
8244 | ||
8245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPixelSize",kwnames,&obj0)) goto fail; | |
8246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8248 | { | |
8249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8250 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
8251 | ||
8252 | wxPyEndAllowThreads(__tstate); | |
8253 | if (PyErr_Occurred()) SWIG_fail; | |
8254 | } | |
8255 | { | |
8256 | wxSize * resultptr; | |
8257 | resultptr = new wxSize((wxSize &) result); | |
8258 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
8259 | } | |
8260 | return resultobj; | |
8261 | fail: | |
8262 | return NULL; | |
8263 | } | |
8264 | ||
8265 | ||
8266 | static PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *, PyObject *args, PyObject *kwargs) { | |
8267 | PyObject *resultobj; | |
8268 | wxFont *arg1 = (wxFont *) 0 ; | |
8269 | bool result; | |
8270 | PyObject * obj0 = 0 ; | |
8271 | char *kwnames[] = { | |
8272 | (char *) "self", NULL | |
8273 | }; | |
8274 | ||
8275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsUsingSizeInPixels",kwnames,&obj0)) goto fail; | |
8276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8285 | { | |
8286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8287 | } | |
8288 | return resultobj; | |
8289 | fail: | |
8290 | return NULL; | |
8291 | } | |
8292 | ||
8293 | ||
8294 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject *resultobj; | |
8296 | wxFont *arg1 = (wxFont *) 0 ; | |
8297 | int result; | |
8298 | PyObject * obj0 = 0 ; | |
8299 | char *kwnames[] = { | |
8300 | (char *) "self", NULL | |
8301 | }; | |
8302 | ||
8303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
8304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8306 | { | |
8307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8308 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8309 | ||
8310 | wxPyEndAllowThreads(__tstate); | |
8311 | if (PyErr_Occurred()) SWIG_fail; | |
8312 | } | |
8313 | resultobj = SWIG_From_int((int)result); | |
8314 | return resultobj; | |
8315 | fail: | |
8316 | return NULL; | |
8317 | } | |
8318 | ||
8319 | ||
8320 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
8321 | PyObject *resultobj; | |
8322 | wxFont *arg1 = (wxFont *) 0 ; | |
8323 | int result; | |
8324 | PyObject * obj0 = 0 ; | |
8325 | char *kwnames[] = { | |
8326 | (char *) "self", NULL | |
8327 | }; | |
8328 | ||
8329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
8330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8332 | { | |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8335 | ||
8336 | wxPyEndAllowThreads(__tstate); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
8339 | resultobj = SWIG_From_int((int)result); | |
8340 | return resultobj; | |
8341 | fail: | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
8346 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject *resultobj; | |
8348 | wxFont *arg1 = (wxFont *) 0 ; | |
8349 | int result; | |
8350 | PyObject * obj0 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "self", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
8356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | resultobj = SWIG_From_int((int)result); | |
8366 | return resultobj; | |
8367 | fail: | |
8368 | return NULL; | |
8369 | } | |
8370 | ||
8371 | ||
8372 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { | |
8373 | PyObject *resultobj; | |
8374 | wxFont *arg1 = (wxFont *) 0 ; | |
8375 | bool result; | |
8376 | PyObject * obj0 = 0 ; | |
8377 | char *kwnames[] = { | |
8378 | (char *) "self", NULL | |
8379 | }; | |
8380 | ||
8381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
8382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8384 | { | |
8385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8386 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8387 | ||
8388 | wxPyEndAllowThreads(__tstate); | |
8389 | if (PyErr_Occurred()) SWIG_fail; | |
8390 | } | |
8391 | { | |
8392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8393 | } | |
8394 | return resultobj; | |
8395 | fail: | |
8396 | return NULL; | |
8397 | } | |
8398 | ||
8399 | ||
8400 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { | |
8401 | PyObject *resultobj; | |
8402 | wxFont *arg1 = (wxFont *) 0 ; | |
8403 | wxString result; | |
8404 | PyObject * obj0 = 0 ; | |
8405 | char *kwnames[] = { | |
8406 | (char *) "self", NULL | |
8407 | }; | |
8408 | ||
8409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
8410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8412 | { | |
8413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8414 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8415 | ||
8416 | wxPyEndAllowThreads(__tstate); | |
8417 | if (PyErr_Occurred()) SWIG_fail; | |
8418 | } | |
8419 | { | |
8420 | #if wxUSE_UNICODE | |
8421 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8422 | #else | |
8423 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8424 | #endif | |
8425 | } | |
8426 | return resultobj; | |
8427 | fail: | |
8428 | return NULL; | |
8429 | } | |
8430 | ||
8431 | ||
8432 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
8433 | PyObject *resultobj; | |
8434 | wxFont *arg1 = (wxFont *) 0 ; | |
8435 | int result; | |
8436 | PyObject * obj0 = 0 ; | |
8437 | char *kwnames[] = { | |
8438 | (char *) "self", NULL | |
8439 | }; | |
8440 | ||
8441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
8442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8444 | { | |
8445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8446 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8447 | ||
8448 | wxPyEndAllowThreads(__tstate); | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | } | |
8451 | resultobj = SWIG_From_int((int)result); | |
8452 | return resultobj; | |
8453 | fail: | |
8454 | return NULL; | |
8455 | } | |
8456 | ||
8457 | ||
8458 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
8459 | PyObject *resultobj; | |
8460 | wxFont *arg1 = (wxFont *) 0 ; | |
8461 | wxNativeFontInfo *result; | |
8462 | PyObject * obj0 = 0 ; | |
8463 | char *kwnames[] = { | |
8464 | (char *) "self", NULL | |
8465 | }; | |
8466 | ||
8467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
8468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8470 | { | |
8471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8472 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8473 | ||
8474 | wxPyEndAllowThreads(__tstate); | |
8475 | if (PyErr_Occurred()) SWIG_fail; | |
8476 | } | |
8477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); | |
8478 | return resultobj; | |
8479 | fail: | |
8480 | return NULL; | |
8481 | } | |
8482 | ||
8483 | ||
8484 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
8485 | PyObject *resultobj; | |
8486 | wxFont *arg1 = (wxFont *) 0 ; | |
8487 | bool result; | |
8488 | PyObject * obj0 = 0 ; | |
8489 | char *kwnames[] = { | |
8490 | (char *) "self", NULL | |
8491 | }; | |
8492 | ||
8493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
8494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8496 | { | |
8497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8498 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8499 | ||
8500 | wxPyEndAllowThreads(__tstate); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
8503 | { | |
8504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8505 | } | |
8506 | return resultobj; | |
8507 | fail: | |
8508 | return NULL; | |
8509 | } | |
8510 | ||
8511 | ||
8512 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { | |
8513 | PyObject *resultobj; | |
8514 | wxFont *arg1 = (wxFont *) 0 ; | |
8515 | wxString result; | |
8516 | PyObject * obj0 = 0 ; | |
8517 | char *kwnames[] = { | |
8518 | (char *) "self", NULL | |
8519 | }; | |
8520 | ||
8521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
8522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8524 | { | |
8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8526 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8527 | ||
8528 | wxPyEndAllowThreads(__tstate); | |
8529 | if (PyErr_Occurred()) SWIG_fail; | |
8530 | } | |
8531 | { | |
8532 | #if wxUSE_UNICODE | |
8533 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8534 | #else | |
8535 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8536 | #endif | |
8537 | } | |
8538 | return resultobj; | |
8539 | fail: | |
8540 | return NULL; | |
8541 | } | |
8542 | ||
8543 | ||
8544 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { | |
8545 | PyObject *resultobj; | |
8546 | wxFont *arg1 = (wxFont *) 0 ; | |
8547 | wxString result; | |
8548 | PyObject * obj0 = 0 ; | |
8549 | char *kwnames[] = { | |
8550 | (char *) "self", NULL | |
8551 | }; | |
8552 | ||
8553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
8554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8556 | { | |
8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8558 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8559 | ||
8560 | wxPyEndAllowThreads(__tstate); | |
8561 | if (PyErr_Occurred()) SWIG_fail; | |
8562 | } | |
8563 | { | |
8564 | #if wxUSE_UNICODE | |
8565 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8566 | #else | |
8567 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8568 | #endif | |
8569 | } | |
8570 | return resultobj; | |
8571 | fail: | |
8572 | return NULL; | |
8573 | } | |
8574 | ||
8575 | ||
8576 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
8577 | PyObject *resultobj; | |
8578 | wxFont *arg1 = (wxFont *) 0 ; | |
8579 | int arg2 ; | |
8580 | PyObject * obj0 = 0 ; | |
8581 | PyObject * obj1 = 0 ; | |
8582 | char *kwnames[] = { | |
8583 | (char *) "self",(char *) "pointSize", NULL | |
8584 | }; | |
8585 | ||
8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
8587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8589 | arg2 = (int)SWIG_As_int(obj1); | |
8590 | if (PyErr_Occurred()) SWIG_fail; | |
8591 | { | |
8592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8593 | (arg1)->SetPointSize(arg2); | |
8594 | ||
8595 | wxPyEndAllowThreads(__tstate); | |
8596 | if (PyErr_Occurred()) SWIG_fail; | |
8597 | } | |
8598 | Py_INCREF(Py_None); resultobj = Py_None; | |
8599 | return resultobj; | |
8600 | fail: | |
8601 | return NULL; | |
8602 | } | |
8603 | ||
8604 | ||
8605 | static PyObject *_wrap_Font_SetPixelSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
8606 | PyObject *resultobj; | |
8607 | wxFont *arg1 = (wxFont *) 0 ; | |
8608 | wxSize *arg2 = 0 ; | |
8609 | wxSize temp2 ; | |
8610 | PyObject * obj0 = 0 ; | |
8611 | PyObject * obj1 = 0 ; | |
8612 | char *kwnames[] = { | |
8613 | (char *) "self",(char *) "pixelSize", NULL | |
8614 | }; | |
8615 | ||
8616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) goto fail; | |
8617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8619 | { | |
8620 | arg2 = &temp2; | |
8621 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8622 | } | |
8623 | { | |
8624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8625 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
8626 | ||
8627 | wxPyEndAllowThreads(__tstate); | |
8628 | if (PyErr_Occurred()) SWIG_fail; | |
8629 | } | |
8630 | Py_INCREF(Py_None); resultobj = Py_None; | |
8631 | return resultobj; | |
8632 | fail: | |
8633 | return NULL; | |
8634 | } | |
8635 | ||
8636 | ||
8637 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { | |
8638 | PyObject *resultobj; | |
8639 | wxFont *arg1 = (wxFont *) 0 ; | |
8640 | int arg2 ; | |
8641 | PyObject * obj0 = 0 ; | |
8642 | PyObject * obj1 = 0 ; | |
8643 | char *kwnames[] = { | |
8644 | (char *) "self",(char *) "family", NULL | |
8645 | }; | |
8646 | ||
8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
8648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8650 | arg2 = (int)SWIG_As_int(obj1); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | { | |
8653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8654 | (arg1)->SetFamily(arg2); | |
8655 | ||
8656 | wxPyEndAllowThreads(__tstate); | |
8657 | if (PyErr_Occurred()) SWIG_fail; | |
8658 | } | |
8659 | Py_INCREF(Py_None); resultobj = Py_None; | |
8660 | return resultobj; | |
8661 | fail: | |
8662 | return NULL; | |
8663 | } | |
8664 | ||
8665 | ||
8666 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { | |
8667 | PyObject *resultobj; | |
8668 | wxFont *arg1 = (wxFont *) 0 ; | |
8669 | int arg2 ; | |
8670 | PyObject * obj0 = 0 ; | |
8671 | PyObject * obj1 = 0 ; | |
8672 | char *kwnames[] = { | |
8673 | (char *) "self",(char *) "style", NULL | |
8674 | }; | |
8675 | ||
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
8677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8679 | arg2 = (int)SWIG_As_int(obj1); | |
8680 | if (PyErr_Occurred()) SWIG_fail; | |
8681 | { | |
8682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8683 | (arg1)->SetStyle(arg2); | |
8684 | ||
8685 | wxPyEndAllowThreads(__tstate); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | } | |
8688 | Py_INCREF(Py_None); resultobj = Py_None; | |
8689 | return resultobj; | |
8690 | fail: | |
8691 | return NULL; | |
8692 | } | |
8693 | ||
8694 | ||
8695 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
8696 | PyObject *resultobj; | |
8697 | wxFont *arg1 = (wxFont *) 0 ; | |
8698 | int arg2 ; | |
8699 | PyObject * obj0 = 0 ; | |
8700 | PyObject * obj1 = 0 ; | |
8701 | char *kwnames[] = { | |
8702 | (char *) "self",(char *) "weight", NULL | |
8703 | }; | |
8704 | ||
8705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
8706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8708 | arg2 = (int)SWIG_As_int(obj1); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | { | |
8711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8712 | (arg1)->SetWeight(arg2); | |
8713 | ||
8714 | wxPyEndAllowThreads(__tstate); | |
8715 | if (PyErr_Occurred()) SWIG_fail; | |
8716 | } | |
8717 | Py_INCREF(Py_None); resultobj = Py_None; | |
8718 | return resultobj; | |
8719 | fail: | |
8720 | return NULL; | |
8721 | } | |
8722 | ||
8723 | ||
8724 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { | |
8725 | PyObject *resultobj; | |
8726 | wxFont *arg1 = (wxFont *) 0 ; | |
8727 | wxString *arg2 = 0 ; | |
8728 | bool temp2 = false ; | |
8729 | PyObject * obj0 = 0 ; | |
8730 | PyObject * obj1 = 0 ; | |
8731 | char *kwnames[] = { | |
8732 | (char *) "self",(char *) "faceName", NULL | |
8733 | }; | |
8734 | ||
8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
8736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8738 | { | |
8739 | arg2 = wxString_in_helper(obj1); | |
8740 | if (arg2 == NULL) SWIG_fail; | |
8741 | temp2 = true; | |
8742 | } | |
8743 | { | |
8744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8745 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8746 | ||
8747 | wxPyEndAllowThreads(__tstate); | |
8748 | if (PyErr_Occurred()) SWIG_fail; | |
8749 | } | |
8750 | Py_INCREF(Py_None); resultobj = Py_None; | |
8751 | { | |
8752 | if (temp2) | |
8753 | delete arg2; | |
8754 | } | |
8755 | return resultobj; | |
8756 | fail: | |
8757 | { | |
8758 | if (temp2) | |
8759 | delete arg2; | |
8760 | } | |
8761 | return NULL; | |
8762 | } | |
8763 | ||
8764 | ||
8765 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { | |
8766 | PyObject *resultobj; | |
8767 | wxFont *arg1 = (wxFont *) 0 ; | |
8768 | bool arg2 ; | |
8769 | PyObject * obj0 = 0 ; | |
8770 | PyObject * obj1 = 0 ; | |
8771 | char *kwnames[] = { | |
8772 | (char *) "self",(char *) "underlined", NULL | |
8773 | }; | |
8774 | ||
8775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8778 | arg2 = (bool)SWIG_As_bool(obj1); | |
8779 | if (PyErr_Occurred()) SWIG_fail; | |
8780 | { | |
8781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8782 | (arg1)->SetUnderlined(arg2); | |
8783 | ||
8784 | wxPyEndAllowThreads(__tstate); | |
8785 | if (PyErr_Occurred()) SWIG_fail; | |
8786 | } | |
8787 | Py_INCREF(Py_None); resultobj = Py_None; | |
8788 | return resultobj; | |
8789 | fail: | |
8790 | return NULL; | |
8791 | } | |
8792 | ||
8793 | ||
8794 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
8795 | PyObject *resultobj; | |
8796 | wxFont *arg1 = (wxFont *) 0 ; | |
8797 | int arg2 ; | |
8798 | PyObject * obj0 = 0 ; | |
8799 | PyObject * obj1 = 0 ; | |
8800 | char *kwnames[] = { | |
8801 | (char *) "self",(char *) "encoding", NULL | |
8802 | }; | |
8803 | ||
8804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
8805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8807 | arg2 = (int)SWIG_As_int(obj1); | |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | { | |
8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8811 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8812 | ||
8813 | wxPyEndAllowThreads(__tstate); | |
8814 | if (PyErr_Occurred()) SWIG_fail; | |
8815 | } | |
8816 | Py_INCREF(Py_None); resultobj = Py_None; | |
8817 | return resultobj; | |
8818 | fail: | |
8819 | return NULL; | |
8820 | } | |
8821 | ||
8822 | ||
8823 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
8824 | PyObject *resultobj; | |
8825 | wxFont *arg1 = (wxFont *) 0 ; | |
8826 | wxNativeFontInfo *arg2 = 0 ; | |
8827 | PyObject * obj0 = 0 ; | |
8828 | PyObject * obj1 = 0 ; | |
8829 | char *kwnames[] = { | |
8830 | (char *) "self",(char *) "info", NULL | |
8831 | }; | |
8832 | ||
8833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
8834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8838 | SWIG_fail; | |
8839 | if (arg2 == NULL) { | |
8840 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8841 | SWIG_fail; | |
8842 | } | |
8843 | { | |
8844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8845 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8846 | ||
8847 | wxPyEndAllowThreads(__tstate); | |
8848 | if (PyErr_Occurred()) SWIG_fail; | |
8849 | } | |
8850 | Py_INCREF(Py_None); resultobj = Py_None; | |
8851 | return resultobj; | |
8852 | fail: | |
8853 | return NULL; | |
8854 | } | |
8855 | ||
8856 | ||
8857 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { | |
8858 | PyObject *resultobj; | |
8859 | wxFont *arg1 = (wxFont *) 0 ; | |
8860 | wxString *arg2 = 0 ; | |
8861 | bool temp2 = false ; | |
8862 | PyObject * obj0 = 0 ; | |
8863 | PyObject * obj1 = 0 ; | |
8864 | char *kwnames[] = { | |
8865 | (char *) "self",(char *) "info", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
8869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8871 | { | |
8872 | arg2 = wxString_in_helper(obj1); | |
8873 | if (arg2 == NULL) SWIG_fail; | |
8874 | temp2 = true; | |
8875 | } | |
8876 | { | |
8877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8878 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8879 | ||
8880 | wxPyEndAllowThreads(__tstate); | |
8881 | if (PyErr_Occurred()) SWIG_fail; | |
8882 | } | |
8883 | Py_INCREF(Py_None); resultobj = Py_None; | |
8884 | { | |
8885 | if (temp2) | |
8886 | delete arg2; | |
8887 | } | |
8888 | return resultobj; | |
8889 | fail: | |
8890 | { | |
8891 | if (temp2) | |
8892 | delete arg2; | |
8893 | } | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
8898 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject *resultobj; | |
8900 | wxFont *arg1 = (wxFont *) 0 ; | |
8901 | wxString *arg2 = 0 ; | |
8902 | bool temp2 = false ; | |
8903 | PyObject * obj0 = 0 ; | |
8904 | PyObject * obj1 = 0 ; | |
8905 | char *kwnames[] = { | |
8906 | (char *) "self",(char *) "info", NULL | |
8907 | }; | |
8908 | ||
8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8912 | { | |
8913 | arg2 = wxString_in_helper(obj1); | |
8914 | if (arg2 == NULL) SWIG_fail; | |
8915 | temp2 = true; | |
8916 | } | |
8917 | { | |
8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8919 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8920 | ||
8921 | wxPyEndAllowThreads(__tstate); | |
8922 | if (PyErr_Occurred()) SWIG_fail; | |
8923 | } | |
8924 | Py_INCREF(Py_None); resultobj = Py_None; | |
8925 | { | |
8926 | if (temp2) | |
8927 | delete arg2; | |
8928 | } | |
8929 | return resultobj; | |
8930 | fail: | |
8931 | { | |
8932 | if (temp2) | |
8933 | delete arg2; | |
8934 | } | |
8935 | return NULL; | |
8936 | } | |
8937 | ||
8938 | ||
8939 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { | |
8940 | PyObject *resultobj; | |
8941 | wxFont *arg1 = (wxFont *) 0 ; | |
8942 | wxString result; | |
8943 | PyObject * obj0 = 0 ; | |
8944 | char *kwnames[] = { | |
8945 | (char *) "self", NULL | |
8946 | }; | |
8947 | ||
8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8951 | { | |
8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8953 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8954 | ||
8955 | wxPyEndAllowThreads(__tstate); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | } | |
8958 | { | |
8959 | #if wxUSE_UNICODE | |
8960 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8961 | #else | |
8962 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8963 | #endif | |
8964 | } | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | return NULL; | |
8968 | } | |
8969 | ||
8970 | ||
8971 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { | |
8972 | PyObject *resultobj; | |
8973 | wxFont *arg1 = (wxFont *) 0 ; | |
8974 | wxString result; | |
8975 | PyObject * obj0 = 0 ; | |
8976 | char *kwnames[] = { | |
8977 | (char *) "self", NULL | |
8978 | }; | |
8979 | ||
8980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8983 | { | |
8984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8985 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8986 | ||
8987 | wxPyEndAllowThreads(__tstate); | |
8988 | if (PyErr_Occurred()) SWIG_fail; | |
8989 | } | |
8990 | { | |
8991 | #if wxUSE_UNICODE | |
8992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8993 | #else | |
8994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8995 | #endif | |
8996 | } | |
8997 | return resultobj; | |
8998 | fail: | |
8999 | return NULL; | |
9000 | } | |
9001 | ||
9002 | ||
9003 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { | |
9004 | PyObject *resultobj; | |
9005 | wxFont *arg1 = (wxFont *) 0 ; | |
9006 | wxString result; | |
9007 | PyObject * obj0 = 0 ; | |
9008 | char *kwnames[] = { | |
9009 | (char *) "self", NULL | |
9010 | }; | |
9011 | ||
9012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
9013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9015 | { | |
9016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9017 | result = ((wxFont const *)arg1)->GetWeightString(); | |
9018 | ||
9019 | wxPyEndAllowThreads(__tstate); | |
9020 | if (PyErr_Occurred()) SWIG_fail; | |
9021 | } | |
9022 | { | |
9023 | #if wxUSE_UNICODE | |
9024 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9025 | #else | |
9026 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9027 | #endif | |
9028 | } | |
9029 | return resultobj; | |
9030 | fail: | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
9035 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { | |
9036 | PyObject *resultobj; | |
9037 | wxFont *arg1 = (wxFont *) 0 ; | |
9038 | bool arg2 = (bool) true ; | |
9039 | PyObject * obj0 = 0 ; | |
9040 | PyObject * obj1 = 0 ; | |
9041 | char *kwnames[] = { | |
9042 | (char *) "self",(char *) "no", NULL | |
9043 | }; | |
9044 | ||
9045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
9046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9048 | if (obj1) { | |
9049 | arg2 = (bool)SWIG_As_bool(obj1); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
9051 | } | |
9052 | { | |
9053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9054 | (arg1)->SetNoAntiAliasing(arg2); | |
9055 | ||
9056 | wxPyEndAllowThreads(__tstate); | |
9057 | if (PyErr_Occurred()) SWIG_fail; | |
9058 | } | |
9059 | Py_INCREF(Py_None); resultobj = Py_None; | |
9060 | return resultobj; | |
9061 | fail: | |
9062 | return NULL; | |
9063 | } | |
9064 | ||
9065 | ||
9066 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { | |
9067 | PyObject *resultobj; | |
9068 | wxFont *arg1 = (wxFont *) 0 ; | |
9069 | bool result; | |
9070 | PyObject * obj0 = 0 ; | |
9071 | char *kwnames[] = { | |
9072 | (char *) "self", NULL | |
9073 | }; | |
9074 | ||
9075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
9076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9078 | { | |
9079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9080 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
9081 | ||
9082 | wxPyEndAllowThreads(__tstate); | |
9083 | if (PyErr_Occurred()) SWIG_fail; | |
9084 | } | |
9085 | { | |
9086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9087 | } | |
9088 | return resultobj; | |
9089 | fail: | |
9090 | return NULL; | |
9091 | } | |
9092 | ||
9093 | ||
9094 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
9095 | PyObject *resultobj; | |
9096 | int result; | |
9097 | char *kwnames[] = { | |
9098 | NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9102 | { | |
9103 | if (!wxPyCheckForApp()) SWIG_fail; | |
9104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9105 | result = (int)wxFont::GetDefaultEncoding(); | |
9106 | ||
9107 | wxPyEndAllowThreads(__tstate); | |
9108 | if (PyErr_Occurred()) SWIG_fail; | |
9109 | } | |
9110 | resultobj = SWIG_From_int((int)result); | |
9111 | return resultobj; | |
9112 | fail: | |
9113 | return NULL; | |
9114 | } | |
9115 | ||
9116 | ||
9117 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
9118 | PyObject *resultobj; | |
9119 | int arg1 ; | |
9120 | PyObject * obj0 = 0 ; | |
9121 | char *kwnames[] = { | |
9122 | (char *) "encoding", NULL | |
9123 | }; | |
9124 | ||
9125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; | |
9126 | arg1 = (int)SWIG_As_int(obj0); | |
9127 | if (PyErr_Occurred()) SWIG_fail; | |
9128 | { | |
9129 | if (!wxPyCheckForApp()) SWIG_fail; | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
9136 | Py_INCREF(Py_None); resultobj = Py_None; | |
9137 | return resultobj; | |
9138 | fail: | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
9143 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { | |
9144 | PyObject *obj; | |
9145 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9146 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9147 | Py_INCREF(obj); | |
9148 | return Py_BuildValue((char *)""); | |
9149 | } | |
9150 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { | |
9151 | PyObject *resultobj; | |
9152 | wxPyFontEnumerator *result; | |
9153 | char *kwnames[] = { | |
9154 | NULL | |
9155 | }; | |
9156 | ||
9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9158 | { | |
9159 | if (!wxPyCheckForApp()) SWIG_fail; | |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
9166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); | |
9167 | return resultobj; | |
9168 | fail: | |
9169 | return NULL; | |
9170 | } | |
9171 | ||
9172 | ||
9173 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { | |
9174 | PyObject *resultobj; | |
9175 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9176 | PyObject * obj0 = 0 ; | |
9177 | char *kwnames[] = { | |
9178 | (char *) "self", NULL | |
9179 | }; | |
9180 | ||
9181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
9182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9184 | { | |
9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9186 | delete arg1; | |
9187 | ||
9188 | wxPyEndAllowThreads(__tstate); | |
9189 | if (PyErr_Occurred()) SWIG_fail; | |
9190 | } | |
9191 | Py_INCREF(Py_None); resultobj = Py_None; | |
9192 | return resultobj; | |
9193 | fail: | |
9194 | return NULL; | |
9195 | } | |
9196 | ||
9197 | ||
9198 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
9199 | PyObject *resultobj; | |
9200 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9201 | PyObject *arg2 = (PyObject *) 0 ; | |
9202 | PyObject *arg3 = (PyObject *) 0 ; | |
9203 | bool arg4 ; | |
9204 | PyObject * obj0 = 0 ; | |
9205 | PyObject * obj1 = 0 ; | |
9206 | PyObject * obj2 = 0 ; | |
9207 | PyObject * obj3 = 0 ; | |
9208 | char *kwnames[] = { | |
9209 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9210 | }; | |
9211 | ||
9212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9215 | arg2 = obj1; | |
9216 | arg3 = obj2; | |
9217 | arg4 = (bool)SWIG_As_bool(obj3); | |
9218 | if (PyErr_Occurred()) SWIG_fail; | |
9219 | { | |
9220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9221 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9222 | ||
9223 | wxPyEndAllowThreads(__tstate); | |
9224 | if (PyErr_Occurred()) SWIG_fail; | |
9225 | } | |
9226 | Py_INCREF(Py_None); resultobj = Py_None; | |
9227 | return resultobj; | |
9228 | fail: | |
9229 | return NULL; | |
9230 | } | |
9231 | ||
9232 | ||
9233 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { | |
9234 | PyObject *resultobj; | |
9235 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9236 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
9237 | bool arg3 = (bool) false ; | |
9238 | bool result; | |
9239 | PyObject * obj0 = 0 ; | |
9240 | PyObject * obj1 = 0 ; | |
9241 | PyObject * obj2 = 0 ; | |
9242 | char *kwnames[] = { | |
9243 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9244 | }; | |
9245 | ||
9246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9249 | if (obj1) { | |
9250 | arg2 = (int)SWIG_As_int(obj1); | |
9251 | if (PyErr_Occurred()) SWIG_fail; | |
9252 | } | |
9253 | if (obj2) { | |
9254 | arg3 = (bool)SWIG_As_bool(obj2); | |
9255 | if (PyErr_Occurred()) SWIG_fail; | |
9256 | } | |
9257 | { | |
9258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9259 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9260 | ||
9261 | wxPyEndAllowThreads(__tstate); | |
9262 | if (PyErr_Occurred()) SWIG_fail; | |
9263 | } | |
9264 | { | |
9265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9266 | } | |
9267 | return resultobj; | |
9268 | fail: | |
9269 | return NULL; | |
9270 | } | |
9271 | ||
9272 | ||
9273 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { | |
9274 | PyObject *resultobj; | |
9275 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9276 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9277 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9278 | bool result; | |
9279 | bool temp2 = false ; | |
9280 | PyObject * obj0 = 0 ; | |
9281 | PyObject * obj1 = 0 ; | |
9282 | char *kwnames[] = { | |
9283 | (char *) "self",(char *) "facename", NULL | |
9284 | }; | |
9285 | ||
9286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
9287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9289 | if (obj1) { | |
9290 | { | |
9291 | arg2 = wxString_in_helper(obj1); | |
9292 | if (arg2 == NULL) SWIG_fail; | |
9293 | temp2 = true; | |
9294 | } | |
9295 | } | |
9296 | { | |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9299 | ||
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
9303 | { | |
9304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9305 | } | |
9306 | { | |
9307 | if (temp2) | |
9308 | delete arg2; | |
9309 | } | |
9310 | return resultobj; | |
9311 | fail: | |
9312 | { | |
9313 | if (temp2) | |
9314 | delete arg2; | |
9315 | } | |
9316 | return NULL; | |
9317 | } | |
9318 | ||
9319 | ||
9320 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { | |
9321 | PyObject *resultobj; | |
9322 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9323 | PyObject *result; | |
9324 | PyObject * obj0 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
9330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9332 | { | |
9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9334 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9335 | ||
9336 | wxPyEndAllowThreads(__tstate); | |
9337 | if (PyErr_Occurred()) SWIG_fail; | |
9338 | } | |
9339 | resultobj = result; | |
9340 | return resultobj; | |
9341 | fail: | |
9342 | return NULL; | |
9343 | } | |
9344 | ||
9345 | ||
9346 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { | |
9347 | PyObject *resultobj; | |
9348 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9349 | PyObject *result; | |
9350 | PyObject * obj0 = 0 ; | |
9351 | char *kwnames[] = { | |
9352 | (char *) "self", NULL | |
9353 | }; | |
9354 | ||
9355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
9356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9358 | { | |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9360 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9361 | ||
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
9365 | resultobj = result; | |
9366 | return resultobj; | |
9367 | fail: | |
9368 | return NULL; | |
9369 | } | |
9370 | ||
9371 | ||
9372 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { | |
9373 | PyObject *obj; | |
9374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9375 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9376 | Py_INCREF(obj); | |
9377 | return Py_BuildValue((char *)""); | |
9378 | } | |
9379 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
9380 | PyObject *resultobj; | |
9381 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9382 | int arg2 ; | |
9383 | PyObject * obj0 = 0 ; | |
9384 | PyObject * obj1 = 0 ; | |
9385 | char *kwnames[] = { | |
9386 | (char *) "self",(char *) "Language", NULL | |
9387 | }; | |
9388 | ||
9389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
9390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9392 | arg2 = (int)SWIG_As_int(obj1); | |
9393 | if (PyErr_Occurred()) SWIG_fail; | |
9394 | if (arg1) (arg1)->Language = arg2; | |
9395 | ||
9396 | Py_INCREF(Py_None); resultobj = Py_None; | |
9397 | return resultobj; | |
9398 | fail: | |
9399 | return NULL; | |
9400 | } | |
9401 | ||
9402 | ||
9403 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
9404 | PyObject *resultobj; | |
9405 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9406 | int result; | |
9407 | PyObject * obj0 = 0 ; | |
9408 | char *kwnames[] = { | |
9409 | (char *) "self", NULL | |
9410 | }; | |
9411 | ||
9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
9413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9415 | result = (int) ((arg1)->Language); | |
9416 | ||
9417 | resultobj = SWIG_From_int((int)result); | |
9418 | return resultobj; | |
9419 | fail: | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
9424 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
9425 | PyObject *resultobj; | |
9426 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9427 | wxString *arg2 = (wxString *) 0 ; | |
9428 | bool temp2 = false ; | |
9429 | PyObject * obj0 = 0 ; | |
9430 | PyObject * obj1 = 0 ; | |
9431 | char *kwnames[] = { | |
9432 | (char *) "self",(char *) "CanonicalName", NULL | |
9433 | }; | |
9434 | ||
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
9436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9438 | { | |
9439 | arg2 = wxString_in_helper(obj1); | |
9440 | if (arg2 == NULL) SWIG_fail; | |
9441 | temp2 = true; | |
9442 | } | |
9443 | if (arg1) (arg1)->CanonicalName = *arg2; | |
9444 | ||
9445 | Py_INCREF(Py_None); resultobj = Py_None; | |
9446 | { | |
9447 | if (temp2) | |
9448 | delete arg2; | |
9449 | } | |
9450 | return resultobj; | |
9451 | fail: | |
9452 | { | |
9453 | if (temp2) | |
9454 | delete arg2; | |
9455 | } | |
9456 | return NULL; | |
9457 | } | |
9458 | ||
9459 | ||
9460 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
9461 | PyObject *resultobj; | |
9462 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9463 | wxString *result; | |
9464 | PyObject * obj0 = 0 ; | |
9465 | char *kwnames[] = { | |
9466 | (char *) "self", NULL | |
9467 | }; | |
9468 | ||
9469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
9470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9472 | result = (wxString *)& ((arg1)->CanonicalName); | |
9473 | ||
9474 | { | |
9475 | #if wxUSE_UNICODE | |
9476 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9477 | #else | |
9478 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9479 | #endif | |
9480 | } | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | return NULL; | |
9484 | } | |
9485 | ||
9486 | ||
9487 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { | |
9488 | PyObject *resultobj; | |
9489 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9490 | wxString *arg2 = (wxString *) 0 ; | |
9491 | bool temp2 = false ; | |
9492 | PyObject * obj0 = 0 ; | |
9493 | PyObject * obj1 = 0 ; | |
9494 | char *kwnames[] = { | |
9495 | (char *) "self",(char *) "Description", NULL | |
9496 | }; | |
9497 | ||
9498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
9499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9501 | { | |
9502 | arg2 = wxString_in_helper(obj1); | |
9503 | if (arg2 == NULL) SWIG_fail; | |
9504 | temp2 = true; | |
9505 | } | |
9506 | if (arg1) (arg1)->Description = *arg2; | |
9507 | ||
9508 | Py_INCREF(Py_None); resultobj = Py_None; | |
9509 | { | |
9510 | if (temp2) | |
9511 | delete arg2; | |
9512 | } | |
9513 | return resultobj; | |
9514 | fail: | |
9515 | { | |
9516 | if (temp2) | |
9517 | delete arg2; | |
9518 | } | |
9519 | return NULL; | |
9520 | } | |
9521 | ||
9522 | ||
9523 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { | |
9524 | PyObject *resultobj; | |
9525 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9526 | wxString *result; | |
9527 | PyObject * obj0 = 0 ; | |
9528 | char *kwnames[] = { | |
9529 | (char *) "self", NULL | |
9530 | }; | |
9531 | ||
9532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
9533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9535 | result = (wxString *)& ((arg1)->Description); | |
9536 | ||
9537 | { | |
9538 | #if wxUSE_UNICODE | |
9539 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9540 | #else | |
9541 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9542 | #endif | |
9543 | } | |
9544 | return resultobj; | |
9545 | fail: | |
9546 | return NULL; | |
9547 | } | |
9548 | ||
9549 | ||
9550 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { | |
9551 | PyObject *obj; | |
9552 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9553 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9554 | Py_INCREF(obj); | |
9555 | return Py_BuildValue((char *)""); | |
9556 | } | |
9557 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { | |
9558 | PyObject *resultobj; | |
9559 | int arg1 = (int) -1 ; | |
9560 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9561 | wxLocale *result; | |
9562 | PyObject * obj0 = 0 ; | |
9563 | PyObject * obj1 = 0 ; | |
9564 | char *kwnames[] = { | |
9565 | (char *) "language",(char *) "flags", NULL | |
9566 | }; | |
9567 | ||
9568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; | |
9569 | if (obj0) { | |
9570 | arg1 = (int)SWIG_As_int(obj0); | |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
9572 | } | |
9573 | if (obj1) { | |
9574 | arg2 = (int)SWIG_As_int(obj1); | |
9575 | if (PyErr_Occurred()) SWIG_fail; | |
9576 | } | |
9577 | { | |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
9584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); | |
9585 | return resultobj; | |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
9591 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj; | |
9593 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9594 | PyObject * obj0 = 0 ; | |
9595 | char *kwnames[] = { | |
9596 | (char *) "self", NULL | |
9597 | }; | |
9598 | ||
9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
9600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9602 | { | |
9603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9604 | delete arg1; | |
9605 | ||
9606 | wxPyEndAllowThreads(__tstate); | |
9607 | if (PyErr_Occurred()) SWIG_fail; | |
9608 | } | |
9609 | Py_INCREF(Py_None); resultobj = Py_None; | |
9610 | return resultobj; | |
9611 | fail: | |
9612 | return NULL; | |
9613 | } | |
9614 | ||
9615 | ||
9616 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { | |
9617 | PyObject *resultobj; | |
9618 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9619 | wxString *arg2 = 0 ; | |
9620 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9621 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9622 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9623 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9624 | bool arg5 = (bool) true ; | |
9625 | bool arg6 = (bool) false ; | |
9626 | bool result; | |
9627 | bool temp2 = false ; | |
9628 | bool temp3 = false ; | |
9629 | bool temp4 = false ; | |
9630 | PyObject * obj0 = 0 ; | |
9631 | PyObject * obj1 = 0 ; | |
9632 | PyObject * obj2 = 0 ; | |
9633 | PyObject * obj3 = 0 ; | |
9634 | PyObject * obj4 = 0 ; | |
9635 | PyObject * obj5 = 0 ; | |
9636 | char *kwnames[] = { | |
9637 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9638 | }; | |
9639 | ||
9640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9643 | { | |
9644 | arg2 = wxString_in_helper(obj1); | |
9645 | if (arg2 == NULL) SWIG_fail; | |
9646 | temp2 = true; | |
9647 | } | |
9648 | if (obj2) { | |
9649 | { | |
9650 | arg3 = wxString_in_helper(obj2); | |
9651 | if (arg3 == NULL) SWIG_fail; | |
9652 | temp3 = true; | |
9653 | } | |
9654 | } | |
9655 | if (obj3) { | |
9656 | { | |
9657 | arg4 = wxString_in_helper(obj3); | |
9658 | if (arg4 == NULL) SWIG_fail; | |
9659 | temp4 = true; | |
9660 | } | |
9661 | } | |
9662 | if (obj4) { | |
9663 | arg5 = (bool)SWIG_As_bool(obj4); | |
9664 | if (PyErr_Occurred()) SWIG_fail; | |
9665 | } | |
9666 | if (obj5) { | |
9667 | arg6 = (bool)SWIG_As_bool(obj5); | |
9668 | if (PyErr_Occurred()) SWIG_fail; | |
9669 | } | |
9670 | { | |
9671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9672 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9673 | ||
9674 | wxPyEndAllowThreads(__tstate); | |
9675 | if (PyErr_Occurred()) SWIG_fail; | |
9676 | } | |
9677 | { | |
9678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9679 | } | |
9680 | { | |
9681 | if (temp2) | |
9682 | delete arg2; | |
9683 | } | |
9684 | { | |
9685 | if (temp3) | |
9686 | delete arg3; | |
9687 | } | |
9688 | { | |
9689 | if (temp4) | |
9690 | delete arg4; | |
9691 | } | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | { | |
9695 | if (temp2) | |
9696 | delete arg2; | |
9697 | } | |
9698 | { | |
9699 | if (temp3) | |
9700 | delete arg3; | |
9701 | } | |
9702 | { | |
9703 | if (temp4) | |
9704 | delete arg4; | |
9705 | } | |
9706 | return NULL; | |
9707 | } | |
9708 | ||
9709 | ||
9710 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { | |
9711 | PyObject *resultobj; | |
9712 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9713 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9714 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9715 | bool result; | |
9716 | PyObject * obj0 = 0 ; | |
9717 | PyObject * obj1 = 0 ; | |
9718 | PyObject * obj2 = 0 ; | |
9719 | char *kwnames[] = { | |
9720 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9721 | }; | |
9722 | ||
9723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9726 | if (obj1) { | |
9727 | arg2 = (int)SWIG_As_int(obj1); | |
9728 | if (PyErr_Occurred()) SWIG_fail; | |
9729 | } | |
9730 | if (obj2) { | |
9731 | arg3 = (int)SWIG_As_int(obj2); | |
9732 | if (PyErr_Occurred()) SWIG_fail; | |
9733 | } | |
9734 | { | |
9735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9736 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
9737 | ||
9738 | wxPyEndAllowThreads(__tstate); | |
9739 | if (PyErr_Occurred()) SWIG_fail; | |
9740 | } | |
9741 | { | |
9742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9743 | } | |
9744 | return resultobj; | |
9745 | fail: | |
9746 | return NULL; | |
9747 | } | |
9748 | ||
9749 | ||
9750 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { | |
9751 | PyObject *resultobj; | |
9752 | int result; | |
9753 | char *kwnames[] = { | |
9754 | NULL | |
9755 | }; | |
9756 | ||
9757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9758 | { | |
9759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9760 | result = (int)wxLocale::GetSystemLanguage(); | |
9761 | ||
9762 | wxPyEndAllowThreads(__tstate); | |
9763 | if (PyErr_Occurred()) SWIG_fail; | |
9764 | } | |
9765 | resultobj = SWIG_From_int((int)result); | |
9766 | return resultobj; | |
9767 | fail: | |
9768 | return NULL; | |
9769 | } | |
9770 | ||
9771 | ||
9772 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
9773 | PyObject *resultobj; | |
9774 | int result; | |
9775 | char *kwnames[] = { | |
9776 | NULL | |
9777 | }; | |
9778 | ||
9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9780 | { | |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | result = (int)wxLocale::GetSystemEncoding(); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
9787 | resultobj = SWIG_From_int((int)result); | |
9788 | return resultobj; | |
9789 | fail: | |
9790 | return NULL; | |
9791 | } | |
9792 | ||
9793 | ||
9794 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { | |
9795 | PyObject *resultobj; | |
9796 | wxString result; | |
9797 | char *kwnames[] = { | |
9798 | NULL | |
9799 | }; | |
9800 | ||
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9802 | { | |
9803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9804 | result = wxLocale::GetSystemEncodingName(); | |
9805 | ||
9806 | wxPyEndAllowThreads(__tstate); | |
9807 | if (PyErr_Occurred()) SWIG_fail; | |
9808 | } | |
9809 | { | |
9810 | #if wxUSE_UNICODE | |
9811 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9812 | #else | |
9813 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9814 | #endif | |
9815 | } | |
9816 | return resultobj; | |
9817 | fail: | |
9818 | return NULL; | |
9819 | } | |
9820 | ||
9821 | ||
9822 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { | |
9823 | PyObject *resultobj; | |
9824 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9825 | bool result; | |
9826 | PyObject * obj0 = 0 ; | |
9827 | char *kwnames[] = { | |
9828 | (char *) "self", NULL | |
9829 | }; | |
9830 | ||
9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9834 | { | |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9837 | ||
9838 | wxPyEndAllowThreads(__tstate); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | } | |
9841 | { | |
9842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9843 | } | |
9844 | return resultobj; | |
9845 | fail: | |
9846 | return NULL; | |
9847 | } | |
9848 | ||
9849 | ||
9850 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { | |
9851 | PyObject *resultobj; | |
9852 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9853 | wxString result; | |
9854 | PyObject * obj0 = 0 ; | |
9855 | char *kwnames[] = { | |
9856 | (char *) "self", NULL | |
9857 | }; | |
9858 | ||
9859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
9860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9862 | { | |
9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9864 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9865 | ||
9866 | wxPyEndAllowThreads(__tstate); | |
9867 | if (PyErr_Occurred()) SWIG_fail; | |
9868 | } | |
9869 | { | |
9870 | #if wxUSE_UNICODE | |
9871 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9872 | #else | |
9873 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9874 | #endif | |
9875 | } | |
9876 | return resultobj; | |
9877 | fail: | |
9878 | return NULL; | |
9879 | } | |
9880 | ||
9881 | ||
9882 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { | |
9883 | PyObject *resultobj; | |
9884 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9885 | int result; | |
9886 | PyObject * obj0 = 0 ; | |
9887 | char *kwnames[] = { | |
9888 | (char *) "self", NULL | |
9889 | }; | |
9890 | ||
9891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9894 | { | |
9895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9896 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9897 | ||
9898 | wxPyEndAllowThreads(__tstate); | |
9899 | if (PyErr_Occurred()) SWIG_fail; | |
9900 | } | |
9901 | resultobj = SWIG_From_int((int)result); | |
9902 | return resultobj; | |
9903 | fail: | |
9904 | return NULL; | |
9905 | } | |
9906 | ||
9907 | ||
9908 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { | |
9909 | PyObject *resultobj; | |
9910 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9911 | wxString result; | |
9912 | PyObject * obj0 = 0 ; | |
9913 | char *kwnames[] = { | |
9914 | (char *) "self", NULL | |
9915 | }; | |
9916 | ||
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9920 | { | |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
9927 | { | |
9928 | #if wxUSE_UNICODE | |
9929 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9930 | #else | |
9931 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9932 | #endif | |
9933 | } | |
9934 | return resultobj; | |
9935 | fail: | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
9940 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { | |
9941 | PyObject *resultobj; | |
9942 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9943 | wxString result; | |
9944 | PyObject * obj0 = 0 ; | |
9945 | char *kwnames[] = { | |
9946 | (char *) "self", NULL | |
9947 | }; | |
9948 | ||
9949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9952 | { | |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9954 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9955 | ||
9956 | wxPyEndAllowThreads(__tstate); | |
9957 | if (PyErr_Occurred()) SWIG_fail; | |
9958 | } | |
9959 | { | |
9960 | #if wxUSE_UNICODE | |
9961 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9962 | #else | |
9963 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9964 | #endif | |
9965 | } | |
9966 | return resultobj; | |
9967 | fail: | |
9968 | return NULL; | |
9969 | } | |
9970 | ||
9971 | ||
9972 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject *resultobj; | |
9974 | wxString *arg1 = 0 ; | |
9975 | bool temp1 = false ; | |
9976 | PyObject * obj0 = 0 ; | |
9977 | char *kwnames[] = { | |
9978 | (char *) "prefix", NULL | |
9979 | }; | |
9980 | ||
9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9982 | { | |
9983 | arg1 = wxString_in_helper(obj0); | |
9984 | if (arg1 == NULL) SWIG_fail; | |
9985 | temp1 = true; | |
9986 | } | |
9987 | { | |
9988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9989 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9990 | ||
9991 | wxPyEndAllowThreads(__tstate); | |
9992 | if (PyErr_Occurred()) SWIG_fail; | |
9993 | } | |
9994 | Py_INCREF(Py_None); resultobj = Py_None; | |
9995 | { | |
9996 | if (temp1) | |
9997 | delete arg1; | |
9998 | } | |
9999 | return resultobj; | |
10000 | fail: | |
10001 | { | |
10002 | if (temp1) | |
10003 | delete arg1; | |
10004 | } | |
10005 | return NULL; | |
10006 | } | |
10007 | ||
10008 | ||
10009 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { | |
10010 | PyObject *resultobj; | |
10011 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10012 | wxString *arg2 = 0 ; | |
10013 | bool result; | |
10014 | bool temp2 = false ; | |
10015 | PyObject * obj0 = 0 ; | |
10016 | PyObject * obj1 = 0 ; | |
10017 | char *kwnames[] = { | |
10018 | (char *) "self",(char *) "szDomain", NULL | |
10019 | }; | |
10020 | ||
10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
10022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10024 | { | |
10025 | arg2 = wxString_in_helper(obj1); | |
10026 | if (arg2 == NULL) SWIG_fail; | |
10027 | temp2 = true; | |
10028 | } | |
10029 | { | |
10030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10031 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
10032 | ||
10033 | wxPyEndAllowThreads(__tstate); | |
10034 | if (PyErr_Occurred()) SWIG_fail; | |
10035 | } | |
10036 | { | |
10037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10038 | } | |
10039 | { | |
10040 | if (temp2) | |
10041 | delete arg2; | |
10042 | } | |
10043 | return resultobj; | |
10044 | fail: | |
10045 | { | |
10046 | if (temp2) | |
10047 | delete arg2; | |
10048 | } | |
10049 | return NULL; | |
10050 | } | |
10051 | ||
10052 | ||
10053 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { | |
10054 | PyObject *resultobj; | |
10055 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10056 | wxString *arg2 = 0 ; | |
10057 | bool result; | |
10058 | bool temp2 = false ; | |
10059 | PyObject * obj0 = 0 ; | |
10060 | PyObject * obj1 = 0 ; | |
10061 | char *kwnames[] = { | |
10062 | (char *) "self",(char *) "szDomain", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
10066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10068 | { | |
10069 | arg2 = wxString_in_helper(obj1); | |
10070 | if (arg2 == NULL) SWIG_fail; | |
10071 | temp2 = true; | |
10072 | } | |
10073 | { | |
10074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10075 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10076 | ||
10077 | wxPyEndAllowThreads(__tstate); | |
10078 | if (PyErr_Occurred()) SWIG_fail; | |
10079 | } | |
10080 | { | |
10081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10082 | } | |
10083 | { | |
10084 | if (temp2) | |
10085 | delete arg2; | |
10086 | } | |
10087 | return resultobj; | |
10088 | fail: | |
10089 | { | |
10090 | if (temp2) | |
10091 | delete arg2; | |
10092 | } | |
10093 | return NULL; | |
10094 | } | |
10095 | ||
10096 | ||
10097 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
10098 | PyObject *resultobj; | |
10099 | int arg1 ; | |
10100 | wxLanguageInfo *result; | |
10101 | PyObject * obj0 = 0 ; | |
10102 | char *kwnames[] = { | |
10103 | (char *) "lang", NULL | |
10104 | }; | |
10105 | ||
10106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; | |
10107 | arg1 = (int)SWIG_As_int(obj0); | |
10108 | if (PyErr_Occurred()) SWIG_fail; | |
10109 | { | |
10110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10111 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10112 | ||
10113 | wxPyEndAllowThreads(__tstate); | |
10114 | if (PyErr_Occurred()) SWIG_fail; | |
10115 | } | |
10116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10117 | return resultobj; | |
10118 | fail: | |
10119 | return NULL; | |
10120 | } | |
10121 | ||
10122 | ||
10123 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { | |
10124 | PyObject *resultobj; | |
10125 | int arg1 ; | |
10126 | wxString result; | |
10127 | PyObject * obj0 = 0 ; | |
10128 | char *kwnames[] = { | |
10129 | (char *) "lang", NULL | |
10130 | }; | |
10131 | ||
10132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; | |
10133 | arg1 = (int)SWIG_As_int(obj0); | |
10134 | if (PyErr_Occurred()) SWIG_fail; | |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | result = wxLocale::GetLanguageName(arg1); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
10142 | { | |
10143 | #if wxUSE_UNICODE | |
10144 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10145 | #else | |
10146 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10147 | #endif | |
10148 | } | |
10149 | return resultobj; | |
10150 | fail: | |
10151 | return NULL; | |
10152 | } | |
10153 | ||
10154 | ||
10155 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { | |
10156 | PyObject *resultobj; | |
10157 | wxString *arg1 = 0 ; | |
10158 | wxLanguageInfo *result; | |
10159 | bool temp1 = false ; | |
10160 | PyObject * obj0 = 0 ; | |
10161 | char *kwnames[] = { | |
10162 | (char *) "locale", NULL | |
10163 | }; | |
10164 | ||
10165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10166 | { | |
10167 | arg1 = wxString_in_helper(obj0); | |
10168 | if (arg1 == NULL) SWIG_fail; | |
10169 | temp1 = true; | |
10170 | } | |
10171 | { | |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
10178 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10179 | { | |
10180 | if (temp1) | |
10181 | delete arg1; | |
10182 | } | |
10183 | return resultobj; | |
10184 | fail: | |
10185 | { | |
10186 | if (temp1) | |
10187 | delete arg1; | |
10188 | } | |
10189 | return NULL; | |
10190 | } | |
10191 | ||
10192 | ||
10193 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { | |
10194 | PyObject *resultobj; | |
10195 | wxLanguageInfo *arg1 = 0 ; | |
10196 | PyObject * obj0 = 0 ; | |
10197 | char *kwnames[] = { | |
10198 | (char *) "info", NULL | |
10199 | }; | |
10200 | ||
10201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
10202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10203 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10204 | SWIG_fail; | |
10205 | if (arg1 == NULL) { | |
10206 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10207 | SWIG_fail; | |
10208 | } | |
10209 | { | |
10210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10211 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10212 | ||
10213 | wxPyEndAllowThreads(__tstate); | |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | } | |
10216 | Py_INCREF(Py_None); resultobj = Py_None; | |
10217 | return resultobj; | |
10218 | fail: | |
10219 | return NULL; | |
10220 | } | |
10221 | ||
10222 | ||
10223 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { | |
10224 | PyObject *resultobj; | |
10225 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10226 | wxString *arg2 = 0 ; | |
10227 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10228 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10229 | wxString result; | |
10230 | bool temp2 = false ; | |
10231 | bool temp3 = false ; | |
10232 | PyObject * obj0 = 0 ; | |
10233 | PyObject * obj1 = 0 ; | |
10234 | PyObject * obj2 = 0 ; | |
10235 | char *kwnames[] = { | |
10236 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10237 | }; | |
10238 | ||
10239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10242 | { | |
10243 | arg2 = wxString_in_helper(obj1); | |
10244 | if (arg2 == NULL) SWIG_fail; | |
10245 | temp2 = true; | |
10246 | } | |
10247 | if (obj2) { | |
10248 | { | |
10249 | arg3 = wxString_in_helper(obj2); | |
10250 | if (arg3 == NULL) SWIG_fail; | |
10251 | temp3 = true; | |
10252 | } | |
10253 | } | |
10254 | { | |
10255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10256 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10257 | ||
10258 | wxPyEndAllowThreads(__tstate); | |
10259 | if (PyErr_Occurred()) SWIG_fail; | |
10260 | } | |
10261 | { | |
10262 | #if wxUSE_UNICODE | |
10263 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10264 | #else | |
10265 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10266 | #endif | |
10267 | } | |
10268 | { | |
10269 | if (temp2) | |
10270 | delete arg2; | |
10271 | } | |
10272 | { | |
10273 | if (temp3) | |
10274 | delete arg3; | |
10275 | } | |
10276 | return resultobj; | |
10277 | fail: | |
10278 | { | |
10279 | if (temp2) | |
10280 | delete arg2; | |
10281 | } | |
10282 | { | |
10283 | if (temp3) | |
10284 | delete arg3; | |
10285 | } | |
10286 | return NULL; | |
10287 | } | |
10288 | ||
10289 | ||
10290 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { | |
10291 | PyObject *resultobj; | |
10292 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10293 | wxString *result; | |
10294 | PyObject * obj0 = 0 ; | |
10295 | char *kwnames[] = { | |
10296 | (char *) "self", NULL | |
10297 | }; | |
10298 | ||
10299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
10300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10302 | { | |
10303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10304 | { | |
10305 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10306 | result = (wxString *) &_result_ref; | |
10307 | } | |
10308 | ||
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | { | |
10313 | #if wxUSE_UNICODE | |
10314 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10315 | #else | |
10316 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10317 | #endif | |
10318 | } | |
10319 | return resultobj; | |
10320 | fail: | |
10321 | return NULL; | |
10322 | } | |
10323 | ||
10324 | ||
10325 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { | |
10326 | PyObject *obj; | |
10327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10328 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10329 | Py_INCREF(obj); | |
10330 | return Py_BuildValue((char *)""); | |
10331 | } | |
10332 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { | |
10333 | PyObject *resultobj; | |
10334 | wxLocale *result; | |
10335 | char *kwnames[] = { | |
10336 | NULL | |
10337 | }; | |
10338 | ||
10339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10340 | { | |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | result = (wxLocale *)wxGetLocale(); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
10347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); | |
10348 | return resultobj; | |
10349 | fail: | |
10350 | return NULL; | |
10351 | } | |
10352 | ||
10353 | ||
10354 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { | |
10355 | PyObject *resultobj; | |
10356 | wxString *arg1 = 0 ; | |
10357 | wxString result; | |
10358 | bool temp1 = false ; | |
10359 | PyObject * obj0 = 0 ; | |
10360 | ||
10361 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10362 | { | |
10363 | arg1 = wxString_in_helper(obj0); | |
10364 | if (arg1 == NULL) SWIG_fail; | |
10365 | temp1 = true; | |
10366 | } | |
10367 | { | |
10368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10369 | result = wxGetTranslation((wxString const &)*arg1); | |
10370 | ||
10371 | wxPyEndAllowThreads(__tstate); | |
10372 | if (PyErr_Occurred()) SWIG_fail; | |
10373 | } | |
10374 | { | |
10375 | #if wxUSE_UNICODE | |
10376 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10377 | #else | |
10378 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10379 | #endif | |
10380 | } | |
10381 | { | |
10382 | if (temp1) | |
10383 | delete arg1; | |
10384 | } | |
10385 | return resultobj; | |
10386 | fail: | |
10387 | { | |
10388 | if (temp1) | |
10389 | delete arg1; | |
10390 | } | |
10391 | return NULL; | |
10392 | } | |
10393 | ||
10394 | ||
10395 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { | |
10396 | PyObject *resultobj; | |
10397 | wxString *arg1 = 0 ; | |
10398 | wxString *arg2 = 0 ; | |
10399 | size_t arg3 ; | |
10400 | wxString result; | |
10401 | bool temp1 = false ; | |
10402 | bool temp2 = false ; | |
10403 | PyObject * obj0 = 0 ; | |
10404 | PyObject * obj1 = 0 ; | |
10405 | PyObject * obj2 = 0 ; | |
10406 | ||
10407 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10408 | { | |
10409 | arg1 = wxString_in_helper(obj0); | |
10410 | if (arg1 == NULL) SWIG_fail; | |
10411 | temp1 = true; | |
10412 | } | |
10413 | { | |
10414 | arg2 = wxString_in_helper(obj1); | |
10415 | if (arg2 == NULL) SWIG_fail; | |
10416 | temp2 = true; | |
10417 | } | |
10418 | arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | { | |
10421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10422 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10423 | ||
10424 | wxPyEndAllowThreads(__tstate); | |
10425 | if (PyErr_Occurred()) SWIG_fail; | |
10426 | } | |
10427 | { | |
10428 | #if wxUSE_UNICODE | |
10429 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10430 | #else | |
10431 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10432 | #endif | |
10433 | } | |
10434 | { | |
10435 | if (temp1) | |
10436 | delete arg1; | |
10437 | } | |
10438 | { | |
10439 | if (temp2) | |
10440 | delete arg2; | |
10441 | } | |
10442 | return resultobj; | |
10443 | fail: | |
10444 | { | |
10445 | if (temp1) | |
10446 | delete arg1; | |
10447 | } | |
10448 | { | |
10449 | if (temp2) | |
10450 | delete arg2; | |
10451 | } | |
10452 | return NULL; | |
10453 | } | |
10454 | ||
10455 | ||
10456 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10457 | int argc; | |
10458 | PyObject *argv[4]; | |
10459 | int ii; | |
10460 | ||
10461 | argc = PyObject_Length(args); | |
10462 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10463 | argv[ii] = PyTuple_GetItem(args,ii); | |
10464 | } | |
10465 | if (argc == 1) { | |
10466 | int _v; | |
10467 | { | |
10468 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10469 | } | |
10470 | if (_v) { | |
10471 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10472 | } | |
10473 | } | |
10474 | if (argc == 3) { | |
10475 | int _v; | |
10476 | { | |
10477 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10478 | } | |
10479 | if (_v) { | |
10480 | { | |
10481 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
10482 | } | |
10483 | if (_v) { | |
10484 | _v = SWIG_Check_unsigned_SS_long(argv[2]); | |
10485 | if (_v) { | |
10486 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10487 | } | |
10488 | } | |
10489 | } | |
10490 | } | |
10491 | ||
10492 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10493 | return NULL; | |
10494 | } | |
10495 | ||
10496 | ||
10497 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { | |
10498 | PyObject *resultobj; | |
10499 | wxEncodingConverter *result; | |
10500 | char *kwnames[] = { | |
10501 | NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10505 | { | |
10506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10507 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10508 | ||
10509 | wxPyEndAllowThreads(__tstate); | |
10510 | if (PyErr_Occurred()) SWIG_fail; | |
10511 | } | |
10512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); | |
10513 | return resultobj; | |
10514 | fail: | |
10515 | return NULL; | |
10516 | } | |
10517 | ||
10518 | ||
10519 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { | |
10520 | PyObject *resultobj; | |
10521 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10522 | PyObject * obj0 = 0 ; | |
10523 | char *kwnames[] = { | |
10524 | (char *) "self", NULL | |
10525 | }; | |
10526 | ||
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
10528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10530 | { | |
10531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10532 | delete arg1; | |
10533 | ||
10534 | wxPyEndAllowThreads(__tstate); | |
10535 | if (PyErr_Occurred()) SWIG_fail; | |
10536 | } | |
10537 | Py_INCREF(Py_None); resultobj = Py_None; | |
10538 | return resultobj; | |
10539 | fail: | |
10540 | return NULL; | |
10541 | } | |
10542 | ||
10543 | ||
10544 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { | |
10545 | PyObject *resultobj; | |
10546 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10547 | int arg2 ; | |
10548 | int arg3 ; | |
10549 | int arg4 = (int) wxCONVERT_STRICT ; | |
10550 | bool result; | |
10551 | PyObject * obj0 = 0 ; | |
10552 | PyObject * obj1 = 0 ; | |
10553 | PyObject * obj2 = 0 ; | |
10554 | PyObject * obj3 = 0 ; | |
10555 | char *kwnames[] = { | |
10556 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10557 | }; | |
10558 | ||
10559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10562 | arg2 = (int)SWIG_As_int(obj1); | |
10563 | if (PyErr_Occurred()) SWIG_fail; | |
10564 | arg3 = (int)SWIG_As_int(obj2); | |
10565 | if (PyErr_Occurred()) SWIG_fail; | |
10566 | if (obj3) { | |
10567 | arg4 = (int)SWIG_As_int(obj3); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | { | |
10571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10572 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10573 | ||
10574 | wxPyEndAllowThreads(__tstate); | |
10575 | if (PyErr_Occurred()) SWIG_fail; | |
10576 | } | |
10577 | { | |
10578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10579 | } | |
10580 | return resultobj; | |
10581 | fail: | |
10582 | return NULL; | |
10583 | } | |
10584 | ||
10585 | ||
10586 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { | |
10587 | PyObject *resultobj; | |
10588 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10589 | wxString *arg2 = 0 ; | |
10590 | wxString result; | |
10591 | bool temp2 = false ; | |
10592 | PyObject * obj0 = 0 ; | |
10593 | PyObject * obj1 = 0 ; | |
10594 | char *kwnames[] = { | |
10595 | (char *) "self",(char *) "input", NULL | |
10596 | }; | |
10597 | ||
10598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
10599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10601 | { | |
10602 | arg2 = wxString_in_helper(obj1); | |
10603 | if (arg2 == NULL) SWIG_fail; | |
10604 | temp2 = true; | |
10605 | } | |
10606 | { | |
10607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10608 | result = (arg1)->Convert((wxString const &)*arg2); | |
10609 | ||
10610 | wxPyEndAllowThreads(__tstate); | |
10611 | if (PyErr_Occurred()) SWIG_fail; | |
10612 | } | |
10613 | { | |
10614 | #if wxUSE_UNICODE | |
10615 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10616 | #else | |
10617 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10618 | #endif | |
10619 | } | |
10620 | { | |
10621 | if (temp2) | |
10622 | delete arg2; | |
10623 | } | |
10624 | return resultobj; | |
10625 | fail: | |
10626 | { | |
10627 | if (temp2) | |
10628 | delete arg2; | |
10629 | } | |
10630 | return NULL; | |
10631 | } | |
10632 | ||
10633 | ||
10634 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { | |
10635 | PyObject *resultobj; | |
10636 | int arg1 ; | |
10637 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10638 | wxFontEncodingArray result; | |
10639 | PyObject * obj0 = 0 ; | |
10640 | PyObject * obj1 = 0 ; | |
10641 | char *kwnames[] = { | |
10642 | (char *) "enc",(char *) "platform", NULL | |
10643 | }; | |
10644 | ||
10645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; | |
10646 | arg1 = (int)SWIG_As_int(obj0); | |
10647 | if (PyErr_Occurred()) SWIG_fail; | |
10648 | if (obj1) { | |
10649 | arg2 = (int)SWIG_As_int(obj1); | |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
10651 | } | |
10652 | { | |
10653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10654 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10655 | ||
10656 | wxPyEndAllowThreads(__tstate); | |
10657 | if (PyErr_Occurred()) SWIG_fail; | |
10658 | } | |
10659 | { | |
10660 | resultobj = PyList_New(0); | |
10661 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10662 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10663 | PyList_Append(resultobj, number); | |
10664 | Py_DECREF(number); | |
10665 | } | |
10666 | } | |
10667 | return resultobj; | |
10668 | fail: | |
10669 | return NULL; | |
10670 | } | |
10671 | ||
10672 | ||
10673 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { | |
10674 | PyObject *resultobj; | |
10675 | int arg1 ; | |
10676 | wxFontEncodingArray result; | |
10677 | PyObject * obj0 = 0 ; | |
10678 | char *kwnames[] = { | |
10679 | (char *) "enc", NULL | |
10680 | }; | |
10681 | ||
10682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; | |
10683 | arg1 = (int)SWIG_As_int(obj0); | |
10684 | if (PyErr_Occurred()) SWIG_fail; | |
10685 | { | |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10688 | ||
10689 | wxPyEndAllowThreads(__tstate); | |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
10691 | } | |
10692 | { | |
10693 | resultobj = PyList_New(0); | |
10694 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10695 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10696 | PyList_Append(resultobj, number); | |
10697 | Py_DECREF(number); | |
10698 | } | |
10699 | } | |
10700 | return resultobj; | |
10701 | fail: | |
10702 | return NULL; | |
10703 | } | |
10704 | ||
10705 | ||
10706 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { | |
10707 | PyObject *resultobj; | |
10708 | int arg1 ; | |
10709 | int arg2 ; | |
10710 | bool result; | |
10711 | PyObject * obj0 = 0 ; | |
10712 | PyObject * obj1 = 0 ; | |
10713 | char *kwnames[] = { | |
10714 | (char *) "encIn",(char *) "encOut", NULL | |
10715 | }; | |
10716 | ||
10717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; | |
10718 | arg1 = (int)SWIG_As_int(obj0); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | arg2 = (int)SWIG_As_int(obj1); | |
10721 | if (PyErr_Occurred()) SWIG_fail; | |
10722 | { | |
10723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10724 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10725 | ||
10726 | wxPyEndAllowThreads(__tstate); | |
10727 | if (PyErr_Occurred()) SWIG_fail; | |
10728 | } | |
10729 | { | |
10730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10731 | } | |
10732 | return resultobj; | |
10733 | fail: | |
10734 | return NULL; | |
10735 | } | |
10736 | ||
10737 | ||
10738 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { | |
10739 | PyObject *obj; | |
10740 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10741 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10742 | Py_INCREF(obj); | |
10743 | return Py_BuildValue((char *)""); | |
10744 | } | |
10745 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { | |
10746 | PyObject *resultobj; | |
10747 | wxDC *arg1 = (wxDC *) 0 ; | |
10748 | PyObject * obj0 = 0 ; | |
10749 | char *kwnames[] = { | |
10750 | (char *) "self", NULL | |
10751 | }; | |
10752 | ||
10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
10754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | delete arg1; | |
10759 | ||
10760 | wxPyEndAllowThreads(__tstate); | |
10761 | if (PyErr_Occurred()) SWIG_fail; | |
10762 | } | |
10763 | Py_INCREF(Py_None); resultobj = Py_None; | |
10764 | return resultobj; | |
10765 | fail: | |
10766 | return NULL; | |
10767 | } | |
10768 | ||
10769 | ||
10770 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { | |
10771 | PyObject *resultobj; | |
10772 | wxDC *arg1 = (wxDC *) 0 ; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | char *kwnames[] = { | |
10775 | (char *) "self", NULL | |
10776 | }; | |
10777 | ||
10778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
10779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10781 | { | |
10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10783 | (arg1)->BeginDrawing(); | |
10784 | ||
10785 | wxPyEndAllowThreads(__tstate); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
10788 | Py_INCREF(Py_None); resultobj = Py_None; | |
10789 | return resultobj; | |
10790 | fail: | |
10791 | return NULL; | |
10792 | } | |
10793 | ||
10794 | ||
10795 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { | |
10796 | PyObject *resultobj; | |
10797 | wxDC *arg1 = (wxDC *) 0 ; | |
10798 | PyObject * obj0 = 0 ; | |
10799 | char *kwnames[] = { | |
10800 | (char *) "self", NULL | |
10801 | }; | |
10802 | ||
10803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10806 | { | |
10807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10808 | (arg1)->EndDrawing(); | |
10809 | ||
10810 | wxPyEndAllowThreads(__tstate); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
10812 | } | |
10813 | Py_INCREF(Py_None); resultobj = Py_None; | |
10814 | return resultobj; | |
10815 | fail: | |
10816 | return NULL; | |
10817 | } | |
10818 | ||
10819 | ||
10820 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { | |
10821 | PyObject *resultobj; | |
10822 | wxDC *arg1 = (wxDC *) 0 ; | |
10823 | int arg2 ; | |
10824 | int arg3 ; | |
10825 | wxColour *arg4 = 0 ; | |
10826 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10827 | bool result; | |
10828 | wxColour temp4 ; | |
10829 | PyObject * obj0 = 0 ; | |
10830 | PyObject * obj1 = 0 ; | |
10831 | PyObject * obj2 = 0 ; | |
10832 | PyObject * obj3 = 0 ; | |
10833 | PyObject * obj4 = 0 ; | |
10834 | char *kwnames[] = { | |
10835 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10836 | }; | |
10837 | ||
10838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10841 | arg2 = (int)SWIG_As_int(obj1); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | arg3 = (int)SWIG_As_int(obj2); | |
10844 | if (PyErr_Occurred()) SWIG_fail; | |
10845 | { | |
10846 | arg4 = &temp4; | |
10847 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10848 | } | |
10849 | if (obj4) { | |
10850 | arg5 = (int)SWIG_As_int(obj4); | |
10851 | if (PyErr_Occurred()) SWIG_fail; | |
10852 | } | |
10853 | { | |
10854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10855 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10856 | ||
10857 | wxPyEndAllowThreads(__tstate); | |
10858 | if (PyErr_Occurred()) SWIG_fail; | |
10859 | } | |
10860 | { | |
10861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10862 | } | |
10863 | return resultobj; | |
10864 | fail: | |
10865 | return NULL; | |
10866 | } | |
10867 | ||
10868 | ||
10869 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
10870 | PyObject *resultobj; | |
10871 | wxDC *arg1 = (wxDC *) 0 ; | |
10872 | wxPoint *arg2 = 0 ; | |
10873 | wxColour *arg3 = 0 ; | |
10874 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10875 | bool result; | |
10876 | wxPoint temp2 ; | |
10877 | wxColour temp3 ; | |
10878 | PyObject * obj0 = 0 ; | |
10879 | PyObject * obj1 = 0 ; | |
10880 | PyObject * obj2 = 0 ; | |
10881 | PyObject * obj3 = 0 ; | |
10882 | char *kwnames[] = { | |
10883 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10884 | }; | |
10885 | ||
10886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10889 | { | |
10890 | arg2 = &temp2; | |
10891 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10892 | } | |
10893 | { | |
10894 | arg3 = &temp3; | |
10895 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10896 | } | |
10897 | if (obj3) { | |
10898 | arg4 = (int)SWIG_As_int(obj3); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
10901 | { | |
10902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10903 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10904 | ||
10905 | wxPyEndAllowThreads(__tstate); | |
10906 | if (PyErr_Occurred()) SWIG_fail; | |
10907 | } | |
10908 | { | |
10909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10910 | } | |
10911 | return resultobj; | |
10912 | fail: | |
10913 | return NULL; | |
10914 | } | |
10915 | ||
10916 | ||
10917 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { | |
10918 | PyObject *resultobj; | |
10919 | wxDC *arg1 = (wxDC *) 0 ; | |
10920 | int arg2 ; | |
10921 | int arg3 ; | |
10922 | wxColour result; | |
10923 | PyObject * obj0 = 0 ; | |
10924 | PyObject * obj1 = 0 ; | |
10925 | PyObject * obj2 = 0 ; | |
10926 | char *kwnames[] = { | |
10927 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10928 | }; | |
10929 | ||
10930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10933 | arg2 = (int)SWIG_As_int(obj1); | |
10934 | if (PyErr_Occurred()) SWIG_fail; | |
10935 | arg3 = (int)SWIG_As_int(obj2); | |
10936 | if (PyErr_Occurred()) SWIG_fail; | |
10937 | { | |
10938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10939 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
10940 | ||
10941 | wxPyEndAllowThreads(__tstate); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | } | |
10944 | { | |
10945 | wxColour * resultptr; | |
10946 | resultptr = new wxColour((wxColour &) result); | |
10947 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10948 | } | |
10949 | return resultobj; | |
10950 | fail: | |
10951 | return NULL; | |
10952 | } | |
10953 | ||
10954 | ||
10955 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
10956 | PyObject *resultobj; | |
10957 | wxDC *arg1 = (wxDC *) 0 ; | |
10958 | wxPoint *arg2 = 0 ; | |
10959 | wxColour result; | |
10960 | wxPoint temp2 ; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | PyObject * obj1 = 0 ; | |
10963 | char *kwnames[] = { | |
10964 | (char *) "self",(char *) "pt", NULL | |
10965 | }; | |
10966 | ||
10967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; | |
10968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10970 | { | |
10971 | arg2 = &temp2; | |
10972 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10973 | } | |
10974 | { | |
10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10976 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
10977 | ||
10978 | wxPyEndAllowThreads(__tstate); | |
10979 | if (PyErr_Occurred()) SWIG_fail; | |
10980 | } | |
10981 | { | |
10982 | wxColour * resultptr; | |
10983 | resultptr = new wxColour((wxColour &) result); | |
10984 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10985 | } | |
10986 | return resultobj; | |
10987 | fail: | |
10988 | return NULL; | |
10989 | } | |
10990 | ||
10991 | ||
10992 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { | |
10993 | PyObject *resultobj; | |
10994 | wxDC *arg1 = (wxDC *) 0 ; | |
10995 | int arg2 ; | |
10996 | int arg3 ; | |
10997 | int arg4 ; | |
10998 | int arg5 ; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | PyObject * obj1 = 0 ; | |
11001 | PyObject * obj2 = 0 ; | |
11002 | PyObject * obj3 = 0 ; | |
11003 | PyObject * obj4 = 0 ; | |
11004 | char *kwnames[] = { | |
11005 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
11006 | }; | |
11007 | ||
11008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11011 | arg2 = (int)SWIG_As_int(obj1); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | arg3 = (int)SWIG_As_int(obj2); | |
11014 | if (PyErr_Occurred()) SWIG_fail; | |
11015 | arg4 = (int)SWIG_As_int(obj3); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
11017 | arg5 = (int)SWIG_As_int(obj4); | |
11018 | if (PyErr_Occurred()) SWIG_fail; | |
11019 | { | |
11020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11021 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
11022 | ||
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
11026 | Py_INCREF(Py_None); resultobj = Py_None; | |
11027 | return resultobj; | |
11028 | fail: | |
11029 | return NULL; | |
11030 | } | |
11031 | ||
11032 | ||
11033 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11034 | PyObject *resultobj; | |
11035 | wxDC *arg1 = (wxDC *) 0 ; | |
11036 | wxPoint *arg2 = 0 ; | |
11037 | wxPoint *arg3 = 0 ; | |
11038 | wxPoint temp2 ; | |
11039 | wxPoint temp3 ; | |
11040 | PyObject * obj0 = 0 ; | |
11041 | PyObject * obj1 = 0 ; | |
11042 | PyObject * obj2 = 0 ; | |
11043 | char *kwnames[] = { | |
11044 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
11045 | }; | |
11046 | ||
11047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11050 | { | |
11051 | arg2 = &temp2; | |
11052 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11053 | } | |
11054 | { | |
11055 | arg3 = &temp3; | |
11056 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11057 | } | |
11058 | { | |
11059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11060 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11061 | ||
11062 | wxPyEndAllowThreads(__tstate); | |
11063 | if (PyErr_Occurred()) SWIG_fail; | |
11064 | } | |
11065 | Py_INCREF(Py_None); resultobj = Py_None; | |
11066 | return resultobj; | |
11067 | fail: | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
11072 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { | |
11073 | PyObject *resultobj; | |
11074 | wxDC *arg1 = (wxDC *) 0 ; | |
11075 | int arg2 ; | |
11076 | int arg3 ; | |
11077 | PyObject * obj0 = 0 ; | |
11078 | PyObject * obj1 = 0 ; | |
11079 | PyObject * obj2 = 0 ; | |
11080 | char *kwnames[] = { | |
11081 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11082 | }; | |
11083 | ||
11084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11087 | arg2 = (int)SWIG_As_int(obj1); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | arg3 = (int)SWIG_As_int(obj2); | |
11090 | if (PyErr_Occurred()) SWIG_fail; | |
11091 | { | |
11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11093 | (arg1)->CrossHair(arg2,arg3); | |
11094 | ||
11095 | wxPyEndAllowThreads(__tstate); | |
11096 | if (PyErr_Occurred()) SWIG_fail; | |
11097 | } | |
11098 | Py_INCREF(Py_None); resultobj = Py_None; | |
11099 | return resultobj; | |
11100 | fail: | |
11101 | return NULL; | |
11102 | } | |
11103 | ||
11104 | ||
11105 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject *resultobj; | |
11107 | wxDC *arg1 = (wxDC *) 0 ; | |
11108 | wxPoint *arg2 = 0 ; | |
11109 | wxPoint temp2 ; | |
11110 | PyObject * obj0 = 0 ; | |
11111 | PyObject * obj1 = 0 ; | |
11112 | char *kwnames[] = { | |
11113 | (char *) "self",(char *) "pt", NULL | |
11114 | }; | |
11115 | ||
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; | |
11117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11119 | { | |
11120 | arg2 = &temp2; | |
11121 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11122 | } | |
11123 | { | |
11124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11125 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11126 | ||
11127 | wxPyEndAllowThreads(__tstate); | |
11128 | if (PyErr_Occurred()) SWIG_fail; | |
11129 | } | |
11130 | Py_INCREF(Py_None); resultobj = Py_None; | |
11131 | return resultobj; | |
11132 | fail: | |
11133 | return NULL; | |
11134 | } | |
11135 | ||
11136 | ||
11137 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { | |
11138 | PyObject *resultobj; | |
11139 | wxDC *arg1 = (wxDC *) 0 ; | |
11140 | int arg2 ; | |
11141 | int arg3 ; | |
11142 | int arg4 ; | |
11143 | int arg5 ; | |
11144 | int arg6 ; | |
11145 | int arg7 ; | |
11146 | PyObject * obj0 = 0 ; | |
11147 | PyObject * obj1 = 0 ; | |
11148 | PyObject * obj2 = 0 ; | |
11149 | PyObject * obj3 = 0 ; | |
11150 | PyObject * obj4 = 0 ; | |
11151 | PyObject * obj5 = 0 ; | |
11152 | PyObject * obj6 = 0 ; | |
11153 | char *kwnames[] = { | |
11154 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11155 | }; | |
11156 | ||
11157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11160 | arg2 = (int)SWIG_As_int(obj1); | |
11161 | if (PyErr_Occurred()) SWIG_fail; | |
11162 | arg3 = (int)SWIG_As_int(obj2); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | arg4 = (int)SWIG_As_int(obj3); | |
11165 | if (PyErr_Occurred()) SWIG_fail; | |
11166 | arg5 = (int)SWIG_As_int(obj4); | |
11167 | if (PyErr_Occurred()) SWIG_fail; | |
11168 | arg6 = (int)SWIG_As_int(obj5); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | arg7 = (int)SWIG_As_int(obj6); | |
11171 | if (PyErr_Occurred()) SWIG_fail; | |
11172 | { | |
11173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11174 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11175 | ||
11176 | wxPyEndAllowThreads(__tstate); | |
11177 | if (PyErr_Occurred()) SWIG_fail; | |
11178 | } | |
11179 | Py_INCREF(Py_None); resultobj = Py_None; | |
11180 | return resultobj; | |
11181 | fail: | |
11182 | return NULL; | |
11183 | } | |
11184 | ||
11185 | ||
11186 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11187 | PyObject *resultobj; | |
11188 | wxDC *arg1 = (wxDC *) 0 ; | |
11189 | wxPoint *arg2 = 0 ; | |
11190 | wxPoint *arg3 = 0 ; | |
11191 | wxPoint *arg4 = 0 ; | |
11192 | wxPoint temp2 ; | |
11193 | wxPoint temp3 ; | |
11194 | wxPoint temp4 ; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | PyObject * obj1 = 0 ; | |
11197 | PyObject * obj2 = 0 ; | |
11198 | PyObject * obj3 = 0 ; | |
11199 | char *kwnames[] = { | |
11200 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
11201 | }; | |
11202 | ||
11203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11206 | { | |
11207 | arg2 = &temp2; | |
11208 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11209 | } | |
11210 | { | |
11211 | arg3 = &temp3; | |
11212 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11213 | } | |
11214 | { | |
11215 | arg4 = &temp4; | |
11216 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11217 | } | |
11218 | { | |
11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11220 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11221 | ||
11222 | wxPyEndAllowThreads(__tstate); | |
11223 | if (PyErr_Occurred()) SWIG_fail; | |
11224 | } | |
11225 | Py_INCREF(Py_None); resultobj = Py_None; | |
11226 | return resultobj; | |
11227 | fail: | |
11228 | return NULL; | |
11229 | } | |
11230 | ||
11231 | ||
11232 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { | |
11233 | PyObject *resultobj; | |
11234 | wxDC *arg1 = (wxDC *) 0 ; | |
11235 | int arg2 ; | |
11236 | int arg3 ; | |
11237 | int arg4 ; | |
11238 | int arg5 ; | |
11239 | PyObject * obj0 = 0 ; | |
11240 | PyObject * obj1 = 0 ; | |
11241 | PyObject * obj2 = 0 ; | |
11242 | PyObject * obj3 = 0 ; | |
11243 | PyObject * obj4 = 0 ; | |
11244 | char *kwnames[] = { | |
11245 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11246 | }; | |
11247 | ||
11248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11251 | arg2 = (int)SWIG_As_int(obj1); | |
11252 | if (PyErr_Occurred()) SWIG_fail; | |
11253 | arg3 = (int)SWIG_As_int(obj2); | |
11254 | if (PyErr_Occurred()) SWIG_fail; | |
11255 | arg4 = (int)SWIG_As_int(obj3); | |
11256 | if (PyErr_Occurred()) SWIG_fail; | |
11257 | arg5 = (int)SWIG_As_int(obj4); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | { | |
11260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11261 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11262 | ||
11263 | wxPyEndAllowThreads(__tstate); | |
11264 | if (PyErr_Occurred()) SWIG_fail; | |
11265 | } | |
11266 | Py_INCREF(Py_None); resultobj = Py_None; | |
11267 | return resultobj; | |
11268 | fail: | |
11269 | return NULL; | |
11270 | } | |
11271 | ||
11272 | ||
11273 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
11274 | PyObject *resultobj; | |
11275 | wxDC *arg1 = (wxDC *) 0 ; | |
11276 | wxRect *arg2 = 0 ; | |
11277 | wxRect temp2 ; | |
11278 | PyObject * obj0 = 0 ; | |
11279 | PyObject * obj1 = 0 ; | |
11280 | char *kwnames[] = { | |
11281 | (char *) "self",(char *) "rect", NULL | |
11282 | }; | |
11283 | ||
11284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; | |
11285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11287 | { | |
11288 | arg2 = &temp2; | |
11289 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11290 | } | |
11291 | { | |
11292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11293 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11294 | ||
11295 | wxPyEndAllowThreads(__tstate); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
11297 | } | |
11298 | Py_INCREF(Py_None); resultobj = Py_None; | |
11299 | return resultobj; | |
11300 | fail: | |
11301 | return NULL; | |
11302 | } | |
11303 | ||
11304 | ||
11305 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { | |
11306 | PyObject *resultobj; | |
11307 | wxDC *arg1 = (wxDC *) 0 ; | |
11308 | int arg2 ; | |
11309 | int arg3 ; | |
11310 | int arg4 ; | |
11311 | int arg5 ; | |
11312 | double arg6 ; | |
11313 | double arg7 ; | |
11314 | PyObject * obj0 = 0 ; | |
11315 | PyObject * obj1 = 0 ; | |
11316 | PyObject * obj2 = 0 ; | |
11317 | PyObject * obj3 = 0 ; | |
11318 | PyObject * obj4 = 0 ; | |
11319 | PyObject * obj5 = 0 ; | |
11320 | PyObject * obj6 = 0 ; | |
11321 | char *kwnames[] = { | |
11322 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
11323 | }; | |
11324 | ||
11325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11328 | arg2 = (int)SWIG_As_int(obj1); | |
11329 | if (PyErr_Occurred()) SWIG_fail; | |
11330 | arg3 = (int)SWIG_As_int(obj2); | |
11331 | if (PyErr_Occurred()) SWIG_fail; | |
11332 | arg4 = (int)SWIG_As_int(obj3); | |
11333 | if (PyErr_Occurred()) SWIG_fail; | |
11334 | arg5 = (int)SWIG_As_int(obj4); | |
11335 | if (PyErr_Occurred()) SWIG_fail; | |
11336 | arg6 = (double)SWIG_As_double(obj5); | |
11337 | if (PyErr_Occurred()) SWIG_fail; | |
11338 | arg7 = (double)SWIG_As_double(obj6); | |
11339 | if (PyErr_Occurred()) SWIG_fail; | |
11340 | { | |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11343 | ||
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
11347 | Py_INCREF(Py_None); resultobj = Py_None; | |
11348 | return resultobj; | |
11349 | fail: | |
11350 | return NULL; | |
11351 | } | |
11352 | ||
11353 | ||
11354 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
11355 | PyObject *resultobj; | |
11356 | wxDC *arg1 = (wxDC *) 0 ; | |
11357 | wxPoint *arg2 = 0 ; | |
11358 | wxSize *arg3 = 0 ; | |
11359 | double arg4 ; | |
11360 | double arg5 ; | |
11361 | wxPoint temp2 ; | |
11362 | wxSize temp3 ; | |
11363 | PyObject * obj0 = 0 ; | |
11364 | PyObject * obj1 = 0 ; | |
11365 | PyObject * obj2 = 0 ; | |
11366 | PyObject * obj3 = 0 ; | |
11367 | PyObject * obj4 = 0 ; | |
11368 | char *kwnames[] = { | |
11369 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
11370 | }; | |
11371 | ||
11372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11375 | { | |
11376 | arg2 = &temp2; | |
11377 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11378 | } | |
11379 | { | |
11380 | arg3 = &temp3; | |
11381 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11382 | } | |
11383 | arg4 = (double)SWIG_As_double(obj3); | |
11384 | if (PyErr_Occurred()) SWIG_fail; | |
11385 | arg5 = (double)SWIG_As_double(obj4); | |
11386 | if (PyErr_Occurred()) SWIG_fail; | |
11387 | { | |
11388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11389 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11390 | ||
11391 | wxPyEndAllowThreads(__tstate); | |
11392 | if (PyErr_Occurred()) SWIG_fail; | |
11393 | } | |
11394 | Py_INCREF(Py_None); resultobj = Py_None; | |
11395 | return resultobj; | |
11396 | fail: | |
11397 | return NULL; | |
11398 | } | |
11399 | ||
11400 | ||
11401 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11402 | PyObject *resultobj; | |
11403 | wxDC *arg1 = (wxDC *) 0 ; | |
11404 | int arg2 ; | |
11405 | int arg3 ; | |
11406 | PyObject * obj0 = 0 ; | |
11407 | PyObject * obj1 = 0 ; | |
11408 | PyObject * obj2 = 0 ; | |
11409 | char *kwnames[] = { | |
11410 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11411 | }; | |
11412 | ||
11413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11416 | arg2 = (int)SWIG_As_int(obj1); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | arg3 = (int)SWIG_As_int(obj2); | |
11419 | if (PyErr_Occurred()) SWIG_fail; | |
11420 | { | |
11421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11422 | (arg1)->DrawPoint(arg2,arg3); | |
11423 | ||
11424 | wxPyEndAllowThreads(__tstate); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | } | |
11427 | Py_INCREF(Py_None); resultobj = Py_None; | |
11428 | return resultobj; | |
11429 | fail: | |
11430 | return NULL; | |
11431 | } | |
11432 | ||
11433 | ||
11434 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11435 | PyObject *resultobj; | |
11436 | wxDC *arg1 = (wxDC *) 0 ; | |
11437 | wxPoint *arg2 = 0 ; | |
11438 | wxPoint temp2 ; | |
11439 | PyObject * obj0 = 0 ; | |
11440 | PyObject * obj1 = 0 ; | |
11441 | char *kwnames[] = { | |
11442 | (char *) "self",(char *) "pt", NULL | |
11443 | }; | |
11444 | ||
11445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; | |
11446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11448 | { | |
11449 | arg2 = &temp2; | |
11450 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11451 | } | |
11452 | { | |
11453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11454 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11455 | ||
11456 | wxPyEndAllowThreads(__tstate); | |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
11458 | } | |
11459 | Py_INCREF(Py_None); resultobj = Py_None; | |
11460 | return resultobj; | |
11461 | fail: | |
11462 | return NULL; | |
11463 | } | |
11464 | ||
11465 | ||
11466 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { | |
11467 | PyObject *resultobj; | |
11468 | wxDC *arg1 = (wxDC *) 0 ; | |
11469 | int arg2 ; | |
11470 | int arg3 ; | |
11471 | int arg4 ; | |
11472 | int arg5 ; | |
11473 | PyObject * obj0 = 0 ; | |
11474 | PyObject * obj1 = 0 ; | |
11475 | PyObject * obj2 = 0 ; | |
11476 | PyObject * obj3 = 0 ; | |
11477 | PyObject * obj4 = 0 ; | |
11478 | char *kwnames[] = { | |
11479 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11480 | }; | |
11481 | ||
11482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11485 | arg2 = (int)SWIG_As_int(obj1); | |
11486 | if (PyErr_Occurred()) SWIG_fail; | |
11487 | arg3 = (int)SWIG_As_int(obj2); | |
11488 | if (PyErr_Occurred()) SWIG_fail; | |
11489 | arg4 = (int)SWIG_As_int(obj3); | |
11490 | if (PyErr_Occurred()) SWIG_fail; | |
11491 | arg5 = (int)SWIG_As_int(obj4); | |
11492 | if (PyErr_Occurred()) SWIG_fail; | |
11493 | { | |
11494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11495 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11496 | ||
11497 | wxPyEndAllowThreads(__tstate); | |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | } | |
11500 | Py_INCREF(Py_None); resultobj = Py_None; | |
11501 | return resultobj; | |
11502 | fail: | |
11503 | return NULL; | |
11504 | } | |
11505 | ||
11506 | ||
11507 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
11508 | PyObject *resultobj; | |
11509 | wxDC *arg1 = (wxDC *) 0 ; | |
11510 | wxRect *arg2 = 0 ; | |
11511 | wxRect temp2 ; | |
11512 | PyObject * obj0 = 0 ; | |
11513 | PyObject * obj1 = 0 ; | |
11514 | char *kwnames[] = { | |
11515 | (char *) "self",(char *) "rect", NULL | |
11516 | }; | |
11517 | ||
11518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
11519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11521 | { | |
11522 | arg2 = &temp2; | |
11523 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11524 | } | |
11525 | { | |
11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11527 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
11528 | ||
11529 | wxPyEndAllowThreads(__tstate); | |
11530 | if (PyErr_Occurred()) SWIG_fail; | |
11531 | } | |
11532 | Py_INCREF(Py_None); resultobj = Py_None; | |
11533 | return resultobj; | |
11534 | fail: | |
11535 | return NULL; | |
11536 | } | |
11537 | ||
11538 | ||
11539 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
11540 | PyObject *resultobj; | |
11541 | wxDC *arg1 = (wxDC *) 0 ; | |
11542 | wxPoint *arg2 = 0 ; | |
11543 | wxSize *arg3 = 0 ; | |
11544 | wxPoint temp2 ; | |
11545 | wxSize temp3 ; | |
11546 | PyObject * obj0 = 0 ; | |
11547 | PyObject * obj1 = 0 ; | |
11548 | PyObject * obj2 = 0 ; | |
11549 | char *kwnames[] = { | |
11550 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11551 | }; | |
11552 | ||
11553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11556 | { | |
11557 | arg2 = &temp2; | |
11558 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11559 | } | |
11560 | { | |
11561 | arg3 = &temp3; | |
11562 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11563 | } | |
11564 | { | |
11565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11566 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11567 | ||
11568 | wxPyEndAllowThreads(__tstate); | |
11569 | if (PyErr_Occurred()) SWIG_fail; | |
11570 | } | |
11571 | Py_INCREF(Py_None); resultobj = Py_None; | |
11572 | return resultobj; | |
11573 | fail: | |
11574 | return NULL; | |
11575 | } | |
11576 | ||
11577 | ||
11578 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { | |
11579 | PyObject *resultobj; | |
11580 | wxDC *arg1 = (wxDC *) 0 ; | |
11581 | int arg2 ; | |
11582 | int arg3 ; | |
11583 | int arg4 ; | |
11584 | int arg5 ; | |
11585 | double arg6 ; | |
11586 | PyObject * obj0 = 0 ; | |
11587 | PyObject * obj1 = 0 ; | |
11588 | PyObject * obj2 = 0 ; | |
11589 | PyObject * obj3 = 0 ; | |
11590 | PyObject * obj4 = 0 ; | |
11591 | PyObject * obj5 = 0 ; | |
11592 | char *kwnames[] = { | |
11593 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11594 | }; | |
11595 | ||
11596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
11597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11599 | arg2 = (int)SWIG_As_int(obj1); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | arg3 = (int)SWIG_As_int(obj2); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | arg4 = (int)SWIG_As_int(obj3); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | arg5 = (int)SWIG_As_int(obj4); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | arg6 = (double)SWIG_As_double(obj5); | |
11608 | if (PyErr_Occurred()) SWIG_fail; | |
11609 | { | |
11610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11611 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11612 | ||
11613 | wxPyEndAllowThreads(__tstate); | |
11614 | if (PyErr_Occurred()) SWIG_fail; | |
11615 | } | |
11616 | Py_INCREF(Py_None); resultobj = Py_None; | |
11617 | return resultobj; | |
11618 | fail: | |
11619 | return NULL; | |
11620 | } | |
11621 | ||
11622 | ||
11623 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
11624 | PyObject *resultobj; | |
11625 | wxDC *arg1 = (wxDC *) 0 ; | |
11626 | wxRect *arg2 = 0 ; | |
11627 | double arg3 ; | |
11628 | wxRect temp2 ; | |
11629 | PyObject * obj0 = 0 ; | |
11630 | PyObject * obj1 = 0 ; | |
11631 | PyObject * obj2 = 0 ; | |
11632 | char *kwnames[] = { | |
11633 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
11634 | }; | |
11635 | ||
11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11639 | { | |
11640 | arg2 = &temp2; | |
11641 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11642 | } | |
11643 | arg3 = (double)SWIG_As_double(obj2); | |
11644 | if (PyErr_Occurred()) SWIG_fail; | |
11645 | { | |
11646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11647 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
11648 | ||
11649 | wxPyEndAllowThreads(__tstate); | |
11650 | if (PyErr_Occurred()) SWIG_fail; | |
11651 | } | |
11652 | Py_INCREF(Py_None); resultobj = Py_None; | |
11653 | return resultobj; | |
11654 | fail: | |
11655 | return NULL; | |
11656 | } | |
11657 | ||
11658 | ||
11659 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
11660 | PyObject *resultobj; | |
11661 | wxDC *arg1 = (wxDC *) 0 ; | |
11662 | wxPoint *arg2 = 0 ; | |
11663 | wxSize *arg3 = 0 ; | |
11664 | double arg4 ; | |
11665 | wxPoint temp2 ; | |
11666 | wxSize temp3 ; | |
11667 | PyObject * obj0 = 0 ; | |
11668 | PyObject * obj1 = 0 ; | |
11669 | PyObject * obj2 = 0 ; | |
11670 | PyObject * obj3 = 0 ; | |
11671 | char *kwnames[] = { | |
11672 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
11673 | }; | |
11674 | ||
11675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11678 | { | |
11679 | arg2 = &temp2; | |
11680 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11681 | } | |
11682 | { | |
11683 | arg3 = &temp3; | |
11684 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11685 | } | |
11686 | arg4 = (double)SWIG_As_double(obj3); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
11688 | { | |
11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11690 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
11691 | ||
11692 | wxPyEndAllowThreads(__tstate); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
11695 | Py_INCREF(Py_None); resultobj = Py_None; | |
11696 | return resultobj; | |
11697 | fail: | |
11698 | return NULL; | |
11699 | } | |
11700 | ||
11701 | ||
11702 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { | |
11703 | PyObject *resultobj; | |
11704 | wxDC *arg1 = (wxDC *) 0 ; | |
11705 | int arg2 ; | |
11706 | int arg3 ; | |
11707 | int arg4 ; | |
11708 | PyObject * obj0 = 0 ; | |
11709 | PyObject * obj1 = 0 ; | |
11710 | PyObject * obj2 = 0 ; | |
11711 | PyObject * obj3 = 0 ; | |
11712 | char *kwnames[] = { | |
11713 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11714 | }; | |
11715 | ||
11716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11719 | arg2 = (int)SWIG_As_int(obj1); | |
11720 | if (PyErr_Occurred()) SWIG_fail; | |
11721 | arg3 = (int)SWIG_As_int(obj2); | |
11722 | if (PyErr_Occurred()) SWIG_fail; | |
11723 | arg4 = (int)SWIG_As_int(obj3); | |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11728 | ||
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | Py_INCREF(Py_None); resultobj = Py_None; | |
11733 | return resultobj; | |
11734 | fail: | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
11739 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11740 | PyObject *resultobj; | |
11741 | wxDC *arg1 = (wxDC *) 0 ; | |
11742 | wxPoint *arg2 = 0 ; | |
11743 | int arg3 ; | |
11744 | wxPoint temp2 ; | |
11745 | PyObject * obj0 = 0 ; | |
11746 | PyObject * obj1 = 0 ; | |
11747 | PyObject * obj2 = 0 ; | |
11748 | char *kwnames[] = { | |
11749 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11750 | }; | |
11751 | ||
11752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11755 | { | |
11756 | arg2 = &temp2; | |
11757 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11758 | } | |
11759 | arg3 = (int)SWIG_As_int(obj2); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | { | |
11762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11763 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11764 | ||
11765 | wxPyEndAllowThreads(__tstate); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
11768 | Py_INCREF(Py_None); resultobj = Py_None; | |
11769 | return resultobj; | |
11770 | fail: | |
11771 | return NULL; | |
11772 | } | |
11773 | ||
11774 | ||
11775 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { | |
11776 | PyObject *resultobj; | |
11777 | wxDC *arg1 = (wxDC *) 0 ; | |
11778 | int arg2 ; | |
11779 | int arg3 ; | |
11780 | int arg4 ; | |
11781 | int arg5 ; | |
11782 | PyObject * obj0 = 0 ; | |
11783 | PyObject * obj1 = 0 ; | |
11784 | PyObject * obj2 = 0 ; | |
11785 | PyObject * obj3 = 0 ; | |
11786 | PyObject * obj4 = 0 ; | |
11787 | char *kwnames[] = { | |
11788 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11789 | }; | |
11790 | ||
11791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11794 | arg2 = (int)SWIG_As_int(obj1); | |
11795 | if (PyErr_Occurred()) SWIG_fail; | |
11796 | arg3 = (int)SWIG_As_int(obj2); | |
11797 | if (PyErr_Occurred()) SWIG_fail; | |
11798 | arg4 = (int)SWIG_As_int(obj3); | |
11799 | if (PyErr_Occurred()) SWIG_fail; | |
11800 | arg5 = (int)SWIG_As_int(obj4); | |
11801 | if (PyErr_Occurred()) SWIG_fail; | |
11802 | { | |
11803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11804 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11805 | ||
11806 | wxPyEndAllowThreads(__tstate); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | } | |
11809 | Py_INCREF(Py_None); resultobj = Py_None; | |
11810 | return resultobj; | |
11811 | fail: | |
11812 | return NULL; | |
11813 | } | |
11814 | ||
11815 | ||
11816 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
11817 | PyObject *resultobj; | |
11818 | wxDC *arg1 = (wxDC *) 0 ; | |
11819 | wxRect *arg2 = 0 ; | |
11820 | wxRect temp2 ; | |
11821 | PyObject * obj0 = 0 ; | |
11822 | PyObject * obj1 = 0 ; | |
11823 | char *kwnames[] = { | |
11824 | (char *) "self",(char *) "rect", NULL | |
11825 | }; | |
11826 | ||
11827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
11828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11830 | { | |
11831 | arg2 = &temp2; | |
11832 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11833 | } | |
11834 | { | |
11835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11836 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11837 | ||
11838 | wxPyEndAllowThreads(__tstate); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | Py_INCREF(Py_None); resultobj = Py_None; | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | return NULL; | |
11845 | } | |
11846 | ||
11847 | ||
11848 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
11849 | PyObject *resultobj; | |
11850 | wxDC *arg1 = (wxDC *) 0 ; | |
11851 | wxPoint *arg2 = 0 ; | |
11852 | wxSize *arg3 = 0 ; | |
11853 | wxPoint temp2 ; | |
11854 | wxSize temp3 ; | |
11855 | PyObject * obj0 = 0 ; | |
11856 | PyObject * obj1 = 0 ; | |
11857 | PyObject * obj2 = 0 ; | |
11858 | char *kwnames[] = { | |
11859 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11860 | }; | |
11861 | ||
11862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11865 | { | |
11866 | arg2 = &temp2; | |
11867 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11868 | } | |
11869 | { | |
11870 | arg3 = &temp3; | |
11871 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11872 | } | |
11873 | { | |
11874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11875 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11876 | ||
11877 | wxPyEndAllowThreads(__tstate); | |
11878 | if (PyErr_Occurred()) SWIG_fail; | |
11879 | } | |
11880 | Py_INCREF(Py_None); resultobj = Py_None; | |
11881 | return resultobj; | |
11882 | fail: | |
11883 | return NULL; | |
11884 | } | |
11885 | ||
11886 | ||
11887 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
11888 | PyObject *resultobj; | |
11889 | wxDC *arg1 = (wxDC *) 0 ; | |
11890 | wxIcon *arg2 = 0 ; | |
11891 | int arg3 ; | |
11892 | int arg4 ; | |
11893 | PyObject * obj0 = 0 ; | |
11894 | PyObject * obj1 = 0 ; | |
11895 | PyObject * obj2 = 0 ; | |
11896 | PyObject * obj3 = 0 ; | |
11897 | char *kwnames[] = { | |
11898 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11899 | }; | |
11900 | ||
11901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11904 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11905 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11906 | SWIG_fail; | |
11907 | if (arg2 == NULL) { | |
11908 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11909 | SWIG_fail; | |
11910 | } | |
11911 | arg3 = (int)SWIG_As_int(obj2); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | arg4 = (int)SWIG_As_int(obj3); | |
11914 | if (PyErr_Occurred()) SWIG_fail; | |
11915 | { | |
11916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11917 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11918 | ||
11919 | wxPyEndAllowThreads(__tstate); | |
11920 | if (PyErr_Occurred()) SWIG_fail; | |
11921 | } | |
11922 | Py_INCREF(Py_None); resultobj = Py_None; | |
11923 | return resultobj; | |
11924 | fail: | |
11925 | return NULL; | |
11926 | } | |
11927 | ||
11928 | ||
11929 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
11930 | PyObject *resultobj; | |
11931 | wxDC *arg1 = (wxDC *) 0 ; | |
11932 | wxIcon *arg2 = 0 ; | |
11933 | wxPoint *arg3 = 0 ; | |
11934 | wxPoint temp3 ; | |
11935 | PyObject * obj0 = 0 ; | |
11936 | PyObject * obj1 = 0 ; | |
11937 | PyObject * obj2 = 0 ; | |
11938 | char *kwnames[] = { | |
11939 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11940 | }; | |
11941 | ||
11942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11945 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11946 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11947 | SWIG_fail; | |
11948 | if (arg2 == NULL) { | |
11949 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11950 | SWIG_fail; | |
11951 | } | |
11952 | { | |
11953 | arg3 = &temp3; | |
11954 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11955 | } | |
11956 | { | |
11957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11958 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11959 | ||
11960 | wxPyEndAllowThreads(__tstate); | |
11961 | if (PyErr_Occurred()) SWIG_fail; | |
11962 | } | |
11963 | Py_INCREF(Py_None); resultobj = Py_None; | |
11964 | return resultobj; | |
11965 | fail: | |
11966 | return NULL; | |
11967 | } | |
11968 | ||
11969 | ||
11970 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
11971 | PyObject *resultobj; | |
11972 | wxDC *arg1 = (wxDC *) 0 ; | |
11973 | wxBitmap *arg2 = 0 ; | |
11974 | int arg3 ; | |
11975 | int arg4 ; | |
11976 | bool arg5 = (bool) false ; | |
11977 | PyObject * obj0 = 0 ; | |
11978 | PyObject * obj1 = 0 ; | |
11979 | PyObject * obj2 = 0 ; | |
11980 | PyObject * obj3 = 0 ; | |
11981 | PyObject * obj4 = 0 ; | |
11982 | char *kwnames[] = { | |
11983 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11984 | }; | |
11985 | ||
11986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11991 | SWIG_fail; | |
11992 | if (arg2 == NULL) { | |
11993 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11994 | SWIG_fail; | |
11995 | } | |
11996 | arg3 = (int)SWIG_As_int(obj2); | |
11997 | if (PyErr_Occurred()) SWIG_fail; | |
11998 | arg4 = (int)SWIG_As_int(obj3); | |
11999 | if (PyErr_Occurred()) SWIG_fail; | |
12000 | if (obj4) { | |
12001 | arg5 = (bool)SWIG_As_bool(obj4); | |
12002 | if (PyErr_Occurred()) SWIG_fail; | |
12003 | } | |
12004 | { | |
12005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12006 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
12007 | ||
12008 | wxPyEndAllowThreads(__tstate); | |
12009 | if (PyErr_Occurred()) SWIG_fail; | |
12010 | } | |
12011 | Py_INCREF(Py_None); resultobj = Py_None; | |
12012 | return resultobj; | |
12013 | fail: | |
12014 | return NULL; | |
12015 | } | |
12016 | ||
12017 | ||
12018 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
12019 | PyObject *resultobj; | |
12020 | wxDC *arg1 = (wxDC *) 0 ; | |
12021 | wxBitmap *arg2 = 0 ; | |
12022 | wxPoint *arg3 = 0 ; | |
12023 | bool arg4 = (bool) false ; | |
12024 | wxPoint temp3 ; | |
12025 | PyObject * obj0 = 0 ; | |
12026 | PyObject * obj1 = 0 ; | |
12027 | PyObject * obj2 = 0 ; | |
12028 | PyObject * obj3 = 0 ; | |
12029 | char *kwnames[] = { | |
12030 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
12031 | }; | |
12032 | ||
12033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12036 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12037 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12038 | SWIG_fail; | |
12039 | if (arg2 == NULL) { | |
12040 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12041 | SWIG_fail; | |
12042 | } | |
12043 | { | |
12044 | arg3 = &temp3; | |
12045 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12046 | } | |
12047 | if (obj3) { | |
12048 | arg4 = (bool)SWIG_As_bool(obj3); | |
12049 | if (PyErr_Occurred()) SWIG_fail; | |
12050 | } | |
12051 | { | |
12052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12053 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12054 | ||
12055 | wxPyEndAllowThreads(__tstate); | |
12056 | if (PyErr_Occurred()) SWIG_fail; | |
12057 | } | |
12058 | Py_INCREF(Py_None); resultobj = Py_None; | |
12059 | return resultobj; | |
12060 | fail: | |
12061 | return NULL; | |
12062 | } | |
12063 | ||
12064 | ||
12065 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { | |
12066 | PyObject *resultobj; | |
12067 | wxDC *arg1 = (wxDC *) 0 ; | |
12068 | wxString *arg2 = 0 ; | |
12069 | int arg3 ; | |
12070 | int arg4 ; | |
12071 | bool temp2 = false ; | |
12072 | PyObject * obj0 = 0 ; | |
12073 | PyObject * obj1 = 0 ; | |
12074 | PyObject * obj2 = 0 ; | |
12075 | PyObject * obj3 = 0 ; | |
12076 | char *kwnames[] = { | |
12077 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12078 | }; | |
12079 | ||
12080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12083 | { | |
12084 | arg2 = wxString_in_helper(obj1); | |
12085 | if (arg2 == NULL) SWIG_fail; | |
12086 | temp2 = true; | |
12087 | } | |
12088 | arg3 = (int)SWIG_As_int(obj2); | |
12089 | if (PyErr_Occurred()) SWIG_fail; | |
12090 | arg4 = (int)SWIG_As_int(obj3); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | { | |
12093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12094 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12095 | ||
12096 | wxPyEndAllowThreads(__tstate); | |
12097 | if (PyErr_Occurred()) SWIG_fail; | |
12098 | } | |
12099 | Py_INCREF(Py_None); resultobj = Py_None; | |
12100 | { | |
12101 | if (temp2) | |
12102 | delete arg2; | |
12103 | } | |
12104 | return resultobj; | |
12105 | fail: | |
12106 | { | |
12107 | if (temp2) | |
12108 | delete arg2; | |
12109 | } | |
12110 | return NULL; | |
12111 | } | |
12112 | ||
12113 | ||
12114 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
12115 | PyObject *resultobj; | |
12116 | wxDC *arg1 = (wxDC *) 0 ; | |
12117 | wxString *arg2 = 0 ; | |
12118 | wxPoint *arg3 = 0 ; | |
12119 | bool temp2 = false ; | |
12120 | wxPoint temp3 ; | |
12121 | PyObject * obj0 = 0 ; | |
12122 | PyObject * obj1 = 0 ; | |
12123 | PyObject * obj2 = 0 ; | |
12124 | char *kwnames[] = { | |
12125 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12126 | }; | |
12127 | ||
12128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12131 | { | |
12132 | arg2 = wxString_in_helper(obj1); | |
12133 | if (arg2 == NULL) SWIG_fail; | |
12134 | temp2 = true; | |
12135 | } | |
12136 | { | |
12137 | arg3 = &temp3; | |
12138 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12139 | } | |
12140 | { | |
12141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12142 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12143 | ||
12144 | wxPyEndAllowThreads(__tstate); | |
12145 | if (PyErr_Occurred()) SWIG_fail; | |
12146 | } | |
12147 | Py_INCREF(Py_None); resultobj = Py_None; | |
12148 | { | |
12149 | if (temp2) | |
12150 | delete arg2; | |
12151 | } | |
12152 | return resultobj; | |
12153 | fail: | |
12154 | { | |
12155 | if (temp2) | |
12156 | delete arg2; | |
12157 | } | |
12158 | return NULL; | |
12159 | } | |
12160 | ||
12161 | ||
12162 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { | |
12163 | PyObject *resultobj; | |
12164 | wxDC *arg1 = (wxDC *) 0 ; | |
12165 | wxString *arg2 = 0 ; | |
12166 | int arg3 ; | |
12167 | int arg4 ; | |
12168 | double arg5 ; | |
12169 | bool temp2 = false ; | |
12170 | PyObject * obj0 = 0 ; | |
12171 | PyObject * obj1 = 0 ; | |
12172 | PyObject * obj2 = 0 ; | |
12173 | PyObject * obj3 = 0 ; | |
12174 | PyObject * obj4 = 0 ; | |
12175 | char *kwnames[] = { | |
12176 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12177 | }; | |
12178 | ||
12179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12182 | { | |
12183 | arg2 = wxString_in_helper(obj1); | |
12184 | if (arg2 == NULL) SWIG_fail; | |
12185 | temp2 = true; | |
12186 | } | |
12187 | arg3 = (int)SWIG_As_int(obj2); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | arg4 = (int)SWIG_As_int(obj3); | |
12190 | if (PyErr_Occurred()) SWIG_fail; | |
12191 | arg5 = (double)SWIG_As_double(obj4); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | { | |
12194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12195 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12196 | ||
12197 | wxPyEndAllowThreads(__tstate); | |
12198 | if (PyErr_Occurred()) SWIG_fail; | |
12199 | } | |
12200 | Py_INCREF(Py_None); resultobj = Py_None; | |
12201 | { | |
12202 | if (temp2) | |
12203 | delete arg2; | |
12204 | } | |
12205 | return resultobj; | |
12206 | fail: | |
12207 | { | |
12208 | if (temp2) | |
12209 | delete arg2; | |
12210 | } | |
12211 | return NULL; | |
12212 | } | |
12213 | ||
12214 | ||
12215 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
12216 | PyObject *resultobj; | |
12217 | wxDC *arg1 = (wxDC *) 0 ; | |
12218 | wxString *arg2 = 0 ; | |
12219 | wxPoint *arg3 = 0 ; | |
12220 | double arg4 ; | |
12221 | bool temp2 = false ; | |
12222 | wxPoint temp3 ; | |
12223 | PyObject * obj0 = 0 ; | |
12224 | PyObject * obj1 = 0 ; | |
12225 | PyObject * obj2 = 0 ; | |
12226 | PyObject * obj3 = 0 ; | |
12227 | char *kwnames[] = { | |
12228 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12229 | }; | |
12230 | ||
12231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12234 | { | |
12235 | arg2 = wxString_in_helper(obj1); | |
12236 | if (arg2 == NULL) SWIG_fail; | |
12237 | temp2 = true; | |
12238 | } | |
12239 | { | |
12240 | arg3 = &temp3; | |
12241 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12242 | } | |
12243 | arg4 = (double)SWIG_As_double(obj3); | |
12244 | if (PyErr_Occurred()) SWIG_fail; | |
12245 | { | |
12246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12247 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12248 | ||
12249 | wxPyEndAllowThreads(__tstate); | |
12250 | if (PyErr_Occurred()) SWIG_fail; | |
12251 | } | |
12252 | Py_INCREF(Py_None); resultobj = Py_None; | |
12253 | { | |
12254 | if (temp2) | |
12255 | delete arg2; | |
12256 | } | |
12257 | return resultobj; | |
12258 | fail: | |
12259 | { | |
12260 | if (temp2) | |
12261 | delete arg2; | |
12262 | } | |
12263 | return NULL; | |
12264 | } | |
12265 | ||
12266 | ||
12267 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { | |
12268 | PyObject *resultobj; | |
12269 | wxDC *arg1 = (wxDC *) 0 ; | |
12270 | int arg2 ; | |
12271 | int arg3 ; | |
12272 | int arg4 ; | |
12273 | int arg5 ; | |
12274 | wxDC *arg6 = (wxDC *) 0 ; | |
12275 | int arg7 ; | |
12276 | int arg8 ; | |
12277 | int arg9 = (int) wxCOPY ; | |
12278 | bool arg10 = (bool) false ; | |
12279 | int arg11 = (int) -1 ; | |
12280 | int arg12 = (int) -1 ; | |
12281 | bool result; | |
12282 | PyObject * obj0 = 0 ; | |
12283 | PyObject * obj1 = 0 ; | |
12284 | PyObject * obj2 = 0 ; | |
12285 | PyObject * obj3 = 0 ; | |
12286 | PyObject * obj4 = 0 ; | |
12287 | PyObject * obj5 = 0 ; | |
12288 | PyObject * obj6 = 0 ; | |
12289 | PyObject * obj7 = 0 ; | |
12290 | PyObject * obj8 = 0 ; | |
12291 | PyObject * obj9 = 0 ; | |
12292 | PyObject * obj10 = 0 ; | |
12293 | PyObject * obj11 = 0 ; | |
12294 | char *kwnames[] = { | |
12295 | (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 | |
12296 | }; | |
12297 | ||
12298 | 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; | |
12299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12301 | arg2 = (int)SWIG_As_int(obj1); | |
12302 | if (PyErr_Occurred()) SWIG_fail; | |
12303 | arg3 = (int)SWIG_As_int(obj2); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | arg4 = (int)SWIG_As_int(obj3); | |
12306 | if (PyErr_Occurred()) SWIG_fail; | |
12307 | arg5 = (int)SWIG_As_int(obj4); | |
12308 | if (PyErr_Occurred()) SWIG_fail; | |
12309 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12311 | arg7 = (int)SWIG_As_int(obj6); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | arg8 = (int)SWIG_As_int(obj7); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | if (obj8) { | |
12316 | arg9 = (int)SWIG_As_int(obj8); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | } | |
12319 | if (obj9) { | |
12320 | arg10 = (bool)SWIG_As_bool(obj9); | |
12321 | if (PyErr_Occurred()) SWIG_fail; | |
12322 | } | |
12323 | if (obj10) { | |
12324 | arg11 = (int)SWIG_As_int(obj10); | |
12325 | if (PyErr_Occurred()) SWIG_fail; | |
12326 | } | |
12327 | if (obj11) { | |
12328 | arg12 = (int)SWIG_As_int(obj11); | |
12329 | if (PyErr_Occurred()) SWIG_fail; | |
12330 | } | |
12331 | { | |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12334 | ||
12335 | wxPyEndAllowThreads(__tstate); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | } | |
12338 | { | |
12339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12340 | } | |
12341 | return resultobj; | |
12342 | fail: | |
12343 | return NULL; | |
12344 | } | |
12345 | ||
12346 | ||
12347 | static PyObject *_wrap_DC_BlitPointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
12348 | PyObject *resultobj; | |
12349 | wxDC *arg1 = (wxDC *) 0 ; | |
12350 | wxPoint *arg2 = 0 ; | |
12351 | wxSize *arg3 = 0 ; | |
12352 | wxDC *arg4 = (wxDC *) 0 ; | |
12353 | wxPoint *arg5 = 0 ; | |
12354 | int arg6 = (int) wxCOPY ; | |
12355 | bool arg7 = (bool) false ; | |
12356 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
12357 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12358 | bool result; | |
12359 | wxPoint temp2 ; | |
12360 | wxSize temp3 ; | |
12361 | wxPoint temp5 ; | |
12362 | wxPoint temp8 ; | |
12363 | PyObject * obj0 = 0 ; | |
12364 | PyObject * obj1 = 0 ; | |
12365 | PyObject * obj2 = 0 ; | |
12366 | PyObject * obj3 = 0 ; | |
12367 | PyObject * obj4 = 0 ; | |
12368 | PyObject * obj5 = 0 ; | |
12369 | PyObject * obj6 = 0 ; | |
12370 | PyObject * obj7 = 0 ; | |
12371 | char *kwnames[] = { | |
12372 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12373 | }; | |
12374 | ||
12375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
12376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12378 | { | |
12379 | arg2 = &temp2; | |
12380 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12381 | } | |
12382 | { | |
12383 | arg3 = &temp3; | |
12384 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12385 | } | |
12386 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
12387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12388 | { | |
12389 | arg5 = &temp5; | |
12390 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12391 | } | |
12392 | if (obj5) { | |
12393 | arg6 = (int)SWIG_As_int(obj5); | |
12394 | if (PyErr_Occurred()) SWIG_fail; | |
12395 | } | |
12396 | if (obj6) { | |
12397 | arg7 = (bool)SWIG_As_bool(obj6); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
12400 | if (obj7) { | |
12401 | { | |
12402 | arg8 = &temp8; | |
12403 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12404 | } | |
12405 | } | |
12406 | { | |
12407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12408 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
12409 | ||
12410 | wxPyEndAllowThreads(__tstate); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
12413 | { | |
12414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12415 | } | |
12416 | return resultobj; | |
12417 | fail: | |
12418 | return NULL; | |
12419 | } | |
12420 | ||
12421 | ||
12422 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
12423 | PyObject *resultobj; | |
12424 | wxDC *arg1 = (wxDC *) 0 ; | |
12425 | int arg2 ; | |
12426 | int arg3 ; | |
12427 | int arg4 ; | |
12428 | int arg5 ; | |
12429 | PyObject * obj0 = 0 ; | |
12430 | PyObject * obj1 = 0 ; | |
12431 | PyObject * obj2 = 0 ; | |
12432 | PyObject * obj3 = 0 ; | |
12433 | PyObject * obj4 = 0 ; | |
12434 | char *kwnames[] = { | |
12435 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12436 | }; | |
12437 | ||
12438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12441 | arg2 = (int)SWIG_As_int(obj1); | |
12442 | if (PyErr_Occurred()) SWIG_fail; | |
12443 | arg3 = (int)SWIG_As_int(obj2); | |
12444 | if (PyErr_Occurred()) SWIG_fail; | |
12445 | arg4 = (int)SWIG_As_int(obj3); | |
12446 | if (PyErr_Occurred()) SWIG_fail; | |
12447 | arg5 = (int)SWIG_As_int(obj4); | |
12448 | if (PyErr_Occurred()) SWIG_fail; | |
12449 | { | |
12450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12451 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12452 | ||
12453 | wxPyEndAllowThreads(__tstate); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | Py_INCREF(Py_None); resultobj = Py_None; | |
12457 | return resultobj; | |
12458 | fail: | |
12459 | return NULL; | |
12460 | } | |
12461 | ||
12462 | ||
12463 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
12464 | PyObject *resultobj; | |
12465 | wxDC *arg1 = (wxDC *) 0 ; | |
12466 | wxPoint *arg2 = 0 ; | |
12467 | wxSize *arg3 = 0 ; | |
12468 | wxPoint temp2 ; | |
12469 | wxSize temp3 ; | |
12470 | PyObject * obj0 = 0 ; | |
12471 | PyObject * obj1 = 0 ; | |
12472 | PyObject * obj2 = 0 ; | |
12473 | char *kwnames[] = { | |
12474 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12475 | }; | |
12476 | ||
12477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12480 | { | |
12481 | arg2 = &temp2; | |
12482 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12483 | } | |
12484 | { | |
12485 | arg3 = &temp3; | |
12486 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12487 | } | |
12488 | { | |
12489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12490 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12491 | ||
12492 | wxPyEndAllowThreads(__tstate); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
12494 | } | |
12495 | Py_INCREF(Py_None); resultobj = Py_None; | |
12496 | return resultobj; | |
12497 | fail: | |
12498 | return NULL; | |
12499 | } | |
12500 | ||
12501 | ||
12502 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
12503 | PyObject *resultobj; | |
12504 | wxDC *arg1 = (wxDC *) 0 ; | |
12505 | wxRegion *arg2 = 0 ; | |
12506 | PyObject * obj0 = 0 ; | |
12507 | PyObject * obj1 = 0 ; | |
12508 | char *kwnames[] = { | |
12509 | (char *) "self",(char *) "region", NULL | |
12510 | }; | |
12511 | ||
12512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12517 | SWIG_fail; | |
12518 | if (arg2 == NULL) { | |
12519 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12520 | SWIG_fail; | |
12521 | } | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
12529 | Py_INCREF(Py_None); resultobj = Py_None; | |
12530 | return resultobj; | |
12531 | fail: | |
12532 | return NULL; | |
12533 | } | |
12534 | ||
12535 | ||
12536 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
12537 | PyObject *resultobj; | |
12538 | wxDC *arg1 = (wxDC *) 0 ; | |
12539 | wxRect *arg2 = 0 ; | |
12540 | wxRect temp2 ; | |
12541 | PyObject * obj0 = 0 ; | |
12542 | PyObject * obj1 = 0 ; | |
12543 | char *kwnames[] = { | |
12544 | (char *) "self",(char *) "rect", NULL | |
12545 | }; | |
12546 | ||
12547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12550 | { | |
12551 | arg2 = &temp2; | |
12552 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12553 | } | |
12554 | { | |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12556 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
12561 | Py_INCREF(Py_None); resultobj = Py_None; | |
12562 | return resultobj; | |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { | |
12569 | PyObject *resultobj; | |
12570 | wxDC *arg1 = (wxDC *) 0 ; | |
12571 | int arg2 ; | |
12572 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12573 | int arg4 = (int) 0 ; | |
12574 | int arg5 = (int) 0 ; | |
12575 | PyObject * obj0 = 0 ; | |
12576 | PyObject * obj1 = 0 ; | |
12577 | PyObject * obj2 = 0 ; | |
12578 | PyObject * obj3 = 0 ; | |
12579 | char *kwnames[] = { | |
12580 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12581 | }; | |
12582 | ||
12583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12586 | { | |
12587 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12588 | if (arg3 == NULL) SWIG_fail; | |
12589 | } | |
12590 | if (obj2) { | |
12591 | arg4 = (int)SWIG_As_int(obj2); | |
12592 | if (PyErr_Occurred()) SWIG_fail; | |
12593 | } | |
12594 | if (obj3) { | |
12595 | arg5 = (int)SWIG_As_int(obj3); | |
12596 | if (PyErr_Occurred()) SWIG_fail; | |
12597 | } | |
12598 | { | |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12601 | ||
12602 | wxPyEndAllowThreads(__tstate); | |
12603 | if (PyErr_Occurred()) SWIG_fail; | |
12604 | } | |
12605 | Py_INCREF(Py_None); resultobj = Py_None; | |
12606 | { | |
12607 | if (arg3) delete [] arg3; | |
12608 | } | |
12609 | return resultobj; | |
12610 | fail: | |
12611 | { | |
12612 | if (arg3) delete [] arg3; | |
12613 | } | |
12614 | return NULL; | |
12615 | } | |
12616 | ||
12617 | ||
12618 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { | |
12619 | PyObject *resultobj; | |
12620 | wxDC *arg1 = (wxDC *) 0 ; | |
12621 | int arg2 ; | |
12622 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12623 | int arg4 = (int) 0 ; | |
12624 | int arg5 = (int) 0 ; | |
12625 | int arg6 = (int) wxODDEVEN_RULE ; | |
12626 | PyObject * obj0 = 0 ; | |
12627 | PyObject * obj1 = 0 ; | |
12628 | PyObject * obj2 = 0 ; | |
12629 | PyObject * obj3 = 0 ; | |
12630 | PyObject * obj4 = 0 ; | |
12631 | char *kwnames[] = { | |
12632 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12633 | }; | |
12634 | ||
12635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12638 | { | |
12639 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12640 | if (arg3 == NULL) SWIG_fail; | |
12641 | } | |
12642 | if (obj2) { | |
12643 | arg4 = (int)SWIG_As_int(obj2); | |
12644 | if (PyErr_Occurred()) SWIG_fail; | |
12645 | } | |
12646 | if (obj3) { | |
12647 | arg5 = (int)SWIG_As_int(obj3); | |
12648 | if (PyErr_Occurred()) SWIG_fail; | |
12649 | } | |
12650 | if (obj4) { | |
12651 | arg6 = (int)SWIG_As_int(obj4); | |
12652 | if (PyErr_Occurred()) SWIG_fail; | |
12653 | } | |
12654 | { | |
12655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12656 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12657 | ||
12658 | wxPyEndAllowThreads(__tstate); | |
12659 | if (PyErr_Occurred()) SWIG_fail; | |
12660 | } | |
12661 | Py_INCREF(Py_None); resultobj = Py_None; | |
12662 | { | |
12663 | if (arg3) delete [] arg3; | |
12664 | } | |
12665 | return resultobj; | |
12666 | fail: | |
12667 | { | |
12668 | if (arg3) delete [] arg3; | |
12669 | } | |
12670 | return NULL; | |
12671 | } | |
12672 | ||
12673 | ||
12674 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
12675 | PyObject *resultobj; | |
12676 | wxDC *arg1 = (wxDC *) 0 ; | |
12677 | wxString *arg2 = 0 ; | |
12678 | wxRect *arg3 = 0 ; | |
12679 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12680 | int arg5 = (int) -1 ; | |
12681 | bool temp2 = false ; | |
12682 | wxRect temp3 ; | |
12683 | PyObject * obj0 = 0 ; | |
12684 | PyObject * obj1 = 0 ; | |
12685 | PyObject * obj2 = 0 ; | |
12686 | PyObject * obj3 = 0 ; | |
12687 | PyObject * obj4 = 0 ; | |
12688 | char *kwnames[] = { | |
12689 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12690 | }; | |
12691 | ||
12692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12695 | { | |
12696 | arg2 = wxString_in_helper(obj1); | |
12697 | if (arg2 == NULL) SWIG_fail; | |
12698 | temp2 = true; | |
12699 | } | |
12700 | { | |
12701 | arg3 = &temp3; | |
12702 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12703 | } | |
12704 | if (obj3) { | |
12705 | arg4 = (int)SWIG_As_int(obj3); | |
12706 | if (PyErr_Occurred()) SWIG_fail; | |
12707 | } | |
12708 | if (obj4) { | |
12709 | arg5 = (int)SWIG_As_int(obj4); | |
12710 | if (PyErr_Occurred()) SWIG_fail; | |
12711 | } | |
12712 | { | |
12713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12714 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
12715 | ||
12716 | wxPyEndAllowThreads(__tstate); | |
12717 | if (PyErr_Occurred()) SWIG_fail; | |
12718 | } | |
12719 | Py_INCREF(Py_None); resultobj = Py_None; | |
12720 | { | |
12721 | if (temp2) | |
12722 | delete arg2; | |
12723 | } | |
12724 | return resultobj; | |
12725 | fail: | |
12726 | { | |
12727 | if (temp2) | |
12728 | delete arg2; | |
12729 | } | |
12730 | return NULL; | |
12731 | } | |
12732 | ||
12733 | ||
12734 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { | |
12735 | PyObject *resultobj; | |
12736 | wxDC *arg1 = (wxDC *) 0 ; | |
12737 | wxString *arg2 = 0 ; | |
12738 | wxBitmap *arg3 = 0 ; | |
12739 | wxRect *arg4 = 0 ; | |
12740 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12741 | int arg6 = (int) -1 ; | |
12742 | wxRect result; | |
12743 | bool temp2 = false ; | |
12744 | wxRect temp4 ; | |
12745 | PyObject * obj0 = 0 ; | |
12746 | PyObject * obj1 = 0 ; | |
12747 | PyObject * obj2 = 0 ; | |
12748 | PyObject * obj3 = 0 ; | |
12749 | PyObject * obj4 = 0 ; | |
12750 | PyObject * obj5 = 0 ; | |
12751 | char *kwnames[] = { | |
12752 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12753 | }; | |
12754 | ||
12755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12758 | { | |
12759 | arg2 = wxString_in_helper(obj1); | |
12760 | if (arg2 == NULL) SWIG_fail; | |
12761 | temp2 = true; | |
12762 | } | |
12763 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
12764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12765 | SWIG_fail; | |
12766 | if (arg3 == NULL) { | |
12767 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12768 | SWIG_fail; | |
12769 | } | |
12770 | { | |
12771 | arg4 = &temp4; | |
12772 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12773 | } | |
12774 | if (obj4) { | |
12775 | arg5 = (int)SWIG_As_int(obj4); | |
12776 | if (PyErr_Occurred()) SWIG_fail; | |
12777 | } | |
12778 | if (obj5) { | |
12779 | arg6 = (int)SWIG_As_int(obj5); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | { | |
12783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12784 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12785 | ||
12786 | wxPyEndAllowThreads(__tstate); | |
12787 | if (PyErr_Occurred()) SWIG_fail; | |
12788 | } | |
12789 | { | |
12790 | wxRect * resultptr; | |
12791 | resultptr = new wxRect((wxRect &) result); | |
12792 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
12793 | } | |
12794 | { | |
12795 | if (temp2) | |
12796 | delete arg2; | |
12797 | } | |
12798 | return resultobj; | |
12799 | fail: | |
12800 | { | |
12801 | if (temp2) | |
12802 | delete arg2; | |
12803 | } | |
12804 | return NULL; | |
12805 | } | |
12806 | ||
12807 | ||
12808 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { | |
12809 | PyObject *resultobj; | |
12810 | wxDC *arg1 = (wxDC *) 0 ; | |
12811 | int arg2 ; | |
12812 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12813 | PyObject * obj0 = 0 ; | |
12814 | PyObject * obj1 = 0 ; | |
12815 | char *kwnames[] = { | |
12816 | (char *) "self",(char *) "points", NULL | |
12817 | }; | |
12818 | ||
12819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
12820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12822 | { | |
12823 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12824 | if (arg3 == NULL) SWIG_fail; | |
12825 | } | |
12826 | { | |
12827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12828 | (arg1)->DrawSpline(arg2,arg3); | |
12829 | ||
12830 | wxPyEndAllowThreads(__tstate); | |
12831 | if (PyErr_Occurred()) SWIG_fail; | |
12832 | } | |
12833 | Py_INCREF(Py_None); resultobj = Py_None; | |
12834 | { | |
12835 | if (arg3) delete [] arg3; | |
12836 | } | |
12837 | return resultobj; | |
12838 | fail: | |
12839 | { | |
12840 | if (arg3) delete [] arg3; | |
12841 | } | |
12842 | return NULL; | |
12843 | } | |
12844 | ||
12845 | ||
12846 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { | |
12847 | PyObject *resultobj; | |
12848 | wxDC *arg1 = (wxDC *) 0 ; | |
12849 | PyObject * obj0 = 0 ; | |
12850 | char *kwnames[] = { | |
12851 | (char *) "self", NULL | |
12852 | }; | |
12853 | ||
12854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
12855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12857 | { | |
12858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12859 | (arg1)->Clear(); | |
12860 | ||
12861 | wxPyEndAllowThreads(__tstate); | |
12862 | if (PyErr_Occurred()) SWIG_fail; | |
12863 | } | |
12864 | Py_INCREF(Py_None); resultobj = Py_None; | |
12865 | return resultobj; | |
12866 | fail: | |
12867 | return NULL; | |
12868 | } | |
12869 | ||
12870 | ||
12871 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { | |
12872 | PyObject *resultobj; | |
12873 | wxDC *arg1 = (wxDC *) 0 ; | |
12874 | wxString *arg2 = 0 ; | |
12875 | bool result; | |
12876 | bool temp2 = false ; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | PyObject * obj1 = 0 ; | |
12879 | char *kwnames[] = { | |
12880 | (char *) "self",(char *) "message", NULL | |
12881 | }; | |
12882 | ||
12883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
12884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12886 | { | |
12887 | arg2 = wxString_in_helper(obj1); | |
12888 | if (arg2 == NULL) SWIG_fail; | |
12889 | temp2 = true; | |
12890 | } | |
12891 | { | |
12892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12893 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12894 | ||
12895 | wxPyEndAllowThreads(__tstate); | |
12896 | if (PyErr_Occurred()) SWIG_fail; | |
12897 | } | |
12898 | { | |
12899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12900 | } | |
12901 | { | |
12902 | if (temp2) | |
12903 | delete arg2; | |
12904 | } | |
12905 | return resultobj; | |
12906 | fail: | |
12907 | { | |
12908 | if (temp2) | |
12909 | delete arg2; | |
12910 | } | |
12911 | return NULL; | |
12912 | } | |
12913 | ||
12914 | ||
12915 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { | |
12916 | PyObject *resultobj; | |
12917 | wxDC *arg1 = (wxDC *) 0 ; | |
12918 | PyObject * obj0 = 0 ; | |
12919 | char *kwnames[] = { | |
12920 | (char *) "self", NULL | |
12921 | }; | |
12922 | ||
12923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
12924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12926 | { | |
12927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12928 | (arg1)->EndDoc(); | |
12929 | ||
12930 | wxPyEndAllowThreads(__tstate); | |
12931 | if (PyErr_Occurred()) SWIG_fail; | |
12932 | } | |
12933 | Py_INCREF(Py_None); resultobj = Py_None; | |
12934 | return resultobj; | |
12935 | fail: | |
12936 | return NULL; | |
12937 | } | |
12938 | ||
12939 | ||
12940 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
12941 | PyObject *resultobj; | |
12942 | wxDC *arg1 = (wxDC *) 0 ; | |
12943 | PyObject * obj0 = 0 ; | |
12944 | char *kwnames[] = { | |
12945 | (char *) "self", NULL | |
12946 | }; | |
12947 | ||
12948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12951 | { | |
12952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12953 | (arg1)->StartPage(); | |
12954 | ||
12955 | wxPyEndAllowThreads(__tstate); | |
12956 | if (PyErr_Occurred()) SWIG_fail; | |
12957 | } | |
12958 | Py_INCREF(Py_None); resultobj = Py_None; | |
12959 | return resultobj; | |
12960 | fail: | |
12961 | return NULL; | |
12962 | } | |
12963 | ||
12964 | ||
12965 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { | |
12966 | PyObject *resultobj; | |
12967 | wxDC *arg1 = (wxDC *) 0 ; | |
12968 | PyObject * obj0 = 0 ; | |
12969 | char *kwnames[] = { | |
12970 | (char *) "self", NULL | |
12971 | }; | |
12972 | ||
12973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12976 | { | |
12977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12978 | (arg1)->EndPage(); | |
12979 | ||
12980 | wxPyEndAllowThreads(__tstate); | |
12981 | if (PyErr_Occurred()) SWIG_fail; | |
12982 | } | |
12983 | Py_INCREF(Py_None); resultobj = Py_None; | |
12984 | return resultobj; | |
12985 | fail: | |
12986 | return NULL; | |
12987 | } | |
12988 | ||
12989 | ||
12990 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
12991 | PyObject *resultobj; | |
12992 | wxDC *arg1 = (wxDC *) 0 ; | |
12993 | wxFont *arg2 = 0 ; | |
12994 | PyObject * obj0 = 0 ; | |
12995 | PyObject * obj1 = 0 ; | |
12996 | char *kwnames[] = { | |
12997 | (char *) "self",(char *) "font", NULL | |
12998 | }; | |
12999 | ||
13000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
13001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13005 | SWIG_fail; | |
13006 | if (arg2 == NULL) { | |
13007 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13008 | SWIG_fail; | |
13009 | } | |
13010 | { | |
13011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13012 | (arg1)->SetFont((wxFont const &)*arg2); | |
13013 | ||
13014 | wxPyEndAllowThreads(__tstate); | |
13015 | if (PyErr_Occurred()) SWIG_fail; | |
13016 | } | |
13017 | Py_INCREF(Py_None); resultobj = Py_None; | |
13018 | return resultobj; | |
13019 | fail: | |
13020 | return NULL; | |
13021 | } | |
13022 | ||
13023 | ||
13024 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
13025 | PyObject *resultobj; | |
13026 | wxDC *arg1 = (wxDC *) 0 ; | |
13027 | wxPen *arg2 = 0 ; | |
13028 | PyObject * obj0 = 0 ; | |
13029 | PyObject * obj1 = 0 ; | |
13030 | char *kwnames[] = { | |
13031 | (char *) "self",(char *) "pen", NULL | |
13032 | }; | |
13033 | ||
13034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
13035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
13038 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13039 | SWIG_fail; | |
13040 | if (arg2 == NULL) { | |
13041 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13042 | SWIG_fail; | |
13043 | } | |
13044 | { | |
13045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13046 | (arg1)->SetPen((wxPen const &)*arg2); | |
13047 | ||
13048 | wxPyEndAllowThreads(__tstate); | |
13049 | if (PyErr_Occurred()) SWIG_fail; | |
13050 | } | |
13051 | Py_INCREF(Py_None); resultobj = Py_None; | |
13052 | return resultobj; | |
13053 | fail: | |
13054 | return NULL; | |
13055 | } | |
13056 | ||
13057 | ||
13058 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
13059 | PyObject *resultobj; | |
13060 | wxDC *arg1 = (wxDC *) 0 ; | |
13061 | wxBrush *arg2 = 0 ; | |
13062 | PyObject * obj0 = 0 ; | |
13063 | PyObject * obj1 = 0 ; | |
13064 | char *kwnames[] = { | |
13065 | (char *) "self",(char *) "brush", NULL | |
13066 | }; | |
13067 | ||
13068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
13069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13072 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13073 | SWIG_fail; | |
13074 | if (arg2 == NULL) { | |
13075 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13076 | SWIG_fail; | |
13077 | } | |
13078 | { | |
13079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13080 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13081 | ||
13082 | wxPyEndAllowThreads(__tstate); | |
13083 | if (PyErr_Occurred()) SWIG_fail; | |
13084 | } | |
13085 | Py_INCREF(Py_None); resultobj = Py_None; | |
13086 | return resultobj; | |
13087 | fail: | |
13088 | return NULL; | |
13089 | } | |
13090 | ||
13091 | ||
13092 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
13093 | PyObject *resultobj; | |
13094 | wxDC *arg1 = (wxDC *) 0 ; | |
13095 | wxBrush *arg2 = 0 ; | |
13096 | PyObject * obj0 = 0 ; | |
13097 | PyObject * obj1 = 0 ; | |
13098 | char *kwnames[] = { | |
13099 | (char *) "self",(char *) "brush", NULL | |
13100 | }; | |
13101 | ||
13102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
13103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13105 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13106 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13107 | SWIG_fail; | |
13108 | if (arg2 == NULL) { | |
13109 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13110 | SWIG_fail; | |
13111 | } | |
13112 | { | |
13113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13114 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13115 | ||
13116 | wxPyEndAllowThreads(__tstate); | |
13117 | if (PyErr_Occurred()) SWIG_fail; | |
13118 | } | |
13119 | Py_INCREF(Py_None); resultobj = Py_None; | |
13120 | return resultobj; | |
13121 | fail: | |
13122 | return NULL; | |
13123 | } | |
13124 | ||
13125 | ||
13126 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
13127 | PyObject *resultobj; | |
13128 | wxDC *arg1 = (wxDC *) 0 ; | |
13129 | int arg2 ; | |
13130 | PyObject * obj0 = 0 ; | |
13131 | PyObject * obj1 = 0 ; | |
13132 | char *kwnames[] = { | |
13133 | (char *) "self",(char *) "mode", NULL | |
13134 | }; | |
13135 | ||
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
13137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13139 | arg2 = (int)SWIG_As_int(obj1); | |
13140 | if (PyErr_Occurred()) SWIG_fail; | |
13141 | { | |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | (arg1)->SetBackgroundMode(arg2); | |
13144 | ||
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
13148 | Py_INCREF(Py_None); resultobj = Py_None; | |
13149 | return resultobj; | |
13150 | fail: | |
13151 | return NULL; | |
13152 | } | |
13153 | ||
13154 | ||
13155 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { | |
13156 | PyObject *resultobj; | |
13157 | wxDC *arg1 = (wxDC *) 0 ; | |
13158 | wxPalette *arg2 = 0 ; | |
13159 | PyObject * obj0 = 0 ; | |
13160 | PyObject * obj1 = 0 ; | |
13161 | char *kwnames[] = { | |
13162 | (char *) "self",(char *) "palette", NULL | |
13163 | }; | |
13164 | ||
13165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
13166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13169 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13170 | SWIG_fail; | |
13171 | if (arg2 == NULL) { | |
13172 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13173 | SWIG_fail; | |
13174 | } | |
13175 | { | |
13176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13177 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13178 | ||
13179 | wxPyEndAllowThreads(__tstate); | |
13180 | if (PyErr_Occurred()) SWIG_fail; | |
13181 | } | |
13182 | Py_INCREF(Py_None); resultobj = Py_None; | |
13183 | return resultobj; | |
13184 | fail: | |
13185 | return NULL; | |
13186 | } | |
13187 | ||
13188 | ||
13189 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { | |
13190 | PyObject *resultobj; | |
13191 | wxDC *arg1 = (wxDC *) 0 ; | |
13192 | PyObject * obj0 = 0 ; | |
13193 | char *kwnames[] = { | |
13194 | (char *) "self", NULL | |
13195 | }; | |
13196 | ||
13197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
13198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13200 | { | |
13201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13202 | (arg1)->DestroyClippingRegion(); | |
13203 | ||
13204 | wxPyEndAllowThreads(__tstate); | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | } | |
13207 | Py_INCREF(Py_None); resultobj = Py_None; | |
13208 | return resultobj; | |
13209 | fail: | |
13210 | return NULL; | |
13211 | } | |
13212 | ||
13213 | ||
13214 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
13215 | PyObject *resultobj; | |
13216 | wxDC *arg1 = (wxDC *) 0 ; | |
13217 | int *arg2 = (int *) 0 ; | |
13218 | int *arg3 = (int *) 0 ; | |
13219 | int *arg4 = (int *) 0 ; | |
13220 | int *arg5 = (int *) 0 ; | |
13221 | int temp2 ; | |
13222 | int res2 = 0 ; | |
13223 | int temp3 ; | |
13224 | int res3 = 0 ; | |
13225 | int temp4 ; | |
13226 | int res4 = 0 ; | |
13227 | int temp5 ; | |
13228 | int res5 = 0 ; | |
13229 | PyObject * obj0 = 0 ; | |
13230 | char *kwnames[] = { | |
13231 | (char *) "self", NULL | |
13232 | }; | |
13233 | ||
13234 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
13235 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13236 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13237 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
13239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13244 | ||
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | Py_INCREF(Py_None); resultobj = Py_None; | |
13249 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
13250 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13251 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13252 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13253 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13254 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13255 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13256 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
13257 | return resultobj; | |
13258 | fail: | |
13259 | return NULL; | |
13260 | } | |
13261 | ||
13262 | ||
13263 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { | |
13264 | PyObject *resultobj; | |
13265 | wxDC *arg1 = (wxDC *) 0 ; | |
13266 | wxRect result; | |
13267 | PyObject * obj0 = 0 ; | |
13268 | char *kwnames[] = { | |
13269 | (char *) "self", NULL | |
13270 | }; | |
13271 | ||
13272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
13273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13275 | { | |
13276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13277 | result = wxDC_GetClippingRect(arg1); | |
13278 | ||
13279 | wxPyEndAllowThreads(__tstate); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | { | |
13283 | wxRect * resultptr; | |
13284 | resultptr = new wxRect((wxRect &) result); | |
13285 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13286 | } | |
13287 | return resultobj; | |
13288 | fail: | |
13289 | return NULL; | |
13290 | } | |
13291 | ||
13292 | ||
13293 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { | |
13294 | PyObject *resultobj; | |
13295 | wxDC *arg1 = (wxDC *) 0 ; | |
13296 | int result; | |
13297 | PyObject * obj0 = 0 ; | |
13298 | char *kwnames[] = { | |
13299 | (char *) "self", NULL | |
13300 | }; | |
13301 | ||
13302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
13303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13305 | { | |
13306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13307 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
13308 | ||
13309 | wxPyEndAllowThreads(__tstate); | |
13310 | if (PyErr_Occurred()) SWIG_fail; | |
13311 | } | |
13312 | resultobj = SWIG_From_int((int)result); | |
13313 | return resultobj; | |
13314 | fail: | |
13315 | return NULL; | |
13316 | } | |
13317 | ||
13318 | ||
13319 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { | |
13320 | PyObject *resultobj; | |
13321 | wxDC *arg1 = (wxDC *) 0 ; | |
13322 | int result; | |
13323 | PyObject * obj0 = 0 ; | |
13324 | char *kwnames[] = { | |
13325 | (char *) "self", NULL | |
13326 | }; | |
13327 | ||
13328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
13329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13331 | { | |
13332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13333 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
13334 | ||
13335 | wxPyEndAllowThreads(__tstate); | |
13336 | if (PyErr_Occurred()) SWIG_fail; | |
13337 | } | |
13338 | resultobj = SWIG_From_int((int)result); | |
13339 | return resultobj; | |
13340 | fail: | |
13341 | return NULL; | |
13342 | } | |
13343 | ||
13344 | ||
13345 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { | |
13346 | PyObject *resultobj; | |
13347 | wxDC *arg1 = (wxDC *) 0 ; | |
13348 | wxString *arg2 = 0 ; | |
13349 | int *arg3 = (int *) 0 ; | |
13350 | int *arg4 = (int *) 0 ; | |
13351 | bool temp2 = false ; | |
13352 | int temp3 ; | |
13353 | int res3 = 0 ; | |
13354 | int temp4 ; | |
13355 | int res4 = 0 ; | |
13356 | PyObject * obj0 = 0 ; | |
13357 | PyObject * obj1 = 0 ; | |
13358 | char *kwnames[] = { | |
13359 | (char *) "self",(char *) "string", NULL | |
13360 | }; | |
13361 | ||
13362 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13363 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
13365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13367 | { | |
13368 | arg2 = wxString_in_helper(obj1); | |
13369 | if (arg2 == NULL) SWIG_fail; | |
13370 | temp2 = true; | |
13371 | } | |
13372 | { | |
13373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13374 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13375 | ||
13376 | wxPyEndAllowThreads(__tstate); | |
13377 | if (PyErr_Occurred()) SWIG_fail; | |
13378 | } | |
13379 | Py_INCREF(Py_None); resultobj = Py_None; | |
13380 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13381 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13382 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13383 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13384 | { | |
13385 | if (temp2) | |
13386 | delete arg2; | |
13387 | } | |
13388 | return resultobj; | |
13389 | fail: | |
13390 | { | |
13391 | if (temp2) | |
13392 | delete arg2; | |
13393 | } | |
13394 | return NULL; | |
13395 | } | |
13396 | ||
13397 | ||
13398 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { | |
13399 | PyObject *resultobj; | |
13400 | wxDC *arg1 = (wxDC *) 0 ; | |
13401 | wxString *arg2 = 0 ; | |
13402 | int *arg3 = (int *) 0 ; | |
13403 | int *arg4 = (int *) 0 ; | |
13404 | int *arg5 = (int *) 0 ; | |
13405 | int *arg6 = (int *) 0 ; | |
13406 | wxFont *arg7 = (wxFont *) NULL ; | |
13407 | bool temp2 = false ; | |
13408 | int temp3 ; | |
13409 | int res3 = 0 ; | |
13410 | int temp4 ; | |
13411 | int res4 = 0 ; | |
13412 | int temp5 ; | |
13413 | int res5 = 0 ; | |
13414 | int temp6 ; | |
13415 | int res6 = 0 ; | |
13416 | PyObject * obj0 = 0 ; | |
13417 | PyObject * obj1 = 0 ; | |
13418 | PyObject * obj2 = 0 ; | |
13419 | char *kwnames[] = { | |
13420 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13421 | }; | |
13422 | ||
13423 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13424 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13425 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13426 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
13427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13430 | { | |
13431 | arg2 = wxString_in_helper(obj1); | |
13432 | if (arg2 == NULL) SWIG_fail; | |
13433 | temp2 = true; | |
13434 | } | |
13435 | if (obj2) { | |
13436 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
13437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13438 | } | |
13439 | { | |
13440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13441 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13442 | ||
13443 | wxPyEndAllowThreads(__tstate); | |
13444 | if (PyErr_Occurred()) SWIG_fail; | |
13445 | } | |
13446 | Py_INCREF(Py_None); resultobj = Py_None; | |
13447 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13448 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13449 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13450 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13451 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13452 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
13453 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
13454 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
13455 | { | |
13456 | if (temp2) | |
13457 | delete arg2; | |
13458 | } | |
13459 | return resultobj; | |
13460 | fail: | |
13461 | { | |
13462 | if (temp2) | |
13463 | delete arg2; | |
13464 | } | |
13465 | return NULL; | |
13466 | } | |
13467 | ||
13468 | ||
13469 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { | |
13470 | PyObject *resultobj; | |
13471 | wxDC *arg1 = (wxDC *) 0 ; | |
13472 | wxString *arg2 = 0 ; | |
13473 | int *arg3 = (int *) 0 ; | |
13474 | int *arg4 = (int *) 0 ; | |
13475 | int *arg5 = (int *) 0 ; | |
13476 | wxFont *arg6 = (wxFont *) NULL ; | |
13477 | bool temp2 = false ; | |
13478 | int temp3 ; | |
13479 | int res3 = 0 ; | |
13480 | int temp4 ; | |
13481 | int res4 = 0 ; | |
13482 | int temp5 ; | |
13483 | int res5 = 0 ; | |
13484 | PyObject * obj0 = 0 ; | |
13485 | PyObject * obj1 = 0 ; | |
13486 | PyObject * obj2 = 0 ; | |
13487 | char *kwnames[] = { | |
13488 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13489 | }; | |
13490 | ||
13491 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13492 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
13493 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
13494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13497 | { | |
13498 | arg2 = wxString_in_helper(obj1); | |
13499 | if (arg2 == NULL) SWIG_fail; | |
13500 | temp2 = true; | |
13501 | } | |
13502 | if (obj2) { | |
13503 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, | |
13504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13505 | } | |
13506 | { | |
13507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13508 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13509 | ||
13510 | wxPyEndAllowThreads(__tstate); | |
13511 | if (PyErr_Occurred()) SWIG_fail; | |
13512 | } | |
13513 | Py_INCREF(Py_None); resultobj = Py_None; | |
13514 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13515 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13516 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
13517 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
13518 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
13519 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
13520 | { | |
13521 | if (temp2) | |
13522 | delete arg2; | |
13523 | } | |
13524 | return resultobj; | |
13525 | fail: | |
13526 | { | |
13527 | if (temp2) | |
13528 | delete arg2; | |
13529 | } | |
13530 | return NULL; | |
13531 | } | |
13532 | ||
13533 | ||
13534 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { | |
13535 | PyObject *resultobj; | |
13536 | wxDC *arg1 = (wxDC *) 0 ; | |
13537 | wxString *arg2 = 0 ; | |
13538 | wxArrayInt result; | |
13539 | bool temp2 = false ; | |
13540 | PyObject * obj0 = 0 ; | |
13541 | PyObject * obj1 = 0 ; | |
13542 | char *kwnames[] = { | |
13543 | (char *) "self",(char *) "text", NULL | |
13544 | }; | |
13545 | ||
13546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
13547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13549 | { | |
13550 | arg2 = wxString_in_helper(obj1); | |
13551 | if (arg2 == NULL) SWIG_fail; | |
13552 | temp2 = true; | |
13553 | } | |
13554 | { | |
13555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13556 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13557 | ||
13558 | wxPyEndAllowThreads(__tstate); | |
13559 | if (PyErr_Occurred()) SWIG_fail; | |
13560 | } | |
13561 | { | |
13562 | resultobj = PyList_New(0); | |
13563 | size_t idx; | |
13564 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13565 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13566 | PyList_Append(resultobj, val); | |
13567 | Py_DECREF(val); | |
13568 | } | |
13569 | } | |
13570 | { | |
13571 | if (temp2) | |
13572 | delete arg2; | |
13573 | } | |
13574 | return resultobj; | |
13575 | fail: | |
13576 | { | |
13577 | if (temp2) | |
13578 | delete arg2; | |
13579 | } | |
13580 | return NULL; | |
13581 | } | |
13582 | ||
13583 | ||
13584 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
13585 | PyObject *resultobj; | |
13586 | wxDC *arg1 = (wxDC *) 0 ; | |
13587 | wxSize result; | |
13588 | PyObject * obj0 = 0 ; | |
13589 | char *kwnames[] = { | |
13590 | (char *) "self", NULL | |
13591 | }; | |
13592 | ||
13593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
13594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13596 | { | |
13597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13598 | result = (arg1)->GetSize(); | |
13599 | ||
13600 | wxPyEndAllowThreads(__tstate); | |
13601 | if (PyErr_Occurred()) SWIG_fail; | |
13602 | } | |
13603 | { | |
13604 | wxSize * resultptr; | |
13605 | resultptr = new wxSize((wxSize &) result); | |
13606 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13607 | } | |
13608 | return resultobj; | |
13609 | fail: | |
13610 | return NULL; | |
13611 | } | |
13612 | ||
13613 | ||
13614 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { | |
13615 | PyObject *resultobj; | |
13616 | wxDC *arg1 = (wxDC *) 0 ; | |
13617 | int *arg2 = (int *) 0 ; | |
13618 | int *arg3 = (int *) 0 ; | |
13619 | int temp2 ; | |
13620 | int res2 = 0 ; | |
13621 | int temp3 ; | |
13622 | int res3 = 0 ; | |
13623 | PyObject * obj0 = 0 ; | |
13624 | char *kwnames[] = { | |
13625 | (char *) "self", NULL | |
13626 | }; | |
13627 | ||
13628 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
13629 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
13631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13633 | { | |
13634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13635 | (arg1)->GetSize(arg2,arg3); | |
13636 | ||
13637 | wxPyEndAllowThreads(__tstate); | |
13638 | if (PyErr_Occurred()) SWIG_fail; | |
13639 | } | |
13640 | Py_INCREF(Py_None); resultobj = Py_None; | |
13641 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
13642 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13643 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13644 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13645 | return resultobj; | |
13646 | fail: | |
13647 | return NULL; | |
13648 | } | |
13649 | ||
13650 | ||
13651 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { | |
13652 | PyObject *resultobj; | |
13653 | wxDC *arg1 = (wxDC *) 0 ; | |
13654 | wxSize result; | |
13655 | PyObject * obj0 = 0 ; | |
13656 | char *kwnames[] = { | |
13657 | (char *) "self", NULL | |
13658 | }; | |
13659 | ||
13660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
13661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13663 | { | |
13664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13665 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
13666 | ||
13667 | wxPyEndAllowThreads(__tstate); | |
13668 | if (PyErr_Occurred()) SWIG_fail; | |
13669 | } | |
13670 | { | |
13671 | wxSize * resultptr; | |
13672 | resultptr = new wxSize((wxSize &) result); | |
13673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13674 | } | |
13675 | return resultobj; | |
13676 | fail: | |
13677 | return NULL; | |
13678 | } | |
13679 | ||
13680 | ||
13681 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { | |
13682 | PyObject *resultobj; | |
13683 | wxDC *arg1 = (wxDC *) 0 ; | |
13684 | int *arg2 = (int *) 0 ; | |
13685 | int *arg3 = (int *) 0 ; | |
13686 | int temp2 ; | |
13687 | int res2 = 0 ; | |
13688 | int temp3 ; | |
13689 | int res3 = 0 ; | |
13690 | PyObject * obj0 = 0 ; | |
13691 | char *kwnames[] = { | |
13692 | (char *) "self", NULL | |
13693 | }; | |
13694 | ||
13695 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
13696 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
13697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
13698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13700 | { | |
13701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13702 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13703 | ||
13704 | wxPyEndAllowThreads(__tstate); | |
13705 | if (PyErr_Occurred()) SWIG_fail; | |
13706 | } | |
13707 | Py_INCREF(Py_None); resultobj = Py_None; | |
13708 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
13709 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
13710 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
13711 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
13712 | return resultobj; | |
13713 | fail: | |
13714 | return NULL; | |
13715 | } | |
13716 | ||
13717 | ||
13718 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { | |
13719 | PyObject *resultobj; | |
13720 | wxDC *arg1 = (wxDC *) 0 ; | |
13721 | int arg2 ; | |
13722 | int result; | |
13723 | PyObject * obj0 = 0 ; | |
13724 | PyObject * obj1 = 0 ; | |
13725 | char *kwnames[] = { | |
13726 | (char *) "self",(char *) "x", NULL | |
13727 | }; | |
13728 | ||
13729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; | |
13730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13732 | arg2 = (int)SWIG_As_int(obj1); | |
13733 | if (PyErr_Occurred()) SWIG_fail; | |
13734 | { | |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | resultobj = SWIG_From_int((int)result); | |
13742 | return resultobj; | |
13743 | fail: | |
13744 | return NULL; | |
13745 | } | |
13746 | ||
13747 | ||
13748 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { | |
13749 | PyObject *resultobj; | |
13750 | wxDC *arg1 = (wxDC *) 0 ; | |
13751 | int arg2 ; | |
13752 | int result; | |
13753 | PyObject * obj0 = 0 ; | |
13754 | PyObject * obj1 = 0 ; | |
13755 | char *kwnames[] = { | |
13756 | (char *) "self",(char *) "y", NULL | |
13757 | }; | |
13758 | ||
13759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; | |
13760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13762 | arg2 = (int)SWIG_As_int(obj1); | |
13763 | if (PyErr_Occurred()) SWIG_fail; | |
13764 | { | |
13765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13766 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
13767 | ||
13768 | wxPyEndAllowThreads(__tstate); | |
13769 | if (PyErr_Occurred()) SWIG_fail; | |
13770 | } | |
13771 | resultobj = SWIG_From_int((int)result); | |
13772 | return resultobj; | |
13773 | fail: | |
13774 | return NULL; | |
13775 | } | |
13776 | ||
13777 | ||
13778 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { | |
13779 | PyObject *resultobj; | |
13780 | wxDC *arg1 = (wxDC *) 0 ; | |
13781 | int arg2 ; | |
13782 | int result; | |
13783 | PyObject * obj0 = 0 ; | |
13784 | PyObject * obj1 = 0 ; | |
13785 | char *kwnames[] = { | |
13786 | (char *) "self",(char *) "x", NULL | |
13787 | }; | |
13788 | ||
13789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; | |
13790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13792 | arg2 = (int)SWIG_As_int(obj1); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | { | |
13795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13796 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
13797 | ||
13798 | wxPyEndAllowThreads(__tstate); | |
13799 | if (PyErr_Occurred()) SWIG_fail; | |
13800 | } | |
13801 | resultobj = SWIG_From_int((int)result); | |
13802 | return resultobj; | |
13803 | fail: | |
13804 | return NULL; | |
13805 | } | |
13806 | ||
13807 | ||
13808 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { | |
13809 | PyObject *resultobj; | |
13810 | wxDC *arg1 = (wxDC *) 0 ; | |
13811 | int arg2 ; | |
13812 | int result; | |
13813 | PyObject * obj0 = 0 ; | |
13814 | PyObject * obj1 = 0 ; | |
13815 | char *kwnames[] = { | |
13816 | (char *) "self",(char *) "y", NULL | |
13817 | }; | |
13818 | ||
13819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; | |
13820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13822 | arg2 = (int)SWIG_As_int(obj1); | |
13823 | if (PyErr_Occurred()) SWIG_fail; | |
13824 | { | |
13825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13826 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
13827 | ||
13828 | wxPyEndAllowThreads(__tstate); | |
13829 | if (PyErr_Occurred()) SWIG_fail; | |
13830 | } | |
13831 | resultobj = SWIG_From_int((int)result); | |
13832 | return resultobj; | |
13833 | fail: | |
13834 | return NULL; | |
13835 | } | |
13836 | ||
13837 | ||
13838 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { | |
13839 | PyObject *resultobj; | |
13840 | wxDC *arg1 = (wxDC *) 0 ; | |
13841 | int arg2 ; | |
13842 | int result; | |
13843 | PyObject * obj0 = 0 ; | |
13844 | PyObject * obj1 = 0 ; | |
13845 | char *kwnames[] = { | |
13846 | (char *) "self",(char *) "x", NULL | |
13847 | }; | |
13848 | ||
13849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; | |
13850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13852 | arg2 = (int)SWIG_As_int(obj1); | |
13853 | if (PyErr_Occurred()) SWIG_fail; | |
13854 | { | |
13855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13856 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
13857 | ||
13858 | wxPyEndAllowThreads(__tstate); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | } | |
13861 | resultobj = SWIG_From_int((int)result); | |
13862 | return resultobj; | |
13863 | fail: | |
13864 | return NULL; | |
13865 | } | |
13866 | ||
13867 | ||
13868 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { | |
13869 | PyObject *resultobj; | |
13870 | wxDC *arg1 = (wxDC *) 0 ; | |
13871 | int arg2 ; | |
13872 | int result; | |
13873 | PyObject * obj0 = 0 ; | |
13874 | PyObject * obj1 = 0 ; | |
13875 | char *kwnames[] = { | |
13876 | (char *) "self",(char *) "y", NULL | |
13877 | }; | |
13878 | ||
13879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; | |
13880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13882 | arg2 = (int)SWIG_As_int(obj1); | |
13883 | if (PyErr_Occurred()) SWIG_fail; | |
13884 | { | |
13885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13886 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
13887 | ||
13888 | wxPyEndAllowThreads(__tstate); | |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
13890 | } | |
13891 | resultobj = SWIG_From_int((int)result); | |
13892 | return resultobj; | |
13893 | fail: | |
13894 | return NULL; | |
13895 | } | |
13896 | ||
13897 | ||
13898 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { | |
13899 | PyObject *resultobj; | |
13900 | wxDC *arg1 = (wxDC *) 0 ; | |
13901 | int arg2 ; | |
13902 | int result; | |
13903 | PyObject * obj0 = 0 ; | |
13904 | PyObject * obj1 = 0 ; | |
13905 | char *kwnames[] = { | |
13906 | (char *) "self",(char *) "x", NULL | |
13907 | }; | |
13908 | ||
13909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; | |
13910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13912 | arg2 = (int)SWIG_As_int(obj1); | |
13913 | if (PyErr_Occurred()) SWIG_fail; | |
13914 | { | |
13915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13916 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
13917 | ||
13918 | wxPyEndAllowThreads(__tstate); | |
13919 | if (PyErr_Occurred()) SWIG_fail; | |
13920 | } | |
13921 | resultobj = SWIG_From_int((int)result); | |
13922 | return resultobj; | |
13923 | fail: | |
13924 | return NULL; | |
13925 | } | |
13926 | ||
13927 | ||
13928 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { | |
13929 | PyObject *resultobj; | |
13930 | wxDC *arg1 = (wxDC *) 0 ; | |
13931 | int arg2 ; | |
13932 | int result; | |
13933 | PyObject * obj0 = 0 ; | |
13934 | PyObject * obj1 = 0 ; | |
13935 | char *kwnames[] = { | |
13936 | (char *) "self",(char *) "y", NULL | |
13937 | }; | |
13938 | ||
13939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; | |
13940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13942 | arg2 = (int)SWIG_As_int(obj1); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | { | |
13945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13946 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
13947 | ||
13948 | wxPyEndAllowThreads(__tstate); | |
13949 | if (PyErr_Occurred()) SWIG_fail; | |
13950 | } | |
13951 | resultobj = SWIG_From_int((int)result); | |
13952 | return resultobj; | |
13953 | fail: | |
13954 | return NULL; | |
13955 | } | |
13956 | ||
13957 | ||
13958 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
13959 | PyObject *resultobj; | |
13960 | wxDC *arg1 = (wxDC *) 0 ; | |
13961 | bool result; | |
13962 | PyObject * obj0 = 0 ; | |
13963 | char *kwnames[] = { | |
13964 | (char *) "self", NULL | |
13965 | }; | |
13966 | ||
13967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13970 | { | |
13971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13972 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13973 | ||
13974 | wxPyEndAllowThreads(__tstate); | |
13975 | if (PyErr_Occurred()) SWIG_fail; | |
13976 | } | |
13977 | { | |
13978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13979 | } | |
13980 | return resultobj; | |
13981 | fail: | |
13982 | return NULL; | |
13983 | } | |
13984 | ||
13985 | ||
13986 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { | |
13987 | PyObject *resultobj; | |
13988 | wxDC *arg1 = (wxDC *) 0 ; | |
13989 | bool result; | |
13990 | PyObject * obj0 = 0 ; | |
13991 | char *kwnames[] = { | |
13992 | (char *) "self", NULL | |
13993 | }; | |
13994 | ||
13995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13998 | { | |
13999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14000 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
14001 | ||
14002 | wxPyEndAllowThreads(__tstate); | |
14003 | if (PyErr_Occurred()) SWIG_fail; | |
14004 | } | |
14005 | { | |
14006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14007 | } | |
14008 | return resultobj; | |
14009 | fail: | |
14010 | return NULL; | |
14011 | } | |
14012 | ||
14013 | ||
14014 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { | |
14015 | PyObject *resultobj; | |
14016 | wxDC *arg1 = (wxDC *) 0 ; | |
14017 | int result; | |
14018 | PyObject * obj0 = 0 ; | |
14019 | char *kwnames[] = { | |
14020 | (char *) "self", NULL | |
14021 | }; | |
14022 | ||
14023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
14024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14026 | { | |
14027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14028 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
14029 | ||
14030 | wxPyEndAllowThreads(__tstate); | |
14031 | if (PyErr_Occurred()) SWIG_fail; | |
14032 | } | |
14033 | resultobj = SWIG_From_int((int)result); | |
14034 | return resultobj; | |
14035 | fail: | |
14036 | return NULL; | |
14037 | } | |
14038 | ||
14039 | ||
14040 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { | |
14041 | PyObject *resultobj; | |
14042 | wxDC *arg1 = (wxDC *) 0 ; | |
14043 | wxSize result; | |
14044 | PyObject * obj0 = 0 ; | |
14045 | char *kwnames[] = { | |
14046 | (char *) "self", NULL | |
14047 | }; | |
14048 | ||
14049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
14050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14052 | { | |
14053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14054 | result = ((wxDC const *)arg1)->GetPPI(); | |
14055 | ||
14056 | wxPyEndAllowThreads(__tstate); | |
14057 | if (PyErr_Occurred()) SWIG_fail; | |
14058 | } | |
14059 | { | |
14060 | wxSize * resultptr; | |
14061 | resultptr = new wxSize((wxSize &) result); | |
14062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14063 | } | |
14064 | return resultobj; | |
14065 | fail: | |
14066 | return NULL; | |
14067 | } | |
14068 | ||
14069 | ||
14070 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { | |
14071 | PyObject *resultobj; | |
14072 | wxDC *arg1 = (wxDC *) 0 ; | |
14073 | bool result; | |
14074 | PyObject * obj0 = 0 ; | |
14075 | char *kwnames[] = { | |
14076 | (char *) "self", NULL | |
14077 | }; | |
14078 | ||
14079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
14080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14082 | { | |
14083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14084 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14085 | ||
14086 | wxPyEndAllowThreads(__tstate); | |
14087 | if (PyErr_Occurred()) SWIG_fail; | |
14088 | } | |
14089 | { | |
14090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14091 | } | |
14092 | return resultobj; | |
14093 | fail: | |
14094 | return NULL; | |
14095 | } | |
14096 | ||
14097 | ||
14098 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
14099 | PyObject *resultobj; | |
14100 | wxDC *arg1 = (wxDC *) 0 ; | |
14101 | int result; | |
14102 | PyObject * obj0 = 0 ; | |
14103 | char *kwnames[] = { | |
14104 | (char *) "self", NULL | |
14105 | }; | |
14106 | ||
14107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
14108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14110 | { | |
14111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14112 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14113 | ||
14114 | wxPyEndAllowThreads(__tstate); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
14117 | resultobj = SWIG_From_int((int)result); | |
14118 | return resultobj; | |
14119 | fail: | |
14120 | return NULL; | |
14121 | } | |
14122 | ||
14123 | ||
14124 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
14125 | PyObject *resultobj; | |
14126 | wxDC *arg1 = (wxDC *) 0 ; | |
14127 | wxBrush *result; | |
14128 | PyObject * obj0 = 0 ; | |
14129 | char *kwnames[] = { | |
14130 | (char *) "self", NULL | |
14131 | }; | |
14132 | ||
14133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
14134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14136 | { | |
14137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14138 | { | |
14139 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14140 | result = (wxBrush *) &_result_ref; | |
14141 | } | |
14142 | ||
14143 | wxPyEndAllowThreads(__tstate); | |
14144 | if (PyErr_Occurred()) SWIG_fail; | |
14145 | } | |
14146 | { | |
14147 | wxBrush* resultptr = new wxBrush(*result); | |
14148 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14149 | } | |
14150 | return resultobj; | |
14151 | fail: | |
14152 | return NULL; | |
14153 | } | |
14154 | ||
14155 | ||
14156 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
14157 | PyObject *resultobj; | |
14158 | wxDC *arg1 = (wxDC *) 0 ; | |
14159 | wxBrush *result; | |
14160 | PyObject * obj0 = 0 ; | |
14161 | char *kwnames[] = { | |
14162 | (char *) "self", NULL | |
14163 | }; | |
14164 | ||
14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
14166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14168 | { | |
14169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14170 | { | |
14171 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14172 | result = (wxBrush *) &_result_ref; | |
14173 | } | |
14174 | ||
14175 | wxPyEndAllowThreads(__tstate); | |
14176 | if (PyErr_Occurred()) SWIG_fail; | |
14177 | } | |
14178 | { | |
14179 | wxBrush* resultptr = new wxBrush(*result); | |
14180 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14181 | } | |
14182 | return resultobj; | |
14183 | fail: | |
14184 | return NULL; | |
14185 | } | |
14186 | ||
14187 | ||
14188 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
14189 | PyObject *resultobj; | |
14190 | wxDC *arg1 = (wxDC *) 0 ; | |
14191 | wxFont *result; | |
14192 | PyObject * obj0 = 0 ; | |
14193 | char *kwnames[] = { | |
14194 | (char *) "self", NULL | |
14195 | }; | |
14196 | ||
14197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
14198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14200 | { | |
14201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14202 | { | |
14203 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14204 | result = (wxFont *) &_result_ref; | |
14205 | } | |
14206 | ||
14207 | wxPyEndAllowThreads(__tstate); | |
14208 | if (PyErr_Occurred()) SWIG_fail; | |
14209 | } | |
14210 | { | |
14211 | wxFont* resultptr = new wxFont(*result); | |
14212 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14213 | } | |
14214 | return resultobj; | |
14215 | fail: | |
14216 | return NULL; | |
14217 | } | |
14218 | ||
14219 | ||
14220 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
14221 | PyObject *resultobj; | |
14222 | wxDC *arg1 = (wxDC *) 0 ; | |
14223 | wxPen *result; | |
14224 | PyObject * obj0 = 0 ; | |
14225 | char *kwnames[] = { | |
14226 | (char *) "self", NULL | |
14227 | }; | |
14228 | ||
14229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
14230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14232 | { | |
14233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14234 | { | |
14235 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14236 | result = (wxPen *) &_result_ref; | |
14237 | } | |
14238 | ||
14239 | wxPyEndAllowThreads(__tstate); | |
14240 | if (PyErr_Occurred()) SWIG_fail; | |
14241 | } | |
14242 | { | |
14243 | wxPen* resultptr = new wxPen(*result); | |
14244 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14245 | } | |
14246 | return resultobj; | |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
14252 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
14253 | PyObject *resultobj; | |
14254 | wxDC *arg1 = (wxDC *) 0 ; | |
14255 | wxColour *result; | |
14256 | PyObject * obj0 = 0 ; | |
14257 | char *kwnames[] = { | |
14258 | (char *) "self", NULL | |
14259 | }; | |
14260 | ||
14261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
14262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14264 | { | |
14265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14266 | { | |
14267 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14268 | result = (wxColour *) &_result_ref; | |
14269 | } | |
14270 | ||
14271 | wxPyEndAllowThreads(__tstate); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
14274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14275 | return resultobj; | |
14276 | fail: | |
14277 | return NULL; | |
14278 | } | |
14279 | ||
14280 | ||
14281 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { | |
14282 | PyObject *resultobj; | |
14283 | wxDC *arg1 = (wxDC *) 0 ; | |
14284 | wxColour *result; | |
14285 | PyObject * obj0 = 0 ; | |
14286 | char *kwnames[] = { | |
14287 | (char *) "self", NULL | |
14288 | }; | |
14289 | ||
14290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
14291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14293 | { | |
14294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14295 | { | |
14296 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14297 | result = (wxColour *) &_result_ref; | |
14298 | } | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14304 | return resultobj; | |
14305 | fail: | |
14306 | return NULL; | |
14307 | } | |
14308 | ||
14309 | ||
14310 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { | |
14311 | PyObject *resultobj; | |
14312 | wxDC *arg1 = (wxDC *) 0 ; | |
14313 | wxColour *arg2 = 0 ; | |
14314 | wxColour temp2 ; | |
14315 | PyObject * obj0 = 0 ; | |
14316 | PyObject * obj1 = 0 ; | |
14317 | char *kwnames[] = { | |
14318 | (char *) "self",(char *) "colour", NULL | |
14319 | }; | |
14320 | ||
14321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
14322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14324 | { | |
14325 | arg2 = &temp2; | |
14326 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14327 | } | |
14328 | { | |
14329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14330 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14331 | ||
14332 | wxPyEndAllowThreads(__tstate); | |
14333 | if (PyErr_Occurred()) SWIG_fail; | |
14334 | } | |
14335 | Py_INCREF(Py_None); resultobj = Py_None; | |
14336 | return resultobj; | |
14337 | fail: | |
14338 | return NULL; | |
14339 | } | |
14340 | ||
14341 | ||
14342 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { | |
14343 | PyObject *resultobj; | |
14344 | wxDC *arg1 = (wxDC *) 0 ; | |
14345 | wxColour *arg2 = 0 ; | |
14346 | wxColour temp2 ; | |
14347 | PyObject * obj0 = 0 ; | |
14348 | PyObject * obj1 = 0 ; | |
14349 | char *kwnames[] = { | |
14350 | (char *) "self",(char *) "colour", NULL | |
14351 | }; | |
14352 | ||
14353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
14354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14356 | { | |
14357 | arg2 = &temp2; | |
14358 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14359 | } | |
14360 | { | |
14361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14362 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14363 | ||
14364 | wxPyEndAllowThreads(__tstate); | |
14365 | if (PyErr_Occurred()) SWIG_fail; | |
14366 | } | |
14367 | Py_INCREF(Py_None); resultobj = Py_None; | |
14368 | return resultobj; | |
14369 | fail: | |
14370 | return NULL; | |
14371 | } | |
14372 | ||
14373 | ||
14374 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
14375 | PyObject *resultobj; | |
14376 | wxDC *arg1 = (wxDC *) 0 ; | |
14377 | int result; | |
14378 | PyObject * obj0 = 0 ; | |
14379 | char *kwnames[] = { | |
14380 | (char *) "self", NULL | |
14381 | }; | |
14382 | ||
14383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
14384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14386 | { | |
14387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14388 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14389 | ||
14390 | wxPyEndAllowThreads(__tstate); | |
14391 | if (PyErr_Occurred()) SWIG_fail; | |
14392 | } | |
14393 | resultobj = SWIG_From_int((int)result); | |
14394 | return resultobj; | |
14395 | fail: | |
14396 | return NULL; | |
14397 | } | |
14398 | ||
14399 | ||
14400 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { | |
14401 | PyObject *resultobj; | |
14402 | wxDC *arg1 = (wxDC *) 0 ; | |
14403 | int arg2 ; | |
14404 | PyObject * obj0 = 0 ; | |
14405 | PyObject * obj1 = 0 ; | |
14406 | char *kwnames[] = { | |
14407 | (char *) "self",(char *) "mode", NULL | |
14408 | }; | |
14409 | ||
14410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; | |
14411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14413 | arg2 = (int)SWIG_As_int(obj1); | |
14414 | if (PyErr_Occurred()) SWIG_fail; | |
14415 | { | |
14416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14417 | (arg1)->SetMapMode(arg2); | |
14418 | ||
14419 | wxPyEndAllowThreads(__tstate); | |
14420 | if (PyErr_Occurred()) SWIG_fail; | |
14421 | } | |
14422 | Py_INCREF(Py_None); resultobj = Py_None; | |
14423 | return resultobj; | |
14424 | fail: | |
14425 | return NULL; | |
14426 | } | |
14427 | ||
14428 | ||
14429 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { | |
14430 | PyObject *resultobj; | |
14431 | wxDC *arg1 = (wxDC *) 0 ; | |
14432 | double *arg2 = (double *) 0 ; | |
14433 | double *arg3 = (double *) 0 ; | |
14434 | double temp2 ; | |
14435 | int res2 = 0 ; | |
14436 | double temp3 ; | |
14437 | int res3 = 0 ; | |
14438 | PyObject * obj0 = 0 ; | |
14439 | char *kwnames[] = { | |
14440 | (char *) "self", NULL | |
14441 | }; | |
14442 | ||
14443 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
14444 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
14445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
14446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14448 | { | |
14449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14450 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14451 | ||
14452 | wxPyEndAllowThreads(__tstate); | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
14454 | } | |
14455 | Py_INCREF(Py_None); resultobj = Py_None; | |
14456 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
14457 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14458 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14459 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
14460 | return resultobj; | |
14461 | fail: | |
14462 | return NULL; | |
14463 | } | |
14464 | ||
14465 | ||
14466 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { | |
14467 | PyObject *resultobj; | |
14468 | wxDC *arg1 = (wxDC *) 0 ; | |
14469 | double arg2 ; | |
14470 | double arg3 ; | |
14471 | PyObject * obj0 = 0 ; | |
14472 | PyObject * obj1 = 0 ; | |
14473 | PyObject * obj2 = 0 ; | |
14474 | char *kwnames[] = { | |
14475 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14476 | }; | |
14477 | ||
14478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14481 | arg2 = (double)SWIG_As_double(obj1); | |
14482 | if (PyErr_Occurred()) SWIG_fail; | |
14483 | arg3 = (double)SWIG_As_double(obj2); | |
14484 | if (PyErr_Occurred()) SWIG_fail; | |
14485 | { | |
14486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14487 | (arg1)->SetUserScale(arg2,arg3); | |
14488 | ||
14489 | wxPyEndAllowThreads(__tstate); | |
14490 | if (PyErr_Occurred()) SWIG_fail; | |
14491 | } | |
14492 | Py_INCREF(Py_None); resultobj = Py_None; | |
14493 | return resultobj; | |
14494 | fail: | |
14495 | return NULL; | |
14496 | } | |
14497 | ||
14498 | ||
14499 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { | |
14500 | PyObject *resultobj; | |
14501 | wxDC *arg1 = (wxDC *) 0 ; | |
14502 | double *arg2 = (double *) 0 ; | |
14503 | double *arg3 = (double *) 0 ; | |
14504 | double temp2 ; | |
14505 | int res2 = 0 ; | |
14506 | double temp3 ; | |
14507 | int res3 = 0 ; | |
14508 | PyObject * obj0 = 0 ; | |
14509 | char *kwnames[] = { | |
14510 | (char *) "self", NULL | |
14511 | }; | |
14512 | ||
14513 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
14514 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
14515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
14516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14518 | { | |
14519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14520 | (arg1)->GetLogicalScale(arg2,arg3); | |
14521 | ||
14522 | wxPyEndAllowThreads(__tstate); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
14524 | } | |
14525 | Py_INCREF(Py_None); resultobj = Py_None; | |
14526 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
14527 | SWIG_From_double((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, 0))); | |
14528 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14529 | SWIG_From_double((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, 0))); | |
14530 | return resultobj; | |
14531 | fail: | |
14532 | return NULL; | |
14533 | } | |
14534 | ||
14535 | ||
14536 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { | |
14537 | PyObject *resultobj; | |
14538 | wxDC *arg1 = (wxDC *) 0 ; | |
14539 | double arg2 ; | |
14540 | double arg3 ; | |
14541 | PyObject * obj0 = 0 ; | |
14542 | PyObject * obj1 = 0 ; | |
14543 | PyObject * obj2 = 0 ; | |
14544 | char *kwnames[] = { | |
14545 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14546 | }; | |
14547 | ||
14548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14551 | arg2 = (double)SWIG_As_double(obj1); | |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
14553 | arg3 = (double)SWIG_As_double(obj2); | |
14554 | if (PyErr_Occurred()) SWIG_fail; | |
14555 | { | |
14556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14557 | (arg1)->SetLogicalScale(arg2,arg3); | |
14558 | ||
14559 | wxPyEndAllowThreads(__tstate); | |
14560 | if (PyErr_Occurred()) SWIG_fail; | |
14561 | } | |
14562 | Py_INCREF(Py_None); resultobj = Py_None; | |
14563 | return resultobj; | |
14564 | fail: | |
14565 | return NULL; | |
14566 | } | |
14567 | ||
14568 | ||
14569 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { | |
14570 | PyObject *resultobj; | |
14571 | wxDC *arg1 = (wxDC *) 0 ; | |
14572 | wxPoint result; | |
14573 | PyObject * obj0 = 0 ; | |
14574 | char *kwnames[] = { | |
14575 | (char *) "self", NULL | |
14576 | }; | |
14577 | ||
14578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
14579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14581 | { | |
14582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14583 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
14584 | ||
14585 | wxPyEndAllowThreads(__tstate); | |
14586 | if (PyErr_Occurred()) SWIG_fail; | |
14587 | } | |
14588 | { | |
14589 | wxPoint * resultptr; | |
14590 | resultptr = new wxPoint((wxPoint &) result); | |
14591 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14592 | } | |
14593 | return resultobj; | |
14594 | fail: | |
14595 | return NULL; | |
14596 | } | |
14597 | ||
14598 | ||
14599 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { | |
14600 | PyObject *resultobj; | |
14601 | wxDC *arg1 = (wxDC *) 0 ; | |
14602 | int *arg2 = (int *) 0 ; | |
14603 | int *arg3 = (int *) 0 ; | |
14604 | int temp2 ; | |
14605 | int res2 = 0 ; | |
14606 | int temp3 ; | |
14607 | int res3 = 0 ; | |
14608 | PyObject * obj0 = 0 ; | |
14609 | char *kwnames[] = { | |
14610 | (char *) "self", NULL | |
14611 | }; | |
14612 | ||
14613 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
14614 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
14615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
14616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14618 | { | |
14619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14620 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
14621 | ||
14622 | wxPyEndAllowThreads(__tstate); | |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
14624 | } | |
14625 | Py_INCREF(Py_None); resultobj = Py_None; | |
14626 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
14627 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14628 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14629 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
14630 | return resultobj; | |
14631 | fail: | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
14636 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { | |
14637 | PyObject *resultobj; | |
14638 | wxDC *arg1 = (wxDC *) 0 ; | |
14639 | int arg2 ; | |
14640 | int arg3 ; | |
14641 | PyObject * obj0 = 0 ; | |
14642 | PyObject * obj1 = 0 ; | |
14643 | PyObject * obj2 = 0 ; | |
14644 | char *kwnames[] = { | |
14645 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14646 | }; | |
14647 | ||
14648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14651 | arg2 = (int)SWIG_As_int(obj1); | |
14652 | if (PyErr_Occurred()) SWIG_fail; | |
14653 | arg3 = (int)SWIG_As_int(obj2); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | { | |
14656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14657 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14658 | ||
14659 | wxPyEndAllowThreads(__tstate); | |
14660 | if (PyErr_Occurred()) SWIG_fail; | |
14661 | } | |
14662 | Py_INCREF(Py_None); resultobj = Py_None; | |
14663 | return resultobj; | |
14664 | fail: | |
14665 | return NULL; | |
14666 | } | |
14667 | ||
14668 | ||
14669 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
14670 | PyObject *resultobj; | |
14671 | wxDC *arg1 = (wxDC *) 0 ; | |
14672 | wxPoint *arg2 = 0 ; | |
14673 | wxPoint temp2 ; | |
14674 | PyObject * obj0 = 0 ; | |
14675 | PyObject * obj1 = 0 ; | |
14676 | char *kwnames[] = { | |
14677 | (char *) "self",(char *) "point", NULL | |
14678 | }; | |
14679 | ||
14680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14683 | { | |
14684 | arg2 = &temp2; | |
14685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14686 | } | |
14687 | { | |
14688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14689 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14690 | ||
14691 | wxPyEndAllowThreads(__tstate); | |
14692 | if (PyErr_Occurred()) SWIG_fail; | |
14693 | } | |
14694 | Py_INCREF(Py_None); resultobj = Py_None; | |
14695 | return resultobj; | |
14696 | fail: | |
14697 | return NULL; | |
14698 | } | |
14699 | ||
14700 | ||
14701 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { | |
14702 | PyObject *resultobj; | |
14703 | wxDC *arg1 = (wxDC *) 0 ; | |
14704 | wxPoint result; | |
14705 | PyObject * obj0 = 0 ; | |
14706 | char *kwnames[] = { | |
14707 | (char *) "self", NULL | |
14708 | }; | |
14709 | ||
14710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
14711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14713 | { | |
14714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14715 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
14716 | ||
14717 | wxPyEndAllowThreads(__tstate); | |
14718 | if (PyErr_Occurred()) SWIG_fail; | |
14719 | } | |
14720 | { | |
14721 | wxPoint * resultptr; | |
14722 | resultptr = new wxPoint((wxPoint &) result); | |
14723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14724 | } | |
14725 | return resultobj; | |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { | |
14732 | PyObject *resultobj; | |
14733 | wxDC *arg1 = (wxDC *) 0 ; | |
14734 | int *arg2 = (int *) 0 ; | |
14735 | int *arg3 = (int *) 0 ; | |
14736 | int temp2 ; | |
14737 | int res2 = 0 ; | |
14738 | int temp3 ; | |
14739 | int res3 = 0 ; | |
14740 | PyObject * obj0 = 0 ; | |
14741 | char *kwnames[] = { | |
14742 | (char *) "self", NULL | |
14743 | }; | |
14744 | ||
14745 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
14746 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
14747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
14748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14750 | { | |
14751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14752 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
14753 | ||
14754 | wxPyEndAllowThreads(__tstate); | |
14755 | if (PyErr_Occurred()) SWIG_fail; | |
14756 | } | |
14757 | Py_INCREF(Py_None); resultobj = Py_None; | |
14758 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
14759 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
14760 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14761 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
14762 | return resultobj; | |
14763 | fail: | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
14768 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | wxDC *arg1 = (wxDC *) 0 ; | |
14771 | int arg2 ; | |
14772 | int arg3 ; | |
14773 | PyObject * obj0 = 0 ; | |
14774 | PyObject * obj1 = 0 ; | |
14775 | PyObject * obj2 = 0 ; | |
14776 | char *kwnames[] = { | |
14777 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14778 | }; | |
14779 | ||
14780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14783 | arg2 = (int)SWIG_As_int(obj1); | |
14784 | if (PyErr_Occurred()) SWIG_fail; | |
14785 | arg3 = (int)SWIG_As_int(obj2); | |
14786 | if (PyErr_Occurred()) SWIG_fail; | |
14787 | { | |
14788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14789 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14790 | ||
14791 | wxPyEndAllowThreads(__tstate); | |
14792 | if (PyErr_Occurred()) SWIG_fail; | |
14793 | } | |
14794 | Py_INCREF(Py_None); resultobj = Py_None; | |
14795 | return resultobj; | |
14796 | fail: | |
14797 | return NULL; | |
14798 | } | |
14799 | ||
14800 | ||
14801 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
14802 | PyObject *resultobj; | |
14803 | wxDC *arg1 = (wxDC *) 0 ; | |
14804 | wxPoint *arg2 = 0 ; | |
14805 | wxPoint temp2 ; | |
14806 | PyObject * obj0 = 0 ; | |
14807 | PyObject * obj1 = 0 ; | |
14808 | char *kwnames[] = { | |
14809 | (char *) "self",(char *) "point", NULL | |
14810 | }; | |
14811 | ||
14812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14815 | { | |
14816 | arg2 = &temp2; | |
14817 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14818 | } | |
14819 | { | |
14820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14821 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
14822 | ||
14823 | wxPyEndAllowThreads(__tstate); | |
14824 | if (PyErr_Occurred()) SWIG_fail; | |
14825 | } | |
14826 | Py_INCREF(Py_None); resultobj = Py_None; | |
14827 | return resultobj; | |
14828 | fail: | |
14829 | return NULL; | |
14830 | } | |
14831 | ||
14832 | ||
14833 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { | |
14834 | PyObject *resultobj; | |
14835 | wxDC *arg1 = (wxDC *) 0 ; | |
14836 | bool arg2 ; | |
14837 | bool arg3 ; | |
14838 | PyObject * obj0 = 0 ; | |
14839 | PyObject * obj1 = 0 ; | |
14840 | PyObject * obj2 = 0 ; | |
14841 | char *kwnames[] = { | |
14842 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14843 | }; | |
14844 | ||
14845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14848 | arg2 = (bool)SWIG_As_bool(obj1); | |
14849 | if (PyErr_Occurred()) SWIG_fail; | |
14850 | arg3 = (bool)SWIG_As_bool(obj2); | |
14851 | if (PyErr_Occurred()) SWIG_fail; | |
14852 | { | |
14853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14854 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14855 | ||
14856 | wxPyEndAllowThreads(__tstate); | |
14857 | if (PyErr_Occurred()) SWIG_fail; | |
14858 | } | |
14859 | Py_INCREF(Py_None); resultobj = Py_None; | |
14860 | return resultobj; | |
14861 | fail: | |
14862 | return NULL; | |
14863 | } | |
14864 | ||
14865 | ||
14866 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { | |
14867 | PyObject *resultobj; | |
14868 | wxDC *arg1 = (wxDC *) 0 ; | |
14869 | int result; | |
14870 | PyObject * obj0 = 0 ; | |
14871 | char *kwnames[] = { | |
14872 | (char *) "self", NULL | |
14873 | }; | |
14874 | ||
14875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
14876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14878 | { | |
14879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14880 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14881 | ||
14882 | wxPyEndAllowThreads(__tstate); | |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
14884 | } | |
14885 | resultobj = SWIG_From_int((int)result); | |
14886 | return resultobj; | |
14887 | fail: | |
14888 | return NULL; | |
14889 | } | |
14890 | ||
14891 | ||
14892 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { | |
14893 | PyObject *resultobj; | |
14894 | wxDC *arg1 = (wxDC *) 0 ; | |
14895 | int arg2 ; | |
14896 | PyObject * obj0 = 0 ; | |
14897 | PyObject * obj1 = 0 ; | |
14898 | char *kwnames[] = { | |
14899 | (char *) "self",(char *) "function", NULL | |
14900 | }; | |
14901 | ||
14902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; | |
14903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14905 | arg2 = (int)SWIG_As_int(obj1); | |
14906 | if (PyErr_Occurred()) SWIG_fail; | |
14907 | { | |
14908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14909 | (arg1)->SetLogicalFunction(arg2); | |
14910 | ||
14911 | wxPyEndAllowThreads(__tstate); | |
14912 | if (PyErr_Occurred()) SWIG_fail; | |
14913 | } | |
14914 | Py_INCREF(Py_None); resultobj = Py_None; | |
14915 | return resultobj; | |
14916 | fail: | |
14917 | return NULL; | |
14918 | } | |
14919 | ||
14920 | ||
14921 | static PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *, PyObject *args, PyObject *kwargs) { | |
14922 | PyObject *resultobj; | |
14923 | wxDC *arg1 = (wxDC *) 0 ; | |
14924 | PyObject * obj0 = 0 ; | |
14925 | char *kwnames[] = { | |
14926 | (char *) "self", NULL | |
14927 | }; | |
14928 | ||
14929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ComputeScaleAndOrigin",kwnames,&obj0)) goto fail; | |
14930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14932 | { | |
14933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14934 | (arg1)->ComputeScaleAndOrigin(); | |
14935 | ||
14936 | wxPyEndAllowThreads(__tstate); | |
14937 | if (PyErr_Occurred()) SWIG_fail; | |
14938 | } | |
14939 | Py_INCREF(Py_None); resultobj = Py_None; | |
14940 | return resultobj; | |
14941 | fail: | |
14942 | return NULL; | |
14943 | } | |
14944 | ||
14945 | ||
14946 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
14947 | PyObject *resultobj; | |
14948 | wxDC *arg1 = (wxDC *) 0 ; | |
14949 | int arg2 ; | |
14950 | int arg3 ; | |
14951 | PyObject * obj0 = 0 ; | |
14952 | PyObject * obj1 = 0 ; | |
14953 | PyObject * obj2 = 0 ; | |
14954 | char *kwnames[] = { | |
14955 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14956 | }; | |
14957 | ||
14958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14961 | arg2 = (int)SWIG_As_int(obj1); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | arg3 = (int)SWIG_As_int(obj2); | |
14964 | if (PyErr_Occurred()) SWIG_fail; | |
14965 | { | |
14966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14967 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14968 | ||
14969 | wxPyEndAllowThreads(__tstate); | |
14970 | if (PyErr_Occurred()) SWIG_fail; | |
14971 | } | |
14972 | Py_INCREF(Py_None); resultobj = Py_None; | |
14973 | return resultobj; | |
14974 | fail: | |
14975 | return NULL; | |
14976 | } | |
14977 | ||
14978 | ||
14979 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *, PyObject *args, PyObject *kwargs) { | |
14980 | PyObject *resultobj; | |
14981 | wxDC *arg1 = (wxDC *) 0 ; | |
14982 | wxPoint *arg2 = 0 ; | |
14983 | wxPoint temp2 ; | |
14984 | PyObject * obj0 = 0 ; | |
14985 | PyObject * obj1 = 0 ; | |
14986 | char *kwnames[] = { | |
14987 | (char *) "self",(char *) "point", NULL | |
14988 | }; | |
14989 | ||
14990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
14991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14993 | { | |
14994 | arg2 = &temp2; | |
14995 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14996 | } | |
14997 | { | |
14998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14999 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
15000 | ||
15001 | wxPyEndAllowThreads(__tstate); | |
15002 | if (PyErr_Occurred()) SWIG_fail; | |
15003 | } | |
15004 | Py_INCREF(Py_None); resultobj = Py_None; | |
15005 | return resultobj; | |
15006 | fail: | |
15007 | return NULL; | |
15008 | } | |
15009 | ||
15010 | ||
15011 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
15012 | PyObject *resultobj; | |
15013 | wxDC *arg1 = (wxDC *) 0 ; | |
15014 | PyObject * obj0 = 0 ; | |
15015 | char *kwnames[] = { | |
15016 | (char *) "self", NULL | |
15017 | }; | |
15018 | ||
15019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15022 | { | |
15023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15024 | (arg1)->ResetBoundingBox(); | |
15025 | ||
15026 | wxPyEndAllowThreads(__tstate); | |
15027 | if (PyErr_Occurred()) SWIG_fail; | |
15028 | } | |
15029 | Py_INCREF(Py_None); resultobj = Py_None; | |
15030 | return resultobj; | |
15031 | fail: | |
15032 | return NULL; | |
15033 | } | |
15034 | ||
15035 | ||
15036 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { | |
15037 | PyObject *resultobj; | |
15038 | wxDC *arg1 = (wxDC *) 0 ; | |
15039 | int result; | |
15040 | PyObject * obj0 = 0 ; | |
15041 | char *kwnames[] = { | |
15042 | (char *) "self", NULL | |
15043 | }; | |
15044 | ||
15045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15048 | { | |
15049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15050 | result = (int)((wxDC const *)arg1)->MinX(); | |
15051 | ||
15052 | wxPyEndAllowThreads(__tstate); | |
15053 | if (PyErr_Occurred()) SWIG_fail; | |
15054 | } | |
15055 | resultobj = SWIG_From_int((int)result); | |
15056 | return resultobj; | |
15057 | fail: | |
15058 | return NULL; | |
15059 | } | |
15060 | ||
15061 | ||
15062 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { | |
15063 | PyObject *resultobj; | |
15064 | wxDC *arg1 = (wxDC *) 0 ; | |
15065 | int result; | |
15066 | PyObject * obj0 = 0 ; | |
15067 | char *kwnames[] = { | |
15068 | (char *) "self", NULL | |
15069 | }; | |
15070 | ||
15071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15074 | { | |
15075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15076 | result = (int)((wxDC const *)arg1)->MaxX(); | |
15077 | ||
15078 | wxPyEndAllowThreads(__tstate); | |
15079 | if (PyErr_Occurred()) SWIG_fail; | |
15080 | } | |
15081 | resultobj = SWIG_From_int((int)result); | |
15082 | return resultobj; | |
15083 | fail: | |
15084 | return NULL; | |
15085 | } | |
15086 | ||
15087 | ||
15088 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { | |
15089 | PyObject *resultobj; | |
15090 | wxDC *arg1 = (wxDC *) 0 ; | |
15091 | int result; | |
15092 | PyObject * obj0 = 0 ; | |
15093 | char *kwnames[] = { | |
15094 | (char *) "self", NULL | |
15095 | }; | |
15096 | ||
15097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15100 | { | |
15101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15102 | result = (int)((wxDC const *)arg1)->MinY(); | |
15103 | ||
15104 | wxPyEndAllowThreads(__tstate); | |
15105 | if (PyErr_Occurred()) SWIG_fail; | |
15106 | } | |
15107 | resultobj = SWIG_From_int((int)result); | |
15108 | return resultobj; | |
15109 | fail: | |
15110 | return NULL; | |
15111 | } | |
15112 | ||
15113 | ||
15114 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { | |
15115 | PyObject *resultobj; | |
15116 | wxDC *arg1 = (wxDC *) 0 ; | |
15117 | int result; | |
15118 | PyObject * obj0 = 0 ; | |
15119 | char *kwnames[] = { | |
15120 | (char *) "self", NULL | |
15121 | }; | |
15122 | ||
15123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15126 | { | |
15127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15128 | result = (int)((wxDC const *)arg1)->MaxY(); | |
15129 | ||
15130 | wxPyEndAllowThreads(__tstate); | |
15131 | if (PyErr_Occurred()) SWIG_fail; | |
15132 | } | |
15133 | resultobj = SWIG_From_int((int)result); | |
15134 | return resultobj; | |
15135 | fail: | |
15136 | return NULL; | |
15137 | } | |
15138 | ||
15139 | ||
15140 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { | |
15141 | PyObject *resultobj; | |
15142 | wxDC *arg1 = (wxDC *) 0 ; | |
15143 | int *arg2 = (int *) 0 ; | |
15144 | int *arg3 = (int *) 0 ; | |
15145 | int *arg4 = (int *) 0 ; | |
15146 | int *arg5 = (int *) 0 ; | |
15147 | int temp2 ; | |
15148 | int res2 = 0 ; | |
15149 | int temp3 ; | |
15150 | int res3 = 0 ; | |
15151 | int temp4 ; | |
15152 | int res4 = 0 ; | |
15153 | int temp5 ; | |
15154 | int res5 = 0 ; | |
15155 | PyObject * obj0 = 0 ; | |
15156 | char *kwnames[] = { | |
15157 | (char *) "self", NULL | |
15158 | }; | |
15159 | ||
15160 | arg2 = &temp2; res2 = SWIG_NEWOBJ; | |
15161 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
15162 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
15163 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
15164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
15165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15167 | { | |
15168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15169 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15170 | ||
15171 | wxPyEndAllowThreads(__tstate); | |
15172 | if (PyErr_Occurred()) SWIG_fail; | |
15173 | } | |
15174 | Py_INCREF(Py_None); resultobj = Py_None; | |
15175 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? | |
15176 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
15177 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15178 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
15179 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
15180 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
15181 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
15182 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
15183 | return resultobj; | |
15184 | fail: | |
15185 | return NULL; | |
15186 | } | |
15187 | ||
15188 | ||
15189 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { | |
15190 | PyObject *resultobj; | |
15191 | wxDC *arg1 = (wxDC *) 0 ; | |
15192 | PyObject *arg2 = (PyObject *) 0 ; | |
15193 | PyObject *arg3 = (PyObject *) 0 ; | |
15194 | PyObject *arg4 = (PyObject *) 0 ; | |
15195 | PyObject *result; | |
15196 | PyObject * obj0 = 0 ; | |
15197 | PyObject * obj1 = 0 ; | |
15198 | PyObject * obj2 = 0 ; | |
15199 | PyObject * obj3 = 0 ; | |
15200 | char *kwnames[] = { | |
15201 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15202 | }; | |
15203 | ||
15204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15207 | arg2 = obj1; | |
15208 | arg3 = obj2; | |
15209 | arg4 = obj3; | |
15210 | { | |
15211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15212 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15213 | ||
15214 | wxPyEndAllowThreads(__tstate); | |
15215 | if (PyErr_Occurred()) SWIG_fail; | |
15216 | } | |
15217 | resultobj = result; | |
15218 | return resultobj; | |
15219 | fail: | |
15220 | return NULL; | |
15221 | } | |
15222 | ||
15223 | ||
15224 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { | |
15225 | PyObject *resultobj; | |
15226 | wxDC *arg1 = (wxDC *) 0 ; | |
15227 | PyObject *arg2 = (PyObject *) 0 ; | |
15228 | PyObject *arg3 = (PyObject *) 0 ; | |
15229 | PyObject *arg4 = (PyObject *) 0 ; | |
15230 | PyObject *result; | |
15231 | PyObject * obj0 = 0 ; | |
15232 | PyObject * obj1 = 0 ; | |
15233 | PyObject * obj2 = 0 ; | |
15234 | PyObject * obj3 = 0 ; | |
15235 | char *kwnames[] = { | |
15236 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15237 | }; | |
15238 | ||
15239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15242 | arg2 = obj1; | |
15243 | arg3 = obj2; | |
15244 | arg4 = obj3; | |
15245 | { | |
15246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15247 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15248 | ||
15249 | wxPyEndAllowThreads(__tstate); | |
15250 | if (PyErr_Occurred()) SWIG_fail; | |
15251 | } | |
15252 | resultobj = result; | |
15253 | return resultobj; | |
15254 | fail: | |
15255 | return NULL; | |
15256 | } | |
15257 | ||
15258 | ||
15259 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { | |
15260 | PyObject *resultobj; | |
15261 | wxDC *arg1 = (wxDC *) 0 ; | |
15262 | PyObject *arg2 = (PyObject *) 0 ; | |
15263 | PyObject *arg3 = (PyObject *) 0 ; | |
15264 | PyObject *arg4 = (PyObject *) 0 ; | |
15265 | PyObject *result; | |
15266 | PyObject * obj0 = 0 ; | |
15267 | PyObject * obj1 = 0 ; | |
15268 | PyObject * obj2 = 0 ; | |
15269 | PyObject * obj3 = 0 ; | |
15270 | char *kwnames[] = { | |
15271 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15272 | }; | |
15273 | ||
15274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15277 | arg2 = obj1; | |
15278 | arg3 = obj2; | |
15279 | arg4 = obj3; | |
15280 | { | |
15281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15282 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15283 | ||
15284 | wxPyEndAllowThreads(__tstate); | |
15285 | if (PyErr_Occurred()) SWIG_fail; | |
15286 | } | |
15287 | resultobj = result; | |
15288 | return resultobj; | |
15289 | fail: | |
15290 | return NULL; | |
15291 | } | |
15292 | ||
15293 | ||
15294 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { | |
15295 | PyObject *resultobj; | |
15296 | wxDC *arg1 = (wxDC *) 0 ; | |
15297 | PyObject *arg2 = (PyObject *) 0 ; | |
15298 | PyObject *arg3 = (PyObject *) 0 ; | |
15299 | PyObject *arg4 = (PyObject *) 0 ; | |
15300 | PyObject *result; | |
15301 | PyObject * obj0 = 0 ; | |
15302 | PyObject * obj1 = 0 ; | |
15303 | PyObject * obj2 = 0 ; | |
15304 | PyObject * obj3 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15312 | arg2 = obj1; | |
15313 | arg3 = obj2; | |
15314 | arg4 = obj3; | |
15315 | { | |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
15322 | resultobj = result; | |
15323 | return resultobj; | |
15324 | fail: | |
15325 | return NULL; | |
15326 | } | |
15327 | ||
15328 | ||
15329 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { | |
15330 | PyObject *resultobj; | |
15331 | wxDC *arg1 = (wxDC *) 0 ; | |
15332 | PyObject *arg2 = (PyObject *) 0 ; | |
15333 | PyObject *arg3 = (PyObject *) 0 ; | |
15334 | PyObject *arg4 = (PyObject *) 0 ; | |
15335 | PyObject *result; | |
15336 | PyObject * obj0 = 0 ; | |
15337 | PyObject * obj1 = 0 ; | |
15338 | PyObject * obj2 = 0 ; | |
15339 | PyObject * obj3 = 0 ; | |
15340 | char *kwnames[] = { | |
15341 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15342 | }; | |
15343 | ||
15344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15347 | arg2 = obj1; | |
15348 | arg3 = obj2; | |
15349 | arg4 = obj3; | |
15350 | { | |
15351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15352 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15353 | ||
15354 | wxPyEndAllowThreads(__tstate); | |
15355 | if (PyErr_Occurred()) SWIG_fail; | |
15356 | } | |
15357 | resultobj = result; | |
15358 | return resultobj; | |
15359 | fail: | |
15360 | return NULL; | |
15361 | } | |
15362 | ||
15363 | ||
15364 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { | |
15365 | PyObject *resultobj; | |
15366 | wxDC *arg1 = (wxDC *) 0 ; | |
15367 | PyObject *arg2 = (PyObject *) 0 ; | |
15368 | PyObject *arg3 = (PyObject *) 0 ; | |
15369 | PyObject *arg4 = (PyObject *) 0 ; | |
15370 | PyObject *arg5 = (PyObject *) 0 ; | |
15371 | PyObject *result; | |
15372 | PyObject * obj0 = 0 ; | |
15373 | PyObject * obj1 = 0 ; | |
15374 | PyObject * obj2 = 0 ; | |
15375 | PyObject * obj3 = 0 ; | |
15376 | PyObject * obj4 = 0 ; | |
15377 | char *kwnames[] = { | |
15378 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15379 | }; | |
15380 | ||
15381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15384 | arg2 = obj1; | |
15385 | arg3 = obj2; | |
15386 | arg4 = obj3; | |
15387 | arg5 = obj4; | |
15388 | { | |
15389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15390 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15391 | ||
15392 | wxPyEndAllowThreads(__tstate); | |
15393 | if (PyErr_Occurred()) SWIG_fail; | |
15394 | } | |
15395 | resultobj = result; | |
15396 | return resultobj; | |
15397 | fail: | |
15398 | return NULL; | |
15399 | } | |
15400 | ||
15401 | ||
15402 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { | |
15403 | PyObject *obj; | |
15404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15405 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15406 | Py_INCREF(obj); | |
15407 | return Py_BuildValue((char *)""); | |
15408 | } | |
15409 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15410 | PyObject *resultobj; | |
15411 | wxMemoryDC *result; | |
15412 | char *kwnames[] = { | |
15413 | NULL | |
15414 | }; | |
15415 | ||
15416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15417 | { | |
15418 | if (!wxPyCheckForApp()) SWIG_fail; | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15421 | ||
15422 | wxPyEndAllowThreads(__tstate); | |
15423 | if (PyErr_Occurred()) SWIG_fail; | |
15424 | } | |
15425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15426 | return resultobj; | |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
15432 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxDC *arg1 = (wxDC *) 0 ; | |
15435 | wxMemoryDC *result; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "oldDC", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15444 | { | |
15445 | if (!wxPyCheckForApp()) SWIG_fail; | |
15446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15447 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15448 | ||
15449 | wxPyEndAllowThreads(__tstate); | |
15450 | if (PyErr_Occurred()) SWIG_fail; | |
15451 | } | |
15452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15453 | return resultobj; | |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { | |
15460 | PyObject *resultobj; | |
15461 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15462 | wxBitmap *arg2 = 0 ; | |
15463 | PyObject * obj0 = 0 ; | |
15464 | PyObject * obj1 = 0 ; | |
15465 | char *kwnames[] = { | |
15466 | (char *) "self",(char *) "bitmap", NULL | |
15467 | }; | |
15468 | ||
15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, | |
15471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15473 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15474 | SWIG_fail; | |
15475 | if (arg2 == NULL) { | |
15476 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15477 | SWIG_fail; | |
15478 | } | |
15479 | { | |
15480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15481 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15482 | ||
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
15486 | Py_INCREF(Py_None); resultobj = Py_None; | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { | |
15494 | PyObject *obj; | |
15495 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15496 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15497 | Py_INCREF(obj); | |
15498 | return Py_BuildValue((char *)""); | |
15499 | } | |
15500 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { | |
15501 | PyObject *resultobj; | |
15502 | wxDC *arg1 = (wxDC *) 0 ; | |
15503 | wxBitmap *arg2 = 0 ; | |
15504 | wxBufferedDC *result; | |
15505 | PyObject * obj0 = 0 ; | |
15506 | PyObject * obj1 = 0 ; | |
15507 | ||
15508 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15511 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15512 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15513 | SWIG_fail; | |
15514 | if (arg2 == NULL) { | |
15515 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15516 | SWIG_fail; | |
15517 | } | |
15518 | { | |
15519 | if (!wxPyCheckForApp()) SWIG_fail; | |
15520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15521 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15522 | ||
15523 | wxPyEndAllowThreads(__tstate); | |
15524 | if (PyErr_Occurred()) SWIG_fail; | |
15525 | } | |
15526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15527 | return resultobj; | |
15528 | fail: | |
15529 | return NULL; | |
15530 | } | |
15531 | ||
15532 | ||
15533 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { | |
15534 | PyObject *resultobj; | |
15535 | wxDC *arg1 = (wxDC *) 0 ; | |
15536 | wxSize *arg2 = 0 ; | |
15537 | wxBufferedDC *result; | |
15538 | wxSize temp2 ; | |
15539 | PyObject * obj0 = 0 ; | |
15540 | PyObject * obj1 = 0 ; | |
15541 | ||
15542 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15545 | { | |
15546 | arg2 = &temp2; | |
15547 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15548 | } | |
15549 | { | |
15550 | if (!wxPyCheckForApp()) SWIG_fail; | |
15551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15552 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15553 | ||
15554 | wxPyEndAllowThreads(__tstate); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | } | |
15557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15558 | return resultobj; | |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
15564 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15565 | int argc; | |
15566 | PyObject *argv[3]; | |
15567 | int ii; | |
15568 | ||
15569 | argc = PyObject_Length(args); | |
15570 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
15571 | argv[ii] = PyTuple_GetItem(args,ii); | |
15572 | } | |
15573 | if (argc == 2) { | |
15574 | int _v; | |
15575 | { | |
15576 | void *ptr; | |
15577 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15578 | _v = 0; | |
15579 | PyErr_Clear(); | |
15580 | } else { | |
15581 | _v = 1; | |
15582 | } | |
15583 | } | |
15584 | if (_v) { | |
15585 | { | |
15586 | void *ptr; | |
15587 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
15588 | _v = 0; | |
15589 | PyErr_Clear(); | |
15590 | } else { | |
15591 | _v = 1; | |
15592 | } | |
15593 | } | |
15594 | if (_v) { | |
15595 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15596 | } | |
15597 | } | |
15598 | } | |
15599 | if (argc == 2) { | |
15600 | int _v; | |
15601 | { | |
15602 | void *ptr; | |
15603 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15604 | _v = 0; | |
15605 | PyErr_Clear(); | |
15606 | } else { | |
15607 | _v = 1; | |
15608 | } | |
15609 | } | |
15610 | if (_v) { | |
15611 | { | |
15612 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15613 | } | |
15614 | if (_v) { | |
15615 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
15616 | } | |
15617 | } | |
15618 | } | |
15619 | ||
15620 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15621 | return NULL; | |
15622 | } | |
15623 | ||
15624 | ||
15625 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15626 | PyObject *resultobj; | |
15627 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15628 | PyObject * obj0 = 0 ; | |
15629 | char *kwnames[] = { | |
15630 | (char *) "self", NULL | |
15631 | }; | |
15632 | ||
15633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
15634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15636 | { | |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15638 | delete arg1; | |
15639 | ||
15640 | wxPyEndAllowThreads(__tstate); | |
15641 | if (PyErr_Occurred()) SWIG_fail; | |
15642 | } | |
15643 | Py_INCREF(Py_None); resultobj = Py_None; | |
15644 | return resultobj; | |
15645 | fail: | |
15646 | return NULL; | |
15647 | } | |
15648 | ||
15649 | ||
15650 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
15651 | PyObject *resultobj; | |
15652 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15653 | PyObject * obj0 = 0 ; | |
15654 | char *kwnames[] = { | |
15655 | (char *) "self", NULL | |
15656 | }; | |
15657 | ||
15658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
15659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15661 | { | |
15662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15663 | (arg1)->UnMask(); | |
15664 | ||
15665 | wxPyEndAllowThreads(__tstate); | |
15666 | if (PyErr_Occurred()) SWIG_fail; | |
15667 | } | |
15668 | Py_INCREF(Py_None); resultobj = Py_None; | |
15669 | return resultobj; | |
15670 | fail: | |
15671 | return NULL; | |
15672 | } | |
15673 | ||
15674 | ||
15675 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { | |
15676 | PyObject *obj; | |
15677 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15678 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15679 | Py_INCREF(obj); | |
15680 | return Py_BuildValue((char *)""); | |
15681 | } | |
15682 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15683 | PyObject *resultobj; | |
15684 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15685 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
15686 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
15687 | wxBufferedPaintDC *result; | |
15688 | PyObject * obj0 = 0 ; | |
15689 | PyObject * obj1 = 0 ; | |
15690 | char *kwnames[] = { | |
15691 | (char *) "window",(char *) "buffer", NULL | |
15692 | }; | |
15693 | ||
15694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
15695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15697 | if (obj1) { | |
15698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15699 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15700 | SWIG_fail; | |
15701 | if (arg2 == NULL) { | |
15702 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15703 | SWIG_fail; | |
15704 | } | |
15705 | } | |
15706 | { | |
15707 | if (!wxPyCheckForApp()) SWIG_fail; | |
15708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15709 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
15710 | ||
15711 | wxPyEndAllowThreads(__tstate); | |
15712 | if (PyErr_Occurred()) SWIG_fail; | |
15713 | } | |
15714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
15715 | return resultobj; | |
15716 | fail: | |
15717 | return NULL; | |
15718 | } | |
15719 | ||
15720 | ||
15721 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { | |
15722 | PyObject *obj; | |
15723 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15724 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15725 | Py_INCREF(obj); | |
15726 | return Py_BuildValue((char *)""); | |
15727 | } | |
15728 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15729 | PyObject *resultobj; | |
15730 | wxScreenDC *result; | |
15731 | char *kwnames[] = { | |
15732 | NULL | |
15733 | }; | |
15734 | ||
15735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15736 | { | |
15737 | if (!wxPyCheckForApp()) SWIG_fail; | |
15738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15739 | result = (wxScreenDC *)new wxScreenDC(); | |
15740 | ||
15741 | wxPyEndAllowThreads(__tstate); | |
15742 | if (PyErr_Occurred()) SWIG_fail; | |
15743 | } | |
15744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
15745 | return resultobj; | |
15746 | fail: | |
15747 | return NULL; | |
15748 | } | |
15749 | ||
15750 | ||
15751 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { | |
15752 | PyObject *resultobj; | |
15753 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15754 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15755 | bool result; | |
15756 | PyObject * obj0 = 0 ; | |
15757 | PyObject * obj1 = 0 ; | |
15758 | char *kwnames[] = { | |
15759 | (char *) "self",(char *) "window", NULL | |
15760 | }; | |
15761 | ||
15762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15767 | { | |
15768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15769 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15770 | ||
15771 | wxPyEndAllowThreads(__tstate); | |
15772 | if (PyErr_Occurred()) SWIG_fail; | |
15773 | } | |
15774 | { | |
15775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15776 | } | |
15777 | return resultobj; | |
15778 | fail: | |
15779 | return NULL; | |
15780 | } | |
15781 | ||
15782 | ||
15783 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { | |
15784 | PyObject *resultobj; | |
15785 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15786 | wxRect *arg2 = (wxRect *) NULL ; | |
15787 | bool result; | |
15788 | PyObject * obj0 = 0 ; | |
15789 | PyObject * obj1 = 0 ; | |
15790 | char *kwnames[] = { | |
15791 | (char *) "self",(char *) "rect", NULL | |
15792 | }; | |
15793 | ||
15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15797 | if (obj1) { | |
15798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
15799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15800 | } | |
15801 | { | |
15802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15803 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15804 | ||
15805 | wxPyEndAllowThreads(__tstate); | |
15806 | if (PyErr_Occurred()) SWIG_fail; | |
15807 | } | |
15808 | { | |
15809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15810 | } | |
15811 | return resultobj; | |
15812 | fail: | |
15813 | return NULL; | |
15814 | } | |
15815 | ||
15816 | ||
15817 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { | |
15818 | PyObject *resultobj; | |
15819 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15820 | bool result; | |
15821 | PyObject * obj0 = 0 ; | |
15822 | char *kwnames[] = { | |
15823 | (char *) "self", NULL | |
15824 | }; | |
15825 | ||
15826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15829 | { | |
15830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15831 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15832 | ||
15833 | wxPyEndAllowThreads(__tstate); | |
15834 | if (PyErr_Occurred()) SWIG_fail; | |
15835 | } | |
15836 | { | |
15837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15838 | } | |
15839 | return resultobj; | |
15840 | fail: | |
15841 | return NULL; | |
15842 | } | |
15843 | ||
15844 | ||
15845 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { | |
15846 | PyObject *obj; | |
15847 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15848 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15849 | Py_INCREF(obj); | |
15850 | return Py_BuildValue((char *)""); | |
15851 | } | |
15852 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15853 | PyObject *resultobj; | |
15854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15855 | wxClientDC *result; | |
15856 | PyObject * obj0 = 0 ; | |
15857 | char *kwnames[] = { | |
15858 | (char *) "win", NULL | |
15859 | }; | |
15860 | ||
15861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15864 | { | |
15865 | if (!wxPyCheckForApp()) SWIG_fail; | |
15866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15867 | result = (wxClientDC *)new wxClientDC(arg1); | |
15868 | ||
15869 | wxPyEndAllowThreads(__tstate); | |
15870 | if (PyErr_Occurred()) SWIG_fail; | |
15871 | } | |
15872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
15873 | return resultobj; | |
15874 | fail: | |
15875 | return NULL; | |
15876 | } | |
15877 | ||
15878 | ||
15879 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { | |
15880 | PyObject *obj; | |
15881 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15882 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15883 | Py_INCREF(obj); | |
15884 | return Py_BuildValue((char *)""); | |
15885 | } | |
15886 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15887 | PyObject *resultobj; | |
15888 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15889 | wxPaintDC *result; | |
15890 | PyObject * obj0 = 0 ; | |
15891 | char *kwnames[] = { | |
15892 | (char *) "win", NULL | |
15893 | }; | |
15894 | ||
15895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15898 | { | |
15899 | if (!wxPyCheckForApp()) SWIG_fail; | |
15900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15901 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15902 | ||
15903 | wxPyEndAllowThreads(__tstate); | |
15904 | if (PyErr_Occurred()) SWIG_fail; | |
15905 | } | |
15906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
15907 | return resultobj; | |
15908 | fail: | |
15909 | return NULL; | |
15910 | } | |
15911 | ||
15912 | ||
15913 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { | |
15914 | PyObject *obj; | |
15915 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15916 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15917 | Py_INCREF(obj); | |
15918 | return Py_BuildValue((char *)""); | |
15919 | } | |
15920 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15921 | PyObject *resultobj; | |
15922 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15923 | wxWindowDC *result; | |
15924 | PyObject * obj0 = 0 ; | |
15925 | char *kwnames[] = { | |
15926 | (char *) "win", NULL | |
15927 | }; | |
15928 | ||
15929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15932 | { | |
15933 | if (!wxPyCheckForApp()) SWIG_fail; | |
15934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15935 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15936 | ||
15937 | wxPyEndAllowThreads(__tstate); | |
15938 | if (PyErr_Occurred()) SWIG_fail; | |
15939 | } | |
15940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
15941 | return resultobj; | |
15942 | fail: | |
15943 | return NULL; | |
15944 | } | |
15945 | ||
15946 | ||
15947 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { | |
15948 | PyObject *obj; | |
15949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15950 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15951 | Py_INCREF(obj); | |
15952 | return Py_BuildValue((char *)""); | |
15953 | } | |
15954 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | wxDC *arg1 = 0 ; | |
15957 | bool arg2 ; | |
15958 | wxMirrorDC *result; | |
15959 | PyObject * obj0 = 0 ; | |
15960 | PyObject * obj1 = 0 ; | |
15961 | char *kwnames[] = { | |
15962 | (char *) "dc",(char *) "mirror", NULL | |
15963 | }; | |
15964 | ||
15965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15967 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15968 | SWIG_fail; | |
15969 | if (arg1 == NULL) { | |
15970 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15971 | SWIG_fail; | |
15972 | } | |
15973 | arg2 = (bool)SWIG_As_bool(obj1); | |
15974 | if (PyErr_Occurred()) SWIG_fail; | |
15975 | { | |
15976 | if (!wxPyCheckForApp()) SWIG_fail; | |
15977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15978 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
15983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
15984 | return resultobj; | |
15985 | fail: | |
15986 | return NULL; | |
15987 | } | |
15988 | ||
15989 | ||
15990 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { | |
15991 | PyObject *obj; | |
15992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15993 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15994 | Py_INCREF(obj); | |
15995 | return Py_BuildValue((char *)""); | |
15996 | } | |
15997 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
15998 | PyObject *resultobj; | |
15999 | wxPrintData *arg1 = 0 ; | |
16000 | wxPostScriptDC *result; | |
16001 | PyObject * obj0 = 0 ; | |
16002 | char *kwnames[] = { | |
16003 | (char *) "printData", NULL | |
16004 | }; | |
16005 | ||
16006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
16007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16008 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16009 | SWIG_fail; | |
16010 | if (arg1 == NULL) { | |
16011 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16012 | SWIG_fail; | |
16013 | } | |
16014 | { | |
16015 | if (!wxPyCheckForApp()) SWIG_fail; | |
16016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16017 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
16018 | ||
16019 | wxPyEndAllowThreads(__tstate); | |
16020 | if (PyErr_Occurred()) SWIG_fail; | |
16021 | } | |
16022 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
16023 | return resultobj; | |
16024 | fail: | |
16025 | return NULL; | |
16026 | } | |
16027 | ||
16028 | ||
16029 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
16030 | PyObject *resultobj; | |
16031 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16032 | wxPrintData *result; | |
16033 | PyObject * obj0 = 0 ; | |
16034 | char *kwnames[] = { | |
16035 | (char *) "self", NULL | |
16036 | }; | |
16037 | ||
16038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
16039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16041 | { | |
16042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16043 | { | |
16044 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16045 | result = (wxPrintData *) &_result_ref; | |
16046 | } | |
16047 | ||
16048 | wxPyEndAllowThreads(__tstate); | |
16049 | if (PyErr_Occurred()) SWIG_fail; | |
16050 | } | |
16051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
16052 | return resultobj; | |
16053 | fail: | |
16054 | return NULL; | |
16055 | } | |
16056 | ||
16057 | ||
16058 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { | |
16059 | PyObject *resultobj; | |
16060 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16061 | wxPrintData *arg2 = 0 ; | |
16062 | PyObject * obj0 = 0 ; | |
16063 | PyObject * obj1 = 0 ; | |
16064 | char *kwnames[] = { | |
16065 | (char *) "self",(char *) "data", NULL | |
16066 | }; | |
16067 | ||
16068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
16069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16072 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16073 | SWIG_fail; | |
16074 | if (arg2 == NULL) { | |
16075 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16076 | SWIG_fail; | |
16077 | } | |
16078 | { | |
16079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16080 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16081 | ||
16082 | wxPyEndAllowThreads(__tstate); | |
16083 | if (PyErr_Occurred()) SWIG_fail; | |
16084 | } | |
16085 | Py_INCREF(Py_None); resultobj = Py_None; | |
16086 | return resultobj; | |
16087 | fail: | |
16088 | return NULL; | |
16089 | } | |
16090 | ||
16091 | ||
16092 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { | |
16093 | PyObject *resultobj; | |
16094 | int arg1 ; | |
16095 | PyObject * obj0 = 0 ; | |
16096 | char *kwnames[] = { | |
16097 | (char *) "ppi", NULL | |
16098 | }; | |
16099 | ||
16100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
16101 | arg1 = (int)SWIG_As_int(obj0); | |
16102 | if (PyErr_Occurred()) SWIG_fail; | |
16103 | { | |
16104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16105 | wxPostScriptDC::SetResolution(arg1); | |
16106 | ||
16107 | wxPyEndAllowThreads(__tstate); | |
16108 | if (PyErr_Occurred()) SWIG_fail; | |
16109 | } | |
16110 | Py_INCREF(Py_None); resultobj = Py_None; | |
16111 | return resultobj; | |
16112 | fail: | |
16113 | return NULL; | |
16114 | } | |
16115 | ||
16116 | ||
16117 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { | |
16118 | PyObject *resultobj; | |
16119 | int result; | |
16120 | char *kwnames[] = { | |
16121 | NULL | |
16122 | }; | |
16123 | ||
16124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16125 | { | |
16126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16127 | result = (int)wxPostScriptDC::GetResolution(); | |
16128 | ||
16129 | wxPyEndAllowThreads(__tstate); | |
16130 | if (PyErr_Occurred()) SWIG_fail; | |
16131 | } | |
16132 | resultobj = SWIG_From_int((int)result); | |
16133 | return resultobj; | |
16134 | fail: | |
16135 | return NULL; | |
16136 | } | |
16137 | ||
16138 | ||
16139 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { | |
16140 | PyObject *obj; | |
16141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16142 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16143 | Py_INCREF(obj); | |
16144 | return Py_BuildValue((char *)""); | |
16145 | } | |
16146 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { | |
16147 | PyObject *resultobj; | |
16148 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16149 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16150 | wxMetaFile *result; | |
16151 | bool temp1 = false ; | |
16152 | PyObject * obj0 = 0 ; | |
16153 | char *kwnames[] = { | |
16154 | (char *) "filename", NULL | |
16155 | }; | |
16156 | ||
16157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16158 | if (obj0) { | |
16159 | { | |
16160 | arg1 = wxString_in_helper(obj0); | |
16161 | if (arg1 == NULL) SWIG_fail; | |
16162 | temp1 = true; | |
16163 | } | |
16164 | } | |
16165 | { | |
16166 | if (!wxPyCheckForApp()) SWIG_fail; | |
16167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16168 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16169 | ||
16170 | wxPyEndAllowThreads(__tstate); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | } | |
16173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
16174 | { | |
16175 | if (temp1) | |
16176 | delete arg1; | |
16177 | } | |
16178 | return resultobj; | |
16179 | fail: | |
16180 | { | |
16181 | if (temp1) | |
16182 | delete arg1; | |
16183 | } | |
16184 | return NULL; | |
16185 | } | |
16186 | ||
16187 | ||
16188 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { | |
16189 | PyObject *obj; | |
16190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16191 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16192 | Py_INCREF(obj); | |
16193 | return Py_BuildValue((char *)""); | |
16194 | } | |
16195 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
16196 | PyObject *resultobj; | |
16197 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16198 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16199 | int arg2 = (int) 0 ; | |
16200 | int arg3 = (int) 0 ; | |
16201 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16202 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16203 | wxMetaFileDC *result; | |
16204 | bool temp1 = false ; | |
16205 | bool temp4 = false ; | |
16206 | PyObject * obj0 = 0 ; | |
16207 | PyObject * obj1 = 0 ; | |
16208 | PyObject * obj2 = 0 ; | |
16209 | PyObject * obj3 = 0 ; | |
16210 | char *kwnames[] = { | |
16211 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16212 | }; | |
16213 | ||
16214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16215 | if (obj0) { | |
16216 | { | |
16217 | arg1 = wxString_in_helper(obj0); | |
16218 | if (arg1 == NULL) SWIG_fail; | |
16219 | temp1 = true; | |
16220 | } | |
16221 | } | |
16222 | if (obj1) { | |
16223 | arg2 = (int)SWIG_As_int(obj1); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
16226 | if (obj2) { | |
16227 | arg3 = (int)SWIG_As_int(obj2); | |
16228 | if (PyErr_Occurred()) SWIG_fail; | |
16229 | } | |
16230 | if (obj3) { | |
16231 | { | |
16232 | arg4 = wxString_in_helper(obj3); | |
16233 | if (arg4 == NULL) SWIG_fail; | |
16234 | temp4 = true; | |
16235 | } | |
16236 | } | |
16237 | { | |
16238 | if (!wxPyCheckForApp()) SWIG_fail; | |
16239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16240 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16241 | ||
16242 | wxPyEndAllowThreads(__tstate); | |
16243 | if (PyErr_Occurred()) SWIG_fail; | |
16244 | } | |
16245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
16246 | { | |
16247 | if (temp1) | |
16248 | delete arg1; | |
16249 | } | |
16250 | { | |
16251 | if (temp4) | |
16252 | delete arg4; | |
16253 | } | |
16254 | return resultobj; | |
16255 | fail: | |
16256 | { | |
16257 | if (temp1) | |
16258 | delete arg1; | |
16259 | } | |
16260 | { | |
16261 | if (temp4) | |
16262 | delete arg4; | |
16263 | } | |
16264 | return NULL; | |
16265 | } | |
16266 | ||
16267 | ||
16268 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { | |
16269 | PyObject *obj; | |
16270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16271 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16272 | Py_INCREF(obj); | |
16273 | return Py_BuildValue((char *)""); | |
16274 | } | |
16275 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { | |
16276 | PyObject *resultobj; | |
16277 | wxPrintData *arg1 = 0 ; | |
16278 | wxPrinterDC *result; | |
16279 | PyObject * obj0 = 0 ; | |
16280 | char *kwnames[] = { | |
16281 | (char *) "printData", NULL | |
16282 | }; | |
16283 | ||
16284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
16285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16286 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16287 | SWIG_fail; | |
16288 | if (arg1 == NULL) { | |
16289 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16290 | SWIG_fail; | |
16291 | } | |
16292 | { | |
16293 | if (!wxPyCheckForApp()) SWIG_fail; | |
16294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16295 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16296 | ||
16297 | wxPyEndAllowThreads(__tstate); | |
16298 | if (PyErr_Occurred()) SWIG_fail; | |
16299 | } | |
16300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
16301 | return resultobj; | |
16302 | fail: | |
16303 | return NULL; | |
16304 | } | |
16305 | ||
16306 | ||
16307 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { | |
16308 | PyObject *obj; | |
16309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16310 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16311 | Py_INCREF(obj); | |
16312 | return Py_BuildValue((char *)""); | |
16313 | } | |
16314 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
16315 | PyObject *resultobj; | |
16316 | int arg1 ; | |
16317 | int arg2 ; | |
16318 | int arg3 = (int) true ; | |
16319 | int arg4 = (int) 1 ; | |
16320 | wxImageList *result; | |
16321 | PyObject * obj0 = 0 ; | |
16322 | PyObject * obj1 = 0 ; | |
16323 | PyObject * obj2 = 0 ; | |
16324 | PyObject * obj3 = 0 ; | |
16325 | char *kwnames[] = { | |
16326 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16327 | }; | |
16328 | ||
16329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16330 | arg1 = (int)SWIG_As_int(obj0); | |
16331 | if (PyErr_Occurred()) SWIG_fail; | |
16332 | arg2 = (int)SWIG_As_int(obj1); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | if (obj2) { | |
16335 | arg3 = (int)SWIG_As_int(obj2); | |
16336 | if (PyErr_Occurred()) SWIG_fail; | |
16337 | } | |
16338 | if (obj3) { | |
16339 | arg4 = (int)SWIG_As_int(obj3); | |
16340 | if (PyErr_Occurred()) SWIG_fail; | |
16341 | } | |
16342 | { | |
16343 | if (!wxPyCheckForApp()) SWIG_fail; | |
16344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16345 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16346 | ||
16347 | wxPyEndAllowThreads(__tstate); | |
16348 | if (PyErr_Occurred()) SWIG_fail; | |
16349 | } | |
16350 | { | |
16351 | resultobj = wxPyMake_wxObject(result, 1); | |
16352 | } | |
16353 | return resultobj; | |
16354 | fail: | |
16355 | return NULL; | |
16356 | } | |
16357 | ||
16358 | ||
16359 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { | |
16360 | PyObject *resultobj; | |
16361 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16362 | PyObject * obj0 = 0 ; | |
16363 | char *kwnames[] = { | |
16364 | (char *) "self", NULL | |
16365 | }; | |
16366 | ||
16367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
16368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16370 | { | |
16371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16372 | delete arg1; | |
16373 | ||
16374 | wxPyEndAllowThreads(__tstate); | |
16375 | if (PyErr_Occurred()) SWIG_fail; | |
16376 | } | |
16377 | Py_INCREF(Py_None); resultobj = Py_None; | |
16378 | return resultobj; | |
16379 | fail: | |
16380 | return NULL; | |
16381 | } | |
16382 | ||
16383 | ||
16384 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { | |
16385 | PyObject *resultobj; | |
16386 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16387 | wxBitmap *arg2 = 0 ; | |
16388 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16389 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16390 | int result; | |
16391 | PyObject * obj0 = 0 ; | |
16392 | PyObject * obj1 = 0 ; | |
16393 | PyObject * obj2 = 0 ; | |
16394 | char *kwnames[] = { | |
16395 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16396 | }; | |
16397 | ||
16398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16401 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16402 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16403 | SWIG_fail; | |
16404 | if (arg2 == NULL) { | |
16405 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16406 | SWIG_fail; | |
16407 | } | |
16408 | if (obj2) { | |
16409 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16410 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16411 | SWIG_fail; | |
16412 | if (arg3 == NULL) { | |
16413 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16414 | SWIG_fail; | |
16415 | } | |
16416 | } | |
16417 | { | |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
16424 | resultobj = SWIG_From_int((int)result); | |
16425 | return resultobj; | |
16426 | fail: | |
16427 | return NULL; | |
16428 | } | |
16429 | ||
16430 | ||
16431 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16434 | wxBitmap *arg2 = 0 ; | |
16435 | wxColour *arg3 = 0 ; | |
16436 | int result; | |
16437 | wxColour temp3 ; | |
16438 | PyObject * obj0 = 0 ; | |
16439 | PyObject * obj1 = 0 ; | |
16440 | PyObject * obj2 = 0 ; | |
16441 | char *kwnames[] = { | |
16442 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16443 | }; | |
16444 | ||
16445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16448 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16449 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16450 | SWIG_fail; | |
16451 | if (arg2 == NULL) { | |
16452 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16453 | SWIG_fail; | |
16454 | } | |
16455 | { | |
16456 | arg3 = &temp3; | |
16457 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16458 | } | |
16459 | { | |
16460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16461 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16462 | ||
16463 | wxPyEndAllowThreads(__tstate); | |
16464 | if (PyErr_Occurred()) SWIG_fail; | |
16465 | } | |
16466 | resultobj = SWIG_From_int((int)result); | |
16467 | return resultobj; | |
16468 | fail: | |
16469 | return NULL; | |
16470 | } | |
16471 | ||
16472 | ||
16473 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { | |
16474 | PyObject *resultobj; | |
16475 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16476 | wxIcon *arg2 = 0 ; | |
16477 | int result; | |
16478 | PyObject * obj0 = 0 ; | |
16479 | PyObject * obj1 = 0 ; | |
16480 | char *kwnames[] = { | |
16481 | (char *) "self",(char *) "icon", NULL | |
16482 | }; | |
16483 | ||
16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
16485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16489 | SWIG_fail; | |
16490 | if (arg2 == NULL) { | |
16491 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16492 | SWIG_fail; | |
16493 | } | |
16494 | { | |
16495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16496 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16497 | ||
16498 | wxPyEndAllowThreads(__tstate); | |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | } | |
16501 | resultobj = SWIG_From_int((int)result); | |
16502 | return resultobj; | |
16503 | fail: | |
16504 | return NULL; | |
16505 | } | |
16506 | ||
16507 | ||
16508 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { | |
16509 | PyObject *resultobj; | |
16510 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16511 | int arg2 ; | |
16512 | wxBitmap *arg3 = 0 ; | |
16513 | bool result; | |
16514 | PyObject * obj0 = 0 ; | |
16515 | PyObject * obj1 = 0 ; | |
16516 | PyObject * obj2 = 0 ; | |
16517 | char *kwnames[] = { | |
16518 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
16519 | }; | |
16520 | ||
16521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16524 | arg2 = (int)SWIG_As_int(obj1); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
16526 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16527 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16528 | SWIG_fail; | |
16529 | if (arg3 == NULL) { | |
16530 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16531 | SWIG_fail; | |
16532 | } | |
16533 | { | |
16534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16535 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
16536 | ||
16537 | wxPyEndAllowThreads(__tstate); | |
16538 | if (PyErr_Occurred()) SWIG_fail; | |
16539 | } | |
16540 | { | |
16541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16542 | } | |
16543 | return resultobj; | |
16544 | fail: | |
16545 | return NULL; | |
16546 | } | |
16547 | ||
16548 | ||
16549 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { | |
16550 | PyObject *resultobj; | |
16551 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16552 | int arg2 ; | |
16553 | wxDC *arg3 = 0 ; | |
16554 | int arg4 ; | |
16555 | int arg5 ; | |
16556 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
16557 | bool arg7 = (bool) (bool)false ; | |
16558 | bool result; | |
16559 | PyObject * obj0 = 0 ; | |
16560 | PyObject * obj1 = 0 ; | |
16561 | PyObject * obj2 = 0 ; | |
16562 | PyObject * obj3 = 0 ; | |
16563 | PyObject * obj4 = 0 ; | |
16564 | PyObject * obj5 = 0 ; | |
16565 | PyObject * obj6 = 0 ; | |
16566 | char *kwnames[] = { | |
16567 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16568 | }; | |
16569 | ||
16570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16573 | arg2 = (int)SWIG_As_int(obj1); | |
16574 | if (PyErr_Occurred()) SWIG_fail; | |
16575 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
16576 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16577 | SWIG_fail; | |
16578 | if (arg3 == NULL) { | |
16579 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16580 | SWIG_fail; | |
16581 | } | |
16582 | arg4 = (int)SWIG_As_int(obj3); | |
16583 | if (PyErr_Occurred()) SWIG_fail; | |
16584 | arg5 = (int)SWIG_As_int(obj4); | |
16585 | if (PyErr_Occurred()) SWIG_fail; | |
16586 | if (obj5) { | |
16587 | arg6 = (int)SWIG_As_int(obj5); | |
16588 | if (PyErr_Occurred()) SWIG_fail; | |
16589 | } | |
16590 | if (obj6) { | |
16591 | arg7 = (bool)SWIG_As_bool(obj6); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | { | |
16595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16596 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16597 | ||
16598 | wxPyEndAllowThreads(__tstate); | |
16599 | if (PyErr_Occurred()) SWIG_fail; | |
16600 | } | |
16601 | { | |
16602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16603 | } | |
16604 | return resultobj; | |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
16610 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
16611 | PyObject *resultobj; | |
16612 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16613 | int result; | |
16614 | PyObject * obj0 = 0 ; | |
16615 | char *kwnames[] = { | |
16616 | (char *) "self", NULL | |
16617 | }; | |
16618 | ||
16619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
16620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16622 | { | |
16623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16624 | result = (int)(arg1)->GetImageCount(); | |
16625 | ||
16626 | wxPyEndAllowThreads(__tstate); | |
16627 | if (PyErr_Occurred()) SWIG_fail; | |
16628 | } | |
16629 | resultobj = SWIG_From_int((int)result); | |
16630 | return resultobj; | |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
16636 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { | |
16637 | PyObject *resultobj; | |
16638 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16639 | int arg2 ; | |
16640 | bool result; | |
16641 | PyObject * obj0 = 0 ; | |
16642 | PyObject * obj1 = 0 ; | |
16643 | char *kwnames[] = { | |
16644 | (char *) "self",(char *) "index", NULL | |
16645 | }; | |
16646 | ||
16647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
16648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16650 | arg2 = (int)SWIG_As_int(obj1); | |
16651 | if (PyErr_Occurred()) SWIG_fail; | |
16652 | { | |
16653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16654 | result = (bool)(arg1)->Remove(arg2); | |
16655 | ||
16656 | wxPyEndAllowThreads(__tstate); | |
16657 | if (PyErr_Occurred()) SWIG_fail; | |
16658 | } | |
16659 | { | |
16660 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16661 | } | |
16662 | return resultobj; | |
16663 | fail: | |
16664 | return NULL; | |
16665 | } | |
16666 | ||
16667 | ||
16668 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { | |
16669 | PyObject *resultobj; | |
16670 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16671 | bool result; | |
16672 | PyObject * obj0 = 0 ; | |
16673 | char *kwnames[] = { | |
16674 | (char *) "self", NULL | |
16675 | }; | |
16676 | ||
16677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
16678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16680 | { | |
16681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16682 | result = (bool)(arg1)->RemoveAll(); | |
16683 | ||
16684 | wxPyEndAllowThreads(__tstate); | |
16685 | if (PyErr_Occurred()) SWIG_fail; | |
16686 | } | |
16687 | { | |
16688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16689 | } | |
16690 | return resultobj; | |
16691 | fail: | |
16692 | return NULL; | |
16693 | } | |
16694 | ||
16695 | ||
16696 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { | |
16697 | PyObject *resultobj; | |
16698 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16699 | int arg2 ; | |
16700 | int *arg3 = 0 ; | |
16701 | int *arg4 = 0 ; | |
16702 | int temp3 ; | |
16703 | int res3 = 0 ; | |
16704 | int temp4 ; | |
16705 | int res4 = 0 ; | |
16706 | PyObject * obj0 = 0 ; | |
16707 | PyObject * obj1 = 0 ; | |
16708 | char *kwnames[] = { | |
16709 | (char *) "self",(char *) "index", NULL | |
16710 | }; | |
16711 | ||
16712 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
16713 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
16714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
16715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16717 | arg2 = (int)SWIG_As_int(obj1); | |
16718 | if (PyErr_Occurred()) SWIG_fail; | |
16719 | { | |
16720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16721 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16722 | ||
16723 | wxPyEndAllowThreads(__tstate); | |
16724 | if (PyErr_Occurred()) SWIG_fail; | |
16725 | } | |
16726 | Py_INCREF(Py_None); resultobj = Py_None; | |
16727 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16728 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
16729 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
16730 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
16731 | return resultobj; | |
16732 | fail: | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { | |
16738 | PyObject *obj; | |
16739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16740 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16741 | Py_INCREF(obj); | |
16742 | return Py_BuildValue((char *)""); | |
16743 | } | |
16744 | static int _wrap_NORMAL_FONT_set(PyObject *) { | |
16745 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
16746 | return 1; | |
16747 | } | |
16748 | ||
16749 | ||
16750 | static PyObject *_wrap_NORMAL_FONT_get() { | |
16751 | PyObject *pyobj; | |
16752 | ||
16753 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); | |
16754 | return pyobj; | |
16755 | } | |
16756 | ||
16757 | ||
16758 | static int _wrap_SMALL_FONT_set(PyObject *) { | |
16759 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
16760 | return 1; | |
16761 | } | |
16762 | ||
16763 | ||
16764 | static PyObject *_wrap_SMALL_FONT_get() { | |
16765 | PyObject *pyobj; | |
16766 | ||
16767 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); | |
16768 | return pyobj; | |
16769 | } | |
16770 | ||
16771 | ||
16772 | static int _wrap_ITALIC_FONT_set(PyObject *) { | |
16773 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
16774 | return 1; | |
16775 | } | |
16776 | ||
16777 | ||
16778 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16779 | PyObject *pyobj; | |
16780 | ||
16781 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); | |
16782 | return pyobj; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static int _wrap_SWISS_FONT_set(PyObject *) { | |
16787 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
16788 | return 1; | |
16789 | } | |
16790 | ||
16791 | ||
16792 | static PyObject *_wrap_SWISS_FONT_get() { | |
16793 | PyObject *pyobj; | |
16794 | ||
16795 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); | |
16796 | return pyobj; | |
16797 | } | |
16798 | ||
16799 | ||
16800 | static int _wrap_RED_PEN_set(PyObject *) { | |
16801 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
16802 | return 1; | |
16803 | } | |
16804 | ||
16805 | ||
16806 | static PyObject *_wrap_RED_PEN_get() { | |
16807 | PyObject *pyobj; | |
16808 | ||
16809 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); | |
16810 | return pyobj; | |
16811 | } | |
16812 | ||
16813 | ||
16814 | static int _wrap_CYAN_PEN_set(PyObject *) { | |
16815 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16816 | return 1; | |
16817 | } | |
16818 | ||
16819 | ||
16820 | static PyObject *_wrap_CYAN_PEN_get() { | |
16821 | PyObject *pyobj; | |
16822 | ||
16823 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); | |
16824 | return pyobj; | |
16825 | } | |
16826 | ||
16827 | ||
16828 | static int _wrap_GREEN_PEN_set(PyObject *) { | |
16829 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16830 | return 1; | |
16831 | } | |
16832 | ||
16833 | ||
16834 | static PyObject *_wrap_GREEN_PEN_get() { | |
16835 | PyObject *pyobj; | |
16836 | ||
16837 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); | |
16838 | return pyobj; | |
16839 | } | |
16840 | ||
16841 | ||
16842 | static int _wrap_BLACK_PEN_set(PyObject *) { | |
16843 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16844 | return 1; | |
16845 | } | |
16846 | ||
16847 | ||
16848 | static PyObject *_wrap_BLACK_PEN_get() { | |
16849 | PyObject *pyobj; | |
16850 | ||
16851 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); | |
16852 | return pyobj; | |
16853 | } | |
16854 | ||
16855 | ||
16856 | static int _wrap_WHITE_PEN_set(PyObject *) { | |
16857 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16858 | return 1; | |
16859 | } | |
16860 | ||
16861 | ||
16862 | static PyObject *_wrap_WHITE_PEN_get() { | |
16863 | PyObject *pyobj; | |
16864 | ||
16865 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); | |
16866 | return pyobj; | |
16867 | } | |
16868 | ||
16869 | ||
16870 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { | |
16871 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16872 | return 1; | |
16873 | } | |
16874 | ||
16875 | ||
16876 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
16877 | PyObject *pyobj; | |
16878 | ||
16879 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); | |
16880 | return pyobj; | |
16881 | } | |
16882 | ||
16883 | ||
16884 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { | |
16885 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16886 | return 1; | |
16887 | } | |
16888 | ||
16889 | ||
16890 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
16891 | PyObject *pyobj; | |
16892 | ||
16893 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); | |
16894 | return pyobj; | |
16895 | } | |
16896 | ||
16897 | ||
16898 | static int _wrap_GREY_PEN_set(PyObject *) { | |
16899 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16900 | return 1; | |
16901 | } | |
16902 | ||
16903 | ||
16904 | static PyObject *_wrap_GREY_PEN_get() { | |
16905 | PyObject *pyobj; | |
16906 | ||
16907 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); | |
16908 | return pyobj; | |
16909 | } | |
16910 | ||
16911 | ||
16912 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { | |
16913 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
16914 | return 1; | |
16915 | } | |
16916 | ||
16917 | ||
16918 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
16919 | PyObject *pyobj; | |
16920 | ||
16921 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
16922 | return pyobj; | |
16923 | } | |
16924 | ||
16925 | ||
16926 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { | |
16927 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
16928 | return 1; | |
16929 | } | |
16930 | ||
16931 | ||
16932 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
16933 | PyObject *pyobj; | |
16934 | ||
16935 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
16936 | return pyobj; | |
16937 | } | |
16938 | ||
16939 | ||
16940 | static int _wrap_BLUE_BRUSH_set(PyObject *) { | |
16941 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
16942 | return 1; | |
16943 | } | |
16944 | ||
16945 | ||
16946 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
16947 | PyObject *pyobj; | |
16948 | ||
16949 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16950 | return pyobj; | |
16951 | } | |
16952 | ||
16953 | ||
16954 | static int _wrap_GREEN_BRUSH_set(PyObject *) { | |
16955 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
16956 | return 1; | |
16957 | } | |
16958 | ||
16959 | ||
16960 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
16961 | PyObject *pyobj; | |
16962 | ||
16963 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16964 | return pyobj; | |
16965 | } | |
16966 | ||
16967 | ||
16968 | static int _wrap_WHITE_BRUSH_set(PyObject *) { | |
16969 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
16970 | return 1; | |
16971 | } | |
16972 | ||
16973 | ||
16974 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
16975 | PyObject *pyobj; | |
16976 | ||
16977 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16978 | return pyobj; | |
16979 | } | |
16980 | ||
16981 | ||
16982 | static int _wrap_BLACK_BRUSH_set(PyObject *) { | |
16983 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
16984 | return 1; | |
16985 | } | |
16986 | ||
16987 | ||
16988 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
16989 | PyObject *pyobj; | |
16990 | ||
16991 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16992 | return pyobj; | |
16993 | } | |
16994 | ||
16995 | ||
16996 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { | |
16997 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
16998 | return 1; | |
16999 | } | |
17000 | ||
17001 | ||
17002 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
17003 | PyObject *pyobj; | |
17004 | ||
17005 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17006 | return pyobj; | |
17007 | } | |
17008 | ||
17009 | ||
17010 | static int _wrap_CYAN_BRUSH_set(PyObject *) { | |
17011 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
17012 | return 1; | |
17013 | } | |
17014 | ||
17015 | ||
17016 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
17017 | PyObject *pyobj; | |
17018 | ||
17019 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17020 | return pyobj; | |
17021 | } | |
17022 | ||
17023 | ||
17024 | static int _wrap_RED_BRUSH_set(PyObject *) { | |
17025 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
17026 | return 1; | |
17027 | } | |
17028 | ||
17029 | ||
17030 | static PyObject *_wrap_RED_BRUSH_get() { | |
17031 | PyObject *pyobj; | |
17032 | ||
17033 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17034 | return pyobj; | |
17035 | } | |
17036 | ||
17037 | ||
17038 | static int _wrap_GREY_BRUSH_set(PyObject *) { | |
17039 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
17040 | return 1; | |
17041 | } | |
17042 | ||
17043 | ||
17044 | static PyObject *_wrap_GREY_BRUSH_get() { | |
17045 | PyObject *pyobj; | |
17046 | ||
17047 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17048 | return pyobj; | |
17049 | } | |
17050 | ||
17051 | ||
17052 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { | |
17053 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
17054 | return 1; | |
17055 | } | |
17056 | ||
17057 | ||
17058 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
17059 | PyObject *pyobj; | |
17060 | ||
17061 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17062 | return pyobj; | |
17063 | } | |
17064 | ||
17065 | ||
17066 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { | |
17067 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
17068 | return 1; | |
17069 | } | |
17070 | ||
17071 | ||
17072 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
17073 | PyObject *pyobj; | |
17074 | ||
17075 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17076 | return pyobj; | |
17077 | } | |
17078 | ||
17079 | ||
17080 | static int _wrap_BLACK_set(PyObject *) { | |
17081 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
17082 | return 1; | |
17083 | } | |
17084 | ||
17085 | ||
17086 | static PyObject *_wrap_BLACK_get() { | |
17087 | PyObject *pyobj; | |
17088 | ||
17089 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
17090 | return pyobj; | |
17091 | } | |
17092 | ||
17093 | ||
17094 | static int _wrap_WHITE_set(PyObject *) { | |
17095 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
17096 | return 1; | |
17097 | } | |
17098 | ||
17099 | ||
17100 | static PyObject *_wrap_WHITE_get() { | |
17101 | PyObject *pyobj; | |
17102 | ||
17103 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
17104 | return pyobj; | |
17105 | } | |
17106 | ||
17107 | ||
17108 | static int _wrap_RED_set(PyObject *) { | |
17109 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
17110 | return 1; | |
17111 | } | |
17112 | ||
17113 | ||
17114 | static PyObject *_wrap_RED_get() { | |
17115 | PyObject *pyobj; | |
17116 | ||
17117 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
17118 | return pyobj; | |
17119 | } | |
17120 | ||
17121 | ||
17122 | static int _wrap_BLUE_set(PyObject *) { | |
17123 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
17124 | return 1; | |
17125 | } | |
17126 | ||
17127 | ||
17128 | static PyObject *_wrap_BLUE_get() { | |
17129 | PyObject *pyobj; | |
17130 | ||
17131 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
17132 | return pyobj; | |
17133 | } | |
17134 | ||
17135 | ||
17136 | static int _wrap_GREEN_set(PyObject *) { | |
17137 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
17138 | return 1; | |
17139 | } | |
17140 | ||
17141 | ||
17142 | static PyObject *_wrap_GREEN_get() { | |
17143 | PyObject *pyobj; | |
17144 | ||
17145 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
17146 | return pyobj; | |
17147 | } | |
17148 | ||
17149 | ||
17150 | static int _wrap_CYAN_set(PyObject *) { | |
17151 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
17152 | return 1; | |
17153 | } | |
17154 | ||
17155 | ||
17156 | static PyObject *_wrap_CYAN_get() { | |
17157 | PyObject *pyobj; | |
17158 | ||
17159 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
17160 | return pyobj; | |
17161 | } | |
17162 | ||
17163 | ||
17164 | static int _wrap_LIGHT_GREY_set(PyObject *) { | |
17165 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
17166 | return 1; | |
17167 | } | |
17168 | ||
17169 | ||
17170 | static PyObject *_wrap_LIGHT_GREY_get() { | |
17171 | PyObject *pyobj; | |
17172 | ||
17173 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
17174 | return pyobj; | |
17175 | } | |
17176 | ||
17177 | ||
17178 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { | |
17179 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
17180 | return 1; | |
17181 | } | |
17182 | ||
17183 | ||
17184 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
17185 | PyObject *pyobj; | |
17186 | ||
17187 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17188 | return pyobj; | |
17189 | } | |
17190 | ||
17191 | ||
17192 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { | |
17193 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
17194 | return 1; | |
17195 | } | |
17196 | ||
17197 | ||
17198 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
17199 | PyObject *pyobj; | |
17200 | ||
17201 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17202 | return pyobj; | |
17203 | } | |
17204 | ||
17205 | ||
17206 | static int _wrap_CROSS_CURSOR_set(PyObject *) { | |
17207 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
17208 | return 1; | |
17209 | } | |
17210 | ||
17211 | ||
17212 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
17213 | PyObject *pyobj; | |
17214 | ||
17215 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17216 | return pyobj; | |
17217 | } | |
17218 | ||
17219 | ||
17220 | static int _wrap_NullBitmap_set(PyObject *) { | |
17221 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
17222 | return 1; | |
17223 | } | |
17224 | ||
17225 | ||
17226 | static PyObject *_wrap_NullBitmap_get() { | |
17227 | PyObject *pyobj; | |
17228 | ||
17229 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
17230 | return pyobj; | |
17231 | } | |
17232 | ||
17233 | ||
17234 | static int _wrap_NullIcon_set(PyObject *) { | |
17235 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
17236 | return 1; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_NullIcon_get() { | |
17241 | PyObject *pyobj; | |
17242 | ||
17243 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
17244 | return pyobj; | |
17245 | } | |
17246 | ||
17247 | ||
17248 | static int _wrap_NullCursor_set(PyObject *) { | |
17249 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
17250 | return 1; | |
17251 | } | |
17252 | ||
17253 | ||
17254 | static PyObject *_wrap_NullCursor_get() { | |
17255 | PyObject *pyobj; | |
17256 | ||
17257 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
17258 | return pyobj; | |
17259 | } | |
17260 | ||
17261 | ||
17262 | static int _wrap_NullPen_set(PyObject *) { | |
17263 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
17264 | return 1; | |
17265 | } | |
17266 | ||
17267 | ||
17268 | static PyObject *_wrap_NullPen_get() { | |
17269 | PyObject *pyobj; | |
17270 | ||
17271 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
17272 | return pyobj; | |
17273 | } | |
17274 | ||
17275 | ||
17276 | static int _wrap_NullBrush_set(PyObject *) { | |
17277 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
17278 | return 1; | |
17279 | } | |
17280 | ||
17281 | ||
17282 | static PyObject *_wrap_NullBrush_get() { | |
17283 | PyObject *pyobj; | |
17284 | ||
17285 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
17286 | return pyobj; | |
17287 | } | |
17288 | ||
17289 | ||
17290 | static int _wrap_NullPalette_set(PyObject *) { | |
17291 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
17292 | return 1; | |
17293 | } | |
17294 | ||
17295 | ||
17296 | static PyObject *_wrap_NullPalette_get() { | |
17297 | PyObject *pyobj; | |
17298 | ||
17299 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
17300 | return pyobj; | |
17301 | } | |
17302 | ||
17303 | ||
17304 | static int _wrap_NullFont_set(PyObject *) { | |
17305 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
17306 | return 1; | |
17307 | } | |
17308 | ||
17309 | ||
17310 | static PyObject *_wrap_NullFont_get() { | |
17311 | PyObject *pyobj; | |
17312 | ||
17313 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
17314 | return pyobj; | |
17315 | } | |
17316 | ||
17317 | ||
17318 | static int _wrap_NullColour_set(PyObject *) { | |
17319 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
17320 | return 1; | |
17321 | } | |
17322 | ||
17323 | ||
17324 | static PyObject *_wrap_NullColour_get() { | |
17325 | PyObject *pyobj; | |
17326 | ||
17327 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
17328 | return pyobj; | |
17329 | } | |
17330 | ||
17331 | ||
17332 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { | |
17333 | PyObject *resultobj; | |
17334 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17335 | wxPen *arg2 = (wxPen *) 0 ; | |
17336 | PyObject * obj0 = 0 ; | |
17337 | PyObject * obj1 = 0 ; | |
17338 | char *kwnames[] = { | |
17339 | (char *) "self",(char *) "pen", NULL | |
17340 | }; | |
17341 | ||
17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
17343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17347 | { | |
17348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17349 | (arg1)->AddPen(arg2); | |
17350 | ||
17351 | wxPyEndAllowThreads(__tstate); | |
17352 | if (PyErr_Occurred()) SWIG_fail; | |
17353 | } | |
17354 | Py_INCREF(Py_None); resultobj = Py_None; | |
17355 | return resultobj; | |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
17362 | PyObject *resultobj; | |
17363 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17364 | wxColour *arg2 = 0 ; | |
17365 | int arg3 ; | |
17366 | int arg4 ; | |
17367 | wxPen *result; | |
17368 | wxColour temp2 ; | |
17369 | PyObject * obj0 = 0 ; | |
17370 | PyObject * obj1 = 0 ; | |
17371 | PyObject * obj2 = 0 ; | |
17372 | PyObject * obj3 = 0 ; | |
17373 | char *kwnames[] = { | |
17374 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17375 | }; | |
17376 | ||
17377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17380 | { | |
17381 | arg2 = &temp2; | |
17382 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17383 | } | |
17384 | arg3 = (int)SWIG_As_int(obj2); | |
17385 | if (PyErr_Occurred()) SWIG_fail; | |
17386 | arg4 = (int)SWIG_As_int(obj3); | |
17387 | if (PyErr_Occurred()) SWIG_fail; | |
17388 | { | |
17389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17390 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17391 | ||
17392 | wxPyEndAllowThreads(__tstate); | |
17393 | if (PyErr_Occurred()) SWIG_fail; | |
17394 | } | |
17395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
17396 | return resultobj; | |
17397 | fail: | |
17398 | return NULL; | |
17399 | } | |
17400 | ||
17401 | ||
17402 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { | |
17403 | PyObject *resultobj; | |
17404 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17405 | wxPen *arg2 = (wxPen *) 0 ; | |
17406 | PyObject * obj0 = 0 ; | |
17407 | PyObject * obj1 = 0 ; | |
17408 | char *kwnames[] = { | |
17409 | (char *) "self",(char *) "pen", NULL | |
17410 | }; | |
17411 | ||
17412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
17413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17417 | { | |
17418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17419 | (arg1)->RemovePen(arg2); | |
17420 | ||
17421 | wxPyEndAllowThreads(__tstate); | |
17422 | if (PyErr_Occurred()) SWIG_fail; | |
17423 | } | |
17424 | Py_INCREF(Py_None); resultobj = Py_None; | |
17425 | return resultobj; | |
17426 | fail: | |
17427 | return NULL; | |
17428 | } | |
17429 | ||
17430 | ||
17431 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
17432 | PyObject *resultobj; | |
17433 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17434 | int result; | |
17435 | PyObject * obj0 = 0 ; | |
17436 | char *kwnames[] = { | |
17437 | (char *) "self", NULL | |
17438 | }; | |
17439 | ||
17440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
17441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17443 | { | |
17444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17445 | result = (int)(arg1)->GetCount(); | |
17446 | ||
17447 | wxPyEndAllowThreads(__tstate); | |
17448 | if (PyErr_Occurred()) SWIG_fail; | |
17449 | } | |
17450 | resultobj = SWIG_From_int((int)result); | |
17451 | return resultobj; | |
17452 | fail: | |
17453 | return NULL; | |
17454 | } | |
17455 | ||
17456 | ||
17457 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { | |
17458 | PyObject *obj; | |
17459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17460 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17461 | Py_INCREF(obj); | |
17462 | return Py_BuildValue((char *)""); | |
17463 | } | |
17464 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
17465 | PyObject *resultobj; | |
17466 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17467 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17468 | PyObject * obj0 = 0 ; | |
17469 | PyObject * obj1 = 0 ; | |
17470 | char *kwnames[] = { | |
17471 | (char *) "self",(char *) "brush", NULL | |
17472 | }; | |
17473 | ||
17474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
17475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17479 | { | |
17480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17481 | (arg1)->AddBrush(arg2); | |
17482 | ||
17483 | wxPyEndAllowThreads(__tstate); | |
17484 | if (PyErr_Occurred()) SWIG_fail; | |
17485 | } | |
17486 | Py_INCREF(Py_None); resultobj = Py_None; | |
17487 | return resultobj; | |
17488 | fail: | |
17489 | return NULL; | |
17490 | } | |
17491 | ||
17492 | ||
17493 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
17494 | PyObject *resultobj; | |
17495 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17496 | wxColour *arg2 = 0 ; | |
17497 | int arg3 ; | |
17498 | wxBrush *result; | |
17499 | wxColour temp2 ; | |
17500 | PyObject * obj0 = 0 ; | |
17501 | PyObject * obj1 = 0 ; | |
17502 | PyObject * obj2 = 0 ; | |
17503 | char *kwnames[] = { | |
17504 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17505 | }; | |
17506 | ||
17507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17510 | { | |
17511 | arg2 = &temp2; | |
17512 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17513 | } | |
17514 | arg3 = (int)SWIG_As_int(obj2); | |
17515 | if (PyErr_Occurred()) SWIG_fail; | |
17516 | { | |
17517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17518 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17519 | ||
17520 | wxPyEndAllowThreads(__tstate); | |
17521 | if (PyErr_Occurred()) SWIG_fail; | |
17522 | } | |
17523 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
17524 | return resultobj; | |
17525 | fail: | |
17526 | return NULL; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { | |
17531 | PyObject *resultobj; | |
17532 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17533 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17534 | PyObject * obj0 = 0 ; | |
17535 | PyObject * obj1 = 0 ; | |
17536 | char *kwnames[] = { | |
17537 | (char *) "self",(char *) "brush", NULL | |
17538 | }; | |
17539 | ||
17540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
17541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17543 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17545 | { | |
17546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17547 | (arg1)->RemoveBrush(arg2); | |
17548 | ||
17549 | wxPyEndAllowThreads(__tstate); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | } | |
17552 | Py_INCREF(Py_None); resultobj = Py_None; | |
17553 | return resultobj; | |
17554 | fail: | |
17555 | return NULL; | |
17556 | } | |
17557 | ||
17558 | ||
17559 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
17560 | PyObject *resultobj; | |
17561 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17562 | int result; | |
17563 | PyObject * obj0 = 0 ; | |
17564 | char *kwnames[] = { | |
17565 | (char *) "self", NULL | |
17566 | }; | |
17567 | ||
17568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
17569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17571 | { | |
17572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17573 | result = (int)(arg1)->GetCount(); | |
17574 | ||
17575 | wxPyEndAllowThreads(__tstate); | |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
17577 | } | |
17578 | resultobj = SWIG_From_int((int)result); | |
17579 | return resultobj; | |
17580 | fail: | |
17581 | return NULL; | |
17582 | } | |
17583 | ||
17584 | ||
17585 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { | |
17586 | PyObject *obj; | |
17587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17588 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17589 | Py_INCREF(obj); | |
17590 | return Py_BuildValue((char *)""); | |
17591 | } | |
17592 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { | |
17593 | PyObject *resultobj; | |
17594 | wxColourDatabase *result; | |
17595 | char *kwnames[] = { | |
17596 | NULL | |
17597 | }; | |
17598 | ||
17599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
17600 | { | |
17601 | if (!wxPyCheckForApp()) SWIG_fail; | |
17602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17603 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17604 | ||
17605 | wxPyEndAllowThreads(__tstate); | |
17606 | if (PyErr_Occurred()) SWIG_fail; | |
17607 | } | |
17608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
17609 | return resultobj; | |
17610 | fail: | |
17611 | return NULL; | |
17612 | } | |
17613 | ||
17614 | ||
17615 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { | |
17616 | PyObject *resultobj; | |
17617 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17618 | PyObject * obj0 = 0 ; | |
17619 | char *kwnames[] = { | |
17620 | (char *) "self", NULL | |
17621 | }; | |
17622 | ||
17623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
17624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17626 | { | |
17627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17628 | delete arg1; | |
17629 | ||
17630 | wxPyEndAllowThreads(__tstate); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | } | |
17633 | Py_INCREF(Py_None); resultobj = Py_None; | |
17634 | return resultobj; | |
17635 | fail: | |
17636 | return NULL; | |
17637 | } | |
17638 | ||
17639 | ||
17640 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { | |
17641 | PyObject *resultobj; | |
17642 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17643 | wxString *arg2 = 0 ; | |
17644 | wxColour result; | |
17645 | bool temp2 = false ; | |
17646 | PyObject * obj0 = 0 ; | |
17647 | PyObject * obj1 = 0 ; | |
17648 | char *kwnames[] = { | |
17649 | (char *) "self",(char *) "name", NULL | |
17650 | }; | |
17651 | ||
17652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
17653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17655 | { | |
17656 | arg2 = wxString_in_helper(obj1); | |
17657 | if (arg2 == NULL) SWIG_fail; | |
17658 | temp2 = true; | |
17659 | } | |
17660 | { | |
17661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17662 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17663 | ||
17664 | wxPyEndAllowThreads(__tstate); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | } | |
17667 | { | |
17668 | wxColour * resultptr; | |
17669 | resultptr = new wxColour((wxColour &) result); | |
17670 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17671 | } | |
17672 | { | |
17673 | if (temp2) | |
17674 | delete arg2; | |
17675 | } | |
17676 | return resultobj; | |
17677 | fail: | |
17678 | { | |
17679 | if (temp2) | |
17680 | delete arg2; | |
17681 | } | |
17682 | return NULL; | |
17683 | } | |
17684 | ||
17685 | ||
17686 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { | |
17687 | PyObject *resultobj; | |
17688 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17689 | wxColour *arg2 = 0 ; | |
17690 | wxString result; | |
17691 | wxColour temp2 ; | |
17692 | PyObject * obj0 = 0 ; | |
17693 | PyObject * obj1 = 0 ; | |
17694 | char *kwnames[] = { | |
17695 | (char *) "self",(char *) "colour", NULL | |
17696 | }; | |
17697 | ||
17698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
17699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17701 | { | |
17702 | arg2 = &temp2; | |
17703 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17704 | } | |
17705 | { | |
17706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17707 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17708 | ||
17709 | wxPyEndAllowThreads(__tstate); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
17711 | } | |
17712 | { | |
17713 | #if wxUSE_UNICODE | |
17714 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17715 | #else | |
17716 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17717 | #endif | |
17718 | } | |
17719 | return resultobj; | |
17720 | fail: | |
17721 | return NULL; | |
17722 | } | |
17723 | ||
17724 | ||
17725 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17728 | wxString *arg2 = 0 ; | |
17729 | wxColour *arg3 = 0 ; | |
17730 | bool temp2 = false ; | |
17731 | wxColour temp3 ; | |
17732 | PyObject * obj0 = 0 ; | |
17733 | PyObject * obj1 = 0 ; | |
17734 | PyObject * obj2 = 0 ; | |
17735 | char *kwnames[] = { | |
17736 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17737 | }; | |
17738 | ||
17739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17742 | { | |
17743 | arg2 = wxString_in_helper(obj1); | |
17744 | if (arg2 == NULL) SWIG_fail; | |
17745 | temp2 = true; | |
17746 | } | |
17747 | { | |
17748 | arg3 = &temp3; | |
17749 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17750 | } | |
17751 | { | |
17752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17753 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17754 | ||
17755 | wxPyEndAllowThreads(__tstate); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
17758 | Py_INCREF(Py_None); resultobj = Py_None; | |
17759 | { | |
17760 | if (temp2) | |
17761 | delete arg2; | |
17762 | } | |
17763 | return resultobj; | |
17764 | fail: | |
17765 | { | |
17766 | if (temp2) | |
17767 | delete arg2; | |
17768 | } | |
17769 | return NULL; | |
17770 | } | |
17771 | ||
17772 | ||
17773 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { | |
17774 | PyObject *resultobj; | |
17775 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17776 | wxString *arg2 = 0 ; | |
17777 | int arg3 ; | |
17778 | int arg4 ; | |
17779 | int arg5 ; | |
17780 | bool temp2 = false ; | |
17781 | PyObject * obj0 = 0 ; | |
17782 | PyObject * obj1 = 0 ; | |
17783 | PyObject * obj2 = 0 ; | |
17784 | PyObject * obj3 = 0 ; | |
17785 | PyObject * obj4 = 0 ; | |
17786 | char *kwnames[] = { | |
17787 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17788 | }; | |
17789 | ||
17790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17793 | { | |
17794 | arg2 = wxString_in_helper(obj1); | |
17795 | if (arg2 == NULL) SWIG_fail; | |
17796 | temp2 = true; | |
17797 | } | |
17798 | arg3 = (int)SWIG_As_int(obj2); | |
17799 | if (PyErr_Occurred()) SWIG_fail; | |
17800 | arg4 = (int)SWIG_As_int(obj3); | |
17801 | if (PyErr_Occurred()) SWIG_fail; | |
17802 | arg5 = (int)SWIG_As_int(obj4); | |
17803 | if (PyErr_Occurred()) SWIG_fail; | |
17804 | { | |
17805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17806 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17807 | ||
17808 | wxPyEndAllowThreads(__tstate); | |
17809 | if (PyErr_Occurred()) SWIG_fail; | |
17810 | } | |
17811 | Py_INCREF(Py_None); resultobj = Py_None; | |
17812 | { | |
17813 | if (temp2) | |
17814 | delete arg2; | |
17815 | } | |
17816 | return resultobj; | |
17817 | fail: | |
17818 | { | |
17819 | if (temp2) | |
17820 | delete arg2; | |
17821 | } | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
17826 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { | |
17827 | PyObject *obj; | |
17828 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17829 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17830 | Py_INCREF(obj); | |
17831 | return Py_BuildValue((char *)""); | |
17832 | } | |
17833 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
17834 | PyObject *resultobj; | |
17835 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17836 | wxFont *arg2 = (wxFont *) 0 ; | |
17837 | PyObject * obj0 = 0 ; | |
17838 | PyObject * obj1 = 0 ; | |
17839 | char *kwnames[] = { | |
17840 | (char *) "self",(char *) "font", NULL | |
17841 | }; | |
17842 | ||
17843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
17844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17848 | { | |
17849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17850 | (arg1)->AddFont(arg2); | |
17851 | ||
17852 | wxPyEndAllowThreads(__tstate); | |
17853 | if (PyErr_Occurred()) SWIG_fail; | |
17854 | } | |
17855 | Py_INCREF(Py_None); resultobj = Py_None; | |
17856 | return resultobj; | |
17857 | fail: | |
17858 | return NULL; | |
17859 | } | |
17860 | ||
17861 | ||
17862 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
17863 | PyObject *resultobj; | |
17864 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17865 | int arg2 ; | |
17866 | int arg3 ; | |
17867 | int arg4 ; | |
17868 | int arg5 ; | |
17869 | bool arg6 = (bool) false ; | |
17870 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17871 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17872 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17873 | wxFont *result; | |
17874 | bool temp7 = false ; | |
17875 | PyObject * obj0 = 0 ; | |
17876 | PyObject * obj1 = 0 ; | |
17877 | PyObject * obj2 = 0 ; | |
17878 | PyObject * obj3 = 0 ; | |
17879 | PyObject * obj4 = 0 ; | |
17880 | PyObject * obj5 = 0 ; | |
17881 | PyObject * obj6 = 0 ; | |
17882 | PyObject * obj7 = 0 ; | |
17883 | char *kwnames[] = { | |
17884 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17885 | }; | |
17886 | ||
17887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17890 | arg2 = (int)SWIG_As_int(obj1); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | arg3 = (int)SWIG_As_int(obj2); | |
17893 | if (PyErr_Occurred()) SWIG_fail; | |
17894 | arg4 = (int)SWIG_As_int(obj3); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | arg5 = (int)SWIG_As_int(obj4); | |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
17898 | if (obj5) { | |
17899 | arg6 = (bool)SWIG_As_bool(obj5); | |
17900 | if (PyErr_Occurred()) SWIG_fail; | |
17901 | } | |
17902 | if (obj6) { | |
17903 | { | |
17904 | arg7 = wxString_in_helper(obj6); | |
17905 | if (arg7 == NULL) SWIG_fail; | |
17906 | temp7 = true; | |
17907 | } | |
17908 | } | |
17909 | if (obj7) { | |
17910 | arg8 = (int)SWIG_As_int(obj7); | |
17911 | if (PyErr_Occurred()) SWIG_fail; | |
17912 | } | |
17913 | { | |
17914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17915 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17916 | ||
17917 | wxPyEndAllowThreads(__tstate); | |
17918 | if (PyErr_Occurred()) SWIG_fail; | |
17919 | } | |
17920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
17921 | { | |
17922 | if (temp7) | |
17923 | delete arg7; | |
17924 | } | |
17925 | return resultobj; | |
17926 | fail: | |
17927 | { | |
17928 | if (temp7) | |
17929 | delete arg7; | |
17930 | } | |
17931 | return NULL; | |
17932 | } | |
17933 | ||
17934 | ||
17935 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { | |
17936 | PyObject *resultobj; | |
17937 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17938 | wxFont *arg2 = (wxFont *) 0 ; | |
17939 | PyObject * obj0 = 0 ; | |
17940 | PyObject * obj1 = 0 ; | |
17941 | char *kwnames[] = { | |
17942 | (char *) "self",(char *) "font", NULL | |
17943 | }; | |
17944 | ||
17945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
17946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17950 | { | |
17951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17952 | (arg1)->RemoveFont(arg2); | |
17953 | ||
17954 | wxPyEndAllowThreads(__tstate); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
17956 | } | |
17957 | Py_INCREF(Py_None); resultobj = Py_None; | |
17958 | return resultobj; | |
17959 | fail: | |
17960 | return NULL; | |
17961 | } | |
17962 | ||
17963 | ||
17964 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { | |
17965 | PyObject *resultobj; | |
17966 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17967 | int result; | |
17968 | PyObject * obj0 = 0 ; | |
17969 | char *kwnames[] = { | |
17970 | (char *) "self", NULL | |
17971 | }; | |
17972 | ||
17973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
17974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17976 | { | |
17977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17978 | result = (int)(arg1)->GetCount(); | |
17979 | ||
17980 | wxPyEndAllowThreads(__tstate); | |
17981 | if (PyErr_Occurred()) SWIG_fail; | |
17982 | } | |
17983 | resultobj = SWIG_From_int((int)result); | |
17984 | return resultobj; | |
17985 | fail: | |
17986 | return NULL; | |
17987 | } | |
17988 | ||
17989 | ||
17990 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { | |
17991 | PyObject *obj; | |
17992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17993 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17994 | Py_INCREF(obj); | |
17995 | return Py_BuildValue((char *)""); | |
17996 | } | |
17997 | static int _wrap_TheFontList_set(PyObject *) { | |
17998 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
17999 | return 1; | |
18000 | } | |
18001 | ||
18002 | ||
18003 | static PyObject *_wrap_TheFontList_get() { | |
18004 | PyObject *pyobj; | |
18005 | ||
18006 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
18007 | return pyobj; | |
18008 | } | |
18009 | ||
18010 | ||
18011 | static int _wrap_ThePenList_set(PyObject *) { | |
18012 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
18013 | return 1; | |
18014 | } | |
18015 | ||
18016 | ||
18017 | static PyObject *_wrap_ThePenList_get() { | |
18018 | PyObject *pyobj; | |
18019 | ||
18020 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
18021 | return pyobj; | |
18022 | } | |
18023 | ||
18024 | ||
18025 | static int _wrap_TheBrushList_set(PyObject *) { | |
18026 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
18027 | return 1; | |
18028 | } | |
18029 | ||
18030 | ||
18031 | static PyObject *_wrap_TheBrushList_get() { | |
18032 | PyObject *pyobj; | |
18033 | ||
18034 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
18035 | return pyobj; | |
18036 | } | |
18037 | ||
18038 | ||
18039 | static int _wrap_TheColourDatabase_set(PyObject *) { | |
18040 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
18041 | return 1; | |
18042 | } | |
18043 | ||
18044 | ||
18045 | static PyObject *_wrap_TheColourDatabase_get() { | |
18046 | PyObject *pyobj; | |
18047 | ||
18048 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
18049 | return pyobj; | |
18050 | } | |
18051 | ||
18052 | ||
18053 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { | |
18054 | PyObject *resultobj; | |
18055 | wxEffects *result; | |
18056 | char *kwnames[] = { | |
18057 | NULL | |
18058 | }; | |
18059 | ||
18060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
18061 | { | |
18062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18063 | result = (wxEffects *)new wxEffects(); | |
18064 | ||
18065 | wxPyEndAllowThreads(__tstate); | |
18066 | if (PyErr_Occurred()) SWIG_fail; | |
18067 | } | |
18068 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
18069 | return resultobj; | |
18070 | fail: | |
18071 | return NULL; | |
18072 | } | |
18073 | ||
18074 | ||
18075 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
18076 | PyObject *resultobj; | |
18077 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18078 | wxColour result; | |
18079 | PyObject * obj0 = 0 ; | |
18080 | char *kwnames[] = { | |
18081 | (char *) "self", NULL | |
18082 | }; | |
18083 | ||
18084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
18085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18087 | { | |
18088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18089 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
18090 | ||
18091 | wxPyEndAllowThreads(__tstate); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
18093 | } | |
18094 | { | |
18095 | wxColour * resultptr; | |
18096 | resultptr = new wxColour((wxColour &) result); | |
18097 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18098 | } | |
18099 | return resultobj; | |
18100 | fail: | |
18101 | return NULL; | |
18102 | } | |
18103 | ||
18104 | ||
18105 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
18106 | PyObject *resultobj; | |
18107 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18108 | wxColour result; | |
18109 | PyObject * obj0 = 0 ; | |
18110 | char *kwnames[] = { | |
18111 | (char *) "self", NULL | |
18112 | }; | |
18113 | ||
18114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
18115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18117 | { | |
18118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18119 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
18120 | ||
18121 | wxPyEndAllowThreads(__tstate); | |
18122 | if (PyErr_Occurred()) SWIG_fail; | |
18123 | } | |
18124 | { | |
18125 | wxColour * resultptr; | |
18126 | resultptr = new wxColour((wxColour &) result); | |
18127 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18128 | } | |
18129 | return resultobj; | |
18130 | fail: | |
18131 | return NULL; | |
18132 | } | |
18133 | ||
18134 | ||
18135 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
18136 | PyObject *resultobj; | |
18137 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18138 | wxColour result; | |
18139 | PyObject * obj0 = 0 ; | |
18140 | char *kwnames[] = { | |
18141 | (char *) "self", NULL | |
18142 | }; | |
18143 | ||
18144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
18145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18147 | { | |
18148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18149 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
18150 | ||
18151 | wxPyEndAllowThreads(__tstate); | |
18152 | if (PyErr_Occurred()) SWIG_fail; | |
18153 | } | |
18154 | { | |
18155 | wxColour * resultptr; | |
18156 | resultptr = new wxColour((wxColour &) result); | |
18157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18158 | } | |
18159 | return resultobj; | |
18160 | fail: | |
18161 | return NULL; | |
18162 | } | |
18163 | ||
18164 | ||
18165 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
18166 | PyObject *resultobj; | |
18167 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18168 | wxColour result; | |
18169 | PyObject * obj0 = 0 ; | |
18170 | char *kwnames[] = { | |
18171 | (char *) "self", NULL | |
18172 | }; | |
18173 | ||
18174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
18175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18177 | { | |
18178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18179 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18180 | ||
18181 | wxPyEndAllowThreads(__tstate); | |
18182 | if (PyErr_Occurred()) SWIG_fail; | |
18183 | } | |
18184 | { | |
18185 | wxColour * resultptr; | |
18186 | resultptr = new wxColour((wxColour &) result); | |
18187 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18188 | } | |
18189 | return resultobj; | |
18190 | fail: | |
18191 | return NULL; | |
18192 | } | |
18193 | ||
18194 | ||
18195 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
18196 | PyObject *resultobj; | |
18197 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18198 | wxColour result; | |
18199 | PyObject * obj0 = 0 ; | |
18200 | char *kwnames[] = { | |
18201 | (char *) "self", NULL | |
18202 | }; | |
18203 | ||
18204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
18205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18207 | { | |
18208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18209 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18210 | ||
18211 | wxPyEndAllowThreads(__tstate); | |
18212 | if (PyErr_Occurred()) SWIG_fail; | |
18213 | } | |
18214 | { | |
18215 | wxColour * resultptr; | |
18216 | resultptr = new wxColour((wxColour &) result); | |
18217 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18218 | } | |
18219 | return resultobj; | |
18220 | fail: | |
18221 | return NULL; | |
18222 | } | |
18223 | ||
18224 | ||
18225 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
18226 | PyObject *resultobj; | |
18227 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18228 | wxColour *arg2 = 0 ; | |
18229 | wxColour temp2 ; | |
18230 | PyObject * obj0 = 0 ; | |
18231 | PyObject * obj1 = 0 ; | |
18232 | char *kwnames[] = { | |
18233 | (char *) "self",(char *) "c", NULL | |
18234 | }; | |
18235 | ||
18236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
18237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18239 | { | |
18240 | arg2 = &temp2; | |
18241 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18242 | } | |
18243 | { | |
18244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18245 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18246 | ||
18247 | wxPyEndAllowThreads(__tstate); | |
18248 | if (PyErr_Occurred()) SWIG_fail; | |
18249 | } | |
18250 | Py_INCREF(Py_None); resultobj = Py_None; | |
18251 | return resultobj; | |
18252 | fail: | |
18253 | return NULL; | |
18254 | } | |
18255 | ||
18256 | ||
18257 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
18258 | PyObject *resultobj; | |
18259 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18260 | wxColour *arg2 = 0 ; | |
18261 | wxColour temp2 ; | |
18262 | PyObject * obj0 = 0 ; | |
18263 | PyObject * obj1 = 0 ; | |
18264 | char *kwnames[] = { | |
18265 | (char *) "self",(char *) "c", NULL | |
18266 | }; | |
18267 | ||
18268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
18269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18271 | { | |
18272 | arg2 = &temp2; | |
18273 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18274 | } | |
18275 | { | |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18278 | ||
18279 | wxPyEndAllowThreads(__tstate); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
18281 | } | |
18282 | Py_INCREF(Py_None); resultobj = Py_None; | |
18283 | return resultobj; | |
18284 | fail: | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
18289 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj; | |
18291 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18292 | wxColour *arg2 = 0 ; | |
18293 | wxColour temp2 ; | |
18294 | PyObject * obj0 = 0 ; | |
18295 | PyObject * obj1 = 0 ; | |
18296 | char *kwnames[] = { | |
18297 | (char *) "self",(char *) "c", NULL | |
18298 | }; | |
18299 | ||
18300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
18301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18303 | { | |
18304 | arg2 = &temp2; | |
18305 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18306 | } | |
18307 | { | |
18308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18309 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18310 | ||
18311 | wxPyEndAllowThreads(__tstate); | |
18312 | if (PyErr_Occurred()) SWIG_fail; | |
18313 | } | |
18314 | Py_INCREF(Py_None); resultobj = Py_None; | |
18315 | return resultobj; | |
18316 | fail: | |
18317 | return NULL; | |
18318 | } | |
18319 | ||
18320 | ||
18321 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
18322 | PyObject *resultobj; | |
18323 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18324 | wxColour *arg2 = 0 ; | |
18325 | wxColour temp2 ; | |
18326 | PyObject * obj0 = 0 ; | |
18327 | PyObject * obj1 = 0 ; | |
18328 | char *kwnames[] = { | |
18329 | (char *) "self",(char *) "c", NULL | |
18330 | }; | |
18331 | ||
18332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
18333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18335 | { | |
18336 | arg2 = &temp2; | |
18337 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18338 | } | |
18339 | { | |
18340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18341 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18342 | ||
18343 | wxPyEndAllowThreads(__tstate); | |
18344 | if (PyErr_Occurred()) SWIG_fail; | |
18345 | } | |
18346 | Py_INCREF(Py_None); resultobj = Py_None; | |
18347 | return resultobj; | |
18348 | fail: | |
18349 | return NULL; | |
18350 | } | |
18351 | ||
18352 | ||
18353 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { | |
18354 | PyObject *resultobj; | |
18355 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18356 | wxColour *arg2 = 0 ; | |
18357 | wxColour temp2 ; | |
18358 | PyObject * obj0 = 0 ; | |
18359 | PyObject * obj1 = 0 ; | |
18360 | char *kwnames[] = { | |
18361 | (char *) "self",(char *) "c", NULL | |
18362 | }; | |
18363 | ||
18364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
18365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18367 | { | |
18368 | arg2 = &temp2; | |
18369 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18370 | } | |
18371 | { | |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
18378 | Py_INCREF(Py_None); resultobj = Py_None; | |
18379 | return resultobj; | |
18380 | fail: | |
18381 | return NULL; | |
18382 | } | |
18383 | ||
18384 | ||
18385 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { | |
18386 | PyObject *resultobj; | |
18387 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18388 | wxColour *arg2 = 0 ; | |
18389 | wxColour *arg3 = 0 ; | |
18390 | wxColour *arg4 = 0 ; | |
18391 | wxColour *arg5 = 0 ; | |
18392 | wxColour *arg6 = 0 ; | |
18393 | wxColour temp2 ; | |
18394 | wxColour temp3 ; | |
18395 | wxColour temp4 ; | |
18396 | wxColour temp5 ; | |
18397 | wxColour temp6 ; | |
18398 | PyObject * obj0 = 0 ; | |
18399 | PyObject * obj1 = 0 ; | |
18400 | PyObject * obj2 = 0 ; | |
18401 | PyObject * obj3 = 0 ; | |
18402 | PyObject * obj4 = 0 ; | |
18403 | PyObject * obj5 = 0 ; | |
18404 | char *kwnames[] = { | |
18405 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18406 | }; | |
18407 | ||
18408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18411 | { | |
18412 | arg2 = &temp2; | |
18413 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18414 | } | |
18415 | { | |
18416 | arg3 = &temp3; | |
18417 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18418 | } | |
18419 | { | |
18420 | arg4 = &temp4; | |
18421 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18422 | } | |
18423 | { | |
18424 | arg5 = &temp5; | |
18425 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18426 | } | |
18427 | { | |
18428 | arg6 = &temp6; | |
18429 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18430 | } | |
18431 | { | |
18432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18433 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18434 | ||
18435 | wxPyEndAllowThreads(__tstate); | |
18436 | if (PyErr_Occurred()) SWIG_fail; | |
18437 | } | |
18438 | Py_INCREF(Py_None); resultobj = Py_None; | |
18439 | return resultobj; | |
18440 | fail: | |
18441 | return NULL; | |
18442 | } | |
18443 | ||
18444 | ||
18445 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { | |
18446 | PyObject *resultobj; | |
18447 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18448 | wxDC *arg2 = 0 ; | |
18449 | wxRect *arg3 = 0 ; | |
18450 | int arg4 = (int) 1 ; | |
18451 | wxRect temp3 ; | |
18452 | PyObject * obj0 = 0 ; | |
18453 | PyObject * obj1 = 0 ; | |
18454 | PyObject * obj2 = 0 ; | |
18455 | PyObject * obj3 = 0 ; | |
18456 | char *kwnames[] = { | |
18457 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18458 | }; | |
18459 | ||
18460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18465 | SWIG_fail; | |
18466 | if (arg2 == NULL) { | |
18467 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18468 | SWIG_fail; | |
18469 | } | |
18470 | { | |
18471 | arg3 = &temp3; | |
18472 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18473 | } | |
18474 | if (obj3) { | |
18475 | arg4 = (int)SWIG_As_int(obj3); | |
18476 | if (PyErr_Occurred()) SWIG_fail; | |
18477 | } | |
18478 | { | |
18479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18480 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18481 | ||
18482 | wxPyEndAllowThreads(__tstate); | |
18483 | if (PyErr_Occurred()) SWIG_fail; | |
18484 | } | |
18485 | Py_INCREF(Py_None); resultobj = Py_None; | |
18486 | return resultobj; | |
18487 | fail: | |
18488 | return NULL; | |
18489 | } | |
18490 | ||
18491 | ||
18492 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { | |
18493 | PyObject *resultobj; | |
18494 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18495 | wxRect *arg2 = 0 ; | |
18496 | wxDC *arg3 = 0 ; | |
18497 | wxBitmap *arg4 = 0 ; | |
18498 | bool result; | |
18499 | wxRect temp2 ; | |
18500 | PyObject * obj0 = 0 ; | |
18501 | PyObject * obj1 = 0 ; | |
18502 | PyObject * obj2 = 0 ; | |
18503 | PyObject * obj3 = 0 ; | |
18504 | char *kwnames[] = { | |
18505 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18506 | }; | |
18507 | ||
18508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18511 | { | |
18512 | arg2 = &temp2; | |
18513 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18514 | } | |
18515 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
18516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18517 | SWIG_fail; | |
18518 | if (arg3 == NULL) { | |
18519 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18520 | SWIG_fail; | |
18521 | } | |
18522 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
18523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18524 | SWIG_fail; | |
18525 | if (arg4 == NULL) { | |
18526 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18527 | SWIG_fail; | |
18528 | } | |
18529 | { | |
18530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18531 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18532 | ||
18533 | wxPyEndAllowThreads(__tstate); | |
18534 | if (PyErr_Occurred()) SWIG_fail; | |
18535 | } | |
18536 | { | |
18537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18538 | } | |
18539 | return resultobj; | |
18540 | fail: | |
18541 | return NULL; | |
18542 | } | |
18543 | ||
18544 | ||
18545 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { | |
18546 | PyObject *obj; | |
18547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18548 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18549 | Py_INCREF(obj); | |
18550 | return Py_BuildValue((char *)""); | |
18551 | } | |
18552 | static PyMethodDef SwigMethods[] = { | |
18553 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18554 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18555 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18556 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18557 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18558 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL }, | |
18559 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18560 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18561 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18562 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18563 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18564 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18565 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18566 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18567 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18568 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18569 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18570 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18571 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18572 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18573 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18574 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18575 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL }, | |
18576 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18577 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18578 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18579 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18580 | { (char *)"Palette_GetColoursCount", (PyCFunction) _wrap_Palette_GetColoursCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18581 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18582 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL }, | |
18583 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18584 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18585 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18586 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18587 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18588 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18589 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18590 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18591 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18592 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18593 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18594 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18595 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18596 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18597 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18598 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18599 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18600 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18601 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18602 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL }, | |
18603 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18604 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18605 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18606 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18607 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18608 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18609 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18610 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18611 | { (char *)"Brush_IsHatch", (PyCFunction) _wrap_Brush_IsHatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18612 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18613 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL }, | |
18614 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18615 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18616 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18617 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18618 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18619 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18620 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18621 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18622 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18623 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18624 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18625 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18626 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18627 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18628 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18629 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18630 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18631 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18632 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18633 | { (char *)"Bitmap_GetPalette", (PyCFunction) _wrap_Bitmap_GetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18634 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18635 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18636 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18637 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18638 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18639 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18640 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18641 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL }, | |
18642 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18643 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL }, | |
18644 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18645 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18646 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18647 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18648 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18649 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18650 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18651 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18652 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18653 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18654 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18655 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18656 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18657 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18658 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18659 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL }, | |
18660 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18661 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18662 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18663 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18664 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18665 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18666 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18667 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL }, | |
18668 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18669 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18670 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18671 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18672 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18673 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18674 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18675 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL }, | |
18676 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18677 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18678 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18679 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18680 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18681 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL }, | |
18682 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18683 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18684 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18685 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18686 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18687 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18688 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18689 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18690 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18691 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18692 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18693 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18694 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18695 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18696 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18697 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18698 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18699 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18700 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18701 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18702 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18703 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18704 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18705 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18706 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18707 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18708 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18709 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18710 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL }, | |
18711 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18712 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18713 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18714 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18715 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18716 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18717 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18718 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18719 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18720 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18721 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18722 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18723 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18724 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL }, | |
18725 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18726 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18727 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18728 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18729 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18730 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18731 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18732 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18733 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18734 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18735 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18736 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18737 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18738 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18739 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18740 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18741 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18742 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18743 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18744 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18745 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18746 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18747 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18748 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL }, | |
18749 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18750 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18751 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18752 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18753 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18754 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18755 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18756 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18757 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL }, | |
18758 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18759 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18760 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18761 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18762 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18763 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18764 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18765 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18766 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18767 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18768 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18769 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18770 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18771 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18772 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18773 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18774 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18775 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18776 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18777 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL }, | |
18778 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18779 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18780 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18781 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18782 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18783 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18784 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18785 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18786 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18787 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18788 | { (char *)"Font_GetPixelSize", (PyCFunction) _wrap_Font_GetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18789 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction) _wrap_Font_IsUsingSizeInPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18790 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18791 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18792 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18793 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18794 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18795 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18796 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18797 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18798 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18799 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18800 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18801 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18802 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18803 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18804 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18805 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18806 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18807 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18808 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18809 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18810 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18811 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18812 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18813 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18814 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18815 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18816 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18817 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18818 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL }, | |
18819 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18820 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18821 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18822 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18823 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18824 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18825 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18826 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL }, | |
18827 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18828 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18829 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18830 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18831 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18832 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18833 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL }, | |
18834 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18835 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18836 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18837 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18838 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18839 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18840 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18841 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18842 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18843 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18844 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18845 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18846 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18847 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18848 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18849 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18850 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18851 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18852 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18853 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18854 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18855 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL }, | |
18856 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18857 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL }, | |
18858 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18859 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18860 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18861 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18862 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18863 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18864 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18865 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL }, | |
18866 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18867 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18868 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18869 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18870 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18871 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18872 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18873 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18874 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18875 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18876 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18877 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18878 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18879 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18880 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18881 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18882 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18883 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18884 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18885 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18886 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18887 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18888 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18889 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18890 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18891 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18892 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18893 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18894 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18895 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18896 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18897 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18898 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18899 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18900 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18901 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18902 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18903 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18904 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18905 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18906 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18907 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18908 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18909 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18910 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18911 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18912 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18913 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18914 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18915 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18916 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18917 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18918 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18919 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18920 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18921 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18922 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18923 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18924 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18925 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18926 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18927 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18928 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18929 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18930 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18931 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18932 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18933 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18934 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18935 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18936 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18937 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18938 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18939 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18940 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18941 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18942 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18943 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18944 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18945 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18946 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18947 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18948 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18949 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18950 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18951 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18952 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18953 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18954 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18955 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18956 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18957 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18958 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18959 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18960 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18961 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18962 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18963 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18964 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18965 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18966 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18967 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18968 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18969 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18970 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18971 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18972 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18973 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18974 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18975 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18976 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18977 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18978 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction) _wrap_DC_ComputeScaleAndOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18979 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18980 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18981 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18982 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18983 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18984 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18985 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18986 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18987 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18988 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18989 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18990 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18991 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18992 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18993 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL }, | |
18994 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18995 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18996 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18997 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL }, | |
18998 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL }, | |
18999 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19000 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19001 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL }, | |
19002 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19003 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL }, | |
19004 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19005 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19006 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19007 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19008 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL }, | |
19009 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19010 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL }, | |
19011 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19012 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL }, | |
19013 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19014 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL }, | |
19015 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19016 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL }, | |
19017 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19018 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19019 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19020 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19021 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19022 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL }, | |
19023 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19024 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL }, | |
19025 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19026 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL }, | |
19027 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19028 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL }, | |
19029 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19030 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19031 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19032 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19033 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19034 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19035 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19036 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19037 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19038 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19039 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19040 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL }, | |
19041 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19042 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19043 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19044 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19045 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL }, | |
19046 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19047 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19048 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19049 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19050 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL }, | |
19051 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19052 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19053 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19054 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19055 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19056 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19057 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL }, | |
19058 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19059 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19060 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19061 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19062 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL }, | |
19063 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19064 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19065 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19066 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19067 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19068 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19069 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19070 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19071 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19072 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19073 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19074 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19075 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19076 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
19077 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL }, | |
19078 | { NULL, NULL, 0, NULL } | |
19079 | }; | |
19080 | ||
19081 | ||
19082 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19083 | ||
19084 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
19085 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19086 | } | |
19087 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19088 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19089 | } | |
19090 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19091 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19092 | } | |
19093 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
19094 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19095 | } | |
19096 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19097 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19098 | } | |
19099 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
19100 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19101 | } | |
19102 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19103 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19104 | } | |
19105 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19106 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19107 | } | |
19108 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19109 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19110 | } | |
19111 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19112 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19113 | } | |
19114 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19115 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19116 | } | |
19117 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19118 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19119 | } | |
19120 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19121 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19122 | } | |
19123 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19124 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19125 | } | |
19126 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19127 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19128 | } | |
19129 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19130 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19131 | } | |
19132 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19133 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19134 | } | |
19135 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19136 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19137 | } | |
19138 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19139 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19140 | } | |
19141 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19142 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19143 | } | |
19144 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19145 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19146 | } | |
19147 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19148 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19149 | } | |
19150 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19151 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19152 | } | |
19153 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19154 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19155 | } | |
19156 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19157 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19158 | } | |
19159 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19160 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19161 | } | |
19162 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19163 | return (void *)((wxObject *) ((wxDC *) x)); | |
19164 | } | |
19165 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19166 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19167 | } | |
19168 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19169 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19170 | } | |
19171 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19172 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19173 | } | |
19174 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19175 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19176 | } | |
19177 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19178 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19179 | } | |
19180 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19181 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19182 | } | |
19183 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19184 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19185 | } | |
19186 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19187 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19188 | } | |
19189 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19190 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19191 | } | |
19192 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19193 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19194 | } | |
19195 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19196 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19197 | } | |
19198 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19199 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19200 | } | |
19201 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19202 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19203 | } | |
19204 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19205 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19206 | } | |
19207 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19208 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19209 | } | |
19210 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19211 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19212 | } | |
19213 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19214 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19215 | } | |
19216 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19217 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19218 | } | |
19219 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19220 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19221 | } | |
19222 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19223 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19224 | } | |
19225 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19226 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19227 | } | |
19228 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19229 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19230 | } | |
19231 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19232 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19233 | } | |
19234 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19235 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19236 | } | |
19237 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19238 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19239 | } | |
19240 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19241 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19242 | } | |
19243 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19244 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19245 | } | |
19246 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19247 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19248 | } | |
19249 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19250 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19251 | } | |
19252 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19253 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19254 | } | |
19255 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19256 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19257 | } | |
19258 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19259 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19260 | } | |
19261 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19262 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19263 | } | |
19264 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19265 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19266 | } | |
19267 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19268 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19269 | } | |
19270 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19271 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19272 | } | |
19273 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19274 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19275 | } | |
19276 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19277 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19278 | } | |
19279 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19280 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19281 | } | |
19282 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19283 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19284 | } | |
19285 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19286 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19287 | } | |
19288 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19289 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19290 | } | |
19291 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19292 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19293 | } | |
19294 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19295 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19296 | } | |
19297 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
19298 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19299 | } | |
19300 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
19301 | return (void *)((wxObject *) ((wxImage *) x)); | |
19302 | } | |
19303 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19304 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19305 | } | |
19306 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
19307 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19308 | } | |
19309 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19310 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19311 | } | |
19312 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19313 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19314 | } | |
19315 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19316 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19317 | } | |
19318 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19319 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19320 | } | |
19321 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19322 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19323 | } | |
19324 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19325 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19326 | } | |
19327 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19328 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19329 | } | |
19330 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19331 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19332 | } | |
19333 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19334 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19335 | } | |
19336 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19337 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19338 | } | |
19339 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19340 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19341 | } | |
19342 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19343 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19344 | } | |
19345 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19346 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19347 | } | |
19348 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
19349 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19350 | } | |
19351 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19352 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19353 | } | |
19354 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19355 | return (void *)((wxObject *) ((wxMask *) x)); | |
19356 | } | |
19357 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19358 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19359 | } | |
19360 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19361 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19362 | } | |
19363 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19364 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19365 | } | |
19366 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19367 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19368 | } | |
19369 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19370 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19371 | } | |
19372 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19373 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19374 | } | |
19375 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19376 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19377 | } | |
19378 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19379 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19380 | } | |
19381 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19382 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19383 | } | |
19384 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19385 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19386 | } | |
19387 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19388 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19389 | } | |
19390 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19391 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19392 | } | |
19393 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19394 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19395 | } | |
19396 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19397 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19398 | } | |
19399 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19400 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19401 | } | |
19402 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19403 | return (void *)((wxObject *) ((wxColour *) x)); | |
19404 | } | |
19405 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19406 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19407 | } | |
19408 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19409 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19410 | } | |
19411 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19412 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19413 | } | |
19414 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
19415 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19416 | } | |
19417 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
19418 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
19419 | } | |
19420 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
19421 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19422 | } | |
19423 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19424 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19425 | } | |
19426 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19427 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19428 | } | |
19429 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19430 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19431 | } | |
19432 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19433 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19434 | } | |
19435 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19436 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19437 | } | |
19438 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19439 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19440 | } | |
19441 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19442 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19443 | } | |
19444 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19445 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19446 | } | |
19447 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19448 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19449 | } | |
19450 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
19451 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19452 | } | |
19453 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19454 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19455 | } | |
19456 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19457 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19458 | } | |
19459 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19460 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19461 | } | |
19462 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19463 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19464 | } | |
19465 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19466 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19467 | } | |
19468 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19469 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19470 | } | |
19471 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19472 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19473 | } | |
19474 | 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}}; | |
19475 | 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}}; | |
19476 | 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}}; | |
19477 | 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}}; | |
19478 | 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}}; | |
19479 | 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}}; | |
19480 | 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}}; | |
19481 | 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}}; | |
19482 | 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}}; | |
19483 | 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}}; | |
19484 | 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}}; | |
19485 | 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}}; | |
19486 | 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}}; | |
19487 | 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}}; | |
19488 | 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}}; | |
19489 | 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}}; | |
19490 | 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}}; | |
19491 | 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}}; | |
19492 | 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}}; | |
19493 | 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}}; | |
19494 | 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}}; | |
19495 | 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}}; | |
19496 | 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}}; | |
19497 | 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}}; | |
19498 | 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}}; | |
19499 | 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}}; | |
19500 | 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}}; | |
19501 | 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}}; | |
19502 | 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}}; | |
19503 | 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}}; | |
19504 | 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}}; | |
19505 | 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}}; | |
19506 | 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}}; | |
19507 | 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}}; | |
19508 | 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}}; | |
19509 | 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}}; | |
19510 | 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}}; | |
19511 | 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}}; | |
19512 | 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}}; | |
19513 | 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}}; | |
19514 | 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}}; | |
19515 | 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}}; | |
19516 | 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}}; | |
19517 | 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}}; | |
19518 | 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}}; | |
19519 | 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}}; | |
19520 | 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}}; | |
19521 | 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}}; | |
19522 | 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}}; | |
19523 | 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}}; | |
19524 | 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}}; | |
19525 | 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}}; | |
19526 | 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}}; | |
19527 | 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}}; | |
19528 | 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}}; | |
19529 | ||
19530 | static swig_type_info *swig_types_initial[] = { | |
19531 | _swigt__p_wxPostScriptDC, | |
19532 | _swigt__p_wxBrush, | |
19533 | _swigt__p_wxColour, | |
19534 | _swigt__p_wxDC, | |
19535 | _swigt__p_wxMirrorDC, | |
19536 | _swigt__p_byte, | |
19537 | _swigt__p_wxPyFontEnumerator, | |
19538 | _swigt__p_char, | |
19539 | _swigt__p_wxIconLocation, | |
19540 | _swigt__p_wxImage, | |
19541 | _swigt__p_wxMetaFileDC, | |
19542 | _swigt__p_wxMask, | |
19543 | _swigt__p_wxSize, | |
19544 | _swigt__p_wxFont, | |
19545 | _swigt__p_wxWindow, | |
19546 | _swigt__p_double, | |
19547 | _swigt__p_wxMemoryDC, | |
19548 | _swigt__p_wxFontMapper, | |
19549 | _swigt__p_wxEffects, | |
19550 | _swigt__p_wxNativeEncodingInfo, | |
19551 | _swigt__p_wxPalette, | |
19552 | _swigt__p_wxBitmap, | |
19553 | _swigt__p_wxObject, | |
19554 | _swigt__p_wxRegionIterator, | |
19555 | _swigt__p_wxRect, | |
19556 | _swigt__p_wxString, | |
19557 | _swigt__p_wxPrinterDC, | |
19558 | _swigt__p_wxIconBundle, | |
19559 | _swigt__p_wxPoint, | |
19560 | _swigt__p_wxDash, | |
19561 | _swigt__p_wxScreenDC, | |
19562 | _swigt__p_wxCursor, | |
19563 | _swigt__p_wxClientDC, | |
19564 | _swigt__p_wxBufferedDC, | |
19565 | _swigt__p_wxImageList, | |
19566 | _swigt__p_unsigned_char, | |
19567 | _swigt__p_wxGDIObject, | |
19568 | _swigt__p_wxIcon, | |
19569 | _swigt__p_wxLocale, | |
19570 | _swigt__p_wxRegion, | |
19571 | _swigt__p_wxLanguageInfo, | |
19572 | _swigt__p_wxConfigBase, | |
19573 | _swigt__p_wxWindowDC, | |
19574 | _swigt__p_wxPrintData, | |
19575 | _swigt__p_wxBrushList, | |
19576 | _swigt__p_wxFontList, | |
19577 | _swigt__p_wxPen, | |
19578 | _swigt__p_wxBufferedPaintDC, | |
19579 | _swigt__p_wxPaintDC, | |
19580 | _swigt__p_wxPenList, | |
19581 | _swigt__p_int, | |
19582 | _swigt__p_wxMetaFile, | |
19583 | _swigt__p_wxNativeFontInfo, | |
19584 | _swigt__p_wxEncodingConverter, | |
19585 | _swigt__p_wxColourDatabase, | |
19586 | 0 | |
19587 | }; | |
19588 | ||
19589 | ||
19590 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19591 | ||
19592 | static swig_const_info swig_const_table[] = { | |
19593 | {0, 0, 0, 0.0, 0, 0}}; | |
19594 | ||
19595 | #ifdef __cplusplus | |
19596 | } | |
19597 | #endif | |
19598 | ||
19599 | #ifdef __cplusplus | |
19600 | extern "C" | |
19601 | #endif | |
19602 | SWIGEXPORT(void) SWIG_init(void) { | |
19603 | static PyObject *SWIG_globals = 0; | |
19604 | static int typeinit = 0; | |
19605 | PyObject *m, *d; | |
19606 | int i; | |
19607 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19608 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19609 | d = PyModule_GetDict(m); | |
19610 | ||
19611 | if (!typeinit) { | |
19612 | for (i = 0; swig_types_initial[i]; i++) { | |
19613 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19614 | } | |
19615 | typeinit = 1; | |
19616 | } | |
19617 | SWIG_InstallConstants(d,swig_const_table); | |
19618 | ||
19619 | PyDict_SetItemString(d,"OutRegion", SWIG_From_int((int)wxOutRegion)); | |
19620 | PyDict_SetItemString(d,"PartRegion", SWIG_From_int((int)wxPartRegion)); | |
19621 | PyDict_SetItemString(d,"InRegion", SWIG_From_int((int)wxInRegion)); | |
19622 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_From_int((int)wxFONTFAMILY_DEFAULT)); | |
19623 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_From_int((int)wxFONTFAMILY_DECORATIVE)); | |
19624 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_From_int((int)wxFONTFAMILY_ROMAN)); | |
19625 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_From_int((int)wxFONTFAMILY_SCRIPT)); | |
19626 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_From_int((int)wxFONTFAMILY_SWISS)); | |
19627 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_From_int((int)wxFONTFAMILY_MODERN)); | |
19628 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_From_int((int)wxFONTFAMILY_TELETYPE)); | |
19629 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_From_int((int)wxFONTFAMILY_MAX)); | |
19630 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_From_int((int)wxFONTFAMILY_UNKNOWN)); | |
19631 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_From_int((int)wxFONTSTYLE_NORMAL)); | |
19632 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_From_int((int)wxFONTSTYLE_ITALIC)); | |
19633 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_From_int((int)wxFONTSTYLE_SLANT)); | |
19634 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_From_int((int)wxFONTSTYLE_MAX)); | |
19635 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_From_int((int)wxFONTWEIGHT_NORMAL)); | |
19636 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_From_int((int)wxFONTWEIGHT_LIGHT)); | |
19637 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_From_int((int)wxFONTWEIGHT_BOLD)); | |
19638 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_From_int((int)wxFONTWEIGHT_MAX)); | |
19639 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_From_int((int)wxFONTFLAG_DEFAULT)); | |
19640 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_From_int((int)wxFONTFLAG_ITALIC)); | |
19641 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_From_int((int)wxFONTFLAG_SLANT)); | |
19642 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_From_int((int)wxFONTFLAG_LIGHT)); | |
19643 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_From_int((int)wxFONTFLAG_BOLD)); | |
19644 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_ANTIALIASED)); | |
19645 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_From_int((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19646 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_From_int((int)wxFONTFLAG_UNDERLINED)); | |
19647 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_From_int((int)wxFONTFLAG_STRIKETHROUGH)); | |
19648 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_From_int((int)wxFONTFLAG_MASK)); | |
19649 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_From_int((int)wxFONTENCODING_SYSTEM)); | |
19650 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_From_int((int)wxFONTENCODING_DEFAULT)); | |
19651 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_From_int((int)wxFONTENCODING_ISO8859_1)); | |
19652 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_From_int((int)wxFONTENCODING_ISO8859_2)); | |
19653 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_From_int((int)wxFONTENCODING_ISO8859_3)); | |
19654 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_From_int((int)wxFONTENCODING_ISO8859_4)); | |
19655 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_From_int((int)wxFONTENCODING_ISO8859_5)); | |
19656 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_From_int((int)wxFONTENCODING_ISO8859_6)); | |
19657 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_From_int((int)wxFONTENCODING_ISO8859_7)); | |
19658 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_From_int((int)wxFONTENCODING_ISO8859_8)); | |
19659 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_From_int((int)wxFONTENCODING_ISO8859_9)); | |
19660 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_From_int((int)wxFONTENCODING_ISO8859_10)); | |
19661 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_From_int((int)wxFONTENCODING_ISO8859_11)); | |
19662 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_From_int((int)wxFONTENCODING_ISO8859_12)); | |
19663 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_From_int((int)wxFONTENCODING_ISO8859_13)); | |
19664 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_From_int((int)wxFONTENCODING_ISO8859_14)); | |
19665 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_From_int((int)wxFONTENCODING_ISO8859_15)); | |
19666 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_From_int((int)wxFONTENCODING_ISO8859_MAX)); | |
19667 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_From_int((int)wxFONTENCODING_KOI8)); | |
19668 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_From_int((int)wxFONTENCODING_KOI8_U)); | |
19669 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_From_int((int)wxFONTENCODING_ALTERNATIVE)); | |
19670 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_From_int((int)wxFONTENCODING_BULGARIAN)); | |
19671 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_From_int((int)wxFONTENCODING_CP437)); | |
19672 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_From_int((int)wxFONTENCODING_CP850)); | |
19673 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_From_int((int)wxFONTENCODING_CP852)); | |
19674 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_From_int((int)wxFONTENCODING_CP855)); | |
19675 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_From_int((int)wxFONTENCODING_CP866)); | |
19676 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_From_int((int)wxFONTENCODING_CP874)); | |
19677 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_From_int((int)wxFONTENCODING_CP932)); | |
19678 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_From_int((int)wxFONTENCODING_CP936)); | |
19679 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_From_int((int)wxFONTENCODING_CP949)); | |
19680 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_From_int((int)wxFONTENCODING_CP950)); | |
19681 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_From_int((int)wxFONTENCODING_CP1250)); | |
19682 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_From_int((int)wxFONTENCODING_CP1251)); | |
19683 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_From_int((int)wxFONTENCODING_CP1252)); | |
19684 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_From_int((int)wxFONTENCODING_CP1253)); | |
19685 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_From_int((int)wxFONTENCODING_CP1254)); | |
19686 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_From_int((int)wxFONTENCODING_CP1255)); | |
19687 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_From_int((int)wxFONTENCODING_CP1256)); | |
19688 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_From_int((int)wxFONTENCODING_CP1257)); | |
19689 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_From_int((int)wxFONTENCODING_CP12_MAX)); | |
19690 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_From_int((int)wxFONTENCODING_UTF7)); | |
19691 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_From_int((int)wxFONTENCODING_UTF8)); | |
19692 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_From_int((int)wxFONTENCODING_EUC_JP)); | |
19693 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_From_int((int)wxFONTENCODING_UTF16BE)); | |
19694 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_From_int((int)wxFONTENCODING_UTF16LE)); | |
19695 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_From_int((int)wxFONTENCODING_UTF32BE)); | |
19696 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_From_int((int)wxFONTENCODING_UTF32LE)); | |
19697 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_From_int((int)wxFONTENCODING_MACROMAN)); | |
19698 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_From_int((int)wxFONTENCODING_MACJAPANESE)); | |
19699 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_From_int((int)wxFONTENCODING_MACCHINESETRAD)); | |
19700 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_From_int((int)wxFONTENCODING_MACKOREAN)); | |
19701 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_From_int((int)wxFONTENCODING_MACARABIC)); | |
19702 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_From_int((int)wxFONTENCODING_MACHEBREW)); | |
19703 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_From_int((int)wxFONTENCODING_MACGREEK)); | |
19704 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_From_int((int)wxFONTENCODING_MACCYRILLIC)); | |
19705 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_From_int((int)wxFONTENCODING_MACDEVANAGARI)); | |
19706 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_From_int((int)wxFONTENCODING_MACGURMUKHI)); | |
19707 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_From_int((int)wxFONTENCODING_MACGUJARATI)); | |
19708 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_From_int((int)wxFONTENCODING_MACORIYA)); | |
19709 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_From_int((int)wxFONTENCODING_MACBENGALI)); | |
19710 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_From_int((int)wxFONTENCODING_MACTAMIL)); | |
19711 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_From_int((int)wxFONTENCODING_MACTELUGU)); | |
19712 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_From_int((int)wxFONTENCODING_MACKANNADA)); | |
19713 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_From_int((int)wxFONTENCODING_MACMALAJALAM)); | |
19714 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_From_int((int)wxFONTENCODING_MACSINHALESE)); | |
19715 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_From_int((int)wxFONTENCODING_MACBURMESE)); | |
19716 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_From_int((int)wxFONTENCODING_MACKHMER)); | |
19717 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_From_int((int)wxFONTENCODING_MACTHAI)); | |
19718 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_From_int((int)wxFONTENCODING_MACLAOTIAN)); | |
19719 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_From_int((int)wxFONTENCODING_MACGEORGIAN)); | |
19720 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_From_int((int)wxFONTENCODING_MACARMENIAN)); | |
19721 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_From_int((int)wxFONTENCODING_MACCHINESESIMP)); | |
19722 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_From_int((int)wxFONTENCODING_MACTIBETAN)); | |
19723 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_From_int((int)wxFONTENCODING_MACMONGOLIAN)); | |
19724 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_From_int((int)wxFONTENCODING_MACETHIOPIC)); | |
19725 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_From_int((int)wxFONTENCODING_MACCENTRALEUR)); | |
19726 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_From_int((int)wxFONTENCODING_MACVIATNAMESE)); | |
19727 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_From_int((int)wxFONTENCODING_MACARABICEXT)); | |
19728 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_From_int((int)wxFONTENCODING_MACSYMBOL)); | |
19729 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_From_int((int)wxFONTENCODING_MACDINGBATS)); | |
19730 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_From_int((int)wxFONTENCODING_MACTURKISH)); | |
19731 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_From_int((int)wxFONTENCODING_MACCROATIAN)); | |
19732 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_From_int((int)wxFONTENCODING_MACICELANDIC)); | |
19733 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_From_int((int)wxFONTENCODING_MACROMANIAN)); | |
19734 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_From_int((int)wxFONTENCODING_MACCELTIC)); | |
19735 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_From_int((int)wxFONTENCODING_MACGAELIC)); | |
19736 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_From_int((int)wxFONTENCODING_MACKEYBOARD)); | |
19737 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_From_int((int)wxFONTENCODING_MACMIN)); | |
19738 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_From_int((int)wxFONTENCODING_MACMAX)); | |
19739 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_From_int((int)wxFONTENCODING_MAX)); | |
19740 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_From_int((int)wxFONTENCODING_UTF16)); | |
19741 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_From_int((int)wxFONTENCODING_UTF32)); | |
19742 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_From_int((int)wxFONTENCODING_UNICODE)); | |
19743 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_From_int((int)wxFONTENCODING_GB2312)); | |
19744 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_From_int((int)wxFONTENCODING_BIG5)); | |
19745 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_From_int((int)wxFONTENCODING_SHIFT_JIS)); | |
19746 | ||
19747 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19748 | ||
19749 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_From_int((int)wxLANGUAGE_DEFAULT)); | |
19750 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_From_int((int)wxLANGUAGE_UNKNOWN)); | |
19751 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_From_int((int)wxLANGUAGE_ABKHAZIAN)); | |
19752 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_From_int((int)wxLANGUAGE_AFAR)); | |
19753 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_From_int((int)wxLANGUAGE_AFRIKAANS)); | |
19754 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_From_int((int)wxLANGUAGE_ALBANIAN)); | |
19755 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_From_int((int)wxLANGUAGE_AMHARIC)); | |
19756 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_From_int((int)wxLANGUAGE_ARABIC)); | |
19757 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19758 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_From_int((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19759 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_From_int((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19760 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_From_int((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19761 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19762 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_From_int((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19763 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_From_int((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19764 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_From_int((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19765 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_From_int((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19766 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_OMAN)); | |
19767 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_From_int((int)wxLANGUAGE_ARABIC_QATAR)); | |
19768 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19769 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_From_int((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19770 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19771 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_From_int((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19772 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_From_int((int)wxLANGUAGE_ARABIC_UAE)); | |
19773 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_From_int((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19774 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_From_int((int)wxLANGUAGE_ARMENIAN)); | |
19775 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_From_int((int)wxLANGUAGE_ASSAMESE)); | |
19776 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_From_int((int)wxLANGUAGE_AYMARA)); | |
19777 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_From_int((int)wxLANGUAGE_AZERI)); | |
19778 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19779 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_From_int((int)wxLANGUAGE_AZERI_LATIN)); | |
19780 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_From_int((int)wxLANGUAGE_BASHKIR)); | |
19781 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_From_int((int)wxLANGUAGE_BASQUE)); | |
19782 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_From_int((int)wxLANGUAGE_BELARUSIAN)); | |
19783 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_From_int((int)wxLANGUAGE_BENGALI)); | |
19784 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_From_int((int)wxLANGUAGE_BHUTANI)); | |
19785 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_From_int((int)wxLANGUAGE_BIHARI)); | |
19786 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_From_int((int)wxLANGUAGE_BISLAMA)); | |
19787 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_From_int((int)wxLANGUAGE_BRETON)); | |
19788 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_From_int((int)wxLANGUAGE_BULGARIAN)); | |
19789 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_From_int((int)wxLANGUAGE_BURMESE)); | |
19790 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_From_int((int)wxLANGUAGE_CAMBODIAN)); | |
19791 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_From_int((int)wxLANGUAGE_CATALAN)); | |
19792 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_From_int((int)wxLANGUAGE_CHINESE)); | |
19793 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_From_int((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19794 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_From_int((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19795 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_From_int((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19796 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_From_int((int)wxLANGUAGE_CHINESE_MACAU)); | |
19797 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_From_int((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19798 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_From_int((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19799 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_From_int((int)wxLANGUAGE_CORSICAN)); | |
19800 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_From_int((int)wxLANGUAGE_CROATIAN)); | |
19801 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_From_int((int)wxLANGUAGE_CZECH)); | |
19802 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_From_int((int)wxLANGUAGE_DANISH)); | |
19803 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_From_int((int)wxLANGUAGE_DUTCH)); | |
19804 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19805 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_From_int((int)wxLANGUAGE_ENGLISH)); | |
19806 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_UK)); | |
19807 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_From_int((int)wxLANGUAGE_ENGLISH_US)); | |
19808 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19809 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19810 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19811 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19812 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_From_int((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19813 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_From_int((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19814 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19815 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19816 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_From_int((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19817 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_From_int((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19818 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_From_int((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19819 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_From_int((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19820 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_From_int((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19821 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_From_int((int)wxLANGUAGE_ESPERANTO)); | |
19822 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_From_int((int)wxLANGUAGE_ESTONIAN)); | |
19823 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_From_int((int)wxLANGUAGE_FAEROESE)); | |
19824 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_From_int((int)wxLANGUAGE_FARSI)); | |
19825 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_From_int((int)wxLANGUAGE_FIJI)); | |
19826 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_From_int((int)wxLANGUAGE_FINNISH)); | |
19827 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_From_int((int)wxLANGUAGE_FRENCH)); | |
19828 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19829 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_From_int((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19830 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19831 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_From_int((int)wxLANGUAGE_FRENCH_MONACO)); | |
19832 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_From_int((int)wxLANGUAGE_FRENCH_SWISS)); | |
19833 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_From_int((int)wxLANGUAGE_FRISIAN)); | |
19834 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_From_int((int)wxLANGUAGE_GALICIAN)); | |
19835 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_From_int((int)wxLANGUAGE_GEORGIAN)); | |
19836 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_From_int((int)wxLANGUAGE_GERMAN)); | |
19837 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_From_int((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19838 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_From_int((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19839 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_From_int((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19840 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_From_int((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19841 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_From_int((int)wxLANGUAGE_GERMAN_SWISS)); | |
19842 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_From_int((int)wxLANGUAGE_GREEK)); | |
19843 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_From_int((int)wxLANGUAGE_GREENLANDIC)); | |
19844 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_From_int((int)wxLANGUAGE_GUARANI)); | |
19845 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_From_int((int)wxLANGUAGE_GUJARATI)); | |
19846 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_From_int((int)wxLANGUAGE_HAUSA)); | |
19847 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_From_int((int)wxLANGUAGE_HEBREW)); | |
19848 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_From_int((int)wxLANGUAGE_HINDI)); | |
19849 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_From_int((int)wxLANGUAGE_HUNGARIAN)); | |
19850 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_From_int((int)wxLANGUAGE_ICELANDIC)); | |
19851 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_From_int((int)wxLANGUAGE_INDONESIAN)); | |
19852 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_From_int((int)wxLANGUAGE_INTERLINGUA)); | |
19853 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_From_int((int)wxLANGUAGE_INTERLINGUE)); | |
19854 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_From_int((int)wxLANGUAGE_INUKTITUT)); | |
19855 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_From_int((int)wxLANGUAGE_INUPIAK)); | |
19856 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_From_int((int)wxLANGUAGE_IRISH)); | |
19857 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_From_int((int)wxLANGUAGE_ITALIAN)); | |
19858 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_From_int((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19859 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_From_int((int)wxLANGUAGE_JAPANESE)); | |
19860 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_From_int((int)wxLANGUAGE_JAVANESE)); | |
19861 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_From_int((int)wxLANGUAGE_KANNADA)); | |
19862 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_From_int((int)wxLANGUAGE_KASHMIRI)); | |
19863 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_From_int((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19864 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_From_int((int)wxLANGUAGE_KAZAKH)); | |
19865 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_From_int((int)wxLANGUAGE_KERNEWEK)); | |
19866 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_From_int((int)wxLANGUAGE_KINYARWANDA)); | |
19867 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_From_int((int)wxLANGUAGE_KIRGHIZ)); | |
19868 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_From_int((int)wxLANGUAGE_KIRUNDI)); | |
19869 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_From_int((int)wxLANGUAGE_KONKANI)); | |
19870 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_From_int((int)wxLANGUAGE_KOREAN)); | |
19871 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_From_int((int)wxLANGUAGE_KURDISH)); | |
19872 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_From_int((int)wxLANGUAGE_LAOTHIAN)); | |
19873 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_From_int((int)wxLANGUAGE_LATIN)); | |
19874 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_From_int((int)wxLANGUAGE_LATVIAN)); | |
19875 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_From_int((int)wxLANGUAGE_LINGALA)); | |
19876 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_From_int((int)wxLANGUAGE_LITHUANIAN)); | |
19877 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_From_int((int)wxLANGUAGE_MACEDONIAN)); | |
19878 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_From_int((int)wxLANGUAGE_MALAGASY)); | |
19879 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_From_int((int)wxLANGUAGE_MALAY)); | |
19880 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_From_int((int)wxLANGUAGE_MALAYALAM)); | |
19881 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_From_int((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19882 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_From_int((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19883 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_From_int((int)wxLANGUAGE_MALTESE)); | |
19884 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_From_int((int)wxLANGUAGE_MANIPURI)); | |
19885 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_From_int((int)wxLANGUAGE_MAORI)); | |
19886 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_From_int((int)wxLANGUAGE_MARATHI)); | |
19887 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_From_int((int)wxLANGUAGE_MOLDAVIAN)); | |
19888 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_From_int((int)wxLANGUAGE_MONGOLIAN)); | |
19889 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_From_int((int)wxLANGUAGE_NAURU)); | |
19890 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_From_int((int)wxLANGUAGE_NEPALI)); | |
19891 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_From_int((int)wxLANGUAGE_NEPALI_INDIA)); | |
19892 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19893 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_From_int((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19894 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_From_int((int)wxLANGUAGE_OCCITAN)); | |
19895 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_From_int((int)wxLANGUAGE_ORIYA)); | |
19896 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_From_int((int)wxLANGUAGE_OROMO)); | |
19897 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_From_int((int)wxLANGUAGE_PASHTO)); | |
19898 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_From_int((int)wxLANGUAGE_POLISH)); | |
19899 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE)); | |
19900 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_From_int((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19901 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_From_int((int)wxLANGUAGE_PUNJABI)); | |
19902 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_From_int((int)wxLANGUAGE_QUECHUA)); | |
19903 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_From_int((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19904 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_From_int((int)wxLANGUAGE_ROMANIAN)); | |
19905 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_From_int((int)wxLANGUAGE_RUSSIAN)); | |
19906 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_From_int((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19907 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_From_int((int)wxLANGUAGE_SAMOAN)); | |
19908 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_From_int((int)wxLANGUAGE_SANGHO)); | |
19909 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_From_int((int)wxLANGUAGE_SANSKRIT)); | |
19910 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_From_int((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19911 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_From_int((int)wxLANGUAGE_SERBIAN)); | |
19912 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19913 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_From_int((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19914 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_From_int((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19915 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_From_int((int)wxLANGUAGE_SESOTHO)); | |
19916 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_From_int((int)wxLANGUAGE_SETSWANA)); | |
19917 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_From_int((int)wxLANGUAGE_SHONA)); | |
19918 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_From_int((int)wxLANGUAGE_SINDHI)); | |
19919 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_From_int((int)wxLANGUAGE_SINHALESE)); | |
19920 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_From_int((int)wxLANGUAGE_SISWATI)); | |
19921 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_From_int((int)wxLANGUAGE_SLOVAK)); | |
19922 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_From_int((int)wxLANGUAGE_SLOVENIAN)); | |
19923 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_From_int((int)wxLANGUAGE_SOMALI)); | |
19924 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_From_int((int)wxLANGUAGE_SPANISH)); | |
19925 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_From_int((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19926 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19927 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_From_int((int)wxLANGUAGE_SPANISH_CHILE)); | |
19928 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19929 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_From_int((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19930 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_From_int((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19931 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19932 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_From_int((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19933 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_From_int((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19934 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_From_int((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19935 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19936 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_From_int((int)wxLANGUAGE_SPANISH_MODERN)); | |
19937 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_From_int((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19938 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_From_int((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19939 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19940 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_From_int((int)wxLANGUAGE_SPANISH_PERU)); | |
19941 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_From_int((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19942 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_From_int((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19943 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_From_int((int)wxLANGUAGE_SPANISH_US)); | |
19944 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_From_int((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19945 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_From_int((int)wxLANGUAGE_SUNDANESE)); | |
19946 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_From_int((int)wxLANGUAGE_SWAHILI)); | |
19947 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_From_int((int)wxLANGUAGE_SWEDISH)); | |
19948 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_From_int((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19949 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_From_int((int)wxLANGUAGE_TAGALOG)); | |
19950 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_From_int((int)wxLANGUAGE_TAJIK)); | |
19951 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_From_int((int)wxLANGUAGE_TAMIL)); | |
19952 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_From_int((int)wxLANGUAGE_TATAR)); | |
19953 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_From_int((int)wxLANGUAGE_TELUGU)); | |
19954 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_From_int((int)wxLANGUAGE_THAI)); | |
19955 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_From_int((int)wxLANGUAGE_TIBETAN)); | |
19956 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_From_int((int)wxLANGUAGE_TIGRINYA)); | |
19957 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_From_int((int)wxLANGUAGE_TONGA)); | |
19958 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_From_int((int)wxLANGUAGE_TSONGA)); | |
19959 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_From_int((int)wxLANGUAGE_TURKISH)); | |
19960 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_From_int((int)wxLANGUAGE_TURKMEN)); | |
19961 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_From_int((int)wxLANGUAGE_TWI)); | |
19962 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_From_int((int)wxLANGUAGE_UIGHUR)); | |
19963 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_From_int((int)wxLANGUAGE_UKRAINIAN)); | |
19964 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_From_int((int)wxLANGUAGE_URDU)); | |
19965 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_From_int((int)wxLANGUAGE_URDU_INDIA)); | |
19966 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_From_int((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19967 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_From_int((int)wxLANGUAGE_UZBEK)); | |
19968 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_From_int((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19969 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_From_int((int)wxLANGUAGE_UZBEK_LATIN)); | |
19970 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_From_int((int)wxLANGUAGE_VIETNAMESE)); | |
19971 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_From_int((int)wxLANGUAGE_VOLAPUK)); | |
19972 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_From_int((int)wxLANGUAGE_WELSH)); | |
19973 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_From_int((int)wxLANGUAGE_WOLOF)); | |
19974 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_From_int((int)wxLANGUAGE_XHOSA)); | |
19975 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_From_int((int)wxLANGUAGE_YIDDISH)); | |
19976 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_From_int((int)wxLANGUAGE_YORUBA)); | |
19977 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_From_int((int)wxLANGUAGE_ZHUANG)); | |
19978 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_From_int((int)wxLANGUAGE_ZULU)); | |
19979 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_From_int((int)wxLANGUAGE_USER_DEFINED)); | |
19980 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_From_int((int)wxLOCALE_CAT_NUMBER)); | |
19981 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_From_int((int)wxLOCALE_CAT_DATE)); | |
19982 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_From_int((int)wxLOCALE_CAT_MONEY)); | |
19983 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_From_int((int)wxLOCALE_CAT_MAX)); | |
19984 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_From_int((int)wxLOCALE_THOUSANDS_SEP)); | |
19985 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_From_int((int)wxLOCALE_DECIMAL_POINT)); | |
19986 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_From_int((int)wxLOCALE_LOAD_DEFAULT)); | |
19987 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_From_int((int)wxLOCALE_CONV_ENCODING)); | |
19988 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_From_int((int)wxCONVERT_STRICT)); | |
19989 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_From_int((int)wxCONVERT_SUBSTITUTE)); | |
19990 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_From_int((int)wxPLATFORM_CURRENT)); | |
19991 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_From_int((int)wxPLATFORM_UNIX)); | |
19992 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_From_int((int)wxPLATFORM_WINDOWS)); | |
19993 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_From_int((int)wxPLATFORM_OS2)); | |
19994 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_From_int((int)wxPLATFORM_MAC)); | |
19995 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_From_int((int)wxIMAGELIST_DRAW_NORMAL)); | |
19996 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_From_int((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19997 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_From_int((int)wxIMAGELIST_DRAW_SELECTED)); | |
19998 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_From_int((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19999 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_From_int((int)wxIMAGE_LIST_NORMAL)); | |
20000 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_From_int((int)wxIMAGE_LIST_SMALL)); | |
20001 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_From_int((int)wxIMAGE_LIST_STATE)); | |
20002 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
20003 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20004 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20005 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20006 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20007 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20008 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20009 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20010 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20011 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20012 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20013 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20014 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20015 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20016 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20017 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20018 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20019 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20020 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20021 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20022 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20023 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20024 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20025 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20026 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20027 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20028 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20029 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20030 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20031 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20032 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20033 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20034 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20035 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20036 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20037 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20038 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20039 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20040 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20041 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20042 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20043 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20044 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20045 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20046 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20047 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20048 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
20049 | ||
20050 | // Work around a chicken/egg problem in drawlist.cpp | |
20051 | wxPyDrawList_SetAPIPtr(); | |
20052 | ||
20053 | } | |
20054 |