]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
f0983263 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
83448d71 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
8edf1c75 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
f0983263 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
423f194a | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
423f194a RD |
210 | #define SWIGTYPE_p_wxBrush swig_types[1] |
211 | #define SWIGTYPE_p_wxColour swig_types[2] | |
212 | #define SWIGTYPE_p_wxDC swig_types[3] | |
213 | #define SWIGTYPE_p_wxMirrorDC swig_types[4] | |
214 | #define SWIGTYPE_p_byte swig_types[5] | |
215 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6] | |
8edf1c75 RD |
216 | #define SWIGTYPE_p_char swig_types[7] |
217 | #define SWIGTYPE_p_wxIconLocation swig_types[8] | |
218 | #define SWIGTYPE_p_wxImage swig_types[9] | |
219 | #define SWIGTYPE_p_wxMetaFileDC swig_types[10] | |
220 | #define SWIGTYPE_p_wxMask swig_types[11] | |
221 | #define SWIGTYPE_p_wxFont swig_types[12] | |
222 | #define SWIGTYPE_p_wxWindow swig_types[13] | |
223 | #define SWIGTYPE_p_wxSize swig_types[14] | |
224 | #define SWIGTYPE_p_double swig_types[15] | |
225 | #define SWIGTYPE_p_wxMemoryDC swig_types[16] | |
226 | #define SWIGTYPE_p_wxFontMapper swig_types[17] | |
227 | #define SWIGTYPE_p_wxEffects swig_types[18] | |
228 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] | |
229 | #define SWIGTYPE_p_wxPalette swig_types[20] | |
230 | #define SWIGTYPE_p_wxBitmap swig_types[21] | |
231 | #define SWIGTYPE_p_wxObject swig_types[22] | |
232 | #define SWIGTYPE_p_wxRegionIterator swig_types[23] | |
233 | #define SWIGTYPE_p_wxRect swig_types[24] | |
234 | #define SWIGTYPE_p_wxString swig_types[25] | |
235 | #define SWIGTYPE_p_wxPrinterDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxIconBundle swig_types[27] | |
237 | #define SWIGTYPE_p_wxPoint swig_types[28] | |
238 | #define SWIGTYPE_p_wxDash swig_types[29] | |
239 | #define SWIGTYPE_p_wxScreenDC swig_types[30] | |
240 | #define SWIGTYPE_p_wxCursor swig_types[31] | |
241 | #define SWIGTYPE_p_wxClientDC swig_types[32] | |
242 | #define SWIGTYPE_p_wxBufferedDC swig_types[33] | |
243 | #define SWIGTYPE_p_wxImageList swig_types[34] | |
244 | #define SWIGTYPE_p_unsigned_char swig_types[35] | |
245 | #define SWIGTYPE_p_wxGDIObject swig_types[36] | |
423f194a | 246 | #define SWIGTYPE_p_wxIcon swig_types[37] |
8edf1c75 RD |
247 | #define SWIGTYPE_p_wxLocale swig_types[38] |
248 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
249 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] | |
250 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
251 | #define SWIGTYPE_p_wxWindowDC swig_types[42] | |
252 | #define SWIGTYPE_p_wxPrintData swig_types[43] | |
253 | #define SWIGTYPE_p_wxBrushList swig_types[44] | |
254 | #define SWIGTYPE_p_wxFontList swig_types[45] | |
255 | #define SWIGTYPE_p_wxPen swig_types[46] | |
256 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47] | |
257 | #define SWIGTYPE_p_wxPaintDC swig_types[48] | |
258 | #define SWIGTYPE_p_wxPenList swig_types[49] | |
259 | #define SWIGTYPE_p_wxPyPen swig_types[50] | |
260 | #define SWIGTYPE_p_int swig_types[51] | |
261 | #define SWIGTYPE_p_wxMetaFile swig_types[52] | |
262 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[53] | |
263 | #define SWIGTYPE_p_wxEncodingConverter swig_types[54] | |
264 | #define SWIGTYPE_p_wxColourDatabase swig_types[55] | |
265 | static swig_type_info *swig_types[57]; | |
d14a1e28 RD |
266 | |
267 | /* -------- TYPES TABLE (END) -------- */ | |
268 | ||
269 | ||
270 | /*----------------------------------------------- | |
271 | @(target):= _gdi.so | |
272 | ------------------------------------------------*/ | |
273 | #define SWIG_init init_gdi | |
274 | ||
275 | #define SWIG_name "_gdi" | |
276 | ||
2f4c0a16 | 277 | /* Auxiliar swig macros */ |
8edf1c75 | 278 | |
8edf1c75 | 279 | #ifdef __cplusplus |
2f4c0a16 | 280 | #define SWIGSTATICINLINE(a) static inline a |
8edf1c75 | 281 | #define SWIGSTATIC(a) static a |
2f4c0a16 RD |
282 | #define swig_new_array(type, size) (new type[(size)]) |
283 | #define swig_delete_array(cptr) delete[] cptr | |
284 | #define swig_const_cast(type,a) const_cast<type>(a) | |
285 | #define swig_static_cast(type,a) static_cast<type>(a) | |
286 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
8edf1c75 | 287 | |
8edf1c75 | 288 | #ifdef HAVE_NUMERIC_CAST |
2f4c0a16 | 289 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
8edf1c75 | 290 | #else |
2f4c0a16 | 291 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
8edf1c75 RD |
292 | #endif |
293 | ||
2f4c0a16 RD |
294 | #else /* C case */ |
295 | ||
296 | #define SWIGSTATICINLINE(a) static a | |
297 | #define SWIGSTATIC(a) static a | |
298 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
299 | #define swig_delete_array(cptr) free((char*)cptr) | |
300 | #define swig_const_cast(type,a) (type)(a) | |
301 | #define swig_static_cast(type,a) (type)(a) | |
302 | #define swig_reinterpret_cast(type,a) (type)(a) | |
303 | #define swig_numeric_cast(type,a) (type)(a) | |
304 | ||
305 | #endif /* __cplusplus */ | |
8edf1c75 RD |
306 | |
307 | ||
2f4c0a16 RD |
308 | #define SWIG_FromSignedChar PyInt_FromLong |
309 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
310 | #define SWIG_FromShort PyInt_FromLong | |
311 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
312 | #define SWIG_FromInt PyInt_FromLong | |
313 | #define SWIG_FromLong PyInt_FromLong | |
314 | #define SWIG_FromFloat PyFloat_FromDouble | |
315 | #define SWIG_FromDouble PyFloat_FromDouble | |
316 | #define SWIG_FromFloat PyFloat_FromDouble | |
317 | #define SWIG_FromDouble PyFloat_FromDouble | |
8edf1c75 RD |
318 | |
319 | ||
d14a1e28 RD |
320 | #include "wx/wxPython/wxPython.h" |
321 | #include "wx/wxPython/pyclasses.h" | |
322 | ||
d14a1e28 | 323 | |
d03fd34d | 324 | static const wxString wxPyEmptyString(wxEmptyString); |
8edf1c75 | 325 | |
2f4c0a16 RD |
326 | SWIGSTATICINLINE(bool) |
327 | SWIG_AsBool(PyObject *obj) | |
8edf1c75 RD |
328 | { |
329 | return PyObject_IsTrue(obj) ? true : false; | |
330 | } | |
331 | ||
332 | ||
2f4c0a16 RD |
333 | SWIGSTATICINLINE(int) |
334 | SWIG_CheckBool(PyObject* obj) | |
335 | { | |
336 | SWIG_AsBool(obj); | |
337 | if (PyErr_Occurred()) { | |
338 | PyErr_Clear(); | |
339 | return 0; | |
340 | } else { | |
341 | return 1; | |
342 | } | |
343 | } | |
344 | ||
345 | ||
346 | #include <limits.h> | |
347 | ||
348 | ||
349 | SWIGSTATICINLINE(unsigned long) | |
350 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
351 | unsigned long max_value) | |
352 | { | |
353 | if (!PyErr_Occurred()) { | |
354 | if (value > max_value) { | |
355 | PyObject *err = | |
356 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
357 | value, type, max_value); | |
358 | PyErr_SetObject(PyExc_OverflowError, err); | |
359 | Py_DECREF(err); | |
360 | } | |
361 | } | |
362 | return value; | |
363 | } | |
364 | ||
365 | ||
366 | SWIGSTATICINLINE(unsigned long) | |
367 | SWIG_AsUnsignedLong(PyObject * obj) | |
368 | { | |
369 | if (PyLong_Check(obj)) { | |
370 | return PyLong_AsUnsignedLong(obj); | |
371 | } else { | |
372 | long i = PyInt_AsLong(obj); | |
373 | if ( !PyErr_Occurred() && (i < 0)) { | |
374 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
375 | } | |
376 | return i; | |
377 | } | |
378 | } | |
379 | ||
380 | ||
381 | SWIGSTATICINLINE(unsigned char) | |
382 | SWIG_AsUnsignedChar(PyObject *obj) | |
8edf1c75 | 383 | { |
2f4c0a16 RD |
384 | return swig_numeric_cast(unsigned char, |
385 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
386 | "unsigned char", UCHAR_MAX)); | |
387 | } | |
388 | ||
389 | ||
390 | SWIGSTATICINLINE(int) | |
391 | SWIG_CheckUnsignedChar(PyObject* obj) | |
392 | { | |
393 | SWIG_AsUnsignedChar(obj); | |
394 | if (PyErr_Occurred()) { | |
395 | PyErr_Clear(); | |
396 | return 0; | |
397 | } else { | |
398 | return 1; | |
399 | } | |
400 | } | |
401 | ||
402 | ||
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_CheckUnsignedLong(PyObject* obj) | |
405 | { | |
406 | SWIG_AsUnsignedLong(obj); | |
407 | if (PyErr_Occurred()) { | |
408 | PyErr_Clear(); | |
409 | return 0; | |
410 | } else { | |
411 | return 1; | |
412 | } | |
8edf1c75 RD |
413 | } |
414 | ||
d14a1e28 RD |
415 | PyObject *wxColour_Get(wxColour *self){ |
416 | PyObject* rv = PyTuple_New(3); | |
417 | int red = -1; | |
418 | int green = -1; | |
419 | int blue = -1; | |
420 | if (self->Ok()) { | |
421 | red = self->Red(); | |
422 | green = self->Green(); | |
423 | blue = self->Blue(); | |
424 | } | |
425 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
426 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
427 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
428 | return rv; | |
429 | } | |
328fcd84 RD |
430 | unsigned long wxColour_GetRGB(wxColour *self){ |
431 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
432 | } | |
433 | ||
2f4c0a16 RD |
434 | SWIGSTATICINLINE(PyObject* ) |
435 | SWIG_FromUnsignedLong(unsigned long value) | |
436 | { | |
437 | return (value > LONG_MAX) ? | |
438 | PyLong_FromUnsignedLong(value) | |
439 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
440 | } | |
441 | ||
442 | ||
443 | SWIGSTATICINLINE(long) | |
444 | SWIG_CheckLongInRange(long value, const char* type, | |
445 | long min_value, long max_value) | |
446 | { | |
447 | if (!PyErr_Occurred()) { | |
448 | if (value < min_value) { | |
449 | PyObject *err = | |
450 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
451 | value, type, min_value); | |
452 | ||
453 | PyErr_SetObject(PyExc_OverflowError, err); | |
454 | Py_DECREF(err); | |
455 | } else if (value > max_value) { | |
456 | PyObject *err = | |
457 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
458 | value, type, max_value); | |
459 | PyErr_SetObject(PyExc_OverflowError, err); | |
460 | Py_DECREF(err); | |
461 | } | |
462 | } | |
463 | return value; | |
464 | } | |
465 | ||
466 | ||
467 | SWIGSTATICINLINE(long) | |
468 | SWIG_AsLong(PyObject * obj) | |
328fcd84 | 469 | { |
2f4c0a16 | 470 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); |
328fcd84 RD |
471 | } |
472 | ||
d14a1e28 | 473 | |
2f4c0a16 RD |
474 | #if INT_MAX != LONG_MAX |
475 | SWIGSTATICINLINE(int) | |
476 | SWIG_AsInt(PyObject *obj) | |
8edf1c75 | 477 | { |
2f4c0a16 RD |
478 | return swig_numeric_cast(int, |
479 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
480 | "int", INT_MIN, INT_MAX)); | |
481 | } | |
482 | #else | |
483 | #define SWIG_AsInt SWIG_AsLong | |
484 | #endif | |
485 | ||
486 | ||
487 | SWIGSTATICINLINE(int) | |
488 | SWIG_CheckInt(PyObject* obj) | |
489 | { | |
490 | SWIG_AsInt(obj); | |
491 | if (PyErr_Occurred()) { | |
492 | PyErr_Clear(); | |
493 | return 0; | |
494 | } else { | |
495 | return 1; | |
496 | } | |
8edf1c75 RD |
497 | } |
498 | ||
499 | ||
d14a1e28 RD |
500 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
501 | PyObject* o2; | |
502 | PyObject* o3; | |
503 | ||
504 | if (!target) { | |
505 | target = o; | |
506 | } else if (target == Py_None) { | |
507 | Py_DECREF(Py_None); | |
508 | target = o; | |
509 | } else { | |
510 | if (!PyTuple_Check(target)) { | |
511 | o2 = target; | |
512 | target = PyTuple_New(1); | |
513 | PyTuple_SetItem(target, 0, o2); | |
514 | } | |
515 | o3 = PyTuple_New(1); | |
516 | PyTuple_SetItem(o3, 0, o); | |
517 | ||
518 | o2 = target; | |
519 | target = PySequence_Concat(o2, o3); | |
520 | Py_DECREF(o2); | |
521 | Py_DECREF(o3); | |
522 | } | |
523 | return target; | |
524 | } | |
525 | ||
526 | PyObject *wxPen_GetDashes(wxPen *self){ | |
527 | wxDash* dashes; | |
528 | int count = self->GetDashes(&dashes); | |
4f89f6a3 | 529 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
530 | PyObject* retval = PyList_New(0); |
531 | for (int x=0; x<count; x++) | |
532 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
4f89f6a3 | 533 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
534 | return retval; |
535 | } | |
328fcd84 RD |
536 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; } |
537 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
538 | |
539 | wxPyPen::~wxPyPen() | |
540 | { | |
541 | if (m_dash) | |
542 | delete [] m_dash; | |
543 | } | |
544 | ||
545 | void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash) | |
546 | { | |
547 | if (m_dash) | |
548 | delete [] m_dash; | |
549 | m_dash = new wxDash[nb_dashes]; | |
550 | for (int i=0; i<nb_dashes; i++) { | |
551 | m_dash[i] = dash[i]; | |
552 | } | |
553 | wxPen::SetDashes(nb_dashes, m_dash); | |
554 | } | |
555 | ||
556 | ||
557 | #include <wx/image.h> | |
558 | ||
559 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
560 | char** cArray = NULL; | |
561 | int count; | |
562 | ||
563 | if (!PyList_Check(listOfStrings)) { | |
564 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
565 | return NULL; | |
566 | } | |
567 | count = PyList_Size(listOfStrings); | |
568 | cArray = new char*[count]; | |
569 | ||
570 | for(int x=0; x<count; x++) { | |
571 | // TODO: Need some validation and error checking here | |
572 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
573 | } | |
574 | return cArray; | |
575 | } | |
576 | ||
577 | ||
578 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
579 | char** cArray = NULL; | |
580 | wxBitmap* bmp; | |
581 | ||
582 | cArray = ConvertListOfStrings(listOfStrings); | |
583 | if (! cArray) | |
584 | return NULL; | |
585 | bmp = new wxBitmap(cArray); | |
586 | delete [] cArray; | |
587 | return bmp; | |
588 | } | |
589 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
590 | char* buf; | |
591 | int length; | |
592 | PyString_AsStringAndSize(bits, &buf, &length); | |
593 | return new wxBitmap(buf, width, height, depth); | |
594 | } | |
8edf1c75 | 595 | |
2f4c0a16 RD |
596 | SWIGSTATICINLINE(int) |
597 | SWIG_CheckLong(PyObject* obj) | |
8edf1c75 | 598 | { |
2f4c0a16 RD |
599 | SWIG_AsLong(obj); |
600 | if (PyErr_Occurred()) { | |
601 | PyErr_Clear(); | |
602 | return 0; | |
603 | } else { | |
604 | return 1; | |
605 | } | |
8edf1c75 RD |
606 | } |
607 | ||
2f4c0a16 | 608 | void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d14a1e28 RD |
609 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
610 | wxMask *mask = new wxMask(*self, colour); | |
611 | self->SetMask(mask); | |
612 | } | |
fe763115 RD |
613 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; } |
614 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; } | |
0ffb2aa6 RD |
615 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
616 | if ( !colour.Ok() ) | |
617 | return new wxMask(bitmap, *wxBLACK); | |
618 | else | |
619 | return new wxMask(bitmap, colour); | |
620 | } | |
d14a1e28 RD |
621 | |
622 | #include <wx/iconbndl.h> | |
623 | ||
624 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
625 | wxIcon* icon = new wxIcon(); | |
626 | icon->CopyFromBitmap(bmp); | |
627 | return icon; | |
628 | } | |
629 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
630 | char** cArray = NULL; | |
631 | wxIcon* icon; | |
632 | ||
633 | cArray = ConvertListOfStrings(listOfStrings); | |
634 | if (! cArray) | |
635 | return NULL; | |
636 | icon = new wxIcon(cArray); | |
637 | delete [] cArray; | |
638 | return icon; | |
639 | } | |
2f4c0a16 | 640 | void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d14a1e28 RD |
641 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ |
642 | ||
643 | return new wxIconLocation(*filename, num); | |
644 | ||
645 | ||
646 | ||
647 | } | |
648 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
649 | ||
650 | self->SetIndex(num); | |
651 | ||
652 | ||
653 | ||
654 | } | |
655 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
656 | ||
657 | return self->GetIndex(); | |
658 | ||
659 | ||
660 | ||
661 | } | |
2f4c0a16 RD |
662 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ |
663 | #ifdef __WXGTK__ | |
664 | wxCHECK_MSG(False, NULL, | |
665 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); | |
666 | #else | |
667 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
668 | #endif | |
d14a1e28 | 669 | } |
2f4c0a16 | 670 | void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d14a1e28 RD |
671 | |
672 | ||
673 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
674 | (*self) ++; | |
675 | } | |
676 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
677 | return self->operator bool(); | |
678 | } | |
679 | ||
680 | #include <wx/fontutil.h> | |
681 | #include <wx/fontmap.h> | |
682 | #include <wx/fontenum.h> | |
683 | ||
684 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
685 | return self->ToString(); | |
686 | } | |
687 | ||
688 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
cbd72d4f | 689 | { wxPyRaiseNotImplemented(); return NULL; } |
d14a1e28 RD |
690 | |
691 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
cbd72d4f | 692 | { wxPyRaiseNotImplemented(); return False; } |
d14a1e28 RD |
693 | |
694 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
695 | wxFontEncoding alt_enc; | |
696 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
697 | return PyInt_FromLong(alt_enc); | |
698 | else { | |
699 | Py_INCREF(Py_None); | |
700 | return Py_None; | |
701 | } | |
702 | } | |
703 | wxFont *new_wxFont(wxString const &info){ | |
704 | wxNativeFontInfo nfi; | |
705 | nfi.FromString(info); | |
706 | return new wxFont(nfi); | |
707 | } | |
708 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
709 | return wxFont::New(pointSize, family, flags, face, encoding); | |
710 | } | |
328fcd84 RD |
711 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
712 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
713 | |
714 | class wxPyFontEnumerator : public wxFontEnumerator { | |
715 | public: | |
716 | wxPyFontEnumerator() {} | |
717 | ~wxPyFontEnumerator() {} | |
718 | ||
719 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
720 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
721 | ||
722 | PYPRIVATE; | |
723 | }; | |
724 | ||
725 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
726 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
727 | ||
728 | ||
729 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
730 | wxArrayString* arr = self->GetEncodings(); | |
731 | return wxArrayString2PyList_helper(*arr); | |
732 | } | |
733 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
734 | wxArrayString* arr = self->GetFacenames(); | |
735 | return wxArrayString2PyList_helper(*arr); | |
736 | } | |
737 | ||
738 | ||
739 | ||
740 | #include "wx/wxPython/pydrawxxx.h" | |
741 | ||
423f194a | 742 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
743 | wxColour col; |
744 | self->GetPixel(x, y, &col); | |
745 | return col; | |
746 | } | |
747 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
748 | wxColour col; | |
749 | self->GetPixel(pt, &col); | |
750 | return col; | |
751 | } | |
8edf1c75 | 752 | |
2f4c0a16 RD |
753 | SWIGSTATICINLINE(double) |
754 | SWIG_AsDouble(PyObject *obj) | |
8edf1c75 | 755 | { |
2f4c0a16 | 756 | double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : |
8edf1c75 | 757 | #if HAVE_LONG_LONG |
2f4c0a16 | 758 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); |
8edf1c75 | 759 | #else |
2f4c0a16 | 760 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); |
8edf1c75 RD |
761 | #endif |
762 | if (PyErr_Occurred()) { | |
763 | PyErr_Clear(); | |
764 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
765 | } | |
2f4c0a16 RD |
766 | return val; |
767 | } | |
768 | ||
769 | ||
770 | SWIGSTATICINLINE(int) | |
771 | SWIG_CheckDouble(PyObject* obj) | |
772 | { | |
773 | SWIG_AsDouble(obj); | |
774 | if (PyErr_Occurred()) { | |
775 | PyErr_Clear(); | |
776 | return 0; | |
777 | } else { | |
778 | return 1; | |
779 | } | |
8edf1c75 RD |
780 | } |
781 | ||
d14a1e28 RD |
782 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
783 | wxRect rv; | |
784 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
785 | return rv; | |
786 | } | |
787 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
788 | wxRect rect; | |
789 | self->GetClippingBox(rect); | |
790 | return rect; | |
791 | } | |
db914595 RD |
792 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
793 | wxArrayInt widths; | |
794 | self->GetPartialTextExtents(text, widths); | |
795 | return widths; | |
796 | } | |
d14a1e28 RD |
797 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
798 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
799 | } | |
800 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
801 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
802 | } | |
803 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
804 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
805 | } | |
806 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
807 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
808 | } | |
809 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
810 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
811 | } | |
812 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
813 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
814 | } | |
815 | ||
816 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
817 | *x1 = dc->MinX(); | |
818 | *y1 = dc->MinY(); | |
819 | *x2 = dc->MaxX(); | |
820 | *y2 = dc->MaxY(); | |
821 | } | |
822 | ||
823 | ||
328fcd84 | 824 | //-=-=-=-=-=-=-=-=-=-=- |
2f4c0a16 RD |
825 | |
826 | #if 1 | |
827 | // Use the standard wxBufferedDC | |
328fcd84 | 828 | #include <wx/dcbuffer.h> |
328fcd84 | 829 | |
2f4c0a16 | 830 | #else |
328fcd84 | 831 | |
2f4c0a16 | 832 | // Or, temporarily put a set of classes here similar to the old buffered DC |
328fcd84 RD |
833 | // classes until the real ones can be fixed to work "correctly" again. |
834 | ||
835 | class wxBufferedDC : public wxMemoryDC | |
836 | { | |
837 | private: | |
838 | wxDC *m_dc; | |
839 | wxBitmap m_buffer; | |
840 | ||
841 | public: | |
842 | ||
843 | wxBufferedDC() : m_dc( 0 ) {} | |
844 | ||
845 | wxBufferedDC( wxDC *dc, const wxBitmap &buffer ) | |
846 | : m_dc( dc ), m_buffer( buffer ) | |
847 | { | |
848 | SelectObject( m_buffer ); | |
849 | } | |
850 | ||
851 | wxBufferedDC( wxDC *dc, const wxSize &area ) | |
852 | : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() ) | |
853 | { | |
854 | SelectObject( m_buffer ); | |
855 | } | |
856 | ||
857 | ~wxBufferedDC() { | |
858 | if( m_dc != 0 ) | |
859 | UnMask(); | |
860 | } | |
861 | ||
862 | ||
863 | void Init( wxDC *dc, const wxBitmap &buffer ) { | |
864 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
865 | _T("wxBufferedDC already initialised") ); | |
866 | m_dc = dc; | |
867 | m_buffer = buffer; | |
868 | SelectObject( m_buffer ); | |
869 | } | |
870 | ||
871 | void Init( wxDC *dc, const wxSize &area ) { | |
872 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
873 | _T("wxBufferedDC already initialised") ); | |
874 | m_dc = dc; | |
875 | m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() ); | |
876 | SelectObject( m_buffer ); | |
877 | } | |
878 | ||
879 | void UnMask() { | |
880 | wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") ); | |
881 | m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 ); | |
882 | m_dc = 0; | |
883 | } | |
884 | }; | |
885 | ||
886 | ||
887 | class wxBufferedPaintDC : public wxBufferedDC | |
888 | { | |
889 | private: | |
890 | wxPaintDC m_paintdc; | |
891 | ||
892 | public: | |
893 | wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap ) | |
894 | : m_paintdc( window ) | |
895 | { | |
896 | window->PrepareDC( m_paintdc ); | |
897 | ||
898 | if( buffer != wxNullBitmap ) | |
899 | Init( &m_paintdc, buffer ); | |
900 | else | |
901 | Init( &m_paintdc, window->GetClientSize() ); | |
902 | } | |
903 | ||
904 | ~wxBufferedPaintDC() { | |
905 | UnMask(); | |
906 | } | |
907 | }; | |
908 | ||
909 | #endif | |
910 | //-=-=-=-=-=-=-=-=-=-=- | |
911 | ||
912 | ||
d14a1e28 RD |
913 | #include <wx/dcps.h> |
914 | ||
915 | ||
916 | #include <wx/metafile.h> | |
917 | ||
918 | ||
919 | ||
920 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
921 | self->AddColour(name, wxColour(red, green, blue)); | |
922 | } | |
923 | ||
d14a1e28 RD |
924 | #include <wx/effects.h> |
925 | ||
926 | #ifdef __cplusplus | |
927 | extern "C" { | |
928 | #endif | |
929 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
930 | PyObject *resultobj; | |
931 | wxGDIObject *result; | |
932 | char *kwnames[] = { | |
933 | NULL | |
934 | }; | |
935 | ||
936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
937 | { | |
938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
939 | result = (wxGDIObject *)new wxGDIObject(); | |
940 | ||
941 | wxPyEndAllowThreads(__tstate); | |
942 | if (PyErr_Occurred()) SWIG_fail; | |
943 | } | |
2f4c0a16 | 944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
945 | return resultobj; |
946 | fail: | |
947 | return NULL; | |
948 | } | |
949 | ||
950 | ||
951 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
952 | PyObject *resultobj; | |
953 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
954 | PyObject * obj0 = 0 ; | |
955 | char *kwnames[] = { | |
956 | (char *) "self", NULL | |
957 | }; | |
958 | ||
959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
962 | { |
963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
964 | delete arg1; | |
965 | ||
966 | wxPyEndAllowThreads(__tstate); | |
967 | if (PyErr_Occurred()) SWIG_fail; | |
968 | } | |
969 | Py_INCREF(Py_None); resultobj = Py_None; | |
970 | return resultobj; | |
971 | fail: | |
972 | return NULL; | |
973 | } | |
974 | ||
975 | ||
976 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
977 | PyObject *resultobj; | |
978 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
979 | bool result; | |
980 | PyObject * obj0 = 0 ; | |
981 | char *kwnames[] = { | |
982 | (char *) "self", NULL | |
983 | }; | |
984 | ||
985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
988 | { |
989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
990 | result = (bool)(arg1)->GetVisible(); | |
991 | ||
992 | wxPyEndAllowThreads(__tstate); | |
993 | if (PyErr_Occurred()) SWIG_fail; | |
994 | } | |
4f89f6a3 RD |
995 | { |
996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
997 | } | |
d14a1e28 RD |
998 | return resultobj; |
999 | fail: | |
1000 | return NULL; | |
1001 | } | |
1002 | ||
1003 | ||
1004 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1005 | PyObject *resultobj; | |
1006 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1007 | bool arg2 ; | |
1008 | PyObject * obj0 = 0 ; | |
1009 | PyObject * obj1 = 0 ; | |
1010 | char *kwnames[] = { | |
1011 | (char *) "self",(char *) "visible", NULL | |
1012 | }; | |
1013 | ||
1014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1017 | arg2 = (bool) SWIG_AsBool(obj1); | |
1018 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1019 | { |
1020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1021 | (arg1)->SetVisible(arg2); | |
1022 | ||
1023 | wxPyEndAllowThreads(__tstate); | |
1024 | if (PyErr_Occurred()) SWIG_fail; | |
1025 | } | |
1026 | Py_INCREF(Py_None); resultobj = Py_None; | |
1027 | return resultobj; | |
1028 | fail: | |
1029 | return NULL; | |
1030 | } | |
1031 | ||
1032 | ||
1033 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1034 | PyObject *resultobj; | |
1035 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1036 | bool result; | |
1037 | PyObject * obj0 = 0 ; | |
1038 | char *kwnames[] = { | |
1039 | (char *) "self", NULL | |
1040 | }; | |
1041 | ||
1042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1045 | { |
1046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1047 | result = (bool)(arg1)->IsNull(); | |
1048 | ||
1049 | wxPyEndAllowThreads(__tstate); | |
1050 | if (PyErr_Occurred()) SWIG_fail; | |
1051 | } | |
4f89f6a3 RD |
1052 | { |
1053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1054 | } | |
d14a1e28 RD |
1055 | return resultobj; |
1056 | fail: | |
1057 | return NULL; | |
1058 | } | |
1059 | ||
1060 | ||
1061 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
1062 | PyObject *obj; | |
1063 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1064 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1065 | Py_INCREF(obj); | |
1066 | return Py_BuildValue((char *)""); | |
1067 | } | |
1068 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1069 | PyObject *resultobj; | |
1070 | unsigned char arg1 = (unsigned char) 0 ; | |
1071 | unsigned char arg2 = (unsigned char) 0 ; | |
1072 | unsigned char arg3 = (unsigned char) 0 ; | |
1073 | wxColour *result; | |
1074 | PyObject * obj0 = 0 ; | |
1075 | PyObject * obj1 = 0 ; | |
1076 | PyObject * obj2 = 0 ; | |
1077 | char *kwnames[] = { | |
1078 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1079 | }; | |
1080 | ||
1081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1082 | if (obj0) { | |
2f4c0a16 RD |
1083 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
1084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1085 | } |
1086 | if (obj1) { | |
2f4c0a16 RD |
1087 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
1088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1089 | } |
1090 | if (obj2) { | |
2f4c0a16 RD |
1091 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
1092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1093 | } |
1094 | { | |
1095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1096 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1097 | ||
1098 | wxPyEndAllowThreads(__tstate); | |
1099 | if (PyErr_Occurred()) SWIG_fail; | |
1100 | } | |
2f4c0a16 | 1101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1102 | return resultobj; |
1103 | fail: | |
1104 | return NULL; | |
1105 | } | |
1106 | ||
1107 | ||
d14a1e28 RD |
1108 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1109 | PyObject *resultobj; | |
1110 | wxString *arg1 = 0 ; | |
1111 | wxColour *result; | |
423f194a | 1112 | bool temp1 = False ; |
d14a1e28 RD |
1113 | PyObject * obj0 = 0 ; |
1114 | char *kwnames[] = { | |
1115 | (char *) "colorName", NULL | |
1116 | }; | |
1117 | ||
1118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1119 | { | |
1120 | arg1 = wxString_in_helper(obj0); | |
1121 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1122 | temp1 = True; |
d14a1e28 RD |
1123 | } |
1124 | { | |
1125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1126 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1127 | ||
1128 | wxPyEndAllowThreads(__tstate); | |
1129 | if (PyErr_Occurred()) SWIG_fail; | |
1130 | } | |
2f4c0a16 | 1131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1132 | { |
1133 | if (temp1) | |
1134 | delete arg1; | |
1135 | } | |
1136 | return resultobj; | |
1137 | fail: | |
1138 | { | |
1139 | if (temp1) | |
1140 | delete arg1; | |
1141 | } | |
1142 | return NULL; | |
1143 | } | |
1144 | ||
1145 | ||
1146 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1147 | PyObject *resultobj; | |
1148 | unsigned long arg1 ; | |
1149 | wxColour *result; | |
1150 | PyObject * obj0 = 0 ; | |
1151 | char *kwnames[] = { | |
1152 | (char *) "colRGB", NULL | |
1153 | }; | |
1154 | ||
1155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1156 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
1157 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1158 | { |
1159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1160 | result = (wxColour *)new wxColour(arg1); | |
1161 | ||
1162 | wxPyEndAllowThreads(__tstate); | |
1163 | if (PyErr_Occurred()) SWIG_fail; | |
1164 | } | |
2f4c0a16 | 1165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1166 | return resultobj; |
1167 | fail: | |
1168 | return NULL; | |
1169 | } | |
1170 | ||
1171 | ||
328fcd84 RD |
1172 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1173 | PyObject *resultobj; | |
1174 | wxColour *arg1 = (wxColour *) 0 ; | |
1175 | PyObject * obj0 = 0 ; | |
1176 | char *kwnames[] = { | |
1177 | (char *) "self", NULL | |
1178 | }; | |
1179 | ||
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 RD |
1183 | { |
1184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1185 | delete arg1; | |
1186 | ||
1187 | wxPyEndAllowThreads(__tstate); | |
1188 | if (PyErr_Occurred()) SWIG_fail; | |
1189 | } | |
1190 | Py_INCREF(Py_None); resultobj = Py_None; | |
1191 | return resultobj; | |
1192 | fail: | |
1193 | return NULL; | |
1194 | } | |
1195 | ||
1196 | ||
d14a1e28 RD |
1197 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
1198 | PyObject *resultobj; | |
1199 | wxColour *arg1 = (wxColour *) 0 ; | |
1200 | unsigned char result; | |
1201 | PyObject * obj0 = 0 ; | |
1202 | char *kwnames[] = { | |
1203 | (char *) "self", NULL | |
1204 | }; | |
1205 | ||
1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1209 | { |
1210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1211 | result = (unsigned char)(arg1)->Red(); | |
1212 | ||
1213 | wxPyEndAllowThreads(__tstate); | |
1214 | if (PyErr_Occurred()) SWIG_fail; | |
1215 | } | |
2f4c0a16 | 1216 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1217 | return resultobj; |
1218 | fail: | |
1219 | return NULL; | |
1220 | } | |
1221 | ||
1222 | ||
1223 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1224 | PyObject *resultobj; | |
1225 | wxColour *arg1 = (wxColour *) 0 ; | |
1226 | unsigned char result; | |
1227 | PyObject * obj0 = 0 ; | |
1228 | char *kwnames[] = { | |
1229 | (char *) "self", NULL | |
1230 | }; | |
1231 | ||
1232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1235 | { |
1236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1237 | result = (unsigned char)(arg1)->Green(); | |
1238 | ||
1239 | wxPyEndAllowThreads(__tstate); | |
1240 | if (PyErr_Occurred()) SWIG_fail; | |
1241 | } | |
2f4c0a16 | 1242 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1243 | return resultobj; |
1244 | fail: | |
1245 | return NULL; | |
1246 | } | |
1247 | ||
1248 | ||
1249 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1250 | PyObject *resultobj; | |
1251 | wxColour *arg1 = (wxColour *) 0 ; | |
1252 | unsigned char result; | |
1253 | PyObject * obj0 = 0 ; | |
1254 | char *kwnames[] = { | |
1255 | (char *) "self", NULL | |
1256 | }; | |
1257 | ||
1258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1261 | { |
1262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1263 | result = (unsigned char)(arg1)->Blue(); | |
1264 | ||
1265 | wxPyEndAllowThreads(__tstate); | |
1266 | if (PyErr_Occurred()) SWIG_fail; | |
1267 | } | |
2f4c0a16 | 1268 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1269 | return resultobj; |
1270 | fail: | |
1271 | return NULL; | |
1272 | } | |
1273 | ||
1274 | ||
1275 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject *resultobj; | |
1277 | wxColour *arg1 = (wxColour *) 0 ; | |
1278 | bool result; | |
1279 | PyObject * obj0 = 0 ; | |
1280 | char *kwnames[] = { | |
1281 | (char *) "self", NULL | |
1282 | }; | |
1283 | ||
1284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1287 | { |
1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1289 | result = (bool)(arg1)->Ok(); | |
1290 | ||
1291 | wxPyEndAllowThreads(__tstate); | |
1292 | if (PyErr_Occurred()) SWIG_fail; | |
1293 | } | |
4f89f6a3 RD |
1294 | { |
1295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1296 | } | |
d14a1e28 RD |
1297 | return resultobj; |
1298 | fail: | |
1299 | return NULL; | |
1300 | } | |
1301 | ||
1302 | ||
1303 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1304 | PyObject *resultobj; | |
1305 | wxColour *arg1 = (wxColour *) 0 ; | |
1306 | unsigned char arg2 ; | |
1307 | unsigned char arg3 ; | |
1308 | unsigned char arg4 ; | |
1309 | PyObject * obj0 = 0 ; | |
1310 | PyObject * obj1 = 0 ; | |
1311 | PyObject * obj2 = 0 ; | |
1312 | PyObject * obj3 = 0 ; | |
1313 | char *kwnames[] = { | |
1314 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1315 | }; | |
1316 | ||
1317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
1318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1320 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
1321 | if (PyErr_Occurred()) SWIG_fail; | |
1322 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
1323 | if (PyErr_Occurred()) SWIG_fail; | |
1324 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
1325 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1326 | { |
1327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1328 | (arg1)->Set(arg2,arg3,arg4); | |
1329 | ||
1330 | wxPyEndAllowThreads(__tstate); | |
1331 | if (PyErr_Occurred()) SWIG_fail; | |
1332 | } | |
1333 | Py_INCREF(Py_None); resultobj = Py_None; | |
1334 | return resultobj; | |
1335 | fail: | |
1336 | return NULL; | |
1337 | } | |
1338 | ||
1339 | ||
9fd4be55 | 1340 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1341 | PyObject *resultobj; |
1342 | wxColour *arg1 = (wxColour *) 0 ; | |
1343 | unsigned long arg2 ; | |
1344 | PyObject * obj0 = 0 ; | |
1345 | PyObject * obj1 = 0 ; | |
1346 | char *kwnames[] = { | |
1347 | (char *) "self",(char *) "colRGB", NULL | |
1348 | }; | |
1349 | ||
9fd4be55 | 1350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1353 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
1354 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1355 | { |
1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1357 | (arg1)->Set(arg2); | |
1358 | ||
1359 | wxPyEndAllowThreads(__tstate); | |
1360 | if (PyErr_Occurred()) SWIG_fail; | |
1361 | } | |
1362 | Py_INCREF(Py_None); resultobj = Py_None; | |
1363 | return resultobj; | |
1364 | fail: | |
1365 | return NULL; | |
1366 | } | |
1367 | ||
1368 | ||
328fcd84 RD |
1369 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1370 | PyObject *resultobj; | |
1371 | wxColour *arg1 = (wxColour *) 0 ; | |
1372 | wxString *arg2 = 0 ; | |
1373 | bool temp2 = False ; | |
1374 | PyObject * obj0 = 0 ; | |
1375 | PyObject * obj1 = 0 ; | |
1376 | char *kwnames[] = { | |
1377 | (char *) "self",(char *) "colourName", NULL | |
1378 | }; | |
1379 | ||
1380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 RD |
1383 | { |
1384 | arg2 = wxString_in_helper(obj1); | |
1385 | if (arg2 == NULL) SWIG_fail; | |
1386 | temp2 = True; | |
1387 | } | |
1388 | { | |
1389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1390 | (arg1)->InitFromName((wxString const &)*arg2); | |
1391 | ||
1392 | wxPyEndAllowThreads(__tstate); | |
1393 | if (PyErr_Occurred()) SWIG_fail; | |
1394 | } | |
1395 | Py_INCREF(Py_None); resultobj = Py_None; | |
1396 | { | |
1397 | if (temp2) | |
1398 | delete arg2; | |
1399 | } | |
1400 | return resultobj; | |
1401 | fail: | |
1402 | { | |
1403 | if (temp2) | |
1404 | delete arg2; | |
1405 | } | |
1406 | return NULL; | |
1407 | } | |
1408 | ||
1409 | ||
1410 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject *resultobj; | |
1412 | wxColour *arg1 = (wxColour *) 0 ; | |
1413 | long result; | |
1414 | PyObject * obj0 = 0 ; | |
1415 | char *kwnames[] = { | |
1416 | (char *) "self", NULL | |
1417 | }; | |
1418 | ||
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 RD |
1422 | { |
1423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1424 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1425 | ||
1426 | wxPyEndAllowThreads(__tstate); | |
1427 | if (PyErr_Occurred()) SWIG_fail; | |
1428 | } | |
2f4c0a16 | 1429 | resultobj = SWIG_FromLong((long)result); |
328fcd84 RD |
1430 | return resultobj; |
1431 | fail: | |
1432 | return NULL; | |
1433 | } | |
1434 | ||
1435 | ||
d14a1e28 RD |
1436 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1437 | PyObject *resultobj; | |
1438 | wxColour *arg1 = (wxColour *) 0 ; | |
1439 | wxColour *arg2 = 0 ; | |
1440 | bool result; | |
1441 | wxColour temp2 ; | |
1442 | PyObject * obj0 = 0 ; | |
1443 | PyObject * obj1 = 0 ; | |
1444 | char *kwnames[] = { | |
1445 | (char *) "self",(char *) "colour", NULL | |
1446 | }; | |
1447 | ||
1448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1451 | { |
1452 | arg2 = &temp2; | |
1453 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1454 | } | |
1455 | { | |
1456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1457 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1458 | ||
1459 | wxPyEndAllowThreads(__tstate); | |
1460 | if (PyErr_Occurred()) SWIG_fail; | |
1461 | } | |
4f89f6a3 RD |
1462 | { |
1463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1464 | } | |
d14a1e28 RD |
1465 | return resultobj; |
1466 | fail: | |
1467 | return NULL; | |
1468 | } | |
1469 | ||
1470 | ||
1471 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1472 | PyObject *resultobj; | |
1473 | wxColour *arg1 = (wxColour *) 0 ; | |
1474 | wxColour *arg2 = 0 ; | |
1475 | bool result; | |
1476 | wxColour temp2 ; | |
1477 | PyObject * obj0 = 0 ; | |
1478 | PyObject * obj1 = 0 ; | |
1479 | char *kwnames[] = { | |
1480 | (char *) "self",(char *) "colour", NULL | |
1481 | }; | |
1482 | ||
1483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1486 | { |
1487 | arg2 = &temp2; | |
1488 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1489 | } | |
1490 | { | |
1491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1492 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1493 | ||
1494 | wxPyEndAllowThreads(__tstate); | |
1495 | if (PyErr_Occurred()) SWIG_fail; | |
1496 | } | |
4f89f6a3 RD |
1497 | { |
1498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1499 | } | |
d14a1e28 RD |
1500 | return resultobj; |
1501 | fail: | |
1502 | return NULL; | |
1503 | } | |
1504 | ||
1505 | ||
328fcd84 | 1506 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
1507 | PyObject *resultobj; |
1508 | wxColour *arg1 = (wxColour *) 0 ; | |
328fcd84 | 1509 | PyObject *result; |
9fd4be55 | 1510 | PyObject * obj0 = 0 ; |
9fd4be55 | 1511 | char *kwnames[] = { |
328fcd84 | 1512 | (char *) "self", NULL |
9fd4be55 RD |
1513 | }; |
1514 | ||
328fcd84 | 1515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
1518 | { |
1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 1520 | result = (PyObject *)wxColour_Get(arg1); |
9fd4be55 RD |
1521 | |
1522 | wxPyEndAllowThreads(__tstate); | |
1523 | if (PyErr_Occurred()) SWIG_fail; | |
1524 | } | |
328fcd84 | 1525 | resultobj = result; |
9fd4be55 RD |
1526 | return resultobj; |
1527 | fail: | |
9fd4be55 RD |
1528 | return NULL; |
1529 | } | |
1530 | ||
1531 | ||
328fcd84 | 1532 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1533 | PyObject *resultobj; |
1534 | wxColour *arg1 = (wxColour *) 0 ; | |
328fcd84 | 1535 | unsigned long result; |
d14a1e28 RD |
1536 | PyObject * obj0 = 0 ; |
1537 | char *kwnames[] = { | |
1538 | (char *) "self", NULL | |
1539 | }; | |
1540 | ||
328fcd84 | 1541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1544 | { |
1545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 1546 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1547 | |
1548 | wxPyEndAllowThreads(__tstate); | |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
1550 | } | |
2f4c0a16 | 1551 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
1552 | return resultobj; |
1553 | fail: | |
1554 | return NULL; | |
1555 | } | |
1556 | ||
1557 | ||
1558 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1559 | PyObject *obj; | |
1560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1561 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1562 | Py_INCREF(obj); | |
1563 | return Py_BuildValue((char *)""); | |
1564 | } | |
1565 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject *resultobj; | |
1567 | int arg1 ; | |
1568 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1569 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1570 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1571 | wxPalette *result; | |
8edf1c75 | 1572 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1573 | PyObject * obj1 = 0 ; |
1574 | PyObject * obj2 = 0 ; | |
1575 | PyObject * obj3 = 0 ; | |
1576 | char *kwnames[] = { | |
1577 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1578 | }; | |
1579 | ||
8edf1c75 | 1580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
1581 | arg1 = (int) SWIG_AsInt(obj0); |
1582 | if (PyErr_Occurred()) SWIG_fail; | |
1583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1585 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1587 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1589 | { |
1590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1591 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1592 | ||
1593 | wxPyEndAllowThreads(__tstate); | |
1594 | if (PyErr_Occurred()) SWIG_fail; | |
1595 | } | |
2f4c0a16 | 1596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
1597 | return resultobj; |
1598 | fail: | |
1599 | return NULL; | |
1600 | } | |
1601 | ||
1602 | ||
1603 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1604 | PyObject *resultobj; | |
1605 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1606 | PyObject * obj0 = 0 ; | |
1607 | char *kwnames[] = { | |
1608 | (char *) "self", NULL | |
1609 | }; | |
1610 | ||
1611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1614 | { |
1615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1616 | delete arg1; | |
1617 | ||
1618 | wxPyEndAllowThreads(__tstate); | |
1619 | if (PyErr_Occurred()) SWIG_fail; | |
1620 | } | |
1621 | Py_INCREF(Py_None); resultobj = Py_None; | |
1622 | return resultobj; | |
1623 | fail: | |
1624 | return NULL; | |
1625 | } | |
1626 | ||
1627 | ||
1628 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject *resultobj; | |
1630 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1631 | byte arg2 ; | |
1632 | byte arg3 ; | |
1633 | byte arg4 ; | |
1634 | int result; | |
1635 | PyObject * obj0 = 0 ; | |
1636 | PyObject * obj1 = 0 ; | |
1637 | PyObject * obj2 = 0 ; | |
1638 | PyObject * obj3 = 0 ; | |
1639 | char *kwnames[] = { | |
1640 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1641 | }; | |
1642 | ||
1643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
1644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1646 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
1647 | if (PyErr_Occurred()) SWIG_fail; | |
1648 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
1649 | if (PyErr_Occurred()) SWIG_fail; | |
1650 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
1651 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1652 | { |
1653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1654 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1655 | ||
1656 | wxPyEndAllowThreads(__tstate); | |
1657 | if (PyErr_Occurred()) SWIG_fail; | |
1658 | } | |
2f4c0a16 | 1659 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1660 | return resultobj; |
1661 | fail: | |
1662 | return NULL; | |
1663 | } | |
1664 | ||
1665 | ||
1666 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1667 | PyObject *resultobj; | |
1668 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1669 | int arg2 ; | |
1670 | byte *arg3 = (byte *) 0 ; | |
1671 | byte *arg4 = (byte *) 0 ; | |
1672 | byte *arg5 = (byte *) 0 ; | |
1673 | bool result; | |
1674 | byte temp3 ; | |
1675 | byte temp4 ; | |
1676 | byte temp5 ; | |
1677 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1678 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1679 | char *kwnames[] = { |
1680 | (char *) "self",(char *) "pixel", NULL | |
1681 | }; | |
1682 | ||
1683 | arg3 = &temp3; | |
1684 | arg4 = &temp4; | |
1685 | arg5 = &temp5; | |
8edf1c75 | 1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1689 | arg2 = (int) SWIG_AsInt(obj1); | |
1690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1691 | { |
1692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1693 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1694 | ||
1695 | wxPyEndAllowThreads(__tstate); | |
1696 | if (PyErr_Occurred()) SWIG_fail; | |
1697 | } | |
4f89f6a3 RD |
1698 | { |
1699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1700 | } | |
d14a1e28 RD |
1701 | { |
1702 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1703 | resultobj = t_output_helper(resultobj,o); | |
1704 | } | |
1705 | { | |
1706 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1707 | resultobj = t_output_helper(resultobj,o); | |
1708 | } | |
1709 | { | |
1710 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1711 | resultobj = t_output_helper(resultobj,o); | |
1712 | } | |
1713 | return resultobj; | |
1714 | fail: | |
1715 | return NULL; | |
1716 | } | |
1717 | ||
1718 | ||
1719 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1720 | PyObject *resultobj; | |
1721 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1722 | bool result; | |
1723 | PyObject * obj0 = 0 ; | |
1724 | char *kwnames[] = { | |
1725 | (char *) "self", NULL | |
1726 | }; | |
1727 | ||
1728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1731 | { |
1732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1733 | result = (bool)(arg1)->Ok(); | |
1734 | ||
1735 | wxPyEndAllowThreads(__tstate); | |
1736 | if (PyErr_Occurred()) SWIG_fail; | |
1737 | } | |
4f89f6a3 RD |
1738 | { |
1739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1740 | } | |
d14a1e28 RD |
1741 | return resultobj; |
1742 | fail: | |
1743 | return NULL; | |
1744 | } | |
1745 | ||
1746 | ||
1747 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1748 | PyObject *obj; | |
1749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1750 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1751 | Py_INCREF(obj); | |
1752 | return Py_BuildValue((char *)""); | |
1753 | } | |
1754 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1755 | PyObject *resultobj; | |
1756 | wxColour *arg1 = 0 ; | |
1757 | int arg2 = (int) 1 ; | |
1758 | int arg3 = (int) wxSOLID ; | |
1759 | wxPen *result; | |
1760 | wxColour temp1 ; | |
1761 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1762 | PyObject * obj1 = 0 ; |
1763 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1764 | char *kwnames[] = { |
1765 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1766 | }; | |
1767 | ||
8edf1c75 | 1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1769 | { |
1770 | arg1 = &temp1; | |
1771 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1772 | } | |
8edf1c75 | 1773 | if (obj1) { |
2f4c0a16 RD |
1774 | arg2 = (int) SWIG_AsInt(obj1); |
1775 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
1776 | } |
1777 | if (obj2) { | |
2f4c0a16 RD |
1778 | arg3 = (int) SWIG_AsInt(obj2); |
1779 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1780 | } |
d14a1e28 RD |
1781 | { |
1782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1783 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1784 | ||
1785 | wxPyEndAllowThreads(__tstate); | |
1786 | if (PyErr_Occurred()) SWIG_fail; | |
1787 | } | |
2f4c0a16 | 1788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
1789 | return resultobj; |
1790 | fail: | |
1791 | return NULL; | |
1792 | } | |
1793 | ||
1794 | ||
1795 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1796 | PyObject *resultobj; | |
1797 | wxPen *arg1 = (wxPen *) 0 ; | |
1798 | PyObject * obj0 = 0 ; | |
1799 | char *kwnames[] = { | |
1800 | (char *) "self", NULL | |
1801 | }; | |
1802 | ||
1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1806 | { |
1807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1808 | delete arg1; | |
1809 | ||
1810 | wxPyEndAllowThreads(__tstate); | |
1811 | if (PyErr_Occurred()) SWIG_fail; | |
1812 | } | |
1813 | Py_INCREF(Py_None); resultobj = Py_None; | |
1814 | return resultobj; | |
1815 | fail: | |
1816 | return NULL; | |
1817 | } | |
1818 | ||
1819 | ||
1820 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1821 | PyObject *resultobj; | |
1822 | wxPen *arg1 = (wxPen *) 0 ; | |
1823 | int result; | |
1824 | PyObject * obj0 = 0 ; | |
1825 | char *kwnames[] = { | |
1826 | (char *) "self", NULL | |
1827 | }; | |
1828 | ||
1829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1832 | { |
1833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1834 | result = (int)(arg1)->GetCap(); | |
1835 | ||
1836 | wxPyEndAllowThreads(__tstate); | |
1837 | if (PyErr_Occurred()) SWIG_fail; | |
1838 | } | |
2f4c0a16 | 1839 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1840 | return resultobj; |
1841 | fail: | |
1842 | return NULL; | |
1843 | } | |
1844 | ||
1845 | ||
1846 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1847 | PyObject *resultobj; | |
1848 | wxPen *arg1 = (wxPen *) 0 ; | |
1849 | wxColour result; | |
1850 | PyObject * obj0 = 0 ; | |
1851 | char *kwnames[] = { | |
1852 | (char *) "self", NULL | |
1853 | }; | |
1854 | ||
1855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1858 | { |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | result = (arg1)->GetColour(); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
1865 | { | |
1866 | wxColour * resultptr; | |
1867 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 1868 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1869 | } |
1870 | return resultobj; | |
1871 | fail: | |
1872 | return NULL; | |
1873 | } | |
1874 | ||
1875 | ||
1876 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1877 | PyObject *resultobj; | |
1878 | wxPen *arg1 = (wxPen *) 0 ; | |
1879 | int result; | |
1880 | PyObject * obj0 = 0 ; | |
1881 | char *kwnames[] = { | |
1882 | (char *) "self", NULL | |
1883 | }; | |
1884 | ||
1885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1888 | { |
1889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1890 | result = (int)(arg1)->GetJoin(); | |
1891 | ||
1892 | wxPyEndAllowThreads(__tstate); | |
1893 | if (PyErr_Occurred()) SWIG_fail; | |
1894 | } | |
2f4c0a16 | 1895 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1896 | return resultobj; |
1897 | fail: | |
1898 | return NULL; | |
1899 | } | |
1900 | ||
1901 | ||
1902 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1903 | PyObject *resultobj; | |
1904 | wxPen *arg1 = (wxPen *) 0 ; | |
1905 | int result; | |
1906 | PyObject * obj0 = 0 ; | |
1907 | char *kwnames[] = { | |
1908 | (char *) "self", NULL | |
1909 | }; | |
1910 | ||
1911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1914 | { |
1915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1916 | result = (int)(arg1)->GetStyle(); | |
1917 | ||
1918 | wxPyEndAllowThreads(__tstate); | |
1919 | if (PyErr_Occurred()) SWIG_fail; | |
1920 | } | |
2f4c0a16 | 1921 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1922 | return resultobj; |
1923 | fail: | |
1924 | return NULL; | |
1925 | } | |
1926 | ||
1927 | ||
1928 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1929 | PyObject *resultobj; | |
1930 | wxPen *arg1 = (wxPen *) 0 ; | |
1931 | int result; | |
1932 | PyObject * obj0 = 0 ; | |
1933 | char *kwnames[] = { | |
1934 | (char *) "self", NULL | |
1935 | }; | |
1936 | ||
1937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1940 | { |
1941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1942 | result = (int)(arg1)->GetWidth(); | |
1943 | ||
1944 | wxPyEndAllowThreads(__tstate); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | } | |
2f4c0a16 | 1947 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1948 | return resultobj; |
1949 | fail: | |
1950 | return NULL; | |
1951 | } | |
1952 | ||
1953 | ||
1954 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1955 | PyObject *resultobj; | |
1956 | wxPen *arg1 = (wxPen *) 0 ; | |
1957 | bool result; | |
1958 | PyObject * obj0 = 0 ; | |
1959 | char *kwnames[] = { | |
1960 | (char *) "self", NULL | |
1961 | }; | |
1962 | ||
1963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1966 | { |
1967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1968 | result = (bool)(arg1)->Ok(); | |
1969 | ||
1970 | wxPyEndAllowThreads(__tstate); | |
1971 | if (PyErr_Occurred()) SWIG_fail; | |
1972 | } | |
4f89f6a3 RD |
1973 | { |
1974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1975 | } | |
d14a1e28 RD |
1976 | return resultobj; |
1977 | fail: | |
1978 | return NULL; | |
1979 | } | |
1980 | ||
1981 | ||
1982 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1983 | PyObject *resultobj; | |
1984 | wxPen *arg1 = (wxPen *) 0 ; | |
1985 | int arg2 ; | |
1986 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1988 | char *kwnames[] = { |
1989 | (char *) "self",(char *) "cap_style", NULL | |
1990 | }; | |
1991 | ||
8edf1c75 | 1992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1995 | arg2 = (int) SWIG_AsInt(obj1); | |
1996 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1997 | { |
1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1999 | (arg1)->SetCap(arg2); | |
2000 | ||
2001 | wxPyEndAllowThreads(__tstate); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | } | |
2004 | Py_INCREF(Py_None); resultobj = Py_None; | |
2005 | return resultobj; | |
2006 | fail: | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2012 | PyObject *resultobj; | |
2013 | wxPen *arg1 = (wxPen *) 0 ; | |
2014 | wxColour *arg2 = 0 ; | |
2015 | wxColour temp2 ; | |
2016 | PyObject * obj0 = 0 ; | |
2017 | PyObject * obj1 = 0 ; | |
2018 | char *kwnames[] = { | |
2019 | (char *) "self",(char *) "colour", NULL | |
2020 | }; | |
2021 | ||
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2025 | { |
2026 | arg2 = &temp2; | |
2027 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2028 | } | |
2029 | { | |
2030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2031 | (arg1)->SetColour(*arg2); | |
2032 | ||
2033 | wxPyEndAllowThreads(__tstate); | |
2034 | if (PyErr_Occurred()) SWIG_fail; | |
2035 | } | |
2036 | Py_INCREF(Py_None); resultobj = Py_None; | |
2037 | return resultobj; | |
2038 | fail: | |
2039 | return NULL; | |
2040 | } | |
2041 | ||
2042 | ||
2043 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2044 | PyObject *resultobj; | |
2045 | wxPen *arg1 = (wxPen *) 0 ; | |
2046 | int arg2 ; | |
2047 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2048 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2049 | char *kwnames[] = { |
2050 | (char *) "self",(char *) "join_style", NULL | |
2051 | }; | |
2052 | ||
8edf1c75 | 2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2056 | arg2 = (int) SWIG_AsInt(obj1); | |
2057 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2058 | { |
2059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2060 | (arg1)->SetJoin(arg2); | |
2061 | ||
2062 | wxPyEndAllowThreads(__tstate); | |
2063 | if (PyErr_Occurred()) SWIG_fail; | |
2064 | } | |
2065 | Py_INCREF(Py_None); resultobj = Py_None; | |
2066 | return resultobj; | |
2067 | fail: | |
2068 | return NULL; | |
2069 | } | |
2070 | ||
2071 | ||
2072 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2073 | PyObject *resultobj; | |
2074 | wxPen *arg1 = (wxPen *) 0 ; | |
2075 | int arg2 ; | |
2076 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2078 | char *kwnames[] = { |
2079 | (char *) "self",(char *) "style", NULL | |
2080 | }; | |
2081 | ||
8edf1c75 | 2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2085 | arg2 = (int) SWIG_AsInt(obj1); | |
2086 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2087 | { |
2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2089 | (arg1)->SetStyle(arg2); | |
2090 | ||
2091 | wxPyEndAllowThreads(__tstate); | |
2092 | if (PyErr_Occurred()) SWIG_fail; | |
2093 | } | |
2094 | Py_INCREF(Py_None); resultobj = Py_None; | |
2095 | return resultobj; | |
2096 | fail: | |
2097 | return NULL; | |
2098 | } | |
2099 | ||
2100 | ||
2101 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2102 | PyObject *resultobj; | |
2103 | wxPen *arg1 = (wxPen *) 0 ; | |
2104 | int arg2 ; | |
2105 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2106 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2107 | char *kwnames[] = { |
2108 | (char *) "self",(char *) "width", NULL | |
2109 | }; | |
2110 | ||
8edf1c75 | 2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2114 | arg2 = (int) SWIG_AsInt(obj1); | |
2115 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2116 | { |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | (arg1)->SetWidth(arg2); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
2123 | Py_INCREF(Py_None); resultobj = Py_None; | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
2130 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2131 | PyObject *resultobj; | |
2132 | wxPen *arg1 = (wxPen *) 0 ; | |
2133 | int arg2 ; | |
2134 | wxDash *arg3 = (wxDash *) 0 ; | |
2135 | PyObject * obj0 = 0 ; | |
2136 | PyObject * obj1 = 0 ; | |
2137 | char *kwnames[] = { | |
2138 | (char *) "self",(char *) "dashes", NULL | |
2139 | }; | |
2140 | ||
2141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2144 | { |
2145 | arg2 = PyList_Size(obj1); | |
2146 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2147 | if (arg3 == NULL) SWIG_fail; | |
2148 | } | |
2149 | { | |
2150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2151 | (arg1)->SetDashes(arg2,arg3); | |
2152 | ||
2153 | wxPyEndAllowThreads(__tstate); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | } | |
2156 | Py_INCREF(Py_None); resultobj = Py_None; | |
2157 | { | |
2158 | if (arg3) delete [] arg3; | |
2159 | } | |
2160 | return resultobj; | |
2161 | fail: | |
2162 | { | |
2163 | if (arg3) delete [] arg3; | |
2164 | } | |
2165 | return NULL; | |
2166 | } | |
2167 | ||
2168 | ||
2169 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2170 | PyObject *resultobj; | |
2171 | wxPen *arg1 = (wxPen *) 0 ; | |
2172 | PyObject *result; | |
2173 | PyObject * obj0 = 0 ; | |
2174 | char *kwnames[] = { | |
2175 | (char *) "self", NULL | |
2176 | }; | |
2177 | ||
2178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2181 | { |
2182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2183 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2184 | ||
2185 | wxPyEndAllowThreads(__tstate); | |
2186 | if (PyErr_Occurred()) SWIG_fail; | |
2187 | } | |
2188 | resultobj = result; | |
2189 | return resultobj; | |
2190 | fail: | |
2191 | return NULL; | |
2192 | } | |
2193 | ||
2194 | ||
db914595 RD |
2195 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
2196 | PyObject *resultobj; | |
2197 | wxPen *arg1 = (wxPen *) 0 ; | |
328fcd84 | 2198 | wxPen *arg2 = (wxPen *) 0 ; |
db914595 RD |
2199 | bool result; |
2200 | PyObject * obj0 = 0 ; | |
2201 | PyObject * obj1 = 0 ; | |
2202 | char *kwnames[] = { | |
328fcd84 | 2203 | (char *) "self",(char *) "other", NULL |
db914595 RD |
2204 | }; |
2205 | ||
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
328fcd84 RD |
2211 | { |
2212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2213 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
2214 | ||
2215 | wxPyEndAllowThreads(__tstate); | |
2216 | if (PyErr_Occurred()) SWIG_fail; | |
db914595 | 2217 | } |
4f89f6a3 RD |
2218 | { |
2219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2220 | } | |
328fcd84 RD |
2221 | return resultobj; |
2222 | fail: | |
2223 | return NULL; | |
2224 | } | |
2225 | ||
2226 | ||
2227 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2228 | PyObject *resultobj; | |
2229 | wxPen *arg1 = (wxPen *) 0 ; | |
2230 | wxPen *arg2 = (wxPen *) 0 ; | |
2231 | bool result; | |
2232 | PyObject * obj0 = 0 ; | |
2233 | PyObject * obj1 = 0 ; | |
2234 | char *kwnames[] = { | |
2235 | (char *) "self",(char *) "other", NULL | |
2236 | }; | |
2237 | ||
2238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2241 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
2243 | { |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 2245 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
db914595 RD |
2246 | |
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
4f89f6a3 RD |
2250 | { |
2251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2252 | } | |
db914595 RD |
2253 | return resultobj; |
2254 | fail: | |
2255 | return NULL; | |
2256 | } | |
2257 | ||
2258 | ||
9fd4be55 RD |
2259 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
2260 | PyObject *resultobj; | |
2261 | wxPen *arg1 = (wxPen *) 0 ; | |
2262 | int result; | |
2263 | PyObject * obj0 = 0 ; | |
2264 | char *kwnames[] = { | |
2265 | (char *) "self", NULL | |
2266 | }; | |
2267 | ||
2268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
2271 | { |
2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2273 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2274 | ||
2275 | wxPyEndAllowThreads(__tstate); | |
2276 | if (PyErr_Occurred()) SWIG_fail; | |
2277 | } | |
2f4c0a16 | 2278 | resultobj = SWIG_FromInt((int)result); |
9fd4be55 RD |
2279 | return resultobj; |
2280 | fail: | |
2281 | return NULL; | |
2282 | } | |
2283 | ||
2284 | ||
d14a1e28 RD |
2285 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
2286 | PyObject *resultobj; | |
2287 | wxPen *arg1 = (wxPen *) 0 ; | |
2288 | wxBitmap *result; | |
2289 | PyObject * obj0 = 0 ; | |
2290 | char *kwnames[] = { | |
2291 | (char *) "self", NULL | |
2292 | }; | |
2293 | ||
2294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2297 | { |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | result = (wxBitmap *)(arg1)->GetStipple(); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2f4c0a16 | 2304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
2305 | return resultobj; |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxPen *arg1 = (wxPen *) 0 ; | |
2314 | wxBitmap *arg2 = 0 ; | |
2315 | PyObject * obj0 = 0 ; | |
2316 | PyObject * obj1 = 0 ; | |
2317 | char *kwnames[] = { | |
2318 | (char *) "self",(char *) "stipple", NULL | |
2319 | }; | |
2320 | ||
2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2325 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2326 | SWIG_fail; | |
d14a1e28 | 2327 | if (arg2 == NULL) { |
2f4c0a16 RD |
2328 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2329 | SWIG_fail; | |
d14a1e28 RD |
2330 | } |
2331 | { | |
2332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2333 | (arg1)->SetStipple(*arg2); | |
2334 | ||
2335 | wxPyEndAllowThreads(__tstate); | |
2336 | if (PyErr_Occurred()) SWIG_fail; | |
2337 | } | |
2338 | Py_INCREF(Py_None); resultobj = Py_None; | |
2339 | return resultobj; | |
2340 | fail: | |
2341 | return NULL; | |
2342 | } | |
2343 | ||
2344 | ||
2345 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { | |
2346 | PyObject *obj; | |
2347 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2348 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2349 | Py_INCREF(obj); | |
2350 | return Py_BuildValue((char *)""); | |
2351 | } | |
2352 | static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2353 | PyObject *resultobj; | |
2354 | wxColour *arg1 = 0 ; | |
2355 | int arg2 = (int) 1 ; | |
2356 | int arg3 = (int) wxSOLID ; | |
2357 | wxPyPen *result; | |
2358 | wxColour temp1 ; | |
2359 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2360 | PyObject * obj1 = 0 ; |
2361 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2362 | char *kwnames[] = { |
2363 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2364 | }; | |
2365 | ||
8edf1c75 | 2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2367 | { |
2368 | arg1 = &temp1; | |
2369 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2370 | } | |
8edf1c75 | 2371 | if (obj1) { |
2f4c0a16 RD |
2372 | arg2 = (int) SWIG_AsInt(obj1); |
2373 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2374 | } |
2375 | if (obj2) { | |
2f4c0a16 RD |
2376 | arg3 = (int) SWIG_AsInt(obj2); |
2377 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2378 | } |
d14a1e28 RD |
2379 | { |
2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2381 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2382 | ||
2383 | wxPyEndAllowThreads(__tstate); | |
2384 | if (PyErr_Occurred()) SWIG_fail; | |
2385 | } | |
2f4c0a16 | 2386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1); |
d14a1e28 RD |
2387 | return resultobj; |
2388 | fail: | |
2389 | return NULL; | |
2390 | } | |
2391 | ||
2392 | ||
2393 | static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2394 | PyObject *resultobj; | |
2395 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2396 | PyObject * obj0 = 0 ; | |
2397 | char *kwnames[] = { | |
2398 | (char *) "self", NULL | |
2399 | }; | |
2400 | ||
2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, |
2403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2404 | { |
2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2406 | delete arg1; | |
2407 | ||
2408 | wxPyEndAllowThreads(__tstate); | |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
2410 | } | |
2411 | Py_INCREF(Py_None); resultobj = Py_None; | |
2412 | return resultobj; | |
2413 | fail: | |
2414 | return NULL; | |
2415 | } | |
2416 | ||
2417 | ||
2418 | static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2419 | PyObject *resultobj; | |
2420 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2421 | int arg2 ; | |
2422 | wxDash *arg3 = (wxDash *) 0 ; | |
2423 | PyObject * obj0 = 0 ; | |
2424 | PyObject * obj1 = 0 ; | |
2425 | char *kwnames[] = { | |
2426 | (char *) "self",(char *) "dashes", NULL | |
2427 | }; | |
2428 | ||
2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, |
2431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2432 | { |
2433 | arg2 = PyList_Size(obj1); | |
2434 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2435 | if (arg3 == NULL) SWIG_fail; | |
2436 | } | |
2437 | { | |
2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2439 | (arg1)->SetDashes(arg2,arg3); | |
2440 | ||
2441 | wxPyEndAllowThreads(__tstate); | |
2442 | if (PyErr_Occurred()) SWIG_fail; | |
2443 | } | |
2444 | Py_INCREF(Py_None); resultobj = Py_None; | |
2445 | { | |
2446 | if (arg3) delete [] arg3; | |
2447 | } | |
2448 | return resultobj; | |
2449 | fail: | |
2450 | { | |
2451 | if (arg3) delete [] arg3; | |
2452 | } | |
2453 | return NULL; | |
2454 | } | |
2455 | ||
2456 | ||
2457 | static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) { | |
2458 | PyObject *obj; | |
2459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2460 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2461 | Py_INCREF(obj); | |
2462 | return Py_BuildValue((char *)""); | |
2463 | } | |
2464 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2465 | PyObject *resultobj; | |
2466 | wxColour *arg1 = 0 ; | |
2467 | int arg2 = (int) wxSOLID ; | |
2468 | wxBrush *result; | |
2469 | wxColour temp1 ; | |
2470 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2472 | char *kwnames[] = { |
2473 | (char *) "colour",(char *) "style", NULL | |
2474 | }; | |
2475 | ||
8edf1c75 | 2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2477 | { |
2478 | arg1 = &temp1; | |
2479 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2480 | } | |
8edf1c75 | 2481 | if (obj1) { |
2f4c0a16 RD |
2482 | arg2 = (int) SWIG_AsInt(obj1); |
2483 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2484 | } |
d14a1e28 RD |
2485 | { |
2486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2487 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2488 | ||
2489 | wxPyEndAllowThreads(__tstate); | |
2490 | if (PyErr_Occurred()) SWIG_fail; | |
2491 | } | |
2f4c0a16 | 2492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
2493 | return resultobj; |
2494 | fail: | |
2495 | return NULL; | |
2496 | } | |
2497 | ||
2498 | ||
2499 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2500 | PyObject *resultobj; | |
2501 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2502 | PyObject * obj0 = 0 ; | |
2503 | char *kwnames[] = { | |
2504 | (char *) "self", NULL | |
2505 | }; | |
2506 | ||
2507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2510 | { |
2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2512 | delete arg1; | |
2513 | ||
2514 | wxPyEndAllowThreads(__tstate); | |
2515 | if (PyErr_Occurred()) SWIG_fail; | |
2516 | } | |
2517 | Py_INCREF(Py_None); resultobj = Py_None; | |
2518 | return resultobj; | |
2519 | fail: | |
2520 | return NULL; | |
2521 | } | |
2522 | ||
2523 | ||
2524 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject *resultobj; | |
2526 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2527 | wxColour *arg2 = 0 ; | |
2528 | wxColour temp2 ; | |
2529 | PyObject * obj0 = 0 ; | |
2530 | PyObject * obj1 = 0 ; | |
2531 | char *kwnames[] = { | |
2532 | (char *) "self",(char *) "col", NULL | |
2533 | }; | |
2534 | ||
2535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2538 | { |
2539 | arg2 = &temp2; | |
2540 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2541 | } | |
2542 | { | |
2543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2544 | (arg1)->SetColour((wxColour const &)*arg2); | |
2545 | ||
2546 | wxPyEndAllowThreads(__tstate); | |
2547 | if (PyErr_Occurred()) SWIG_fail; | |
2548 | } | |
2549 | Py_INCREF(Py_None); resultobj = Py_None; | |
2550 | return resultobj; | |
2551 | fail: | |
2552 | return NULL; | |
2553 | } | |
2554 | ||
2555 | ||
2556 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2557 | PyObject *resultobj; | |
2558 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2559 | int arg2 ; | |
2560 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2562 | char *kwnames[] = { |
2563 | (char *) "self",(char *) "style", NULL | |
2564 | }; | |
2565 | ||
8edf1c75 | 2566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2569 | arg2 = (int) SWIG_AsInt(obj1); | |
2570 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2571 | { |
2572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2573 | (arg1)->SetStyle(arg2); | |
2574 | ||
2575 | wxPyEndAllowThreads(__tstate); | |
2576 | if (PyErr_Occurred()) SWIG_fail; | |
2577 | } | |
2578 | Py_INCREF(Py_None); resultobj = Py_None; | |
2579 | return resultobj; | |
2580 | fail: | |
2581 | return NULL; | |
2582 | } | |
2583 | ||
2584 | ||
2585 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2586 | PyObject *resultobj; | |
2587 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2588 | wxBitmap *arg2 = 0 ; | |
2589 | PyObject * obj0 = 0 ; | |
2590 | PyObject * obj1 = 0 ; | |
2591 | char *kwnames[] = { | |
2592 | (char *) "self",(char *) "stipple", NULL | |
2593 | }; | |
2594 | ||
2595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2600 | SWIG_fail; | |
d14a1e28 | 2601 | if (arg2 == NULL) { |
2f4c0a16 RD |
2602 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2603 | SWIG_fail; | |
d14a1e28 RD |
2604 | } |
2605 | { | |
2606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2607 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2608 | ||
2609 | wxPyEndAllowThreads(__tstate); | |
2610 | if (PyErr_Occurred()) SWIG_fail; | |
2611 | } | |
2612 | Py_INCREF(Py_None); resultobj = Py_None; | |
2613 | return resultobj; | |
2614 | fail: | |
2615 | return NULL; | |
2616 | } | |
2617 | ||
2618 | ||
2619 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject *resultobj; | |
2621 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2622 | wxColour result; | |
2623 | PyObject * obj0 = 0 ; | |
2624 | char *kwnames[] = { | |
2625 | (char *) "self", NULL | |
2626 | }; | |
2627 | ||
2628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2631 | { |
2632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2633 | result = ((wxBrush const *)arg1)->GetColour(); | |
2634 | ||
2635 | wxPyEndAllowThreads(__tstate); | |
2636 | if (PyErr_Occurred()) SWIG_fail; | |
2637 | } | |
2638 | { | |
2639 | wxColour * resultptr; | |
2640 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 2641 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2642 | } |
2643 | return resultobj; | |
2644 | fail: | |
2645 | return NULL; | |
2646 | } | |
2647 | ||
2648 | ||
2649 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2650 | PyObject *resultobj; | |
2651 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2652 | int result; | |
2653 | PyObject * obj0 = 0 ; | |
2654 | char *kwnames[] = { | |
2655 | (char *) "self", NULL | |
2656 | }; | |
2657 | ||
2658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2661 | { |
2662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2663 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2664 | ||
2665 | wxPyEndAllowThreads(__tstate); | |
2666 | if (PyErr_Occurred()) SWIG_fail; | |
2667 | } | |
2f4c0a16 | 2668 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2669 | return resultobj; |
2670 | fail: | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
2675 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject *resultobj; | |
2677 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2678 | wxBitmap *result; | |
2679 | PyObject * obj0 = 0 ; | |
2680 | char *kwnames[] = { | |
2681 | (char *) "self", NULL | |
2682 | }; | |
2683 | ||
2684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2687 | { |
2688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2689 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2690 | ||
2691 | wxPyEndAllowThreads(__tstate); | |
2692 | if (PyErr_Occurred()) SWIG_fail; | |
2693 | } | |
2f4c0a16 | 2694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
2695 | return resultobj; |
2696 | fail: | |
2697 | return NULL; | |
2698 | } | |
2699 | ||
2700 | ||
2701 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2702 | PyObject *resultobj; | |
2703 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2704 | bool result; | |
2705 | PyObject * obj0 = 0 ; | |
2706 | char *kwnames[] = { | |
2707 | (char *) "self", NULL | |
2708 | }; | |
2709 | ||
2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2713 | { |
2714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2715 | result = (bool)(arg1)->Ok(); | |
2716 | ||
2717 | wxPyEndAllowThreads(__tstate); | |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
2719 | } | |
4f89f6a3 RD |
2720 | { |
2721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2722 | } | |
d14a1e28 RD |
2723 | return resultobj; |
2724 | fail: | |
2725 | return NULL; | |
2726 | } | |
2727 | ||
2728 | ||
2729 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2730 | PyObject *obj; | |
2731 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2732 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2733 | Py_INCREF(obj); | |
2734 | return Py_BuildValue((char *)""); | |
2735 | } | |
2736 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2737 | PyObject *resultobj; | |
2738 | wxString *arg1 = 0 ; | |
2739 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2740 | wxBitmap *result; | |
423f194a | 2741 | bool temp1 = False ; |
d14a1e28 | 2742 | PyObject * obj0 = 0 ; |
8edf1c75 | 2743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2744 | char *kwnames[] = { |
2745 | (char *) "name",(char *) "type", NULL | |
2746 | }; | |
2747 | ||
8edf1c75 | 2748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2749 | { |
2750 | arg1 = wxString_in_helper(obj0); | |
2751 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2752 | temp1 = True; |
d14a1e28 | 2753 | } |
8edf1c75 | 2754 | if (obj1) { |
2f4c0a16 RD |
2755 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2757 | } |
d14a1e28 RD |
2758 | { |
2759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2760 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2761 | ||
2762 | wxPyEndAllowThreads(__tstate); | |
2763 | if (PyErr_Occurred()) SWIG_fail; | |
2764 | } | |
2f4c0a16 | 2765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2766 | { |
2767 | if (temp1) | |
2768 | delete arg1; | |
2769 | } | |
2770 | return resultobj; | |
2771 | fail: | |
2772 | { | |
2773 | if (temp1) | |
2774 | delete arg1; | |
2775 | } | |
2776 | return NULL; | |
2777 | } | |
2778 | ||
2779 | ||
2780 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2781 | PyObject *resultobj; | |
2782 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2783 | PyObject * obj0 = 0 ; | |
2784 | char *kwnames[] = { | |
2785 | (char *) "self", NULL | |
2786 | }; | |
2787 | ||
2788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2791 | { |
2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2793 | delete arg1; | |
2794 | ||
2795 | wxPyEndAllowThreads(__tstate); | |
2796 | if (PyErr_Occurred()) SWIG_fail; | |
2797 | } | |
2798 | Py_INCREF(Py_None); resultobj = Py_None; | |
2799 | return resultobj; | |
2800 | fail: | |
2801 | return NULL; | |
2802 | } | |
2803 | ||
2804 | ||
2805 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2806 | PyObject *resultobj; | |
2807 | int arg1 ; | |
2808 | int arg2 ; | |
2809 | int arg3 = (int) -1 ; | |
2810 | wxBitmap *result; | |
8edf1c75 RD |
2811 | PyObject * obj0 = 0 ; |
2812 | PyObject * obj1 = 0 ; | |
2813 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2814 | char *kwnames[] = { |
2815 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2816 | }; | |
2817 | ||
8edf1c75 | 2818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2819 | arg1 = (int) SWIG_AsInt(obj0); |
2820 | if (PyErr_Occurred()) SWIG_fail; | |
2821 | arg2 = (int) SWIG_AsInt(obj1); | |
2822 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2823 | if (obj2) { |
2f4c0a16 RD |
2824 | arg3 = (int) SWIG_AsInt(obj2); |
2825 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2826 | } |
d14a1e28 RD |
2827 | { |
2828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2829 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2830 | ||
2831 | wxPyEndAllowThreads(__tstate); | |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
2833 | } | |
2f4c0a16 | 2834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2835 | return resultobj; |
2836 | fail: | |
2837 | return NULL; | |
2838 | } | |
2839 | ||
2840 | ||
2841 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2842 | PyObject *resultobj; | |
2843 | wxIcon *arg1 = 0 ; | |
2844 | wxBitmap *result; | |
2845 | PyObject * obj0 = 0 ; | |
2846 | char *kwnames[] = { | |
2847 | (char *) "icon", NULL | |
2848 | }; | |
2849 | ||
2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
2852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2853 | SWIG_fail; | |
d14a1e28 | 2854 | if (arg1 == NULL) { |
2f4c0a16 RD |
2855 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2856 | SWIG_fail; | |
d14a1e28 RD |
2857 | } |
2858 | { | |
2859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2860 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2861 | ||
2862 | wxPyEndAllowThreads(__tstate); | |
2863 | if (PyErr_Occurred()) SWIG_fail; | |
2864 | } | |
2f4c0a16 | 2865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2866 | return resultobj; |
2867 | fail: | |
2868 | return NULL; | |
2869 | } | |
2870 | ||
2871 | ||
2872 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2873 | PyObject *resultobj; | |
2874 | wxImage *arg1 = 0 ; | |
2875 | int arg2 = (int) -1 ; | |
2876 | wxBitmap *result; | |
2877 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2879 | char *kwnames[] = { |
2880 | (char *) "image",(char *) "depth", NULL | |
2881 | }; | |
2882 | ||
8edf1c75 | 2883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
2885 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2886 | SWIG_fail; | |
d14a1e28 | 2887 | if (arg1 == NULL) { |
2f4c0a16 RD |
2888 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2889 | SWIG_fail; | |
d14a1e28 | 2890 | } |
8edf1c75 | 2891 | if (obj1) { |
2f4c0a16 RD |
2892 | arg2 = (int) SWIG_AsInt(obj1); |
2893 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2894 | } |
d14a1e28 RD |
2895 | { |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2897 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2898 | ||
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) SWIG_fail; | |
2901 | } | |
2f4c0a16 | 2902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2903 | return resultobj; |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | PyObject *arg1 = (PyObject *) 0 ; | |
2912 | wxBitmap *result; | |
2913 | PyObject * obj0 = 0 ; | |
2914 | char *kwnames[] = { | |
2915 | (char *) "listOfStrings", NULL | |
2916 | }; | |
2917 | ||
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2919 | arg1 = obj0; | |
2920 | { | |
2921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2922 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2923 | ||
2924 | wxPyEndAllowThreads(__tstate); | |
2925 | if (PyErr_Occurred()) SWIG_fail; | |
2926 | } | |
2f4c0a16 | 2927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2928 | return resultobj; |
2929 | fail: | |
2930 | return NULL; | |
2931 | } | |
2932 | ||
2933 | ||
2934 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2935 | PyObject *resultobj; | |
2936 | PyObject *arg1 = (PyObject *) 0 ; | |
2937 | int arg2 ; | |
2938 | int arg3 ; | |
2939 | int arg4 = (int) 1 ; | |
2940 | wxBitmap *result; | |
2941 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2942 | PyObject * obj1 = 0 ; |
2943 | PyObject * obj2 = 0 ; | |
2944 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2945 | char *kwnames[] = { |
2946 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2947 | }; | |
2948 | ||
8edf1c75 | 2949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2950 | arg1 = obj0; |
2f4c0a16 RD |
2951 | arg2 = (int) SWIG_AsInt(obj1); |
2952 | if (PyErr_Occurred()) SWIG_fail; | |
2953 | arg3 = (int) SWIG_AsInt(obj2); | |
2954 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2955 | if (obj3) { |
2f4c0a16 RD |
2956 | arg4 = (int) SWIG_AsInt(obj3); |
2957 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2958 | } |
d14a1e28 RD |
2959 | { |
2960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2961 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2962 | ||
2963 | wxPyEndAllowThreads(__tstate); | |
2964 | if (PyErr_Occurred()) SWIG_fail; | |
2965 | } | |
2f4c0a16 | 2966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2967 | return resultobj; |
2968 | fail: | |
2969 | return NULL; | |
2970 | } | |
2971 | ||
2972 | ||
2973 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2974 | PyObject *resultobj; | |
2975 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2976 | wxPalette *arg2 = 0 ; | |
2977 | PyObject * obj0 = 0 ; | |
2978 | PyObject * obj1 = 0 ; | |
2979 | char *kwnames[] = { | |
2980 | (char *) "self",(char *) "palette", NULL | |
2981 | }; | |
2982 | ||
2983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
2987 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2988 | SWIG_fail; | |
d14a1e28 | 2989 | if (arg2 == NULL) { |
2f4c0a16 RD |
2990 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2991 | SWIG_fail; | |
d14a1e28 RD |
2992 | } |
2993 | { | |
2994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2995 | (arg1)->SetPalette(*arg2); | |
2996 | ||
2997 | wxPyEndAllowThreads(__tstate); | |
2998 | if (PyErr_Occurred()) SWIG_fail; | |
2999 | } | |
3000 | Py_INCREF(Py_None); resultobj = Py_None; | |
3001 | return resultobj; | |
3002 | fail: | |
3003 | return NULL; | |
3004 | } | |
3005 | ||
3006 | ||
3007 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3008 | PyObject *resultobj; | |
3009 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3010 | long result; | |
3011 | PyObject * obj0 = 0 ; | |
3012 | char *kwnames[] = { | |
3013 | (char *) "self", NULL | |
3014 | }; | |
3015 | ||
3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3019 | { |
3020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3021 | result = (long)(arg1)->GetHandle(); | |
3022 | ||
3023 | wxPyEndAllowThreads(__tstate); | |
3024 | if (PyErr_Occurred()) SWIG_fail; | |
3025 | } | |
2f4c0a16 | 3026 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3027 | return resultobj; |
3028 | fail: | |
3029 | return NULL; | |
3030 | } | |
3031 | ||
3032 | ||
3033 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3034 | PyObject *resultobj; | |
3035 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3036 | long arg2 ; | |
3037 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3039 | char *kwnames[] = { |
3040 | (char *) "self",(char *) "handle", NULL | |
3041 | }; | |
3042 | ||
8edf1c75 | 3043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3046 | arg2 = (long) SWIG_AsLong(obj1); | |
3047 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3048 | { |
3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2f4c0a16 | 3050 | wxBitmap_SetHandle(arg1,arg2); |
d14a1e28 RD |
3051 | |
3052 | wxPyEndAllowThreads(__tstate); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | Py_INCREF(Py_None); resultobj = Py_None; | |
3056 | return resultobj; | |
3057 | fail: | |
3058 | return NULL; | |
3059 | } | |
3060 | ||
3061 | ||
3062 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3063 | PyObject *resultobj; | |
3064 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3065 | bool result; | |
3066 | PyObject * obj0 = 0 ; | |
3067 | char *kwnames[] = { | |
3068 | (char *) "self", NULL | |
3069 | }; | |
3070 | ||
3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3074 | { |
3075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3076 | result = (bool)(arg1)->Ok(); | |
3077 | ||
3078 | wxPyEndAllowThreads(__tstate); | |
3079 | if (PyErr_Occurred()) SWIG_fail; | |
3080 | } | |
4f89f6a3 RD |
3081 | { |
3082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3083 | } | |
d14a1e28 RD |
3084 | return resultobj; |
3085 | fail: | |
3086 | return NULL; | |
3087 | } | |
3088 | ||
3089 | ||
3090 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3091 | PyObject *resultobj; | |
3092 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3093 | int result; | |
3094 | PyObject * obj0 = 0 ; | |
3095 | char *kwnames[] = { | |
3096 | (char *) "self", NULL | |
3097 | }; | |
3098 | ||
3099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3102 | { |
3103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3104 | result = (int)(arg1)->GetWidth(); | |
3105 | ||
3106 | wxPyEndAllowThreads(__tstate); | |
3107 | if (PyErr_Occurred()) SWIG_fail; | |
3108 | } | |
2f4c0a16 | 3109 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3110 | return resultobj; |
3111 | fail: | |
3112 | return NULL; | |
3113 | } | |
3114 | ||
3115 | ||
3116 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3117 | PyObject *resultobj; | |
3118 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3119 | int result; | |
3120 | PyObject * obj0 = 0 ; | |
3121 | char *kwnames[] = { | |
3122 | (char *) "self", NULL | |
3123 | }; | |
3124 | ||
3125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3128 | { |
3129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3130 | result = (int)(arg1)->GetHeight(); | |
3131 | ||
3132 | wxPyEndAllowThreads(__tstate); | |
3133 | if (PyErr_Occurred()) SWIG_fail; | |
3134 | } | |
2f4c0a16 | 3135 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3136 | return resultobj; |
3137 | fail: | |
3138 | return NULL; | |
3139 | } | |
3140 | ||
3141 | ||
3142 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject *resultobj; | |
3144 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3145 | int result; | |
3146 | PyObject * obj0 = 0 ; | |
3147 | char *kwnames[] = { | |
3148 | (char *) "self", NULL | |
3149 | }; | |
3150 | ||
3151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3154 | { |
3155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3156 | result = (int)(arg1)->GetDepth(); | |
3157 | ||
3158 | wxPyEndAllowThreads(__tstate); | |
3159 | if (PyErr_Occurred()) SWIG_fail; | |
3160 | } | |
2f4c0a16 | 3161 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3162 | return resultobj; |
3163 | fail: | |
3164 | return NULL; | |
3165 | } | |
3166 | ||
3167 | ||
3168 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3169 | PyObject *resultobj; | |
3170 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3171 | SwigValueWrapper< wxImage > result; | |
3172 | PyObject * obj0 = 0 ; | |
3173 | char *kwnames[] = { | |
3174 | (char *) "self", NULL | |
3175 | }; | |
3176 | ||
3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3180 | { |
3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3182 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3183 | ||
3184 | wxPyEndAllowThreads(__tstate); | |
3185 | if (PyErr_Occurred()) SWIG_fail; | |
3186 | } | |
3187 | { | |
3188 | wxImage * resultptr; | |
3189 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 3190 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
3191 | } |
3192 | return resultobj; | |
3193 | fail: | |
3194 | return NULL; | |
3195 | } | |
3196 | ||
3197 | ||
3198 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3199 | PyObject *resultobj; | |
3200 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3201 | wxMask *result; | |
3202 | PyObject * obj0 = 0 ; | |
3203 | char *kwnames[] = { | |
3204 | (char *) "self", NULL | |
3205 | }; | |
3206 | ||
3207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3210 | { |
3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3212 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3213 | ||
3214 | wxPyEndAllowThreads(__tstate); | |
3215 | if (PyErr_Occurred()) SWIG_fail; | |
3216 | } | |
2f4c0a16 | 3217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
3218 | return resultobj; |
3219 | fail: | |
3220 | return NULL; | |
3221 | } | |
3222 | ||
3223 | ||
3224 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3225 | PyObject *resultobj; | |
3226 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3227 | wxMask *arg2 = (wxMask *) 0 ; | |
3228 | PyObject * obj0 = 0 ; | |
3229 | PyObject * obj1 = 0 ; | |
3230 | char *kwnames[] = { | |
3231 | (char *) "self",(char *) "mask", NULL | |
3232 | }; | |
3233 | ||
3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3239 | { |
3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3241 | (arg1)->SetMask(arg2); | |
3242 | ||
3243 | wxPyEndAllowThreads(__tstate); | |
3244 | if (PyErr_Occurred()) SWIG_fail; | |
3245 | } | |
3246 | Py_INCREF(Py_None); resultobj = Py_None; | |
3247 | return resultobj; | |
3248 | fail: | |
3249 | return NULL; | |
3250 | } | |
3251 | ||
3252 | ||
3253 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3254 | PyObject *resultobj; | |
3255 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3256 | wxColour *arg2 = 0 ; | |
3257 | wxColour temp2 ; | |
3258 | PyObject * obj0 = 0 ; | |
3259 | PyObject * obj1 = 0 ; | |
3260 | char *kwnames[] = { | |
3261 | (char *) "self",(char *) "colour", NULL | |
3262 | }; | |
3263 | ||
3264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3267 | { |
3268 | arg2 = &temp2; | |
3269 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3270 | } | |
3271 | { | |
3272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3273 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3274 | ||
3275 | wxPyEndAllowThreads(__tstate); | |
3276 | if (PyErr_Occurred()) SWIG_fail; | |
3277 | } | |
3278 | Py_INCREF(Py_None); resultobj = Py_None; | |
3279 | return resultobj; | |
3280 | fail: | |
3281 | return NULL; | |
3282 | } | |
3283 | ||
3284 | ||
3285 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3286 | PyObject *resultobj; | |
3287 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3288 | wxRect *arg2 = 0 ; | |
3289 | SwigValueWrapper< wxBitmap > result; | |
3290 | wxRect temp2 ; | |
3291 | PyObject * obj0 = 0 ; | |
3292 | PyObject * obj1 = 0 ; | |
3293 | char *kwnames[] = { | |
3294 | (char *) "self",(char *) "rect", NULL | |
3295 | }; | |
3296 | ||
3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3300 | { |
3301 | arg2 = &temp2; | |
3302 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3303 | } | |
3304 | { | |
3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3306 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3307 | ||
3308 | wxPyEndAllowThreads(__tstate); | |
3309 | if (PyErr_Occurred()) SWIG_fail; | |
3310 | } | |
3311 | { | |
3312 | wxBitmap * resultptr; | |
3313 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 3314 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3315 | } |
3316 | return resultobj; | |
3317 | fail: | |
3318 | return NULL; | |
3319 | } | |
3320 | ||
3321 | ||
3322 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3323 | PyObject *resultobj; | |
3324 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3325 | wxString *arg2 = 0 ; | |
3326 | int arg3 ; | |
3327 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
3328 | bool result; | |
423f194a | 3329 | bool temp2 = False ; |
d14a1e28 RD |
3330 | PyObject * obj0 = 0 ; |
3331 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3332 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3333 | PyObject * obj3 = 0 ; |
3334 | char *kwnames[] = { | |
3335 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3336 | }; | |
3337 | ||
8edf1c75 | 3338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
3339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3341 | { |
3342 | arg2 = wxString_in_helper(obj1); | |
3343 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3344 | temp2 = True; |
d14a1e28 | 3345 | } |
2f4c0a16 RD |
3346 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3347 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 3348 | if (obj3) { |
2f4c0a16 RD |
3349 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, |
3350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3351 | } |
3352 | { | |
3353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3354 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3355 | ||
3356 | wxPyEndAllowThreads(__tstate); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | } | |
4f89f6a3 RD |
3359 | { |
3360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3361 | } | |
d14a1e28 RD |
3362 | { |
3363 | if (temp2) | |
3364 | delete arg2; | |
3365 | } | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | { | |
3369 | if (temp2) | |
3370 | delete arg2; | |
3371 | } | |
3372 | return NULL; | |
3373 | } | |
3374 | ||
3375 | ||
3376 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3377 | PyObject *resultobj; | |
3378 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3379 | wxString *arg2 = 0 ; | |
3380 | int arg3 ; | |
3381 | bool result; | |
423f194a | 3382 | bool temp2 = False ; |
d14a1e28 RD |
3383 | PyObject * obj0 = 0 ; |
3384 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3385 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3386 | char *kwnames[] = { |
3387 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3388 | }; | |
3389 | ||
8edf1c75 | 3390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3393 | { |
3394 | arg2 = wxString_in_helper(obj1); | |
3395 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3396 | temp2 = True; |
d14a1e28 | 3397 | } |
2f4c0a16 RD |
3398 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3399 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3400 | { |
3401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3402 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3403 | ||
3404 | wxPyEndAllowThreads(__tstate); | |
3405 | if (PyErr_Occurred()) SWIG_fail; | |
3406 | } | |
4f89f6a3 RD |
3407 | { |
3408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3409 | } | |
d14a1e28 RD |
3410 | { |
3411 | if (temp2) | |
3412 | delete arg2; | |
3413 | } | |
3414 | return resultobj; | |
3415 | fail: | |
3416 | { | |
3417 | if (temp2) | |
3418 | delete arg2; | |
3419 | } | |
3420 | return NULL; | |
3421 | } | |
3422 | ||
3423 | ||
3424 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3425 | PyObject *resultobj; | |
3426 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3427 | wxIcon *arg2 = 0 ; | |
3428 | bool result; | |
3429 | PyObject * obj0 = 0 ; | |
3430 | PyObject * obj1 = 0 ; | |
3431 | char *kwnames[] = { | |
3432 | (char *) "self",(char *) "icon", NULL | |
3433 | }; | |
3434 | ||
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3439 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3440 | SWIG_fail; | |
d14a1e28 | 3441 | if (arg2 == NULL) { |
2f4c0a16 RD |
3442 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3443 | SWIG_fail; | |
d14a1e28 RD |
3444 | } |
3445 | { | |
3446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3447 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3448 | ||
3449 | wxPyEndAllowThreads(__tstate); | |
3450 | if (PyErr_Occurred()) SWIG_fail; | |
3451 | } | |
4f89f6a3 RD |
3452 | { |
3453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3454 | } | |
d14a1e28 RD |
3455 | return resultobj; |
3456 | fail: | |
3457 | return NULL; | |
3458 | } | |
3459 | ||
3460 | ||
3461 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3462 | PyObject *resultobj; | |
3463 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3464 | int arg2 ; | |
3465 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3467 | char *kwnames[] = { |
3468 | (char *) "self",(char *) "height", NULL | |
3469 | }; | |
3470 | ||
8edf1c75 | 3471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3474 | arg2 = (int) SWIG_AsInt(obj1); | |
3475 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3476 | { |
3477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3478 | (arg1)->SetHeight(arg2); | |
3479 | ||
3480 | wxPyEndAllowThreads(__tstate); | |
3481 | if (PyErr_Occurred()) SWIG_fail; | |
3482 | } | |
3483 | Py_INCREF(Py_None); resultobj = Py_None; | |
3484 | return resultobj; | |
3485 | fail: | |
3486 | return NULL; | |
3487 | } | |
3488 | ||
3489 | ||
3490 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3491 | PyObject *resultobj; | |
3492 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3493 | int arg2 ; | |
3494 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3496 | char *kwnames[] = { |
3497 | (char *) "self",(char *) "width", NULL | |
3498 | }; | |
3499 | ||
8edf1c75 | 3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3503 | arg2 = (int) SWIG_AsInt(obj1); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3505 | { |
3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3507 | (arg1)->SetWidth(arg2); | |
3508 | ||
3509 | wxPyEndAllowThreads(__tstate); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | } | |
3512 | Py_INCREF(Py_None); resultobj = Py_None; | |
3513 | return resultobj; | |
3514 | fail: | |
3515 | return NULL; | |
3516 | } | |
3517 | ||
3518 | ||
3519 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3520 | PyObject *resultobj; | |
3521 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3522 | int arg2 ; | |
3523 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3524 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3525 | char *kwnames[] = { |
3526 | (char *) "self",(char *) "depth", NULL | |
3527 | }; | |
3528 | ||
8edf1c75 | 3529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3532 | arg2 = (int) SWIG_AsInt(obj1); | |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3534 | { |
3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3536 | (arg1)->SetDepth(arg2); | |
3537 | ||
3538 | wxPyEndAllowThreads(__tstate); | |
3539 | if (PyErr_Occurred()) SWIG_fail; | |
3540 | } | |
3541 | Py_INCREF(Py_None); resultobj = Py_None; | |
3542 | return resultobj; | |
3543 | fail: | |
3544 | return NULL; | |
3545 | } | |
3546 | ||
3547 | ||
3548 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject *resultobj; | |
3550 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3551 | wxCursor *arg2 = 0 ; | |
3552 | bool result; | |
3553 | PyObject * obj0 = 0 ; | |
3554 | PyObject * obj1 = 0 ; | |
3555 | char *kwnames[] = { | |
3556 | (char *) "self",(char *) "cursor", NULL | |
3557 | }; | |
3558 | ||
3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3562 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
3563 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3564 | SWIG_fail; | |
d14a1e28 | 3565 | if (arg2 == NULL) { |
2f4c0a16 RD |
3566 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3567 | SWIG_fail; | |
d14a1e28 RD |
3568 | } |
3569 | { | |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
4f89f6a3 RD |
3576 | { |
3577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3578 | } | |
d14a1e28 RD |
3579 | return resultobj; |
3580 | fail: | |
3581 | return NULL; | |
3582 | } | |
3583 | ||
3584 | ||
3585 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3586 | PyObject *resultobj; | |
3587 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3588 | int result; | |
3589 | PyObject * obj0 = 0 ; | |
3590 | char *kwnames[] = { | |
3591 | (char *) "self", NULL | |
3592 | }; | |
3593 | ||
3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3597 | { |
3598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3599 | result = (int)(arg1)->GetQuality(); | |
3600 | ||
3601 | wxPyEndAllowThreads(__tstate); | |
3602 | if (PyErr_Occurred()) SWIG_fail; | |
3603 | } | |
2f4c0a16 | 3604 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3605 | return resultobj; |
3606 | fail: | |
3607 | return NULL; | |
3608 | } | |
3609 | ||
3610 | ||
3611 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3612 | PyObject *resultobj; | |
3613 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3614 | int arg2 ; | |
3615 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3617 | char *kwnames[] = { |
3618 | (char *) "self",(char *) "q", NULL | |
3619 | }; | |
3620 | ||
8edf1c75 | 3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3624 | arg2 = (int) SWIG_AsInt(obj1); | |
3625 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3626 | { |
3627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3628 | (arg1)->SetQuality(arg2); | |
d14a1e28 RD |
3629 | |
3630 | wxPyEndAllowThreads(__tstate); | |
3631 | if (PyErr_Occurred()) SWIG_fail; | |
3632 | } | |
3633 | Py_INCREF(Py_None); resultobj = Py_None; | |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
fe763115 RD |
3640 | static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
3641 | PyObject *resultobj; | |
3642 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3643 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3644 | bool result; | |
3645 | PyObject * obj0 = 0 ; | |
3646 | PyObject * obj1 = 0 ; | |
3647 | char *kwnames[] = { | |
3648 | (char *) "self",(char *) "other", NULL | |
3649 | }; | |
3650 | ||
3651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3656 | { | |
3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3658 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3659 | ||
3660 | wxPyEndAllowThreads(__tstate); | |
3661 | if (PyErr_Occurred()) SWIG_fail; | |
3662 | } | |
4f89f6a3 RD |
3663 | { |
3664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3665 | } | |
fe763115 RD |
3666 | return resultobj; |
3667 | fail: | |
3668 | return NULL; | |
3669 | } | |
3670 | ||
3671 | ||
3672 | static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3673 | PyObject *resultobj; | |
3674 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3675 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3676 | bool result; | |
3677 | PyObject * obj0 = 0 ; | |
3678 | PyObject * obj1 = 0 ; | |
3679 | char *kwnames[] = { | |
3680 | (char *) "self",(char *) "other", NULL | |
3681 | }; | |
3682 | ||
3683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3686 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3688 | { | |
3689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3690 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3691 | ||
3692 | wxPyEndAllowThreads(__tstate); | |
3693 | if (PyErr_Occurred()) SWIG_fail; | |
3694 | } | |
4f89f6a3 RD |
3695 | { |
3696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3697 | } | |
fe763115 RD |
3698 | return resultobj; |
3699 | fail: | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
d14a1e28 RD |
3704 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { |
3705 | PyObject *obj; | |
3706 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3707 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3708 | Py_INCREF(obj); | |
3709 | return Py_BuildValue((char *)""); | |
3710 | } | |
3711 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3712 | PyObject *resultobj; | |
3713 | wxBitmap *arg1 = 0 ; | |
0ffb2aa6 RD |
3714 | wxColour const &arg2_defvalue = wxNullColour ; |
3715 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3716 | wxMask *result; |
3717 | wxColour temp2 ; | |
3718 | PyObject * obj0 = 0 ; | |
3719 | PyObject * obj1 = 0 ; | |
3720 | char *kwnames[] = { | |
3721 | (char *) "bitmap",(char *) "colour", NULL | |
3722 | }; | |
3723 | ||
0ffb2aa6 | 3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3727 | SWIG_fail; | |
d14a1e28 | 3728 | if (arg1 == NULL) { |
2f4c0a16 RD |
3729 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3730 | SWIG_fail; | |
d14a1e28 | 3731 | } |
0ffb2aa6 RD |
3732 | if (obj1) { |
3733 | { | |
3734 | arg2 = &temp2; | |
3735 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3736 | } | |
d14a1e28 RD |
3737 | } |
3738 | { | |
3739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 3740 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3741 | |
3742 | wxPyEndAllowThreads(__tstate); | |
3743 | if (PyErr_Occurred()) SWIG_fail; | |
3744 | } | |
2f4c0a16 | 3745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
3746 | return resultobj; |
3747 | fail: | |
3748 | return NULL; | |
3749 | } | |
3750 | ||
3751 | ||
3752 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3753 | PyObject *obj; | |
3754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3755 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3756 | Py_INCREF(obj); | |
3757 | return Py_BuildValue((char *)""); | |
3758 | } | |
3759 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3760 | PyObject *resultobj; | |
3761 | wxString *arg1 = 0 ; | |
eb9b6107 | 3762 | int arg2 ; |
d14a1e28 RD |
3763 | int arg3 = (int) -1 ; |
3764 | int arg4 = (int) -1 ; | |
3765 | wxIcon *result; | |
423f194a | 3766 | bool temp1 = False ; |
d14a1e28 | 3767 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3768 | PyObject * obj1 = 0 ; |
3769 | PyObject * obj2 = 0 ; | |
3770 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3771 | char *kwnames[] = { |
eb9b6107 | 3772 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3773 | }; |
3774 | ||
8edf1c75 | 3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3776 | { |
3777 | arg1 = wxString_in_helper(obj0); | |
3778 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3779 | temp1 = True; |
d14a1e28 | 3780 | } |
2f4c0a16 RD |
3781 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3783 | if (obj2) { |
2f4c0a16 RD |
3784 | arg3 = (int) SWIG_AsInt(obj2); |
3785 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3786 | } |
3787 | if (obj3) { | |
2f4c0a16 RD |
3788 | arg4 = (int) SWIG_AsInt(obj3); |
3789 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3790 | } |
d14a1e28 RD |
3791 | { |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
eb9b6107 | 3793 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); |
d14a1e28 RD |
3794 | |
3795 | wxPyEndAllowThreads(__tstate); | |
3796 | if (PyErr_Occurred()) SWIG_fail; | |
3797 | } | |
2f4c0a16 | 3798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3799 | { |
3800 | if (temp1) | |
3801 | delete arg1; | |
3802 | } | |
3803 | return resultobj; | |
3804 | fail: | |
3805 | { | |
3806 | if (temp1) | |
3807 | delete arg1; | |
3808 | } | |
3809 | return NULL; | |
3810 | } | |
3811 | ||
3812 | ||
3813 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3814 | PyObject *resultobj; | |
3815 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3816 | PyObject * obj0 = 0 ; | |
3817 | char *kwnames[] = { | |
3818 | (char *) "self", NULL | |
3819 | }; | |
3820 | ||
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3824 | { |
3825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3826 | delete arg1; | |
3827 | ||
3828 | wxPyEndAllowThreads(__tstate); | |
3829 | if (PyErr_Occurred()) SWIG_fail; | |
3830 | } | |
3831 | Py_INCREF(Py_None); resultobj = Py_None; | |
3832 | return resultobj; | |
3833 | fail: | |
3834 | return NULL; | |
3835 | } | |
3836 | ||
3837 | ||
3838 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3839 | PyObject *resultobj; | |
3840 | wxIcon *result; | |
3841 | char *kwnames[] = { | |
3842 | NULL | |
3843 | }; | |
3844 | ||
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3846 | { | |
3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3848 | result = (wxIcon *)new wxIcon(); | |
3849 | ||
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
3852 | } | |
2f4c0a16 | 3853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3854 | return resultobj; |
3855 | fail: | |
3856 | return NULL; | |
3857 | } | |
3858 | ||
3859 | ||
3860 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3861 | PyObject *resultobj; | |
3862 | wxIconLocation *arg1 = 0 ; | |
3863 | wxIcon *result; | |
3864 | PyObject * obj0 = 0 ; | |
3865 | char *kwnames[] = { | |
3866 | (char *) "loc", NULL | |
3867 | }; | |
3868 | ||
3869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3871 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3872 | SWIG_fail; | |
d14a1e28 | 3873 | if (arg1 == NULL) { |
2f4c0a16 RD |
3874 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3875 | SWIG_fail; | |
d14a1e28 RD |
3876 | } |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
2f4c0a16 | 3884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3885 | return resultobj; |
3886 | fail: | |
3887 | return NULL; | |
3888 | } | |
3889 | ||
3890 | ||
3891 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3892 | PyObject *resultobj; | |
3893 | wxBitmap *arg1 = 0 ; | |
3894 | wxIcon *result; | |
3895 | PyObject * obj0 = 0 ; | |
3896 | char *kwnames[] = { | |
3897 | (char *) "bmp", NULL | |
3898 | }; | |
3899 | ||
3900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3902 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3903 | SWIG_fail; | |
d14a1e28 | 3904 | if (arg1 == NULL) { |
2f4c0a16 RD |
3905 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3906 | SWIG_fail; | |
d14a1e28 RD |
3907 | } |
3908 | { | |
3909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3910 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3911 | ||
3912 | wxPyEndAllowThreads(__tstate); | |
3913 | if (PyErr_Occurred()) SWIG_fail; | |
3914 | } | |
2f4c0a16 | 3915 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3916 | return resultobj; |
3917 | fail: | |
3918 | return NULL; | |
3919 | } | |
3920 | ||
3921 | ||
3922 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3923 | PyObject *resultobj; | |
3924 | PyObject *arg1 = (PyObject *) 0 ; | |
3925 | wxIcon *result; | |
3926 | PyObject * obj0 = 0 ; | |
3927 | char *kwnames[] = { | |
3928 | (char *) "listOfStrings", NULL | |
3929 | }; | |
3930 | ||
3931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3932 | arg1 = obj0; | |
3933 | { | |
3934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3935 | result = (wxIcon *)new_wxIcon(arg1); | |
3936 | ||
3937 | wxPyEndAllowThreads(__tstate); | |
3938 | if (PyErr_Occurred()) SWIG_fail; | |
3939 | } | |
2f4c0a16 | 3940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3941 | return resultobj; |
3942 | fail: | |
3943 | return NULL; | |
3944 | } | |
3945 | ||
3946 | ||
3947 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3948 | PyObject *resultobj; | |
3949 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3950 | wxString *arg2 = 0 ; | |
eb9b6107 | 3951 | int arg3 ; |
d14a1e28 | 3952 | bool result; |
423f194a | 3953 | bool temp2 = False ; |
d14a1e28 RD |
3954 | PyObject * obj0 = 0 ; |
3955 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3956 | PyObject * obj2 = 0 ; |
d14a1e28 | 3957 | char *kwnames[] = { |
eb9b6107 | 3958 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3959 | }; |
3960 | ||
8edf1c75 | 3961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3964 | { |
3965 | arg2 = wxString_in_helper(obj1); | |
3966 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3967 | temp2 = True; |
d14a1e28 | 3968 | } |
2f4c0a16 RD |
3969 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3971 | { |
3972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
eb9b6107 | 3973 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3974 | |
3975 | wxPyEndAllowThreads(__tstate); | |
3976 | if (PyErr_Occurred()) SWIG_fail; | |
3977 | } | |
4f89f6a3 RD |
3978 | { |
3979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3980 | } | |
d14a1e28 RD |
3981 | { |
3982 | if (temp2) | |
3983 | delete arg2; | |
3984 | } | |
3985 | return resultobj; | |
3986 | fail: | |
3987 | { | |
3988 | if (temp2) | |
3989 | delete arg2; | |
3990 | } | |
3991 | return NULL; | |
3992 | } | |
3993 | ||
3994 | ||
3995 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3996 | PyObject *resultobj; | |
3997 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3998 | long result; | |
3999 | PyObject * obj0 = 0 ; | |
4000 | char *kwnames[] = { | |
4001 | (char *) "self", NULL | |
4002 | }; | |
4003 | ||
4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4007 | { |
4008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4009 | result = (long)(arg1)->GetHandle(); | |
4010 | ||
4011 | wxPyEndAllowThreads(__tstate); | |
4012 | if (PyErr_Occurred()) SWIG_fail; | |
4013 | } | |
2f4c0a16 | 4014 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
4015 | return resultobj; |
4016 | fail: | |
4017 | return NULL; | |
4018 | } | |
4019 | ||
4020 | ||
4021 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4022 | PyObject *resultobj; | |
4023 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4024 | long arg2 ; | |
4025 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4026 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4027 | char *kwnames[] = { |
4028 | (char *) "self",(char *) "handle", NULL | |
4029 | }; | |
4030 | ||
8edf1c75 | 4031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4034 | arg2 = (long) SWIG_AsLong(obj1); | |
4035 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4036 | { |
4037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2f4c0a16 | 4038 | wxIcon_SetHandle(arg1,arg2); |
d14a1e28 RD |
4039 | |
4040 | wxPyEndAllowThreads(__tstate); | |
4041 | if (PyErr_Occurred()) SWIG_fail; | |
4042 | } | |
4043 | Py_INCREF(Py_None); resultobj = Py_None; | |
4044 | return resultobj; | |
4045 | fail: | |
4046 | return NULL; | |
4047 | } | |
4048 | ||
4049 | ||
4050 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4051 | PyObject *resultobj; | |
4052 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4053 | bool result; | |
4054 | PyObject * obj0 = 0 ; | |
4055 | char *kwnames[] = { | |
4056 | (char *) "self", NULL | |
4057 | }; | |
4058 | ||
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4062 | { |
4063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4064 | result = (bool)(arg1)->Ok(); | |
4065 | ||
4066 | wxPyEndAllowThreads(__tstate); | |
4067 | if (PyErr_Occurred()) SWIG_fail; | |
4068 | } | |
4f89f6a3 RD |
4069 | { |
4070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4071 | } | |
d14a1e28 RD |
4072 | return resultobj; |
4073 | fail: | |
4074 | return NULL; | |
4075 | } | |
4076 | ||
4077 | ||
4078 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4079 | PyObject *resultobj; | |
4080 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4081 | int result; | |
4082 | PyObject * obj0 = 0 ; | |
4083 | char *kwnames[] = { | |
4084 | (char *) "self", NULL | |
4085 | }; | |
4086 | ||
4087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4090 | { |
4091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4092 | result = (int)(arg1)->GetWidth(); | |
4093 | ||
4094 | wxPyEndAllowThreads(__tstate); | |
4095 | if (PyErr_Occurred()) SWIG_fail; | |
4096 | } | |
2f4c0a16 | 4097 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4098 | return resultobj; |
4099 | fail: | |
4100 | return NULL; | |
4101 | } | |
4102 | ||
4103 | ||
4104 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject *resultobj; | |
4106 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4107 | int result; | |
4108 | PyObject * obj0 = 0 ; | |
4109 | char *kwnames[] = { | |
4110 | (char *) "self", NULL | |
4111 | }; | |
4112 | ||
4113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4116 | { |
4117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4118 | result = (int)(arg1)->GetHeight(); | |
4119 | ||
4120 | wxPyEndAllowThreads(__tstate); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
4122 | } | |
2f4c0a16 | 4123 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4124 | return resultobj; |
4125 | fail: | |
4126 | return NULL; | |
4127 | } | |
4128 | ||
4129 | ||
4130 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4131 | PyObject *resultobj; | |
4132 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4133 | int result; | |
4134 | PyObject * obj0 = 0 ; | |
4135 | char *kwnames[] = { | |
4136 | (char *) "self", NULL | |
4137 | }; | |
4138 | ||
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4142 | { |
4143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4144 | result = (int)(arg1)->GetDepth(); | |
4145 | ||
4146 | wxPyEndAllowThreads(__tstate); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | } | |
2f4c0a16 | 4149 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4150 | return resultobj; |
4151 | fail: | |
4152 | return NULL; | |
4153 | } | |
4154 | ||
4155 | ||
4156 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4157 | PyObject *resultobj; | |
4158 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4159 | int arg2 ; | |
4160 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4162 | char *kwnames[] = { |
4163 | (char *) "self",(char *) "w", NULL | |
4164 | }; | |
4165 | ||
8edf1c75 | 4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4169 | arg2 = (int) SWIG_AsInt(obj1); | |
4170 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4171 | { |
4172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4173 | (arg1)->SetWidth(arg2); | |
4174 | ||
4175 | wxPyEndAllowThreads(__tstate); | |
4176 | if (PyErr_Occurred()) SWIG_fail; | |
4177 | } | |
4178 | Py_INCREF(Py_None); resultobj = Py_None; | |
4179 | return resultobj; | |
4180 | fail: | |
4181 | return NULL; | |
4182 | } | |
4183 | ||
4184 | ||
4185 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject *resultobj; | |
4187 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4188 | int arg2 ; | |
4189 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4190 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4191 | char *kwnames[] = { |
4192 | (char *) "self",(char *) "h", NULL | |
4193 | }; | |
4194 | ||
8edf1c75 | 4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4198 | arg2 = (int) SWIG_AsInt(obj1); | |
4199 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4200 | { |
4201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4202 | (arg1)->SetHeight(arg2); | |
4203 | ||
4204 | wxPyEndAllowThreads(__tstate); | |
4205 | if (PyErr_Occurred()) SWIG_fail; | |
4206 | } | |
4207 | Py_INCREF(Py_None); resultobj = Py_None; | |
4208 | return resultobj; | |
4209 | fail: | |
4210 | return NULL; | |
4211 | } | |
4212 | ||
4213 | ||
4214 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4215 | PyObject *resultobj; | |
4216 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4217 | int arg2 ; | |
4218 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4220 | char *kwnames[] = { |
4221 | (char *) "self",(char *) "d", NULL | |
4222 | }; | |
4223 | ||
8edf1c75 | 4224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4227 | arg2 = (int) SWIG_AsInt(obj1); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4229 | { |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | (arg1)->SetDepth(arg2); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | Py_INCREF(Py_None); resultobj = Py_None; | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj; | |
4245 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4246 | wxSize *arg2 = 0 ; | |
4247 | wxSize temp2 ; | |
4248 | PyObject * obj0 = 0 ; | |
4249 | PyObject * obj1 = 0 ; | |
4250 | char *kwnames[] = { | |
4251 | (char *) "self",(char *) "size", NULL | |
4252 | }; | |
4253 | ||
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4257 | { |
4258 | arg2 = &temp2; | |
4259 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4260 | } | |
4261 | { | |
4262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4263 | (arg1)->SetSize((wxSize const &)*arg2); | |
4264 | ||
4265 | wxPyEndAllowThreads(__tstate); | |
4266 | if (PyErr_Occurred()) SWIG_fail; | |
4267 | } | |
4268 | Py_INCREF(Py_None); resultobj = Py_None; | |
4269 | return resultobj; | |
4270 | fail: | |
4271 | return NULL; | |
4272 | } | |
4273 | ||
4274 | ||
4275 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4276 | PyObject *resultobj; | |
4277 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4278 | wxBitmap *arg2 = 0 ; | |
4279 | PyObject * obj0 = 0 ; | |
4280 | PyObject * obj1 = 0 ; | |
4281 | char *kwnames[] = { | |
4282 | (char *) "self",(char *) "bmp", NULL | |
4283 | }; | |
4284 | ||
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4288 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4289 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4290 | SWIG_fail; | |
d14a1e28 | 4291 | if (arg2 == NULL) { |
2f4c0a16 RD |
4292 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4293 | SWIG_fail; | |
d14a1e28 RD |
4294 | } |
4295 | { | |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4297 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4298 | ||
4299 | wxPyEndAllowThreads(__tstate); | |
4300 | if (PyErr_Occurred()) SWIG_fail; | |
4301 | } | |
4302 | Py_INCREF(Py_None); resultobj = Py_None; | |
4303 | return resultobj; | |
4304 | fail: | |
4305 | return NULL; | |
4306 | } | |
4307 | ||
4308 | ||
4309 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
4310 | PyObject *obj; | |
4311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4312 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4313 | Py_INCREF(obj); | |
4314 | return Py_BuildValue((char *)""); | |
4315 | } | |
4316 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject *resultobj; | |
4318 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4319 | int arg2 = (int) 0 ; | |
4320 | wxIconLocation *result; | |
f775c30d | 4321 | bool temp1 = False ; |
d14a1e28 | 4322 | PyObject * obj0 = 0 ; |
8edf1c75 | 4323 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4324 | char *kwnames[] = { |
4325 | (char *) "filename",(char *) "num", NULL | |
4326 | }; | |
4327 | ||
8edf1c75 | 4328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4329 | if (obj0) { |
f775c30d RD |
4330 | { |
4331 | arg1 = wxString_in_helper(obj0); | |
4332 | if (arg1 == NULL) SWIG_fail; | |
4333 | temp1 = True; | |
4334 | } | |
d14a1e28 | 4335 | } |
8edf1c75 | 4336 | if (obj1) { |
2f4c0a16 RD |
4337 | arg2 = (int) SWIG_AsInt(obj1); |
4338 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4339 | } |
d14a1e28 RD |
4340 | { |
4341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4342 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4343 | ||
4344 | wxPyEndAllowThreads(__tstate); | |
4345 | if (PyErr_Occurred()) SWIG_fail; | |
4346 | } | |
2f4c0a16 | 4347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
f775c30d RD |
4348 | { |
4349 | if (temp1) | |
4350 | delete arg1; | |
4351 | } | |
d14a1e28 RD |
4352 | return resultobj; |
4353 | fail: | |
f775c30d RD |
4354 | { |
4355 | if (temp1) | |
4356 | delete arg1; | |
4357 | } | |
d14a1e28 RD |
4358 | return NULL; |
4359 | } | |
4360 | ||
4361 | ||
4362 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4363 | PyObject *resultobj; | |
4364 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4365 | PyObject * obj0 = 0 ; | |
4366 | char *kwnames[] = { | |
4367 | (char *) "self", NULL | |
4368 | }; | |
4369 | ||
4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4373 | { |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4375 | delete arg1; | |
4376 | ||
4377 | wxPyEndAllowThreads(__tstate); | |
4378 | if (PyErr_Occurred()) SWIG_fail; | |
4379 | } | |
4380 | Py_INCREF(Py_None); resultobj = Py_None; | |
4381 | return resultobj; | |
4382 | fail: | |
4383 | return NULL; | |
4384 | } | |
4385 | ||
4386 | ||
4387 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4388 | PyObject *resultobj; | |
4389 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4390 | bool result; | |
4391 | PyObject * obj0 = 0 ; | |
4392 | char *kwnames[] = { | |
4393 | (char *) "self", NULL | |
4394 | }; | |
4395 | ||
4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4399 | { |
4400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4401 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4402 | ||
4403 | wxPyEndAllowThreads(__tstate); | |
4404 | if (PyErr_Occurred()) SWIG_fail; | |
4405 | } | |
4f89f6a3 RD |
4406 | { |
4407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4408 | } | |
d14a1e28 RD |
4409 | return resultobj; |
4410 | fail: | |
4411 | return NULL; | |
4412 | } | |
4413 | ||
4414 | ||
4415 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4416 | PyObject *resultobj; | |
4417 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4418 | wxString *arg2 = 0 ; | |
423f194a | 4419 | bool temp2 = False ; |
d14a1e28 RD |
4420 | PyObject * obj0 = 0 ; |
4421 | PyObject * obj1 = 0 ; | |
4422 | char *kwnames[] = { | |
4423 | (char *) "self",(char *) "filename", NULL | |
4424 | }; | |
4425 | ||
4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4429 | { |
4430 | arg2 = wxString_in_helper(obj1); | |
4431 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4432 | temp2 = True; |
d14a1e28 RD |
4433 | } |
4434 | { | |
4435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4436 | (arg1)->SetFileName((wxString const &)*arg2); | |
4437 | ||
4438 | wxPyEndAllowThreads(__tstate); | |
4439 | if (PyErr_Occurred()) SWIG_fail; | |
4440 | } | |
4441 | Py_INCREF(Py_None); resultobj = Py_None; | |
4442 | { | |
4443 | if (temp2) | |
4444 | delete arg2; | |
4445 | } | |
4446 | return resultobj; | |
4447 | fail: | |
4448 | { | |
4449 | if (temp2) | |
4450 | delete arg2; | |
4451 | } | |
4452 | return NULL; | |
4453 | } | |
4454 | ||
4455 | ||
4456 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4457 | PyObject *resultobj; | |
4458 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4459 | wxString *result; | |
4460 | PyObject * obj0 = 0 ; | |
4461 | char *kwnames[] = { | |
4462 | (char *) "self", NULL | |
4463 | }; | |
4464 | ||
4465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4468 | { |
4469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4470 | { | |
4471 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4472 | result = (wxString *) &_result_ref; | |
4473 | } | |
4474 | ||
4475 | wxPyEndAllowThreads(__tstate); | |
4476 | if (PyErr_Occurred()) SWIG_fail; | |
4477 | } | |
f0983263 RD |
4478 | { |
4479 | #if wxUSE_UNICODE | |
4480 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4481 | #else | |
4482 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4483 | #endif | |
4484 | } | |
d14a1e28 RD |
4485 | return resultobj; |
4486 | fail: | |
4487 | return NULL; | |
4488 | } | |
4489 | ||
4490 | ||
4491 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4492 | PyObject *resultobj; | |
4493 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4494 | int arg2 ; | |
4495 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4496 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4497 | char *kwnames[] = { |
4498 | (char *) "self",(char *) "num", NULL | |
4499 | }; | |
4500 | ||
8edf1c75 | 4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4504 | arg2 = (int) SWIG_AsInt(obj1); | |
4505 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4506 | { |
4507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4508 | wxIconLocation_SetIndex(arg1,arg2); | |
4509 | ||
4510 | wxPyEndAllowThreads(__tstate); | |
4511 | if (PyErr_Occurred()) SWIG_fail; | |
4512 | } | |
4513 | Py_INCREF(Py_None); resultobj = Py_None; | |
4514 | return resultobj; | |
4515 | fail: | |
4516 | return NULL; | |
4517 | } | |
4518 | ||
4519 | ||
4520 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4521 | PyObject *resultobj; | |
4522 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4523 | int result; | |
4524 | PyObject * obj0 = 0 ; | |
4525 | char *kwnames[] = { | |
4526 | (char *) "self", NULL | |
4527 | }; | |
4528 | ||
4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4532 | { |
4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4534 | result = (int)wxIconLocation_GetIndex(arg1); | |
4535 | ||
4536 | wxPyEndAllowThreads(__tstate); | |
4537 | if (PyErr_Occurred()) SWIG_fail; | |
4538 | } | |
2f4c0a16 | 4539 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4540 | return resultobj; |
4541 | fail: | |
4542 | return NULL; | |
4543 | } | |
4544 | ||
4545 | ||
4546 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
4547 | PyObject *obj; | |
4548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4549 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4550 | Py_INCREF(obj); | |
4551 | return Py_BuildValue((char *)""); | |
4552 | } | |
4553 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4554 | PyObject *resultobj; | |
4555 | wxIconBundle *result; | |
4556 | char *kwnames[] = { | |
4557 | NULL | |
4558 | }; | |
4559 | ||
4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4561 | { | |
4562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4563 | result = (wxIconBundle *)new wxIconBundle(); | |
4564 | ||
4565 | wxPyEndAllowThreads(__tstate); | |
4566 | if (PyErr_Occurred()) SWIG_fail; | |
4567 | } | |
2f4c0a16 | 4568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4569 | return resultobj; |
4570 | fail: | |
4571 | return NULL; | |
4572 | } | |
4573 | ||
4574 | ||
4575 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4576 | PyObject *resultobj; | |
4577 | wxString *arg1 = 0 ; | |
4578 | long arg2 ; | |
4579 | wxIconBundle *result; | |
423f194a | 4580 | bool temp1 = False ; |
d14a1e28 | 4581 | PyObject * obj0 = 0 ; |
8edf1c75 | 4582 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4583 | char *kwnames[] = { |
4584 | (char *) "file",(char *) "type", NULL | |
4585 | }; | |
4586 | ||
8edf1c75 | 4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4588 | { |
4589 | arg1 = wxString_in_helper(obj0); | |
4590 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4591 | temp1 = True; |
d14a1e28 | 4592 | } |
2f4c0a16 RD |
4593 | arg2 = (long) SWIG_AsLong(obj1); |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4595 | { |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4597 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4598 | ||
4599 | wxPyEndAllowThreads(__tstate); | |
4600 | if (PyErr_Occurred()) SWIG_fail; | |
4601 | } | |
2f4c0a16 | 4602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4603 | { |
4604 | if (temp1) | |
4605 | delete arg1; | |
4606 | } | |
4607 | return resultobj; | |
4608 | fail: | |
4609 | { | |
4610 | if (temp1) | |
4611 | delete arg1; | |
4612 | } | |
4613 | return NULL; | |
4614 | } | |
4615 | ||
4616 | ||
4617 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4618 | PyObject *resultobj; | |
4619 | wxIcon *arg1 = 0 ; | |
4620 | wxIconBundle *result; | |
4621 | PyObject * obj0 = 0 ; | |
4622 | char *kwnames[] = { | |
4623 | (char *) "icon", NULL | |
4624 | }; | |
4625 | ||
4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4628 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4629 | SWIG_fail; | |
d14a1e28 | 4630 | if (arg1 == NULL) { |
2f4c0a16 RD |
4631 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4632 | SWIG_fail; | |
d14a1e28 RD |
4633 | } |
4634 | { | |
4635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4636 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4637 | ||
4638 | wxPyEndAllowThreads(__tstate); | |
4639 | if (PyErr_Occurred()) SWIG_fail; | |
4640 | } | |
2f4c0a16 | 4641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4642 | return resultobj; |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
4648 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4649 | PyObject *resultobj; | |
4650 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4651 | PyObject * obj0 = 0 ; | |
4652 | char *kwnames[] = { | |
4653 | (char *) "self", NULL | |
4654 | }; | |
4655 | ||
4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4659 | { |
4660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4661 | delete arg1; | |
4662 | ||
4663 | wxPyEndAllowThreads(__tstate); | |
4664 | if (PyErr_Occurred()) SWIG_fail; | |
4665 | } | |
4666 | Py_INCREF(Py_None); resultobj = Py_None; | |
4667 | return resultobj; | |
4668 | fail: | |
4669 | return NULL; | |
4670 | } | |
4671 | ||
4672 | ||
4673 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4674 | PyObject *resultobj; | |
4675 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4676 | wxIcon *arg2 = 0 ; | |
4677 | PyObject * obj0 = 0 ; | |
4678 | PyObject * obj1 = 0 ; | |
4679 | char *kwnames[] = { | |
4680 | (char *) "self",(char *) "icon", NULL | |
4681 | }; | |
4682 | ||
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4686 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4687 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4688 | SWIG_fail; | |
d14a1e28 | 4689 | if (arg2 == NULL) { |
2f4c0a16 RD |
4690 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4691 | SWIG_fail; | |
d14a1e28 RD |
4692 | } |
4693 | { | |
4694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4695 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4696 | ||
4697 | wxPyEndAllowThreads(__tstate); | |
4698 | if (PyErr_Occurred()) SWIG_fail; | |
4699 | } | |
4700 | Py_INCREF(Py_None); resultobj = Py_None; | |
4701 | return resultobj; | |
4702 | fail: | |
4703 | return NULL; | |
4704 | } | |
4705 | ||
4706 | ||
4707 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4708 | PyObject *resultobj; | |
4709 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4710 | wxString *arg2 = 0 ; | |
4711 | long arg3 ; | |
423f194a | 4712 | bool temp2 = False ; |
d14a1e28 RD |
4713 | PyObject * obj0 = 0 ; |
4714 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4715 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4716 | char *kwnames[] = { |
4717 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4718 | }; | |
4719 | ||
8edf1c75 | 4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4723 | { |
4724 | arg2 = wxString_in_helper(obj1); | |
4725 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4726 | temp2 = True; |
d14a1e28 | 4727 | } |
2f4c0a16 RD |
4728 | arg3 = (long) SWIG_AsLong(obj2); |
4729 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4730 | { |
4731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4732 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4733 | ||
4734 | wxPyEndAllowThreads(__tstate); | |
4735 | if (PyErr_Occurred()) SWIG_fail; | |
4736 | } | |
4737 | Py_INCREF(Py_None); resultobj = Py_None; | |
4738 | { | |
4739 | if (temp2) | |
4740 | delete arg2; | |
4741 | } | |
4742 | return resultobj; | |
4743 | fail: | |
4744 | { | |
4745 | if (temp2) | |
4746 | delete arg2; | |
4747 | } | |
4748 | return NULL; | |
4749 | } | |
4750 | ||
4751 | ||
4752 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4753 | PyObject *resultobj; | |
4754 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4755 | wxSize *arg2 = 0 ; | |
4756 | wxIcon *result; | |
4757 | wxSize temp2 ; | |
4758 | PyObject * obj0 = 0 ; | |
4759 | PyObject * obj1 = 0 ; | |
4760 | char *kwnames[] = { | |
4761 | (char *) "self",(char *) "size", NULL | |
4762 | }; | |
4763 | ||
4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4767 | { |
4768 | arg2 = &temp2; | |
4769 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4770 | } | |
4771 | { | |
4772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4773 | { | |
4774 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4775 | result = (wxIcon *) &_result_ref; | |
4776 | } | |
4777 | ||
4778 | wxPyEndAllowThreads(__tstate); | |
4779 | if (PyErr_Occurred()) SWIG_fail; | |
4780 | } | |
fe763115 RD |
4781 | { |
4782 | wxIcon* resultptr = new wxIcon(*result); | |
4783 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4784 | } | |
d14a1e28 RD |
4785 | return resultobj; |
4786 | fail: | |
4787 | return NULL; | |
4788 | } | |
4789 | ||
4790 | ||
4791 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4792 | PyObject *obj; | |
4793 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4794 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4795 | Py_INCREF(obj); | |
4796 | return Py_BuildValue((char *)""); | |
4797 | } | |
4798 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4799 | PyObject *resultobj; | |
4800 | wxString *arg1 = (wxString *) 0 ; | |
4801 | long arg2 ; | |
4802 | int arg3 = (int) 0 ; | |
4803 | int arg4 = (int) 0 ; | |
4804 | wxCursor *result; | |
f775c30d | 4805 | bool temp1 = False ; |
d14a1e28 | 4806 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4807 | PyObject * obj1 = 0 ; |
4808 | PyObject * obj2 = 0 ; | |
4809 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4810 | char *kwnames[] = { |
2f4c0a16 | 4811 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
4812 | }; |
4813 | ||
8edf1c75 | 4814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
f775c30d RD |
4815 | { |
4816 | arg1 = wxString_in_helper(obj0); | |
4817 | if (arg1 == NULL) SWIG_fail; | |
4818 | temp1 = True; | |
4819 | } | |
2f4c0a16 RD |
4820 | arg2 = (long) SWIG_AsLong(obj1); |
4821 | if (PyErr_Occurred()) SWIG_fail; | |
4822 | if (obj2) { | |
4823 | arg3 = (int) SWIG_AsInt(obj2); | |
8edf1c75 RD |
4824 | if (PyErr_Occurred()) SWIG_fail; |
4825 | } | |
8edf1c75 | 4826 | if (obj3) { |
2f4c0a16 RD |
4827 | arg4 = (int) SWIG_AsInt(obj3); |
4828 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4829 | } |
d14a1e28 RD |
4830 | { |
4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4832 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4833 | ||
4834 | wxPyEndAllowThreads(__tstate); | |
4835 | if (PyErr_Occurred()) SWIG_fail; | |
4836 | } | |
2f4c0a16 | 4837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
f775c30d RD |
4838 | { |
4839 | if (temp1) | |
4840 | delete arg1; | |
4841 | } | |
d14a1e28 RD |
4842 | return resultobj; |
4843 | fail: | |
f775c30d RD |
4844 | { |
4845 | if (temp1) | |
4846 | delete arg1; | |
4847 | } | |
d14a1e28 RD |
4848 | return NULL; |
4849 | } | |
4850 | ||
4851 | ||
4852 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4853 | PyObject *resultobj; | |
4854 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4855 | PyObject * obj0 = 0 ; | |
4856 | char *kwnames[] = { | |
4857 | (char *) "self", NULL | |
4858 | }; | |
4859 | ||
4860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4863 | { |
4864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4865 | delete arg1; | |
4866 | ||
4867 | wxPyEndAllowThreads(__tstate); | |
4868 | if (PyErr_Occurred()) SWIG_fail; | |
4869 | } | |
4870 | Py_INCREF(Py_None); resultobj = Py_None; | |
4871 | return resultobj; | |
4872 | fail: | |
4873 | return NULL; | |
4874 | } | |
4875 | ||
4876 | ||
4877 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4878 | PyObject *resultobj; | |
4879 | int arg1 ; | |
4880 | wxCursor *result; | |
8edf1c75 | 4881 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4882 | char *kwnames[] = { |
4883 | (char *) "id", NULL | |
4884 | }; | |
4885 | ||
8edf1c75 | 4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4887 | arg1 = (int) SWIG_AsInt(obj0); |
4888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4889 | { |
4890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4891 | result = (wxCursor *)new wxCursor(arg1); | |
4892 | ||
4893 | wxPyEndAllowThreads(__tstate); | |
4894 | if (PyErr_Occurred()) SWIG_fail; | |
4895 | } | |
2f4c0a16 | 4896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4897 | return resultobj; |
4898 | fail: | |
4899 | return NULL; | |
4900 | } | |
4901 | ||
4902 | ||
4903 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4904 | PyObject *resultobj; | |
4905 | wxImage *arg1 = 0 ; | |
4906 | wxCursor *result; | |
4907 | PyObject * obj0 = 0 ; | |
4908 | char *kwnames[] = { | |
4909 | (char *) "image", NULL | |
4910 | }; | |
4911 | ||
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
4914 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4915 | SWIG_fail; | |
d14a1e28 | 4916 | if (arg1 == NULL) { |
2f4c0a16 RD |
4917 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4918 | SWIG_fail; | |
d14a1e28 RD |
4919 | } |
4920 | { | |
4921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4922 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4923 | ||
4924 | wxPyEndAllowThreads(__tstate); | |
4925 | if (PyErr_Occurred()) SWIG_fail; | |
4926 | } | |
2f4c0a16 | 4927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4928 | return resultobj; |
4929 | fail: | |
4930 | return NULL; | |
4931 | } | |
4932 | ||
4933 | ||
4934 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4935 | PyObject *resultobj; | |
4936 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4937 | long result; | |
4938 | PyObject * obj0 = 0 ; | |
4939 | char *kwnames[] = { | |
4940 | (char *) "self", NULL | |
4941 | }; | |
4942 | ||
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4946 | { |
4947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4948 | result = (long)(arg1)->GetHandle(); | |
4949 | ||
4950 | wxPyEndAllowThreads(__tstate); | |
4951 | if (PyErr_Occurred()) SWIG_fail; | |
4952 | } | |
2f4c0a16 | 4953 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
4954 | return resultobj; |
4955 | fail: | |
4956 | return NULL; | |
4957 | } | |
4958 | ||
4959 | ||
4960 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4961 | PyObject *resultobj; | |
4962 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4963 | long arg2 ; | |
4964 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4965 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4966 | char *kwnames[] = { |
4967 | (char *) "self",(char *) "handle", NULL | |
4968 | }; | |
4969 | ||
8edf1c75 | 4970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4973 | arg2 = (long) SWIG_AsLong(obj1); | |
4974 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4975 | { |
4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2f4c0a16 | 4977 | wxCursor_SetHandle(arg1,arg2); |
d14a1e28 RD |
4978 | |
4979 | wxPyEndAllowThreads(__tstate); | |
4980 | if (PyErr_Occurred()) SWIG_fail; | |
4981 | } | |
4982 | Py_INCREF(Py_None); resultobj = Py_None; | |
4983 | return resultobj; | |
4984 | fail: | |
4985 | return NULL; | |
4986 | } | |
4987 | ||
4988 | ||
4989 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4990 | PyObject *resultobj; | |
4991 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4992 | bool result; | |
4993 | PyObject * obj0 = 0 ; | |
4994 | char *kwnames[] = { | |
4995 | (char *) "self", NULL | |
4996 | }; | |
4997 | ||
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5001 | { |
5002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5003 | result = (bool)(arg1)->Ok(); | |
5004 | ||
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
4f89f6a3 RD |
5008 | { |
5009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5010 | } | |
d14a1e28 RD |
5011 | return resultobj; |
5012 | fail: | |
5013 | return NULL; | |
5014 | } | |
5015 | ||
5016 | ||
5017 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5018 | PyObject *resultobj; | |
5019 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5020 | int result; | |
5021 | PyObject * obj0 = 0 ; | |
5022 | char *kwnames[] = { | |
5023 | (char *) "self", NULL | |
5024 | }; | |
5025 | ||
5026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5029 | { |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5031 | result = (int)(arg1)->GetWidth(); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
5034 | if (PyErr_Occurred()) SWIG_fail; | |
5035 | } | |
2f4c0a16 | 5036 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5037 | return resultobj; |
5038 | fail: | |
5039 | return NULL; | |
5040 | } | |
5041 | ||
5042 | ||
5043 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject *resultobj; | |
5045 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5046 | int result; | |
5047 | PyObject * obj0 = 0 ; | |
5048 | char *kwnames[] = { | |
5049 | (char *) "self", NULL | |
5050 | }; | |
5051 | ||
5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5055 | { |
5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5057 | result = (int)(arg1)->GetHeight(); | |
5058 | ||
5059 | wxPyEndAllowThreads(__tstate); | |
5060 | if (PyErr_Occurred()) SWIG_fail; | |
5061 | } | |
2f4c0a16 | 5062 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5063 | return resultobj; |
5064 | fail: | |
5065 | return NULL; | |
5066 | } | |
5067 | ||
5068 | ||
5069 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5070 | PyObject *resultobj; | |
5071 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5072 | int result; | |
5073 | PyObject * obj0 = 0 ; | |
5074 | char *kwnames[] = { | |
5075 | (char *) "self", NULL | |
5076 | }; | |
5077 | ||
5078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5081 | { |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5083 | result = (int)(arg1)->GetDepth(); | |
5084 | ||
5085 | wxPyEndAllowThreads(__tstate); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
2f4c0a16 | 5088 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5089 | return resultobj; |
5090 | fail: | |
5091 | return NULL; | |
5092 | } | |
5093 | ||
5094 | ||
5095 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5096 | PyObject *resultobj; | |
5097 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5098 | int arg2 ; | |
5099 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5101 | char *kwnames[] = { |
5102 | (char *) "self",(char *) "w", NULL | |
5103 | }; | |
5104 | ||
8edf1c75 | 5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5108 | arg2 = (int) SWIG_AsInt(obj1); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5110 | { |
5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5112 | (arg1)->SetWidth(arg2); | |
5113 | ||
5114 | wxPyEndAllowThreads(__tstate); | |
5115 | if (PyErr_Occurred()) SWIG_fail; | |
5116 | } | |
5117 | Py_INCREF(Py_None); resultobj = Py_None; | |
5118 | return resultobj; | |
5119 | fail: | |
5120 | return NULL; | |
5121 | } | |
5122 | ||
5123 | ||
5124 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5125 | PyObject *resultobj; | |
5126 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5127 | int arg2 ; | |
5128 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5129 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5130 | char *kwnames[] = { |
5131 | (char *) "self",(char *) "h", NULL | |
5132 | }; | |
5133 | ||
8edf1c75 | 5134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5137 | arg2 = (int) SWIG_AsInt(obj1); | |
5138 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5139 | { |
5140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5141 | (arg1)->SetHeight(arg2); | |
5142 | ||
5143 | wxPyEndAllowThreads(__tstate); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | } | |
5146 | Py_INCREF(Py_None); resultobj = Py_None; | |
5147 | return resultobj; | |
5148 | fail: | |
5149 | return NULL; | |
5150 | } | |
5151 | ||
5152 | ||
5153 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5154 | PyObject *resultobj; | |
5155 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5156 | int arg2 ; | |
5157 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5158 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5159 | char *kwnames[] = { |
5160 | (char *) "self",(char *) "d", NULL | |
5161 | }; | |
5162 | ||
8edf1c75 | 5163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5166 | arg2 = (int) SWIG_AsInt(obj1); | |
5167 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5168 | { |
5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5170 | (arg1)->SetDepth(arg2); | |
5171 | ||
5172 | wxPyEndAllowThreads(__tstate); | |
5173 | if (PyErr_Occurred()) SWIG_fail; | |
5174 | } | |
5175 | Py_INCREF(Py_None); resultobj = Py_None; | |
5176 | return resultobj; | |
5177 | fail: | |
5178 | return NULL; | |
5179 | } | |
5180 | ||
5181 | ||
5182 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5183 | PyObject *resultobj; | |
5184 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5185 | wxSize *arg2 = 0 ; | |
5186 | wxSize temp2 ; | |
5187 | PyObject * obj0 = 0 ; | |
5188 | PyObject * obj1 = 0 ; | |
5189 | char *kwnames[] = { | |
5190 | (char *) "self",(char *) "size", NULL | |
5191 | }; | |
5192 | ||
5193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
5195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5196 | { |
5197 | arg2 = &temp2; | |
5198 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5199 | } | |
5200 | { | |
5201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5202 | (arg1)->SetSize((wxSize const &)*arg2); | |
5203 | ||
5204 | wxPyEndAllowThreads(__tstate); | |
5205 | if (PyErr_Occurred()) SWIG_fail; | |
5206 | } | |
5207 | Py_INCREF(Py_None); resultobj = Py_None; | |
5208 | return resultobj; | |
5209 | fail: | |
5210 | return NULL; | |
5211 | } | |
5212 | ||
5213 | ||
5214 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
5215 | PyObject *obj; | |
5216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5217 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
5218 | Py_INCREF(obj); | |
5219 | return Py_BuildValue((char *)""); | |
5220 | } | |
5221 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5222 | PyObject *resultobj; | |
423f194a RD |
5223 | int arg1 = (int) 0 ; |
5224 | int arg2 = (int) 0 ; | |
5225 | int arg3 = (int) 0 ; | |
5226 | int arg4 = (int) 0 ; | |
d14a1e28 | 5227 | wxRegion *result; |
8edf1c75 RD |
5228 | PyObject * obj0 = 0 ; |
5229 | PyObject * obj1 = 0 ; | |
5230 | PyObject * obj2 = 0 ; | |
5231 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5232 | char *kwnames[] = { |
5233 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5234 | }; | |
5235 | ||
8edf1c75 RD |
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
5237 | if (obj0) { | |
2f4c0a16 RD |
5238 | arg1 = (int) SWIG_AsInt(obj0); |
5239 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
5240 | } |
5241 | if (obj1) { | |
2f4c0a16 RD |
5242 | arg2 = (int) SWIG_AsInt(obj1); |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
5244 | } |
5245 | if (obj2) { | |
2f4c0a16 RD |
5246 | arg3 = (int) SWIG_AsInt(obj2); |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
5248 | } |
5249 | if (obj3) { | |
2f4c0a16 RD |
5250 | arg4 = (int) SWIG_AsInt(obj3); |
5251 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5252 | } |
d14a1e28 RD |
5253 | { |
5254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5255 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
5256 | ||
5257 | wxPyEndAllowThreads(__tstate); | |
5258 | if (PyErr_Occurred()) SWIG_fail; | |
5259 | } | |
2f4c0a16 | 5260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
5261 | return resultobj; |
5262 | fail: | |
5263 | return NULL; | |
5264 | } | |
5265 | ||
5266 | ||
5267 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5268 | PyObject *resultobj; | |
5269 | wxBitmap *arg1 = 0 ; | |
5270 | wxColour const &arg2_defvalue = wxNullColour ; | |
5271 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5272 | int arg3 = (int) 0 ; | |
5273 | wxRegion *result; | |
5274 | wxColour temp2 ; | |
5275 | PyObject * obj0 = 0 ; | |
5276 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5277 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5278 | char *kwnames[] = { |
5279 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5280 | }; | |
5281 | ||
8edf1c75 | 5282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
5284 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5285 | SWIG_fail; | |
d14a1e28 | 5286 | if (arg1 == NULL) { |
2f4c0a16 RD |
5287 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5288 | SWIG_fail; | |
d14a1e28 RD |
5289 | } |
5290 | if (obj1) { | |
5291 | { | |
5292 | arg2 = &temp2; | |
5293 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5294 | } | |
5295 | } | |
8edf1c75 | 5296 | if (obj2) { |
2f4c0a16 RD |
5297 | arg3 = (int) SWIG_AsInt(obj2); |
5298 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5299 | } |
d14a1e28 RD |
5300 | { |
5301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5302 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
5303 | ||
5304 | wxPyEndAllowThreads(__tstate); | |
5305 | if (PyErr_Occurred()) SWIG_fail; | |
5306 | } | |
2f4c0a16 | 5307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
5308 | return resultobj; |
5309 | fail: | |
5310 | return NULL; | |
5311 | } | |
5312 | ||
5313 | ||
5314 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5315 | PyObject *resultobj; | |
5316 | int arg1 ; | |
5317 | wxPoint *arg2 = (wxPoint *) 0 ; | |
5318 | int arg3 = (int) wxWINDING_RULE ; | |
5319 | wxRegion *result; | |
5320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5321 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5322 | char *kwnames[] = { |
5323 | (char *) "points",(char *) "fillStyle", NULL | |
5324 | }; | |
5325 | ||
8edf1c75 | 5326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
5327 | { |
5328 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
5329 | if (arg2 == NULL) SWIG_fail; | |
5330 | } | |
8edf1c75 | 5331 | if (obj1) { |
2f4c0a16 RD |
5332 | arg3 = (int) SWIG_AsInt(obj1); |
5333 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5334 | } |
d14a1e28 RD |
5335 | { |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
5338 | ||
5339 | wxPyEndAllowThreads(__tstate); | |
5340 | if (PyErr_Occurred()) SWIG_fail; | |
5341 | } | |
2f4c0a16 | 5342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
5343 | { |
5344 | if (arg2) delete [] arg2; | |
5345 | } | |
5346 | return resultobj; | |
5347 | fail: | |
5348 | { | |
5349 | if (arg2) delete [] arg2; | |
5350 | } | |
5351 | return NULL; | |
5352 | } | |
5353 | ||
5354 | ||
5355 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5356 | PyObject *resultobj; | |
5357 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5358 | PyObject * obj0 = 0 ; | |
5359 | char *kwnames[] = { | |
5360 | (char *) "self", NULL | |
5361 | }; | |
5362 | ||
5363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5366 | { |
5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5368 | delete arg1; | |
5369 | ||
5370 | wxPyEndAllowThreads(__tstate); | |
5371 | if (PyErr_Occurred()) SWIG_fail; | |
5372 | } | |
5373 | Py_INCREF(Py_None); resultobj = Py_None; | |
5374 | return resultobj; | |
5375 | fail: | |
5376 | return NULL; | |
5377 | } | |
5378 | ||
5379 | ||
5380 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5381 | PyObject *resultobj; | |
5382 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5383 | PyObject * obj0 = 0 ; | |
5384 | char *kwnames[] = { | |
5385 | (char *) "self", NULL | |
5386 | }; | |
5387 | ||
5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5391 | { |
5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5393 | (arg1)->Clear(); | |
5394 | ||
5395 | wxPyEndAllowThreads(__tstate); | |
5396 | if (PyErr_Occurred()) SWIG_fail; | |
5397 | } | |
5398 | Py_INCREF(Py_None); resultobj = Py_None; | |
5399 | return resultobj; | |
5400 | fail: | |
5401 | return NULL; | |
5402 | } | |
5403 | ||
5404 | ||
5405 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5406 | PyObject *resultobj; | |
5407 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5408 | int arg2 ; |
5409 | int arg3 ; | |
d14a1e28 RD |
5410 | bool result; |
5411 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5412 | PyObject * obj1 = 0 ; |
5413 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5414 | char *kwnames[] = { |
5415 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5416 | }; | |
5417 | ||
8edf1c75 | 5418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5421 | arg2 = (int) SWIG_AsInt(obj1); | |
5422 | if (PyErr_Occurred()) SWIG_fail; | |
5423 | arg3 = (int) SWIG_AsInt(obj2); | |
5424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5425 | { |
5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5427 | result = (bool)(arg1)->Offset(arg2,arg3); | |
5428 | ||
5429 | wxPyEndAllowThreads(__tstate); | |
5430 | if (PyErr_Occurred()) SWIG_fail; | |
5431 | } | |
4f89f6a3 RD |
5432 | { |
5433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5434 | } | |
d14a1e28 RD |
5435 | return resultobj; |
5436 | fail: | |
5437 | return NULL; | |
5438 | } | |
5439 | ||
5440 | ||
5441 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5442 | PyObject *resultobj; | |
5443 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5444 | int arg2 ; |
5445 | int arg3 ; | |
d14a1e28 RD |
5446 | int result; |
5447 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5448 | PyObject * obj1 = 0 ; |
5449 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5450 | char *kwnames[] = { |
5451 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5452 | }; | |
5453 | ||
8edf1c75 | 5454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5457 | arg2 = (int) SWIG_AsInt(obj1); | |
5458 | if (PyErr_Occurred()) SWIG_fail; | |
5459 | arg3 = (int) SWIG_AsInt(obj2); | |
5460 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5461 | { |
5462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5463 | result = (int)(arg1)->Contains(arg2,arg3); | |
5464 | ||
5465 | wxPyEndAllowThreads(__tstate); | |
5466 | if (PyErr_Occurred()) SWIG_fail; | |
5467 | } | |
2f4c0a16 | 5468 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5469 | return resultobj; |
5470 | fail: | |
5471 | return NULL; | |
5472 | } | |
5473 | ||
5474 | ||
5475 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5476 | PyObject *resultobj; | |
5477 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5478 | wxPoint *arg2 = 0 ; | |
5479 | int result; | |
5480 | wxPoint temp2 ; | |
5481 | PyObject * obj0 = 0 ; | |
5482 | PyObject * obj1 = 0 ; | |
5483 | char *kwnames[] = { | |
5484 | (char *) "self",(char *) "pt", NULL | |
5485 | }; | |
5486 | ||
5487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5490 | { |
5491 | arg2 = &temp2; | |
5492 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5493 | } | |
5494 | { | |
5495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5496 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5497 | ||
5498 | wxPyEndAllowThreads(__tstate); | |
5499 | if (PyErr_Occurred()) SWIG_fail; | |
5500 | } | |
2f4c0a16 | 5501 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5502 | return resultobj; |
5503 | fail: | |
5504 | return NULL; | |
5505 | } | |
5506 | ||
5507 | ||
5508 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5509 | PyObject *resultobj; | |
5510 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5511 | wxRect *arg2 = 0 ; | |
5512 | int result; | |
5513 | wxRect temp2 ; | |
5514 | PyObject * obj0 = 0 ; | |
5515 | PyObject * obj1 = 0 ; | |
5516 | char *kwnames[] = { | |
5517 | (char *) "self",(char *) "rect", NULL | |
5518 | }; | |
5519 | ||
5520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5523 | { |
5524 | arg2 = &temp2; | |
5525 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5526 | } | |
5527 | { | |
5528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5529 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5530 | ||
5531 | wxPyEndAllowThreads(__tstate); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
5533 | } | |
2f4c0a16 | 5534 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5535 | return resultobj; |
5536 | fail: | |
5537 | return NULL; | |
5538 | } | |
5539 | ||
5540 | ||
5541 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5542 | PyObject *resultobj; | |
5543 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5544 | int arg2 ; |
5545 | int arg3 ; | |
5546 | int arg4 ; | |
5547 | int arg5 ; | |
d14a1e28 RD |
5548 | int result; |
5549 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5550 | PyObject * obj1 = 0 ; |
5551 | PyObject * obj2 = 0 ; | |
5552 | PyObject * obj3 = 0 ; | |
5553 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5554 | char *kwnames[] = { |
5555 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5556 | }; | |
5557 | ||
8edf1c75 | 5558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5561 | arg2 = (int) SWIG_AsInt(obj1); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | arg3 = (int) SWIG_AsInt(obj2); | |
5564 | if (PyErr_Occurred()) SWIG_fail; | |
5565 | arg4 = (int) SWIG_AsInt(obj3); | |
5566 | if (PyErr_Occurred()) SWIG_fail; | |
5567 | arg5 = (int) SWIG_AsInt(obj4); | |
5568 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5569 | { |
5570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5571 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5572 | ||
5573 | wxPyEndAllowThreads(__tstate); | |
5574 | if (PyErr_Occurred()) SWIG_fail; | |
5575 | } | |
2f4c0a16 | 5576 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5577 | return resultobj; |
5578 | fail: | |
5579 | return NULL; | |
5580 | } | |
5581 | ||
5582 | ||
5583 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5584 | PyObject *resultobj; | |
5585 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5586 | wxRect result; | |
5587 | PyObject * obj0 = 0 ; | |
5588 | char *kwnames[] = { | |
5589 | (char *) "self", NULL | |
5590 | }; | |
5591 | ||
5592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5595 | { |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5597 | result = (arg1)->GetBox(); | |
5598 | ||
5599 | wxPyEndAllowThreads(__tstate); | |
5600 | if (PyErr_Occurred()) SWIG_fail; | |
5601 | } | |
5602 | { | |
5603 | wxRect * resultptr; | |
5604 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 5605 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5606 | } |
5607 | return resultobj; | |
5608 | fail: | |
5609 | return NULL; | |
5610 | } | |
5611 | ||
5612 | ||
5613 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5614 | PyObject *resultobj; | |
5615 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5616 | int arg2 ; |
5617 | int arg3 ; | |
5618 | int arg4 ; | |
5619 | int arg5 ; | |
d14a1e28 RD |
5620 | bool result; |
5621 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5622 | PyObject * obj1 = 0 ; |
5623 | PyObject * obj2 = 0 ; | |
5624 | PyObject * obj3 = 0 ; | |
5625 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5626 | char *kwnames[] = { |
5627 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5628 | }; | |
5629 | ||
8edf1c75 | 5630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5633 | arg2 = (int) SWIG_AsInt(obj1); | |
5634 | if (PyErr_Occurred()) SWIG_fail; | |
5635 | arg3 = (int) SWIG_AsInt(obj2); | |
5636 | if (PyErr_Occurred()) SWIG_fail; | |
5637 | arg4 = (int) SWIG_AsInt(obj3); | |
5638 | if (PyErr_Occurred()) SWIG_fail; | |
5639 | arg5 = (int) SWIG_AsInt(obj4); | |
5640 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5641 | { |
5642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5643 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5644 | ||
5645 | wxPyEndAllowThreads(__tstate); | |
5646 | if (PyErr_Occurred()) SWIG_fail; | |
5647 | } | |
4f89f6a3 RD |
5648 | { |
5649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5650 | } | |
d14a1e28 RD |
5651 | return resultobj; |
5652 | fail: | |
5653 | return NULL; | |
5654 | } | |
5655 | ||
5656 | ||
5657 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5658 | PyObject *resultobj; | |
5659 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5660 | wxRect *arg2 = 0 ; | |
5661 | bool result; | |
5662 | wxRect temp2 ; | |
5663 | PyObject * obj0 = 0 ; | |
5664 | PyObject * obj1 = 0 ; | |
5665 | char *kwnames[] = { | |
5666 | (char *) "self",(char *) "rect", NULL | |
5667 | }; | |
5668 | ||
5669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5672 | { |
5673 | arg2 = &temp2; | |
5674 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5675 | } | |
5676 | { | |
5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5678 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5679 | ||
5680 | wxPyEndAllowThreads(__tstate); | |
5681 | if (PyErr_Occurred()) SWIG_fail; | |
5682 | } | |
4f89f6a3 RD |
5683 | { |
5684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5685 | } | |
d14a1e28 RD |
5686 | return resultobj; |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
5692 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject *resultobj; | |
5694 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5695 | wxRegion *arg2 = 0 ; | |
5696 | bool result; | |
5697 | PyObject * obj0 = 0 ; | |
5698 | PyObject * obj1 = 0 ; | |
5699 | char *kwnames[] = { | |
5700 | (char *) "self",(char *) "region", NULL | |
5701 | }; | |
5702 | ||
5703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5706 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5708 | SWIG_fail; | |
d14a1e28 | 5709 | if (arg2 == NULL) { |
2f4c0a16 RD |
5710 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5711 | SWIG_fail; | |
d14a1e28 RD |
5712 | } |
5713 | { | |
5714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5715 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5716 | ||
5717 | wxPyEndAllowThreads(__tstate); | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
4f89f6a3 RD |
5720 | { |
5721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5722 | } | |
d14a1e28 RD |
5723 | return resultobj; |
5724 | fail: | |
5725 | return NULL; | |
5726 | } | |
5727 | ||
5728 | ||
5729 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5730 | PyObject *resultobj; | |
5731 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5732 | bool result; | |
5733 | PyObject * obj0 = 0 ; | |
5734 | char *kwnames[] = { | |
5735 | (char *) "self", NULL | |
5736 | }; | |
5737 | ||
5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5741 | { |
5742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5743 | result = (bool)(arg1)->IsEmpty(); | |
5744 | ||
5745 | wxPyEndAllowThreads(__tstate); | |
5746 | if (PyErr_Occurred()) SWIG_fail; | |
5747 | } | |
4f89f6a3 RD |
5748 | { |
5749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5750 | } | |
d14a1e28 RD |
5751 | return resultobj; |
5752 | fail: | |
5753 | return NULL; | |
5754 | } | |
5755 | ||
5756 | ||
5757 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5758 | PyObject *resultobj; | |
5759 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5760 | int arg2 ; |
5761 | int arg3 ; | |
5762 | int arg4 ; | |
5763 | int arg5 ; | |
d14a1e28 RD |
5764 | bool result; |
5765 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5766 | PyObject * obj1 = 0 ; |
5767 | PyObject * obj2 = 0 ; | |
5768 | PyObject * obj3 = 0 ; | |
5769 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5770 | char *kwnames[] = { |
5771 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5772 | }; | |
5773 | ||
8edf1c75 | 5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5777 | arg2 = (int) SWIG_AsInt(obj1); | |
5778 | if (PyErr_Occurred()) SWIG_fail; | |
5779 | arg3 = (int) SWIG_AsInt(obj2); | |
5780 | if (PyErr_Occurred()) SWIG_fail; | |
5781 | arg4 = (int) SWIG_AsInt(obj3); | |
5782 | if (PyErr_Occurred()) SWIG_fail; | |
5783 | arg5 = (int) SWIG_AsInt(obj4); | |
5784 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5785 | { |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5787 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5788 | ||
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | } | |
4f89f6a3 RD |
5792 | { |
5793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5794 | } | |
d14a1e28 RD |
5795 | return resultobj; |
5796 | fail: | |
5797 | return NULL; | |
5798 | } | |
5799 | ||
5800 | ||
5801 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5802 | PyObject *resultobj; | |
5803 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5804 | wxRect *arg2 = 0 ; | |
5805 | bool result; | |
5806 | wxRect temp2 ; | |
5807 | PyObject * obj0 = 0 ; | |
5808 | PyObject * obj1 = 0 ; | |
5809 | char *kwnames[] = { | |
5810 | (char *) "self",(char *) "rect", NULL | |
5811 | }; | |
5812 | ||
5813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5816 | { |
5817 | arg2 = &temp2; | |
5818 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5819 | } | |
5820 | { | |
5821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5822 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5823 | ||
5824 | wxPyEndAllowThreads(__tstate); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
4f89f6a3 RD |
5827 | { |
5828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5829 | } | |
d14a1e28 RD |
5830 | return resultobj; |
5831 | fail: | |
5832 | return NULL; | |
5833 | } | |
5834 | ||
5835 | ||
5836 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5837 | PyObject *resultobj; | |
5838 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5839 | wxRegion *arg2 = 0 ; | |
5840 | bool result; | |
5841 | PyObject * obj0 = 0 ; | |
5842 | PyObject * obj1 = 0 ; | |
5843 | char *kwnames[] = { | |
5844 | (char *) "self",(char *) "region", NULL | |
5845 | }; | |
5846 | ||
5847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5852 | SWIG_fail; | |
d14a1e28 | 5853 | if (arg2 == NULL) { |
2f4c0a16 RD |
5854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5855 | SWIG_fail; | |
d14a1e28 RD |
5856 | } |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5860 | ||
5861 | wxPyEndAllowThreads(__tstate); | |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | } | |
4f89f6a3 RD |
5864 | { |
5865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5866 | } | |
d14a1e28 RD |
5867 | return resultobj; |
5868 | fail: | |
5869 | return NULL; | |
5870 | } | |
5871 | ||
5872 | ||
5873 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5874 | PyObject *resultobj; | |
5875 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5876 | int arg2 ; |
5877 | int arg3 ; | |
5878 | int arg4 ; | |
5879 | int arg5 ; | |
d14a1e28 RD |
5880 | bool result; |
5881 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5882 | PyObject * obj1 = 0 ; |
5883 | PyObject * obj2 = 0 ; | |
5884 | PyObject * obj3 = 0 ; | |
5885 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5886 | char *kwnames[] = { |
5887 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5888 | }; | |
5889 | ||
8edf1c75 | 5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5893 | arg2 = (int) SWIG_AsInt(obj1); | |
5894 | if (PyErr_Occurred()) SWIG_fail; | |
5895 | arg3 = (int) SWIG_AsInt(obj2); | |
5896 | if (PyErr_Occurred()) SWIG_fail; | |
5897 | arg4 = (int) SWIG_AsInt(obj3); | |
5898 | if (PyErr_Occurred()) SWIG_fail; | |
5899 | arg5 = (int) SWIG_AsInt(obj4); | |
5900 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5901 | { |
5902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5903 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5904 | ||
5905 | wxPyEndAllowThreads(__tstate); | |
5906 | if (PyErr_Occurred()) SWIG_fail; | |
5907 | } | |
4f89f6a3 RD |
5908 | { |
5909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5910 | } | |
d14a1e28 RD |
5911 | return resultobj; |
5912 | fail: | |
5913 | return NULL; | |
5914 | } | |
5915 | ||
5916 | ||
5917 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject *resultobj; | |
5919 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5920 | wxRect *arg2 = 0 ; | |
5921 | bool result; | |
5922 | wxRect temp2 ; | |
5923 | PyObject * obj0 = 0 ; | |
5924 | PyObject * obj1 = 0 ; | |
5925 | char *kwnames[] = { | |
5926 | (char *) "self",(char *) "rect", NULL | |
5927 | }; | |
5928 | ||
5929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5932 | { |
5933 | arg2 = &temp2; | |
5934 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5935 | } | |
5936 | { | |
5937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5938 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5939 | ||
5940 | wxPyEndAllowThreads(__tstate); | |
5941 | if (PyErr_Occurred()) SWIG_fail; | |
5942 | } | |
4f89f6a3 RD |
5943 | { |
5944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5945 | } | |
d14a1e28 RD |
5946 | return resultobj; |
5947 | fail: | |
5948 | return NULL; | |
5949 | } | |
5950 | ||
5951 | ||
5952 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject *resultobj; | |
5954 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5955 | wxRegion *arg2 = 0 ; | |
5956 | bool result; | |
5957 | PyObject * obj0 = 0 ; | |
5958 | PyObject * obj1 = 0 ; | |
5959 | char *kwnames[] = { | |
5960 | (char *) "self",(char *) "region", NULL | |
5961 | }; | |
5962 | ||
5963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5966 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5967 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5968 | SWIG_fail; | |
d14a1e28 | 5969 | if (arg2 == NULL) { |
2f4c0a16 RD |
5970 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5971 | SWIG_fail; | |
d14a1e28 RD |
5972 | } |
5973 | { | |
5974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5975 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5976 | ||
5977 | wxPyEndAllowThreads(__tstate); | |
5978 | if (PyErr_Occurred()) SWIG_fail; | |
5979 | } | |
4f89f6a3 RD |
5980 | { |
5981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5982 | } | |
d14a1e28 RD |
5983 | return resultobj; |
5984 | fail: | |
5985 | return NULL; | |
5986 | } | |
5987 | ||
5988 | ||
5989 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject *resultobj; | |
5991 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5992 | int arg2 ; |
5993 | int arg3 ; | |
5994 | int arg4 ; | |
5995 | int arg5 ; | |
d14a1e28 RD |
5996 | bool result; |
5997 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5998 | PyObject * obj1 = 0 ; |
5999 | PyObject * obj2 = 0 ; | |
6000 | PyObject * obj3 = 0 ; | |
6001 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
6002 | char *kwnames[] = { |
6003 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
6004 | }; | |
6005 | ||
8edf1c75 | 6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
6007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6009 | arg2 = (int) SWIG_AsInt(obj1); | |
6010 | if (PyErr_Occurred()) SWIG_fail; | |
6011 | arg3 = (int) SWIG_AsInt(obj2); | |
6012 | if (PyErr_Occurred()) SWIG_fail; | |
6013 | arg4 = (int) SWIG_AsInt(obj3); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | arg5 = (int) SWIG_AsInt(obj4); | |
6016 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6017 | { |
6018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6019 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
6020 | ||
6021 | wxPyEndAllowThreads(__tstate); | |
6022 | if (PyErr_Occurred()) SWIG_fail; | |
6023 | } | |
4f89f6a3 RD |
6024 | { |
6025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6026 | } | |
d14a1e28 RD |
6027 | return resultobj; |
6028 | fail: | |
6029 | return NULL; | |
6030 | } | |
6031 | ||
6032 | ||
6033 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6034 | PyObject *resultobj; | |
6035 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6036 | wxRect *arg2 = 0 ; | |
6037 | bool result; | |
6038 | wxRect temp2 ; | |
6039 | PyObject * obj0 = 0 ; | |
6040 | PyObject * obj1 = 0 ; | |
6041 | char *kwnames[] = { | |
6042 | (char *) "self",(char *) "rect", NULL | |
6043 | }; | |
6044 | ||
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6048 | { |
6049 | arg2 = &temp2; | |
6050 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6051 | } | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
4f89f6a3 RD |
6059 | { |
6060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6061 | } | |
d14a1e28 RD |
6062 | return resultobj; |
6063 | fail: | |
6064 | return NULL; | |
6065 | } | |
6066 | ||
6067 | ||
6068 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject *resultobj; | |
6070 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6071 | wxRegion *arg2 = 0 ; | |
6072 | bool result; | |
6073 | PyObject * obj0 = 0 ; | |
6074 | PyObject * obj1 = 0 ; | |
6075 | char *kwnames[] = { | |
6076 | (char *) "self",(char *) "region", NULL | |
6077 | }; | |
6078 | ||
6079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6082 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6084 | SWIG_fail; | |
d14a1e28 | 6085 | if (arg2 == NULL) { |
2f4c0a16 RD |
6086 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6087 | SWIG_fail; | |
d14a1e28 RD |
6088 | } |
6089 | { | |
6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6091 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
6092 | ||
6093 | wxPyEndAllowThreads(__tstate); | |
6094 | if (PyErr_Occurred()) SWIG_fail; | |
6095 | } | |
4f89f6a3 RD |
6096 | { |
6097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6098 | } | |
d14a1e28 RD |
6099 | return resultobj; |
6100 | fail: | |
6101 | return NULL; | |
6102 | } | |
6103 | ||
6104 | ||
6105 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6106 | PyObject *resultobj; | |
6107 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6108 | SwigValueWrapper< wxBitmap > result; | |
6109 | PyObject * obj0 = 0 ; | |
6110 | char *kwnames[] = { | |
6111 | (char *) "self", NULL | |
6112 | }; | |
6113 | ||
6114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6117 | { |
6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6119 | result = (arg1)->ConvertToBitmap(); | |
6120 | ||
6121 | wxPyEndAllowThreads(__tstate); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
6124 | { | |
6125 | wxBitmap * resultptr; | |
6126 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 6127 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
6128 | } |
6129 | return resultobj; | |
6130 | fail: | |
6131 | return NULL; | |
6132 | } | |
6133 | ||
6134 | ||
6135 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6136 | PyObject *resultobj; | |
6137 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6138 | wxBitmap *arg2 = 0 ; | |
6139 | wxColour const &arg3_defvalue = wxNullColour ; | |
6140 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
6141 | int arg4 = (int) 0 ; | |
6142 | bool result; | |
6143 | wxColour temp3 ; | |
6144 | PyObject * obj0 = 0 ; | |
6145 | PyObject * obj1 = 0 ; | |
6146 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6147 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
6148 | char *kwnames[] = { |
6149 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
6150 | }; | |
6151 | ||
8edf1c75 | 6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
6153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6157 | SWIG_fail; | |
d14a1e28 | 6158 | if (arg2 == NULL) { |
2f4c0a16 RD |
6159 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6160 | SWIG_fail; | |
d14a1e28 RD |
6161 | } |
6162 | if (obj2) { | |
6163 | { | |
6164 | arg3 = &temp3; | |
6165 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6166 | } | |
6167 | } | |
8edf1c75 | 6168 | if (obj3) { |
2f4c0a16 RD |
6169 | arg4 = (int) SWIG_AsInt(obj3); |
6170 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6171 | } |
d14a1e28 RD |
6172 | { |
6173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6174 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
6175 | ||
6176 | wxPyEndAllowThreads(__tstate); | |
6177 | if (PyErr_Occurred()) SWIG_fail; | |
6178 | } | |
4f89f6a3 RD |
6179 | { |
6180 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6181 | } | |
d14a1e28 RD |
6182 | return resultobj; |
6183 | fail: | |
6184 | return NULL; | |
6185 | } | |
6186 | ||
6187 | ||
6188 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
6189 | PyObject *obj; | |
6190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6191 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
6192 | Py_INCREF(obj); | |
6193 | return Py_BuildValue((char *)""); | |
6194 | } | |
6195 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6196 | PyObject *resultobj; | |
6197 | wxRegion *arg1 = 0 ; | |
6198 | wxRegionIterator *result; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | char *kwnames[] = { | |
6201 | (char *) "region", NULL | |
6202 | }; | |
6203 | ||
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6206 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6207 | SWIG_fail; | |
d14a1e28 | 6208 | if (arg1 == NULL) { |
2f4c0a16 RD |
6209 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6210 | SWIG_fail; | |
d14a1e28 RD |
6211 | } |
6212 | { | |
6213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6214 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
6215 | ||
6216 | wxPyEndAllowThreads(__tstate); | |
6217 | if (PyErr_Occurred()) SWIG_fail; | |
6218 | } | |
2f4c0a16 | 6219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
6220 | return resultobj; |
6221 | fail: | |
6222 | return NULL; | |
6223 | } | |
6224 | ||
6225 | ||
6226 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject *resultobj; | |
6228 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6229 | PyObject * obj0 = 0 ; | |
6230 | char *kwnames[] = { | |
6231 | (char *) "self", NULL | |
6232 | }; | |
6233 | ||
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6237 | { |
6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6239 | delete arg1; | |
6240 | ||
6241 | wxPyEndAllowThreads(__tstate); | |
6242 | if (PyErr_Occurred()) SWIG_fail; | |
6243 | } | |
6244 | Py_INCREF(Py_None); resultobj = Py_None; | |
6245 | return resultobj; | |
6246 | fail: | |
6247 | return NULL; | |
6248 | } | |
6249 | ||
6250 | ||
6251 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6252 | PyObject *resultobj; | |
6253 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6254 | int result; |
d14a1e28 RD |
6255 | PyObject * obj0 = 0 ; |
6256 | char *kwnames[] = { | |
6257 | (char *) "self", NULL | |
6258 | }; | |
6259 | ||
6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6263 | { |
6264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6265 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
6266 | |
6267 | wxPyEndAllowThreads(__tstate); | |
6268 | if (PyErr_Occurred()) SWIG_fail; | |
6269 | } | |
2f4c0a16 | 6270 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6271 | return resultobj; |
6272 | fail: | |
6273 | return NULL; | |
6274 | } | |
6275 | ||
6276 | ||
6277 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6278 | PyObject *resultobj; | |
6279 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6280 | int result; |
d14a1e28 RD |
6281 | PyObject * obj0 = 0 ; |
6282 | char *kwnames[] = { | |
6283 | (char *) "self", NULL | |
6284 | }; | |
6285 | ||
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6289 | { |
6290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6291 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
6292 | |
6293 | wxPyEndAllowThreads(__tstate); | |
6294 | if (PyErr_Occurred()) SWIG_fail; | |
6295 | } | |
2f4c0a16 | 6296 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6297 | return resultobj; |
6298 | fail: | |
6299 | return NULL; | |
6300 | } | |
6301 | ||
6302 | ||
6303 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject *resultobj; | |
6305 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6306 | int result; |
d14a1e28 RD |
6307 | PyObject * obj0 = 0 ; |
6308 | char *kwnames[] = { | |
6309 | (char *) "self", NULL | |
6310 | }; | |
6311 | ||
6312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6315 | { |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6317 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
6318 | |
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
2f4c0a16 | 6322 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6323 | return resultobj; |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
6329 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj; | |
6331 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6332 | int result; |
d14a1e28 RD |
6333 | PyObject * obj0 = 0 ; |
6334 | char *kwnames[] = { | |
6335 | (char *) "self", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6341 | { |
6342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6343 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
6344 | |
6345 | wxPyEndAllowThreads(__tstate); | |
6346 | if (PyErr_Occurred()) SWIG_fail; | |
6347 | } | |
2f4c0a16 | 6348 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6349 | return resultobj; |
6350 | fail: | |
6351 | return NULL; | |
6352 | } | |
6353 | ||
6354 | ||
6355 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6356 | PyObject *resultobj; | |
6357 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6358 | int result; |
d14a1e28 RD |
6359 | PyObject * obj0 = 0 ; |
6360 | char *kwnames[] = { | |
6361 | (char *) "self", NULL | |
6362 | }; | |
6363 | ||
6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6367 | { |
6368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6369 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
6370 | |
6371 | wxPyEndAllowThreads(__tstate); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
2f4c0a16 | 6374 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6375 | return resultobj; |
6376 | fail: | |
6377 | return NULL; | |
6378 | } | |
6379 | ||
6380 | ||
6381 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6382 | PyObject *resultobj; | |
6383 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 6384 | int result; |
d14a1e28 RD |
6385 | PyObject * obj0 = 0 ; |
6386 | char *kwnames[] = { | |
6387 | (char *) "self", NULL | |
6388 | }; | |
6389 | ||
6390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6393 | { |
6394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 6395 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
6396 | |
6397 | wxPyEndAllowThreads(__tstate); | |
6398 | if (PyErr_Occurred()) SWIG_fail; | |
6399 | } | |
2f4c0a16 | 6400 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6401 | return resultobj; |
6402 | fail: | |
6403 | return NULL; | |
6404 | } | |
6405 | ||
6406 | ||
6407 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6408 | PyObject *resultobj; | |
6409 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6410 | wxRect result; | |
6411 | PyObject * obj0 = 0 ; | |
6412 | char *kwnames[] = { | |
6413 | (char *) "self", NULL | |
6414 | }; | |
6415 | ||
6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6419 | { |
6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6421 | result = (arg1)->GetRect(); | |
6422 | ||
6423 | wxPyEndAllowThreads(__tstate); | |
6424 | if (PyErr_Occurred()) SWIG_fail; | |
6425 | } | |
6426 | { | |
6427 | wxRect * resultptr; | |
6428 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 6429 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
6430 | } |
6431 | return resultobj; | |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
6437 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6438 | PyObject *resultobj; | |
6439 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6440 | bool result; | |
6441 | PyObject * obj0 = 0 ; | |
6442 | char *kwnames[] = { | |
6443 | (char *) "self", NULL | |
6444 | }; | |
6445 | ||
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6449 | { |
6450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6451 | result = (bool)(arg1)->HaveRects(); | |
6452 | ||
6453 | wxPyEndAllowThreads(__tstate); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
4f89f6a3 RD |
6456 | { |
6457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6458 | } | |
d14a1e28 RD |
6459 | return resultobj; |
6460 | fail: | |
6461 | return NULL; | |
6462 | } | |
6463 | ||
6464 | ||
6465 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6466 | PyObject *resultobj; | |
6467 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6468 | PyObject * obj0 = 0 ; | |
6469 | char *kwnames[] = { | |
6470 | (char *) "self", NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6476 | { |
6477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6478 | (arg1)->Reset(); | |
6479 | ||
6480 | wxPyEndAllowThreads(__tstate); | |
6481 | if (PyErr_Occurred()) SWIG_fail; | |
6482 | } | |
6483 | Py_INCREF(Py_None); resultobj = Py_None; | |
6484 | return resultobj; | |
6485 | fail: | |
6486 | return NULL; | |
6487 | } | |
6488 | ||
6489 | ||
6490 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6491 | PyObject *resultobj; | |
6492 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6493 | PyObject * obj0 = 0 ; | |
6494 | char *kwnames[] = { | |
6495 | (char *) "self", NULL | |
6496 | }; | |
6497 | ||
6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6501 | { |
6502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6503 | wxRegionIterator_Next(arg1); | |
6504 | ||
6505 | wxPyEndAllowThreads(__tstate); | |
6506 | if (PyErr_Occurred()) SWIG_fail; | |
6507 | } | |
6508 | Py_INCREF(Py_None); resultobj = Py_None; | |
6509 | return resultobj; | |
6510 | fail: | |
6511 | return NULL; | |
6512 | } | |
6513 | ||
6514 | ||
6515 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6516 | PyObject *resultobj; | |
6517 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6518 | bool result; | |
6519 | PyObject * obj0 = 0 ; | |
6520 | char *kwnames[] = { | |
6521 | (char *) "self", NULL | |
6522 | }; | |
6523 | ||
6524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
6526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6527 | { |
6528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6529 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6530 | ||
6531 | wxPyEndAllowThreads(__tstate); | |
6532 | if (PyErr_Occurred()) SWIG_fail; | |
6533 | } | |
4f89f6a3 RD |
6534 | { |
6535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6536 | } | |
d14a1e28 RD |
6537 | return resultobj; |
6538 | fail: | |
6539 | return NULL; | |
6540 | } | |
6541 | ||
6542 | ||
6543 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
6544 | PyObject *obj; | |
6545 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6546 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6547 | Py_INCREF(obj); | |
6548 | return Py_BuildValue((char *)""); | |
6549 | } | |
6550 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6551 | PyObject *resultobj; | |
6552 | wxNativeFontInfo *result; | |
6553 | char *kwnames[] = { | |
6554 | NULL | |
6555 | }; | |
6556 | ||
6557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6558 | { | |
6559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6560 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6561 | ||
6562 | wxPyEndAllowThreads(__tstate); | |
6563 | if (PyErr_Occurred()) SWIG_fail; | |
6564 | } | |
2f4c0a16 | 6565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
6566 | return resultobj; |
6567 | fail: | |
6568 | return NULL; | |
6569 | } | |
6570 | ||
6571 | ||
6572 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6573 | PyObject *resultobj; | |
6574 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6575 | PyObject * obj0 = 0 ; | |
6576 | char *kwnames[] = { | |
6577 | (char *) "self", NULL | |
6578 | }; | |
6579 | ||
6580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6583 | { |
6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6585 | delete arg1; | |
6586 | ||
6587 | wxPyEndAllowThreads(__tstate); | |
6588 | if (PyErr_Occurred()) SWIG_fail; | |
6589 | } | |
6590 | Py_INCREF(Py_None); resultobj = Py_None; | |
6591 | return resultobj; | |
6592 | fail: | |
6593 | return NULL; | |
6594 | } | |
6595 | ||
6596 | ||
6597 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6598 | PyObject *resultobj; | |
6599 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6600 | PyObject * obj0 = 0 ; | |
6601 | char *kwnames[] = { | |
6602 | (char *) "self", NULL | |
6603 | }; | |
6604 | ||
6605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6608 | { |
6609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6610 | (arg1)->Init(); | |
6611 | ||
6612 | wxPyEndAllowThreads(__tstate); | |
6613 | if (PyErr_Occurred()) SWIG_fail; | |
6614 | } | |
6615 | Py_INCREF(Py_None); resultobj = Py_None; | |
6616 | return resultobj; | |
6617 | fail: | |
6618 | return NULL; | |
6619 | } | |
6620 | ||
6621 | ||
6622 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6623 | PyObject *resultobj; | |
6624 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6625 | wxFont *arg2 = 0 ; | |
6626 | PyObject * obj0 = 0 ; | |
6627 | PyObject * obj1 = 0 ; | |
6628 | char *kwnames[] = { | |
6629 | (char *) "self",(char *) "font", NULL | |
6630 | }; | |
6631 | ||
6632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6636 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6637 | SWIG_fail; | |
d14a1e28 | 6638 | if (arg2 == NULL) { |
2f4c0a16 RD |
6639 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6640 | SWIG_fail; | |
d14a1e28 RD |
6641 | } |
6642 | { | |
6643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6644 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6645 | ||
6646 | wxPyEndAllowThreads(__tstate); | |
6647 | if (PyErr_Occurred()) SWIG_fail; | |
6648 | } | |
6649 | Py_INCREF(Py_None); resultobj = Py_None; | |
6650 | return resultobj; | |
6651 | fail: | |
6652 | return NULL; | |
6653 | } | |
6654 | ||
6655 | ||
6656 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6657 | PyObject *resultobj; | |
6658 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6659 | int result; | |
6660 | PyObject * obj0 = 0 ; | |
6661 | char *kwnames[] = { | |
6662 | (char *) "self", NULL | |
6663 | }; | |
6664 | ||
6665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6668 | { |
6669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6670 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6671 | ||
6672 | wxPyEndAllowThreads(__tstate); | |
6673 | if (PyErr_Occurred()) SWIG_fail; | |
6674 | } | |
2f4c0a16 | 6675 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6676 | return resultobj; |
6677 | fail: | |
6678 | return NULL; | |
6679 | } | |
6680 | ||
6681 | ||
6682 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6683 | PyObject *resultobj; | |
6684 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6685 | int result; | |
6686 | PyObject * obj0 = 0 ; | |
6687 | char *kwnames[] = { | |
6688 | (char *) "self", NULL | |
6689 | }; | |
6690 | ||
6691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6694 | { |
6695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6696 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6697 | ||
6698 | wxPyEndAllowThreads(__tstate); | |
6699 | if (PyErr_Occurred()) SWIG_fail; | |
6700 | } | |
2f4c0a16 | 6701 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6702 | return resultobj; |
6703 | fail: | |
6704 | return NULL; | |
6705 | } | |
6706 | ||
6707 | ||
6708 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6709 | PyObject *resultobj; | |
6710 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6711 | int result; | |
6712 | PyObject * obj0 = 0 ; | |
6713 | char *kwnames[] = { | |
6714 | (char *) "self", NULL | |
6715 | }; | |
6716 | ||
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6720 | { |
6721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6722 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6723 | ||
6724 | wxPyEndAllowThreads(__tstate); | |
6725 | if (PyErr_Occurred()) SWIG_fail; | |
6726 | } | |
2f4c0a16 | 6727 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6728 | return resultobj; |
6729 | fail: | |
6730 | return NULL; | |
6731 | } | |
6732 | ||
6733 | ||
6734 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject *resultobj; | |
6736 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6737 | bool result; | |
6738 | PyObject * obj0 = 0 ; | |
6739 | char *kwnames[] = { | |
6740 | (char *) "self", NULL | |
6741 | }; | |
6742 | ||
6743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6746 | { |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6748 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6749 | ||
6750 | wxPyEndAllowThreads(__tstate); | |
6751 | if (PyErr_Occurred()) SWIG_fail; | |
6752 | } | |
4f89f6a3 RD |
6753 | { |
6754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6755 | } | |
d14a1e28 RD |
6756 | return resultobj; |
6757 | fail: | |
6758 | return NULL; | |
6759 | } | |
6760 | ||
6761 | ||
6762 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6763 | PyObject *resultobj; | |
6764 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6765 | wxString result; | |
6766 | PyObject * obj0 = 0 ; | |
6767 | char *kwnames[] = { | |
6768 | (char *) "self", NULL | |
6769 | }; | |
6770 | ||
6771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6774 | { |
6775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6776 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6777 | ||
6778 | wxPyEndAllowThreads(__tstate); | |
6779 | if (PyErr_Occurred()) SWIG_fail; | |
6780 | } | |
6781 | { | |
6782 | #if wxUSE_UNICODE | |
6783 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6784 | #else | |
6785 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6786 | #endif | |
6787 | } | |
6788 | return resultobj; | |
6789 | fail: | |
6790 | return NULL; | |
6791 | } | |
6792 | ||
6793 | ||
6794 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6795 | PyObject *resultobj; | |
6796 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6797 | int result; | |
6798 | PyObject * obj0 = 0 ; | |
6799 | char *kwnames[] = { | |
6800 | (char *) "self", NULL | |
6801 | }; | |
6802 | ||
6803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6806 | { |
6807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6808 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6809 | ||
6810 | wxPyEndAllowThreads(__tstate); | |
6811 | if (PyErr_Occurred()) SWIG_fail; | |
6812 | } | |
2f4c0a16 | 6813 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6814 | return resultobj; |
6815 | fail: | |
6816 | return NULL; | |
6817 | } | |
6818 | ||
6819 | ||
6820 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6821 | PyObject *resultobj; | |
6822 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6823 | int result; | |
6824 | PyObject * obj0 = 0 ; | |
6825 | char *kwnames[] = { | |
6826 | (char *) "self", NULL | |
6827 | }; | |
6828 | ||
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6832 | { |
6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6834 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6835 | ||
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
2f4c0a16 | 6839 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6840 | return resultobj; |
6841 | fail: | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
6846 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject *resultobj; | |
6848 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6849 | int arg2 ; | |
6850 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6851 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6852 | char *kwnames[] = { |
6853 | (char *) "self",(char *) "pointsize", NULL | |
6854 | }; | |
6855 | ||
8edf1c75 | 6856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6859 | arg2 = (int) SWIG_AsInt(obj1); | |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
6861 | { |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | (arg1)->SetPointSize(arg2); | |
d14a1e28 RD |
6864 | |
6865 | wxPyEndAllowThreads(__tstate); | |
6866 | if (PyErr_Occurred()) SWIG_fail; | |
6867 | } | |
6868 | Py_INCREF(Py_None); resultobj = Py_None; | |
6869 | return resultobj; | |
6870 | fail: | |
6871 | return NULL; | |
6872 | } | |
6873 | ||
6874 | ||
6875 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject *resultobj; | |
6877 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6878 | int arg2 ; | |
6879 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6880 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6881 | char *kwnames[] = { |
6882 | (char *) "self",(char *) "style", NULL | |
6883 | }; | |
6884 | ||
8edf1c75 | 6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6888 | arg2 = (wxFontStyle) SWIG_AsInt(obj1); | |
6889 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6890 | { |
6891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6892 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6893 | ||
6894 | wxPyEndAllowThreads(__tstate); | |
6895 | if (PyErr_Occurred()) SWIG_fail; | |
6896 | } | |
6897 | Py_INCREF(Py_None); resultobj = Py_None; | |
6898 | return resultobj; | |
6899 | fail: | |
6900 | return NULL; | |
6901 | } | |
6902 | ||
6903 | ||
6904 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6905 | PyObject *resultobj; | |
6906 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6907 | int arg2 ; | |
6908 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6909 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6910 | char *kwnames[] = { |
6911 | (char *) "self",(char *) "weight", NULL | |
6912 | }; | |
6913 | ||
8edf1c75 | 6914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6917 | arg2 = (wxFontWeight) SWIG_AsInt(obj1); | |
6918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6919 | { |
6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6921 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6922 | ||
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) SWIG_fail; | |
6925 | } | |
6926 | Py_INCREF(Py_None); resultobj = Py_None; | |
6927 | return resultobj; | |
6928 | fail: | |
6929 | return NULL; | |
6930 | } | |
6931 | ||
6932 | ||
6933 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6934 | PyObject *resultobj; | |
6935 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6936 | bool arg2 ; | |
6937 | PyObject * obj0 = 0 ; | |
6938 | PyObject * obj1 = 0 ; | |
6939 | char *kwnames[] = { | |
6940 | (char *) "self",(char *) "underlined", NULL | |
6941 | }; | |
6942 | ||
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6946 | arg2 = (bool) SWIG_AsBool(obj1); | |
6947 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6948 | { |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | (arg1)->SetUnderlined(arg2); | |
6951 | ||
6952 | wxPyEndAllowThreads(__tstate); | |
6953 | if (PyErr_Occurred()) SWIG_fail; | |
6954 | } | |
6955 | Py_INCREF(Py_None); resultobj = Py_None; | |
6956 | return resultobj; | |
6957 | fail: | |
6958 | return NULL; | |
6959 | } | |
6960 | ||
6961 | ||
6962 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6963 | PyObject *resultobj; | |
6964 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6965 | wxString arg2 ; | |
d14a1e28 RD |
6966 | PyObject * obj0 = 0 ; |
6967 | PyObject * obj1 = 0 ; | |
6968 | char *kwnames[] = { | |
6969 | (char *) "self",(char *) "facename", NULL | |
6970 | }; | |
6971 | ||
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
6975 | { |
6976 | wxString* sptr = wxString_in_helper(obj1); | |
6977 | if (sptr == NULL) SWIG_fail; | |
6978 | arg2 = *sptr; | |
6979 | delete sptr; | |
6980 | } | |
d14a1e28 RD |
6981 | { |
6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6983 | (arg1)->SetFaceName(arg2); | |
6984 | ||
6985 | wxPyEndAllowThreads(__tstate); | |
6986 | if (PyErr_Occurred()) SWIG_fail; | |
6987 | } | |
6988 | Py_INCREF(Py_None); resultobj = Py_None; | |
6989 | return resultobj; | |
6990 | fail: | |
6991 | return NULL; | |
6992 | } | |
6993 | ||
6994 | ||
6995 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6996 | PyObject *resultobj; | |
6997 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6998 | int arg2 ; | |
6999 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7000 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7001 | char *kwnames[] = { |
7002 | (char *) "self",(char *) "family", NULL | |
7003 | }; | |
7004 | ||
8edf1c75 | 7005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7008 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
7009 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7010 | { |
7011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7012 | (arg1)->SetFamily((wxFontFamily )arg2); | |
7013 | ||
7014 | wxPyEndAllowThreads(__tstate); | |
7015 | if (PyErr_Occurred()) SWIG_fail; | |
7016 | } | |
7017 | Py_INCREF(Py_None); resultobj = Py_None; | |
7018 | return resultobj; | |
7019 | fail: | |
7020 | return NULL; | |
7021 | } | |
7022 | ||
7023 | ||
7024 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7025 | PyObject *resultobj; | |
7026 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7027 | int arg2 ; | |
7028 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7029 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7030 | char *kwnames[] = { |
7031 | (char *) "self",(char *) "encoding", NULL | |
7032 | }; | |
7033 | ||
8edf1c75 | 7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7037 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7039 | { |
7040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7041 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7042 | ||
7043 | wxPyEndAllowThreads(__tstate); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | Py_INCREF(Py_None); resultobj = Py_None; | |
7047 | return resultobj; | |
7048 | fail: | |
7049 | return NULL; | |
7050 | } | |
7051 | ||
7052 | ||
7053 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7054 | PyObject *resultobj; | |
7055 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7056 | wxString *arg2 = 0 ; | |
7057 | bool result; | |
423f194a | 7058 | bool temp2 = False ; |
d14a1e28 RD |
7059 | PyObject * obj0 = 0 ; |
7060 | PyObject * obj1 = 0 ; | |
7061 | char *kwnames[] = { | |
7062 | (char *) "self",(char *) "s", NULL | |
7063 | }; | |
7064 | ||
7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7068 | { |
7069 | arg2 = wxString_in_helper(obj1); | |
7070 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7071 | temp2 = True; |
d14a1e28 RD |
7072 | } |
7073 | { | |
7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7075 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7076 | ||
7077 | wxPyEndAllowThreads(__tstate); | |
7078 | if (PyErr_Occurred()) SWIG_fail; | |
7079 | } | |
4f89f6a3 RD |
7080 | { |
7081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7082 | } | |
d14a1e28 RD |
7083 | { |
7084 | if (temp2) | |
7085 | delete arg2; | |
7086 | } | |
7087 | return resultobj; | |
7088 | fail: | |
7089 | { | |
7090 | if (temp2) | |
7091 | delete arg2; | |
7092 | } | |
7093 | return NULL; | |
7094 | } | |
7095 | ||
7096 | ||
7097 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7098 | PyObject *resultobj; | |
7099 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7100 | wxString result; | |
7101 | PyObject * obj0 = 0 ; | |
7102 | char *kwnames[] = { | |
7103 | (char *) "self", NULL | |
7104 | }; | |
7105 | ||
7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7109 | { |
7110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7111 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
7112 | ||
7113 | wxPyEndAllowThreads(__tstate); | |
7114 | if (PyErr_Occurred()) SWIG_fail; | |
7115 | } | |
7116 | { | |
7117 | #if wxUSE_UNICODE | |
7118 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7119 | #else | |
7120 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7121 | #endif | |
7122 | } | |
7123 | return resultobj; | |
7124 | fail: | |
7125 | return NULL; | |
7126 | } | |
7127 | ||
7128 | ||
7129 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7130 | PyObject *resultobj; | |
7131 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7132 | wxString result; | |
7133 | PyObject * obj0 = 0 ; | |
7134 | char *kwnames[] = { | |
7135 | (char *) "self", NULL | |
7136 | }; | |
7137 | ||
7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7141 | { |
7142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7143 | result = wxNativeFontInfo___str__(arg1); | |
7144 | ||
7145 | wxPyEndAllowThreads(__tstate); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
7148 | { | |
7149 | #if wxUSE_UNICODE | |
7150 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7151 | #else | |
7152 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7153 | #endif | |
7154 | } | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
7161 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7162 | PyObject *resultobj; | |
7163 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7164 | wxString *arg2 = 0 ; | |
7165 | bool result; | |
423f194a | 7166 | bool temp2 = False ; |
d14a1e28 RD |
7167 | PyObject * obj0 = 0 ; |
7168 | PyObject * obj1 = 0 ; | |
7169 | char *kwnames[] = { | |
7170 | (char *) "self",(char *) "s", NULL | |
7171 | }; | |
7172 | ||
7173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7176 | { |
7177 | arg2 = wxString_in_helper(obj1); | |
7178 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7179 | temp2 = True; |
d14a1e28 RD |
7180 | } |
7181 | { | |
7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7183 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
7184 | ||
7185 | wxPyEndAllowThreads(__tstate); | |
7186 | if (PyErr_Occurred()) SWIG_fail; | |
7187 | } | |
4f89f6a3 RD |
7188 | { |
7189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7190 | } | |
d14a1e28 RD |
7191 | { |
7192 | if (temp2) | |
7193 | delete arg2; | |
7194 | } | |
7195 | return resultobj; | |
7196 | fail: | |
7197 | { | |
7198 | if (temp2) | |
7199 | delete arg2; | |
7200 | } | |
7201 | return NULL; | |
7202 | } | |
7203 | ||
7204 | ||
7205 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7206 | PyObject *resultobj; | |
7207 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7208 | wxString result; | |
7209 | PyObject * obj0 = 0 ; | |
7210 | char *kwnames[] = { | |
7211 | (char *) "self", NULL | |
7212 | }; | |
7213 | ||
7214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7217 | { |
7218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7219 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
7220 | ||
7221 | wxPyEndAllowThreads(__tstate); | |
7222 | if (PyErr_Occurred()) SWIG_fail; | |
7223 | } | |
7224 | { | |
7225 | #if wxUSE_UNICODE | |
7226 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7227 | #else | |
7228 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7229 | #endif | |
7230 | } | |
7231 | return resultobj; | |
7232 | fail: | |
7233 | return NULL; | |
7234 | } | |
7235 | ||
7236 | ||
7237 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
7238 | PyObject *obj; | |
7239 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7240 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
7241 | Py_INCREF(obj); | |
7242 | return Py_BuildValue((char *)""); | |
7243 | } | |
7244 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7245 | PyObject *resultobj; | |
7246 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 7247 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 7248 | bool temp2 = False ; |
d14a1e28 RD |
7249 | PyObject * obj0 = 0 ; |
7250 | PyObject * obj1 = 0 ; | |
7251 | char *kwnames[] = { | |
7252 | (char *) "self",(char *) "facename", NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f775c30d RD |
7258 | { |
7259 | arg2 = wxString_in_helper(obj1); | |
7260 | if (arg2 == NULL) SWIG_fail; | |
7261 | temp2 = True; | |
7262 | } | |
d03fd34d | 7263 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
7264 | |
7265 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
7266 | { |
7267 | if (temp2) | |
7268 | delete arg2; | |
7269 | } | |
d14a1e28 RD |
7270 | return resultobj; |
7271 | fail: | |
f775c30d RD |
7272 | { |
7273 | if (temp2) | |
7274 | delete arg2; | |
7275 | } | |
d14a1e28 RD |
7276 | return NULL; |
7277 | } | |
7278 | ||
7279 | ||
7280 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7281 | PyObject *resultobj; | |
7282 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
d03fd34d | 7283 | wxString *result; |
d14a1e28 RD |
7284 | PyObject * obj0 = 0 ; |
7285 | char *kwnames[] = { | |
7286 | (char *) "self", NULL | |
7287 | }; | |
7288 | ||
7289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d | 7292 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
7293 | |
7294 | { | |
7295 | #if wxUSE_UNICODE | |
d03fd34d | 7296 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 7297 | #else |
d03fd34d | 7298 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
7299 | #endif |
7300 | } | |
7301 | return resultobj; | |
7302 | fail: | |
7303 | return NULL; | |
7304 | } | |
7305 | ||
7306 | ||
7307 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7308 | PyObject *resultobj; | |
7309 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7310 | int arg2 ; | |
7311 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7312 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7313 | char *kwnames[] = { |
7314 | (char *) "self",(char *) "encoding", NULL | |
7315 | }; | |
7316 | ||
8edf1c75 | 7317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7320 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7321 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7322 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
7323 | ||
7324 | Py_INCREF(Py_None); resultobj = Py_None; | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
7331 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject *resultobj; | |
7333 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7334 | int result; | |
7335 | PyObject * obj0 = 0 ; | |
7336 | char *kwnames[] = { | |
7337 | (char *) "self", NULL | |
7338 | }; | |
7339 | ||
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7343 | result = (int) ((arg1)->encoding); |
7344 | ||
2f4c0a16 | 7345 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7346 | return resultobj; |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxNativeEncodingInfo *result; | |
7355 | char *kwnames[] = { | |
7356 | NULL | |
7357 | }; | |
7358 | ||
7359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7360 | { | |
7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7362 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7363 | ||
7364 | wxPyEndAllowThreads(__tstate); | |
7365 | if (PyErr_Occurred()) SWIG_fail; | |
7366 | } | |
2f4c0a16 | 7367 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); |
d14a1e28 RD |
7368 | return resultobj; |
7369 | fail: | |
7370 | return NULL; | |
7371 | } | |
7372 | ||
7373 | ||
7374 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7375 | PyObject *resultobj; | |
7376 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7377 | PyObject * obj0 = 0 ; | |
7378 | char *kwnames[] = { | |
7379 | (char *) "self", NULL | |
7380 | }; | |
7381 | ||
7382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7385 | { |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | delete arg1; | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
7392 | Py_INCREF(Py_None); resultobj = Py_None; | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
7399 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7400 | PyObject *resultobj; | |
7401 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7402 | wxString *arg2 = 0 ; | |
7403 | bool result; | |
423f194a | 7404 | bool temp2 = False ; |
d14a1e28 RD |
7405 | PyObject * obj0 = 0 ; |
7406 | PyObject * obj1 = 0 ; | |
7407 | char *kwnames[] = { | |
7408 | (char *) "self",(char *) "s", NULL | |
7409 | }; | |
7410 | ||
7411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7414 | { |
7415 | arg2 = wxString_in_helper(obj1); | |
7416 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7417 | temp2 = True; |
d14a1e28 RD |
7418 | } |
7419 | { | |
7420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7421 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7422 | ||
7423 | wxPyEndAllowThreads(__tstate); | |
7424 | if (PyErr_Occurred()) SWIG_fail; | |
7425 | } | |
4f89f6a3 RD |
7426 | { |
7427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7428 | } | |
d14a1e28 RD |
7429 | { |
7430 | if (temp2) | |
7431 | delete arg2; | |
7432 | } | |
7433 | return resultobj; | |
7434 | fail: | |
7435 | { | |
7436 | if (temp2) | |
7437 | delete arg2; | |
7438 | } | |
7439 | return NULL; | |
7440 | } | |
7441 | ||
7442 | ||
7443 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7444 | PyObject *resultobj; | |
7445 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7446 | wxString result; | |
7447 | PyObject * obj0 = 0 ; | |
7448 | char *kwnames[] = { | |
7449 | (char *) "self", NULL | |
7450 | }; | |
7451 | ||
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7455 | { |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7457 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7458 | ||
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | { | |
7463 | #if wxUSE_UNICODE | |
7464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7465 | #else | |
7466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7467 | #endif | |
7468 | } | |
7469 | return resultobj; | |
7470 | fail: | |
7471 | return NULL; | |
7472 | } | |
7473 | ||
7474 | ||
7475 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
7476 | PyObject *obj; | |
7477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7478 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7479 | Py_INCREF(obj); | |
7480 | return Py_BuildValue((char *)""); | |
7481 | } | |
7482 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7483 | PyObject *resultobj; | |
7484 | int arg1 ; | |
7485 | wxNativeEncodingInfo *result; | |
8edf1c75 | 7486 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7487 | char *kwnames[] = { |
7488 | (char *) "encoding", NULL | |
7489 | }; | |
7490 | ||
8edf1c75 | 7491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
7492 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7493 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7494 | { |
7495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7496 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7497 | ||
7498 | wxPyEndAllowThreads(__tstate); | |
7499 | if (PyErr_Occurred()) SWIG_fail; | |
7500 | } | |
2f4c0a16 | 7501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
7502 | return resultobj; |
7503 | fail: | |
7504 | return NULL; | |
7505 | } | |
7506 | ||
7507 | ||
7508 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7509 | PyObject *resultobj; | |
7510 | wxNativeEncodingInfo *arg1 = 0 ; | |
7511 | bool result; | |
7512 | PyObject * obj0 = 0 ; | |
7513 | char *kwnames[] = { | |
7514 | (char *) "info", NULL | |
7515 | }; | |
7516 | ||
7517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
7519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7520 | SWIG_fail; | |
d14a1e28 | 7521 | if (arg1 == NULL) { |
2f4c0a16 RD |
7522 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7523 | SWIG_fail; | |
d14a1e28 RD |
7524 | } |
7525 | { | |
7526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7527 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7528 | ||
7529 | wxPyEndAllowThreads(__tstate); | |
7530 | if (PyErr_Occurred()) SWIG_fail; | |
7531 | } | |
4f89f6a3 RD |
7532 | { |
7533 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7534 | } | |
d14a1e28 RD |
7535 | return resultobj; |
7536 | fail: | |
7537 | return NULL; | |
7538 | } | |
7539 | ||
7540 | ||
7541 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj; | |
7543 | wxFontMapper *result; | |
7544 | char *kwnames[] = { | |
7545 | NULL | |
7546 | }; | |
7547 | ||
7548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7549 | { | |
7550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7551 | result = (wxFontMapper *)new wxFontMapper(); | |
7552 | ||
7553 | wxPyEndAllowThreads(__tstate); | |
7554 | if (PyErr_Occurred()) SWIG_fail; | |
7555 | } | |
2f4c0a16 | 7556 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
7557 | return resultobj; |
7558 | fail: | |
7559 | return NULL; | |
7560 | } | |
7561 | ||
7562 | ||
7563 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7564 | PyObject *resultobj; | |
7565 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7566 | PyObject * obj0 = 0 ; | |
7567 | char *kwnames[] = { | |
7568 | (char *) "self", NULL | |
7569 | }; | |
7570 | ||
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7574 | { |
7575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7576 | delete arg1; | |
7577 | ||
7578 | wxPyEndAllowThreads(__tstate); | |
7579 | if (PyErr_Occurred()) SWIG_fail; | |
7580 | } | |
7581 | Py_INCREF(Py_None); resultobj = Py_None; | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | return NULL; | |
7585 | } | |
7586 | ||
7587 | ||
7588 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7589 | PyObject *resultobj; | |
7590 | wxFontMapper *result; | |
7591 | char *kwnames[] = { | |
7592 | NULL | |
7593 | }; | |
7594 | ||
7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7596 | { | |
7597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7598 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7599 | ||
7600 | wxPyEndAllowThreads(__tstate); | |
7601 | if (PyErr_Occurred()) SWIG_fail; | |
7602 | } | |
2f4c0a16 | 7603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
7604 | return resultobj; |
7605 | fail: | |
7606 | return NULL; | |
7607 | } | |
7608 | ||
7609 | ||
7610 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7611 | PyObject *resultobj; | |
7612 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7613 | wxFontMapper *result; | |
7614 | PyObject * obj0 = 0 ; | |
7615 | char *kwnames[] = { | |
7616 | (char *) "mapper", NULL | |
7617 | }; | |
7618 | ||
7619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7622 | { |
7623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7624 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7625 | ||
7626 | wxPyEndAllowThreads(__tstate); | |
7627 | if (PyErr_Occurred()) SWIG_fail; | |
7628 | } | |
2f4c0a16 | 7629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
7630 | return resultobj; |
7631 | fail: | |
7632 | return NULL; | |
7633 | } | |
7634 | ||
7635 | ||
7636 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7637 | PyObject *resultobj; | |
7638 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7639 | wxString *arg2 = 0 ; | |
423f194a | 7640 | bool arg3 = (bool) True ; |
d14a1e28 | 7641 | int result; |
423f194a | 7642 | bool temp2 = False ; |
d14a1e28 RD |
7643 | PyObject * obj0 = 0 ; |
7644 | PyObject * obj1 = 0 ; | |
7645 | PyObject * obj2 = 0 ; | |
7646 | char *kwnames[] = { | |
7647 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7648 | }; | |
7649 | ||
7650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7653 | { |
7654 | arg2 = wxString_in_helper(obj1); | |
7655 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7656 | temp2 = True; |
d14a1e28 RD |
7657 | } |
7658 | if (obj2) { | |
2f4c0a16 RD |
7659 | arg3 = (bool) SWIG_AsBool(obj2); |
7660 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7661 | } |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) SWIG_fail; | |
7668 | } | |
2f4c0a16 | 7669 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7670 | { |
7671 | if (temp2) | |
7672 | delete arg2; | |
7673 | } | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | { | |
7677 | if (temp2) | |
7678 | delete arg2; | |
7679 | } | |
7680 | return NULL; | |
7681 | } | |
7682 | ||
7683 | ||
7684 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7685 | PyObject *resultobj; | |
7686 | size_t result; | |
7687 | char *kwnames[] = { | |
7688 | NULL | |
7689 | }; | |
7690 | ||
7691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7692 | { | |
7693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7694 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7695 | ||
7696 | wxPyEndAllowThreads(__tstate); | |
7697 | if (PyErr_Occurred()) SWIG_fail; | |
7698 | } | |
2f4c0a16 | 7699 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7700 | return resultobj; |
7701 | fail: | |
7702 | return NULL; | |
7703 | } | |
7704 | ||
7705 | ||
7706 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7707 | PyObject *resultobj; | |
7708 | size_t arg1 ; | |
7709 | int result; | |
7710 | PyObject * obj0 = 0 ; | |
7711 | char *kwnames[] = { | |
7712 | (char *) "n", NULL | |
7713 | }; | |
7714 | ||
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7716 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7718 | { |
7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7720 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7721 | ||
7722 | wxPyEndAllowThreads(__tstate); | |
7723 | if (PyErr_Occurred()) SWIG_fail; | |
7724 | } | |
2f4c0a16 | 7725 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7726 | return resultobj; |
7727 | fail: | |
7728 | return NULL; | |
7729 | } | |
7730 | ||
7731 | ||
7732 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7733 | PyObject *resultobj; | |
7734 | int arg1 ; | |
7735 | wxString result; | |
8edf1c75 | 7736 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7737 | char *kwnames[] = { |
7738 | (char *) "encoding", NULL | |
7739 | }; | |
7740 | ||
8edf1c75 | 7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
7742 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7743 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7744 | { |
7745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7746 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7747 | ||
7748 | wxPyEndAllowThreads(__tstate); | |
7749 | if (PyErr_Occurred()) SWIG_fail; | |
7750 | } | |
7751 | { | |
7752 | #if wxUSE_UNICODE | |
7753 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7754 | #else | |
7755 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7756 | #endif | |
7757 | } | |
7758 | return resultobj; | |
7759 | fail: | |
7760 | return NULL; | |
7761 | } | |
7762 | ||
7763 | ||
7764 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7765 | PyObject *resultobj; | |
7766 | int arg1 ; | |
7767 | wxString result; | |
8edf1c75 | 7768 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7769 | char *kwnames[] = { |
7770 | (char *) "encoding", NULL | |
7771 | }; | |
7772 | ||
8edf1c75 | 7773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
7774 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7775 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7776 | { |
7777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7778 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7779 | ||
7780 | wxPyEndAllowThreads(__tstate); | |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | } | |
7783 | { | |
7784 | #if wxUSE_UNICODE | |
7785 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7786 | #else | |
7787 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7788 | #endif | |
7789 | } | |
7790 | return resultobj; | |
7791 | fail: | |
7792 | return NULL; | |
7793 | } | |
7794 | ||
7795 | ||
7796 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7797 | PyObject *resultobj; | |
7798 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7799 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7800 | PyObject * obj0 = 0 ; | |
7801 | PyObject * obj1 = 0 ; | |
7802 | char *kwnames[] = { | |
7803 | (char *) "self",(char *) "config", NULL | |
7804 | }; | |
7805 | ||
7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7811 | { |
7812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7813 | (arg1)->SetConfig(arg2); | |
7814 | ||
7815 | wxPyEndAllowThreads(__tstate); | |
7816 | if (PyErr_Occurred()) SWIG_fail; | |
7817 | } | |
7818 | Py_INCREF(Py_None); resultobj = Py_None; | |
7819 | return resultobj; | |
7820 | fail: | |
7821 | return NULL; | |
7822 | } | |
7823 | ||
7824 | ||
7825 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7826 | PyObject *resultobj; | |
7827 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7828 | wxString *arg2 = 0 ; | |
423f194a | 7829 | bool temp2 = False ; |
d14a1e28 RD |
7830 | PyObject * obj0 = 0 ; |
7831 | PyObject * obj1 = 0 ; | |
7832 | char *kwnames[] = { | |
7833 | (char *) "self",(char *) "prefix", NULL | |
7834 | }; | |
7835 | ||
7836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7839 | { |
7840 | arg2 = wxString_in_helper(obj1); | |
7841 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7842 | temp2 = True; |
d14a1e28 RD |
7843 | } |
7844 | { | |
7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7846 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7847 | ||
7848 | wxPyEndAllowThreads(__tstate); | |
7849 | if (PyErr_Occurred()) SWIG_fail; | |
7850 | } | |
7851 | Py_INCREF(Py_None); resultobj = Py_None; | |
7852 | { | |
7853 | if (temp2) | |
7854 | delete arg2; | |
7855 | } | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | { | |
7859 | if (temp2) | |
7860 | delete arg2; | |
7861 | } | |
7862 | return NULL; | |
7863 | } | |
7864 | ||
7865 | ||
7866 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7867 | PyObject *resultobj; | |
7868 | wxString result; | |
7869 | char *kwnames[] = { | |
7870 | NULL | |
7871 | }; | |
7872 | ||
7873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7874 | { | |
7875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7876 | result = wxFontMapper::GetDefaultConfigPath(); | |
7877 | ||
7878 | wxPyEndAllowThreads(__tstate); | |
7879 | if (PyErr_Occurred()) SWIG_fail; | |
7880 | } | |
7881 | { | |
7882 | #if wxUSE_UNICODE | |
7883 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7884 | #else | |
7885 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7886 | #endif | |
7887 | } | |
7888 | return resultobj; | |
7889 | fail: | |
7890 | return NULL; | |
7891 | } | |
7892 | ||
7893 | ||
7894 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7895 | PyObject *resultobj; | |
7896 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7897 | int arg2 ; | |
7898 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7899 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 7900 | bool arg4 = (bool) True ; |
d14a1e28 | 7901 | PyObject *result; |
423f194a | 7902 | bool temp3 = False ; |
d14a1e28 | 7903 | PyObject * obj0 = 0 ; |
8edf1c75 | 7904 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7905 | PyObject * obj2 = 0 ; |
7906 | PyObject * obj3 = 0 ; | |
7907 | char *kwnames[] = { | |
7908 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7909 | }; | |
7910 | ||
8edf1c75 | 7911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7914 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7915 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7916 | if (obj2) { |
7917 | { | |
7918 | arg3 = wxString_in_helper(obj2); | |
7919 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7920 | temp3 = True; |
d14a1e28 RD |
7921 | } |
7922 | } | |
7923 | if (obj3) { | |
2f4c0a16 RD |
7924 | arg4 = (bool) SWIG_AsBool(obj3); |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7926 | } |
7927 | { | |
7928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7929 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7930 | ||
7931 | wxPyEndAllowThreads(__tstate); | |
7932 | if (PyErr_Occurred()) SWIG_fail; | |
7933 | } | |
7934 | resultobj = result; | |
7935 | { | |
7936 | if (temp3) | |
7937 | delete arg3; | |
7938 | } | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | { | |
7942 | if (temp3) | |
7943 | delete arg3; | |
7944 | } | |
7945 | return NULL; | |
7946 | } | |
7947 | ||
7948 | ||
7949 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7950 | PyObject *resultobj; | |
7951 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7952 | int arg2 ; | |
7953 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7954 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7955 | bool result; | |
423f194a | 7956 | bool temp3 = False ; |
d14a1e28 | 7957 | PyObject * obj0 = 0 ; |
8edf1c75 | 7958 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7959 | PyObject * obj2 = 0 ; |
7960 | char *kwnames[] = { | |
7961 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7962 | }; | |
7963 | ||
8edf1c75 | 7964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7967 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7968 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7969 | if (obj2) { |
7970 | { | |
7971 | arg3 = wxString_in_helper(obj2); | |
7972 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7973 | temp3 = True; |
d14a1e28 RD |
7974 | } |
7975 | } | |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
4f89f6a3 RD |
7983 | { |
7984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7985 | } | |
d14a1e28 RD |
7986 | { |
7987 | if (temp3) | |
7988 | delete arg3; | |
7989 | } | |
7990 | return resultobj; | |
7991 | fail: | |
7992 | { | |
7993 | if (temp3) | |
7994 | delete arg3; | |
7995 | } | |
7996 | return NULL; | |
7997 | } | |
7998 | ||
7999 | ||
8000 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8001 | PyObject *resultobj; | |
8002 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8003 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8004 | PyObject * obj0 = 0 ; | |
8005 | PyObject * obj1 = 0 ; | |
8006 | char *kwnames[] = { | |
8007 | (char *) "self",(char *) "parent", NULL | |
8008 | }; | |
8009 | ||
8010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
8012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8015 | { |
8016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8017 | (arg1)->SetDialogParent(arg2); | |
8018 | ||
8019 | wxPyEndAllowThreads(__tstate); | |
8020 | if (PyErr_Occurred()) SWIG_fail; | |
8021 | } | |
8022 | Py_INCREF(Py_None); resultobj = Py_None; | |
8023 | return resultobj; | |
8024 | fail: | |
8025 | return NULL; | |
8026 | } | |
8027 | ||
8028 | ||
8029 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8030 | PyObject *resultobj; | |
8031 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8032 | wxString *arg2 = 0 ; | |
423f194a | 8033 | bool temp2 = False ; |
d14a1e28 RD |
8034 | PyObject * obj0 = 0 ; |
8035 | PyObject * obj1 = 0 ; | |
8036 | char *kwnames[] = { | |
8037 | (char *) "self",(char *) "title", NULL | |
8038 | }; | |
8039 | ||
8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
8042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8043 | { |
8044 | arg2 = wxString_in_helper(obj1); | |
8045 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8046 | temp2 = True; |
d14a1e28 RD |
8047 | } |
8048 | { | |
8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8050 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
8051 | ||
8052 | wxPyEndAllowThreads(__tstate); | |
8053 | if (PyErr_Occurred()) SWIG_fail; | |
8054 | } | |
8055 | Py_INCREF(Py_None); resultobj = Py_None; | |
8056 | { | |
8057 | if (temp2) | |
8058 | delete arg2; | |
8059 | } | |
8060 | return resultobj; | |
8061 | fail: | |
8062 | { | |
8063 | if (temp2) | |
8064 | delete arg2; | |
8065 | } | |
8066 | return NULL; | |
8067 | } | |
8068 | ||
8069 | ||
8070 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
8071 | PyObject *obj; | |
8072 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8073 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
8074 | Py_INCREF(obj); | |
8075 | return Py_BuildValue((char *)""); | |
8076 | } | |
8077 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8078 | PyObject *resultobj; | |
8079 | int arg1 ; | |
8080 | int arg2 ; | |
8081 | int arg3 ; | |
8082 | int arg4 ; | |
423f194a | 8083 | bool arg5 = (bool) False ; |
d14a1e28 RD |
8084 | wxString const &arg6_defvalue = wxPyEmptyString ; |
8085 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8086 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8087 | wxFont *result; | |
423f194a | 8088 | bool temp6 = False ; |
8edf1c75 RD |
8089 | PyObject * obj0 = 0 ; |
8090 | PyObject * obj1 = 0 ; | |
8091 | PyObject * obj2 = 0 ; | |
8092 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
8093 | PyObject * obj4 = 0 ; |
8094 | PyObject * obj5 = 0 ; | |
8edf1c75 | 8095 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8096 | char *kwnames[] = { |
8097 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
8098 | }; | |
8099 | ||
8edf1c75 | 8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
8101 | arg1 = (int) SWIG_AsInt(obj0); |
8102 | if (PyErr_Occurred()) SWIG_fail; | |
8103 | arg2 = (int) SWIG_AsInt(obj1); | |
8104 | if (PyErr_Occurred()) SWIG_fail; | |
8105 | arg3 = (int) SWIG_AsInt(obj2); | |
8106 | if (PyErr_Occurred()) SWIG_fail; | |
8107 | arg4 = (int) SWIG_AsInt(obj3); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 8109 | if (obj4) { |
2f4c0a16 RD |
8110 | arg5 = (bool) SWIG_AsBool(obj4); |
8111 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8112 | } |
8113 | if (obj5) { | |
8114 | { | |
8115 | arg6 = wxString_in_helper(obj5); | |
8116 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 8117 | temp6 = True; |
d14a1e28 RD |
8118 | } |
8119 | } | |
8edf1c75 | 8120 | if (obj6) { |
2f4c0a16 RD |
8121 | arg7 = (wxFontEncoding) SWIG_AsInt(obj6); |
8122 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8123 | } |
d14a1e28 RD |
8124 | { |
8125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8126 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8127 | ||
8128 | wxPyEndAllowThreads(__tstate); | |
8129 | if (PyErr_Occurred()) SWIG_fail; | |
8130 | } | |
2f4c0a16 | 8131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
8132 | { |
8133 | if (temp6) | |
8134 | delete arg6; | |
8135 | } | |
8136 | return resultobj; | |
8137 | fail: | |
8138 | { | |
8139 | if (temp6) | |
8140 | delete arg6; | |
8141 | } | |
8142 | return NULL; | |
8143 | } | |
8144 | ||
8145 | ||
8146 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8147 | PyObject *resultobj; | |
8148 | wxFont *arg1 = (wxFont *) 0 ; | |
8149 | PyObject * obj0 = 0 ; | |
8150 | char *kwnames[] = { | |
8151 | (char *) "self", NULL | |
8152 | }; | |
8153 | ||
8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8157 | { |
8158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8159 | delete arg1; | |
8160 | ||
8161 | wxPyEndAllowThreads(__tstate); | |
8162 | if (PyErr_Occurred()) SWIG_fail; | |
8163 | } | |
8164 | Py_INCREF(Py_None); resultobj = Py_None; | |
8165 | return resultobj; | |
8166 | fail: | |
8167 | return NULL; | |
8168 | } | |
8169 | ||
8170 | ||
8171 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8172 | PyObject *resultobj; | |
8173 | wxNativeFontInfo *arg1 = 0 ; | |
8174 | wxFont *result; | |
8175 | PyObject * obj0 = 0 ; | |
8176 | char *kwnames[] = { | |
8177 | (char *) "info", NULL | |
8178 | }; | |
8179 | ||
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
8182 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8183 | SWIG_fail; | |
d14a1e28 | 8184 | if (arg1 == NULL) { |
2f4c0a16 RD |
8185 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8186 | SWIG_fail; | |
d14a1e28 RD |
8187 | } |
8188 | { | |
8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8190 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
8191 | ||
8192 | wxPyEndAllowThreads(__tstate); | |
8193 | if (PyErr_Occurred()) SWIG_fail; | |
8194 | } | |
2f4c0a16 | 8195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
8196 | return resultobj; |
8197 | fail: | |
8198 | return NULL; | |
8199 | } | |
8200 | ||
8201 | ||
8202 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8203 | PyObject *resultobj; | |
8204 | wxString *arg1 = 0 ; | |
8205 | wxFont *result; | |
423f194a | 8206 | bool temp1 = False ; |
d14a1e28 RD |
8207 | PyObject * obj0 = 0 ; |
8208 | char *kwnames[] = { | |
8209 | (char *) "info", NULL | |
8210 | }; | |
8211 | ||
8212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
8213 | { | |
8214 | arg1 = wxString_in_helper(obj0); | |
8215 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 8216 | temp1 = True; |
d14a1e28 RD |
8217 | } |
8218 | { | |
8219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8220 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
8221 | ||
8222 | wxPyEndAllowThreads(__tstate); | |
8223 | if (PyErr_Occurred()) SWIG_fail; | |
8224 | } | |
2f4c0a16 | 8225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
8226 | { |
8227 | if (temp1) | |
8228 | delete arg1; | |
8229 | } | |
8230 | return resultobj; | |
8231 | fail: | |
8232 | { | |
8233 | if (temp1) | |
8234 | delete arg1; | |
8235 | } | |
8236 | return NULL; | |
8237 | } | |
8238 | ||
8239 | ||
8240 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8241 | PyObject *resultobj; | |
8242 | int arg1 ; | |
8243 | int arg2 ; | |
8244 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
8245 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8246 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8247 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
8248 | wxFont *result; | |
423f194a | 8249 | bool temp4 = False ; |
8edf1c75 RD |
8250 | PyObject * obj0 = 0 ; |
8251 | PyObject * obj1 = 0 ; | |
8252 | PyObject * obj2 = 0 ; | |
d14a1e28 | 8253 | PyObject * obj3 = 0 ; |
8edf1c75 | 8254 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
8255 | char *kwnames[] = { |
8256 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
8257 | }; | |
8258 | ||
8edf1c75 | 8259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
8260 | arg1 = (int) SWIG_AsInt(obj0); |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
8263 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8264 | if (obj2) { |
2f4c0a16 RD |
8265 | arg3 = (int) SWIG_AsInt(obj2); |
8266 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8267 | } |
d14a1e28 RD |
8268 | if (obj3) { |
8269 | { | |
8270 | arg4 = wxString_in_helper(obj3); | |
8271 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8272 | temp4 = True; |
d14a1e28 RD |
8273 | } |
8274 | } | |
8edf1c75 | 8275 | if (obj4) { |
2f4c0a16 RD |
8276 | arg5 = (wxFontEncoding) SWIG_AsInt(obj4); |
8277 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8278 | } |
d14a1e28 RD |
8279 | { |
8280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8281 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8282 | ||
8283 | wxPyEndAllowThreads(__tstate); | |
8284 | if (PyErr_Occurred()) SWIG_fail; | |
8285 | } | |
2f4c0a16 | 8286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
8287 | { |
8288 | if (temp4) | |
8289 | delete arg4; | |
8290 | } | |
8291 | return resultobj; | |
8292 | fail: | |
8293 | { | |
8294 | if (temp4) | |
8295 | delete arg4; | |
8296 | } | |
8297 | return NULL; | |
8298 | } | |
8299 | ||
8300 | ||
8301 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8302 | PyObject *resultobj; | |
8303 | wxFont *arg1 = (wxFont *) 0 ; | |
8304 | bool result; | |
8305 | PyObject * obj0 = 0 ; | |
8306 | char *kwnames[] = { | |
8307 | (char *) "self", NULL | |
8308 | }; | |
8309 | ||
8310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8313 | { |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
4f89f6a3 RD |
8320 | { |
8321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8322 | } | |
d14a1e28 RD |
8323 | return resultobj; |
8324 | fail: | |
8325 | return NULL; | |
8326 | } | |
8327 | ||
8328 | ||
8329 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8330 | PyObject *resultobj; | |
8331 | wxFont *arg1 = (wxFont *) 0 ; | |
328fcd84 | 8332 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8333 | bool result; |
8334 | PyObject * obj0 = 0 ; | |
8335 | PyObject * obj1 = 0 ; | |
8336 | char *kwnames[] = { | |
328fcd84 | 8337 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8338 | }; |
8339 | ||
8340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8345 | { |
8346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 8347 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8348 | |
8349 | wxPyEndAllowThreads(__tstate); | |
8350 | if (PyErr_Occurred()) SWIG_fail; | |
8351 | } | |
4f89f6a3 RD |
8352 | { |
8353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8354 | } | |
d14a1e28 RD |
8355 | return resultobj; |
8356 | fail: | |
8357 | return NULL; | |
8358 | } | |
8359 | ||
8360 | ||
8361 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8362 | PyObject *resultobj; | |
8363 | wxFont *arg1 = (wxFont *) 0 ; | |
328fcd84 | 8364 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
8365 | bool result; |
8366 | PyObject * obj0 = 0 ; | |
8367 | PyObject * obj1 = 0 ; | |
8368 | char *kwnames[] = { | |
328fcd84 | 8369 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
8370 | }; |
8371 | ||
8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8375 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8377 | { |
8378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 8379 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
8380 | |
8381 | wxPyEndAllowThreads(__tstate); | |
8382 | if (PyErr_Occurred()) SWIG_fail; | |
8383 | } | |
4f89f6a3 RD |
8384 | { |
8385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8386 | } | |
d14a1e28 RD |
8387 | return resultobj; |
8388 | fail: | |
8389 | return NULL; | |
8390 | } | |
8391 | ||
8392 | ||
8393 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8394 | PyObject *resultobj; | |
8395 | wxFont *arg1 = (wxFont *) 0 ; | |
8396 | int result; | |
8397 | PyObject * obj0 = 0 ; | |
8398 | char *kwnames[] = { | |
8399 | (char *) "self", NULL | |
8400 | }; | |
8401 | ||
8402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8405 | { |
8406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8407 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
8408 | ||
8409 | wxPyEndAllowThreads(__tstate); | |
8410 | if (PyErr_Occurred()) SWIG_fail; | |
8411 | } | |
2f4c0a16 | 8412 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8413 | return resultobj; |
8414 | fail: | |
8415 | return NULL; | |
8416 | } | |
8417 | ||
8418 | ||
8419 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8420 | PyObject *resultobj; | |
8421 | wxFont *arg1 = (wxFont *) 0 ; | |
8422 | int result; | |
8423 | PyObject * obj0 = 0 ; | |
8424 | char *kwnames[] = { | |
8425 | (char *) "self", NULL | |
8426 | }; | |
8427 | ||
8428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8431 | { |
8432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8433 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8434 | ||
8435 | wxPyEndAllowThreads(__tstate); | |
8436 | if (PyErr_Occurred()) SWIG_fail; | |
8437 | } | |
2f4c0a16 | 8438 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8439 | return resultobj; |
8440 | fail: | |
8441 | return NULL; | |
8442 | } | |
8443 | ||
8444 | ||
8445 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8446 | PyObject *resultobj; | |
8447 | wxFont *arg1 = (wxFont *) 0 ; | |
8448 | int result; | |
8449 | PyObject * obj0 = 0 ; | |
8450 | char *kwnames[] = { | |
8451 | (char *) "self", NULL | |
8452 | }; | |
8453 | ||
8454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8457 | { |
8458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8459 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8460 | ||
8461 | wxPyEndAllowThreads(__tstate); | |
8462 | if (PyErr_Occurred()) SWIG_fail; | |
8463 | } | |
2f4c0a16 | 8464 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8465 | return resultobj; |
8466 | fail: | |
8467 | return NULL; | |
8468 | } | |
8469 | ||
8470 | ||
8471 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject *resultobj; | |
8473 | wxFont *arg1 = (wxFont *) 0 ; | |
8474 | int result; | |
8475 | PyObject * obj0 = 0 ; | |
8476 | char *kwnames[] = { | |
8477 | (char *) "self", NULL | |
8478 | }; | |
8479 | ||
8480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8483 | { |
8484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8485 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8486 | ||
8487 | wxPyEndAllowThreads(__tstate); | |
8488 | if (PyErr_Occurred()) SWIG_fail; | |
8489 | } | |
2f4c0a16 | 8490 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8491 | return resultobj; |
8492 | fail: | |
8493 | return NULL; | |
8494 | } | |
8495 | ||
8496 | ||
8497 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8498 | PyObject *resultobj; | |
8499 | wxFont *arg1 = (wxFont *) 0 ; | |
8500 | bool result; | |
8501 | PyObject * obj0 = 0 ; | |
8502 | char *kwnames[] = { | |
8503 | (char *) "self", NULL | |
8504 | }; | |
8505 | ||
8506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8509 | { |
8510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8511 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8512 | ||
8513 | wxPyEndAllowThreads(__tstate); | |
8514 | if (PyErr_Occurred()) SWIG_fail; | |
8515 | } | |
4f89f6a3 RD |
8516 | { |
8517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8518 | } | |
d14a1e28 RD |
8519 | return resultobj; |
8520 | fail: | |
8521 | return NULL; | |
8522 | } | |
8523 | ||
8524 | ||
8525 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8526 | PyObject *resultobj; | |
8527 | wxFont *arg1 = (wxFont *) 0 ; | |
8528 | wxString result; | |
8529 | PyObject * obj0 = 0 ; | |
8530 | char *kwnames[] = { | |
8531 | (char *) "self", NULL | |
8532 | }; | |
8533 | ||
8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8537 | { |
8538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8539 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8540 | ||
8541 | wxPyEndAllowThreads(__tstate); | |
8542 | if (PyErr_Occurred()) SWIG_fail; | |
8543 | } | |
8544 | { | |
8545 | #if wxUSE_UNICODE | |
8546 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8547 | #else | |
8548 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8549 | #endif | |
8550 | } | |
8551 | return resultobj; | |
8552 | fail: | |
8553 | return NULL; | |
8554 | } | |
8555 | ||
8556 | ||
8557 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8558 | PyObject *resultobj; | |
8559 | wxFont *arg1 = (wxFont *) 0 ; | |
8560 | int result; | |
8561 | PyObject * obj0 = 0 ; | |
8562 | char *kwnames[] = { | |
8563 | (char *) "self", NULL | |
8564 | }; | |
8565 | ||
8566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8569 | { |
8570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8571 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8572 | ||
8573 | wxPyEndAllowThreads(__tstate); | |
8574 | if (PyErr_Occurred()) SWIG_fail; | |
8575 | } | |
2f4c0a16 | 8576 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8577 | return resultobj; |
8578 | fail: | |
8579 | return NULL; | |
8580 | } | |
8581 | ||
8582 | ||
8583 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8584 | PyObject *resultobj; | |
8585 | wxFont *arg1 = (wxFont *) 0 ; | |
8586 | wxNativeFontInfo *result; | |
8587 | PyObject * obj0 = 0 ; | |
8588 | char *kwnames[] = { | |
8589 | (char *) "self", NULL | |
8590 | }; | |
8591 | ||
8592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8595 | { |
8596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8597 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8598 | ||
8599 | wxPyEndAllowThreads(__tstate); | |
8600 | if (PyErr_Occurred()) SWIG_fail; | |
8601 | } | |
2f4c0a16 | 8602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
8603 | return resultobj; |
8604 | fail: | |
8605 | return NULL; | |
8606 | } | |
8607 | ||
8608 | ||
8609 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8610 | PyObject *resultobj; | |
8611 | wxFont *arg1 = (wxFont *) 0 ; | |
8612 | bool result; | |
8613 | PyObject * obj0 = 0 ; | |
8614 | char *kwnames[] = { | |
8615 | (char *) "self", NULL | |
8616 | }; | |
8617 | ||
8618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8621 | { |
8622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8623 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8624 | ||
8625 | wxPyEndAllowThreads(__tstate); | |
8626 | if (PyErr_Occurred()) SWIG_fail; | |
8627 | } | |
4f89f6a3 RD |
8628 | { |
8629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8630 | } | |
d14a1e28 RD |
8631 | return resultobj; |
8632 | fail: | |
8633 | return NULL; | |
8634 | } | |
8635 | ||
8636 | ||
8637 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8638 | PyObject *resultobj; | |
8639 | wxFont *arg1 = (wxFont *) 0 ; | |
8640 | wxString result; | |
8641 | PyObject * obj0 = 0 ; | |
8642 | char *kwnames[] = { | |
8643 | (char *) "self", NULL | |
8644 | }; | |
8645 | ||
8646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8649 | { |
8650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8651 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8652 | ||
8653 | wxPyEndAllowThreads(__tstate); | |
8654 | if (PyErr_Occurred()) SWIG_fail; | |
8655 | } | |
8656 | { | |
8657 | #if wxUSE_UNICODE | |
8658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8659 | #else | |
8660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8661 | #endif | |
8662 | } | |
8663 | return resultobj; | |
8664 | fail: | |
8665 | return NULL; | |
8666 | } | |
8667 | ||
8668 | ||
8669 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8670 | PyObject *resultobj; | |
8671 | wxFont *arg1 = (wxFont *) 0 ; | |
8672 | wxString result; | |
8673 | PyObject * obj0 = 0 ; | |
8674 | char *kwnames[] = { | |
8675 | (char *) "self", NULL | |
8676 | }; | |
8677 | ||
8678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8681 | { |
8682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8683 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8684 | ||
8685 | wxPyEndAllowThreads(__tstate); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | } | |
8688 | { | |
8689 | #if wxUSE_UNICODE | |
8690 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8691 | #else | |
8692 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8693 | #endif | |
8694 | } | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
8701 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8702 | PyObject *resultobj; | |
8703 | wxFont *arg1 = (wxFont *) 0 ; | |
8704 | int arg2 ; | |
8705 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8707 | char *kwnames[] = { |
8708 | (char *) "self",(char *) "pointSize", NULL | |
8709 | }; | |
8710 | ||
8edf1c75 | 8711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8714 | arg2 = (int) SWIG_AsInt(obj1); | |
8715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8716 | { |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | (arg1)->SetPointSize(arg2); | |
8719 | ||
8720 | wxPyEndAllowThreads(__tstate); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
8723 | Py_INCREF(Py_None); resultobj = Py_None; | |
8724 | return resultobj; | |
8725 | fail: | |
8726 | return NULL; | |
8727 | } | |
8728 | ||
8729 | ||
8730 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8731 | PyObject *resultobj; | |
8732 | wxFont *arg1 = (wxFont *) 0 ; | |
8733 | int arg2 ; | |
8734 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8736 | char *kwnames[] = { |
8737 | (char *) "self",(char *) "family", NULL | |
8738 | }; | |
8739 | ||
8edf1c75 | 8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8743 | arg2 = (int) SWIG_AsInt(obj1); | |
8744 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8745 | { |
8746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8747 | (arg1)->SetFamily(arg2); | |
8748 | ||
8749 | wxPyEndAllowThreads(__tstate); | |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
8751 | } | |
8752 | Py_INCREF(Py_None); resultobj = Py_None; | |
8753 | return resultobj; | |
8754 | fail: | |
8755 | return NULL; | |
8756 | } | |
8757 | ||
8758 | ||
8759 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8760 | PyObject *resultobj; | |
8761 | wxFont *arg1 = (wxFont *) 0 ; | |
8762 | int arg2 ; | |
8763 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8764 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8765 | char *kwnames[] = { |
8766 | (char *) "self",(char *) "style", NULL | |
8767 | }; | |
8768 | ||
8edf1c75 | 8769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8772 | arg2 = (int) SWIG_AsInt(obj1); | |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8774 | { |
8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8776 | (arg1)->SetStyle(arg2); | |
8777 | ||
8778 | wxPyEndAllowThreads(__tstate); | |
8779 | if (PyErr_Occurred()) SWIG_fail; | |
8780 | } | |
8781 | Py_INCREF(Py_None); resultobj = Py_None; | |
8782 | return resultobj; | |
8783 | fail: | |
8784 | return NULL; | |
8785 | } | |
8786 | ||
8787 | ||
8788 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8789 | PyObject *resultobj; | |
8790 | wxFont *arg1 = (wxFont *) 0 ; | |
8791 | int arg2 ; | |
8792 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8793 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8794 | char *kwnames[] = { |
8795 | (char *) "self",(char *) "weight", NULL | |
8796 | }; | |
8797 | ||
8edf1c75 | 8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8801 | arg2 = (int) SWIG_AsInt(obj1); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8803 | { |
8804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8805 | (arg1)->SetWeight(arg2); | |
8806 | ||
8807 | wxPyEndAllowThreads(__tstate); | |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | } | |
8810 | Py_INCREF(Py_None); resultobj = Py_None; | |
8811 | return resultobj; | |
8812 | fail: | |
8813 | return NULL; | |
8814 | } | |
8815 | ||
8816 | ||
8817 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject *resultobj; | |
8819 | wxFont *arg1 = (wxFont *) 0 ; | |
8820 | wxString *arg2 = 0 ; | |
423f194a | 8821 | bool temp2 = False ; |
d14a1e28 RD |
8822 | PyObject * obj0 = 0 ; |
8823 | PyObject * obj1 = 0 ; | |
8824 | char *kwnames[] = { | |
8825 | (char *) "self",(char *) "faceName", NULL | |
8826 | }; | |
8827 | ||
8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8831 | { |
8832 | arg2 = wxString_in_helper(obj1); | |
8833 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8834 | temp2 = True; |
d14a1e28 RD |
8835 | } |
8836 | { | |
8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8838 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8839 | ||
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
8843 | Py_INCREF(Py_None); resultobj = Py_None; | |
8844 | { | |
8845 | if (temp2) | |
8846 | delete arg2; | |
8847 | } | |
8848 | return resultobj; | |
8849 | fail: | |
8850 | { | |
8851 | if (temp2) | |
8852 | delete arg2; | |
8853 | } | |
8854 | return NULL; | |
8855 | } | |
8856 | ||
8857 | ||
8858 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8859 | PyObject *resultobj; | |
8860 | wxFont *arg1 = (wxFont *) 0 ; | |
8861 | bool arg2 ; | |
8862 | PyObject * obj0 = 0 ; | |
8863 | PyObject * obj1 = 0 ; | |
8864 | char *kwnames[] = { | |
8865 | (char *) "self",(char *) "underlined", NULL | |
8866 | }; | |
8867 | ||
8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8871 | arg2 = (bool) SWIG_AsBool(obj1); | |
8872 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8873 | { |
8874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8875 | (arg1)->SetUnderlined(arg2); | |
8876 | ||
8877 | wxPyEndAllowThreads(__tstate); | |
8878 | if (PyErr_Occurred()) SWIG_fail; | |
8879 | } | |
8880 | Py_INCREF(Py_None); resultobj = Py_None; | |
8881 | return resultobj; | |
8882 | fail: | |
8883 | return NULL; | |
8884 | } | |
8885 | ||
8886 | ||
8887 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8888 | PyObject *resultobj; | |
8889 | wxFont *arg1 = (wxFont *) 0 ; | |
8890 | int arg2 ; | |
8891 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8893 | char *kwnames[] = { |
8894 | (char *) "self",(char *) "encoding", NULL | |
8895 | }; | |
8896 | ||
8edf1c75 | 8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8900 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8901 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8902 | { |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8909 | Py_INCREF(Py_None); resultobj = Py_None; | |
8910 | return resultobj; | |
8911 | fail: | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
8916 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8917 | PyObject *resultobj; | |
8918 | wxFont *arg1 = (wxFont *) 0 ; | |
8919 | wxNativeFontInfo *arg2 = 0 ; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | PyObject * obj1 = 0 ; | |
8922 | char *kwnames[] = { | |
8923 | (char *) "self",(char *) "info", NULL | |
8924 | }; | |
8925 | ||
8926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8930 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8931 | SWIG_fail; | |
d14a1e28 | 8932 | if (arg2 == NULL) { |
2f4c0a16 RD |
8933 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8934 | SWIG_fail; | |
d14a1e28 RD |
8935 | } |
8936 | { | |
8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8938 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8939 | ||
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
8943 | Py_INCREF(Py_None); resultobj = Py_None; | |
8944 | return resultobj; | |
8945 | fail: | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
8950 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8951 | PyObject *resultobj; | |
8952 | wxFont *arg1 = (wxFont *) 0 ; | |
8953 | wxString *arg2 = 0 ; | |
423f194a | 8954 | bool temp2 = False ; |
d14a1e28 RD |
8955 | PyObject * obj0 = 0 ; |
8956 | PyObject * obj1 = 0 ; | |
8957 | char *kwnames[] = { | |
8958 | (char *) "self",(char *) "info", NULL | |
8959 | }; | |
8960 | ||
8961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8964 | { |
8965 | arg2 = wxString_in_helper(obj1); | |
8966 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8967 | temp2 = True; |
d14a1e28 RD |
8968 | } |
8969 | { | |
8970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8971 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8972 | ||
8973 | wxPyEndAllowThreads(__tstate); | |
8974 | if (PyErr_Occurred()) SWIG_fail; | |
8975 | } | |
8976 | Py_INCREF(Py_None); resultobj = Py_None; | |
8977 | { | |
8978 | if (temp2) | |
8979 | delete arg2; | |
8980 | } | |
8981 | return resultobj; | |
8982 | fail: | |
8983 | { | |
8984 | if (temp2) | |
8985 | delete arg2; | |
8986 | } | |
8987 | return NULL; | |
8988 | } | |
8989 | ||
8990 | ||
8991 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8992 | PyObject *resultobj; | |
8993 | wxFont *arg1 = (wxFont *) 0 ; | |
8994 | wxString *arg2 = 0 ; | |
423f194a | 8995 | bool temp2 = False ; |
d14a1e28 RD |
8996 | PyObject * obj0 = 0 ; |
8997 | PyObject * obj1 = 0 ; | |
8998 | char *kwnames[] = { | |
8999 | (char *) "self",(char *) "info", NULL | |
9000 | }; | |
9001 | ||
9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
9004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9005 | { |
9006 | arg2 = wxString_in_helper(obj1); | |
9007 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9008 | temp2 = True; |
d14a1e28 RD |
9009 | } |
9010 | { | |
9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9012 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
9013 | ||
9014 | wxPyEndAllowThreads(__tstate); | |
9015 | if (PyErr_Occurred()) SWIG_fail; | |
9016 | } | |
9017 | Py_INCREF(Py_None); resultobj = Py_None; | |
9018 | { | |
9019 | if (temp2) | |
9020 | delete arg2; | |
9021 | } | |
9022 | return resultobj; | |
9023 | fail: | |
9024 | { | |
9025 | if (temp2) | |
9026 | delete arg2; | |
9027 | } | |
9028 | return NULL; | |
9029 | } | |
9030 | ||
9031 | ||
9032 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9033 | PyObject *resultobj; | |
9034 | wxFont *arg1 = (wxFont *) 0 ; | |
9035 | wxString result; | |
9036 | PyObject * obj0 = 0 ; | |
9037 | char *kwnames[] = { | |
9038 | (char *) "self", NULL | |
9039 | }; | |
9040 | ||
9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
9043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9044 | { |
9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9046 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
9047 | ||
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | } | |
9051 | { | |
9052 | #if wxUSE_UNICODE | |
9053 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9054 | #else | |
9055 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9056 | #endif | |
9057 | } | |
9058 | return resultobj; | |
9059 | fail: | |
9060 | return NULL; | |
9061 | } | |
9062 | ||
9063 | ||
9064 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9065 | PyObject *resultobj; | |
9066 | wxFont *arg1 = (wxFont *) 0 ; | |
9067 | wxString result; | |
9068 | PyObject * obj0 = 0 ; | |
9069 | char *kwnames[] = { | |
9070 | (char *) "self", NULL | |
9071 | }; | |
9072 | ||
9073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
9075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9076 | { |
9077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9078 | result = ((wxFont const *)arg1)->GetStyleString(); | |
9079 | ||
9080 | wxPyEndAllowThreads(__tstate); | |
9081 | if (PyErr_Occurred()) SWIG_fail; | |
9082 | } | |
9083 | { | |
9084 | #if wxUSE_UNICODE | |
9085 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9086 | #else | |
9087 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9088 | #endif | |
9089 | } | |
9090 | return resultobj; | |
9091 | fail: | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
9096 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9097 | PyObject *resultobj; | |
9098 | wxFont *arg1 = (wxFont *) 0 ; | |
9099 | wxString result; | |
9100 | PyObject * obj0 = 0 ; | |
9101 | char *kwnames[] = { | |
9102 | (char *) "self", NULL | |
9103 | }; | |
9104 | ||
9105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
9107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9108 | { |
9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9110 | result = ((wxFont const *)arg1)->GetWeightString(); | |
9111 | ||
9112 | wxPyEndAllowThreads(__tstate); | |
9113 | if (PyErr_Occurred()) SWIG_fail; | |
9114 | } | |
9115 | { | |
9116 | #if wxUSE_UNICODE | |
9117 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9118 | #else | |
9119 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9120 | #endif | |
9121 | } | |
9122 | return resultobj; | |
9123 | fail: | |
9124 | return NULL; | |
9125 | } | |
9126 | ||
9127 | ||
9128 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject *resultobj; | |
9130 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 9131 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9132 | PyObject * obj0 = 0 ; |
9133 | PyObject * obj1 = 0 ; | |
9134 | char *kwnames[] = { | |
9135 | (char *) "self",(char *) "no", NULL | |
9136 | }; | |
9137 | ||
9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
9140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9141 | if (obj1) { |
2f4c0a16 RD |
9142 | arg2 = (bool) SWIG_AsBool(obj1); |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9144 | } |
9145 | { | |
9146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9147 | (arg1)->SetNoAntiAliasing(arg2); | |
9148 | ||
9149 | wxPyEndAllowThreads(__tstate); | |
9150 | if (PyErr_Occurred()) SWIG_fail; | |
9151 | } | |
9152 | Py_INCREF(Py_None); resultobj = Py_None; | |
9153 | return resultobj; | |
9154 | fail: | |
9155 | return NULL; | |
9156 | } | |
9157 | ||
9158 | ||
9159 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9160 | PyObject *resultobj; | |
9161 | wxFont *arg1 = (wxFont *) 0 ; | |
9162 | bool result; | |
9163 | PyObject * obj0 = 0 ; | |
9164 | char *kwnames[] = { | |
9165 | (char *) "self", NULL | |
9166 | }; | |
9167 | ||
9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
9170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9171 | { |
9172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9173 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
9174 | ||
9175 | wxPyEndAllowThreads(__tstate); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | } | |
4f89f6a3 RD |
9178 | { |
9179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9180 | } | |
d14a1e28 RD |
9181 | return resultobj; |
9182 | fail: | |
9183 | return NULL; | |
9184 | } | |
9185 | ||
9186 | ||
9187 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9188 | PyObject *resultobj; | |
9189 | int result; | |
9190 | char *kwnames[] = { | |
9191 | NULL | |
9192 | }; | |
9193 | ||
9194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9195 | { | |
9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9197 | result = (int)wxFont::GetDefaultEncoding(); | |
9198 | ||
9199 | wxPyEndAllowThreads(__tstate); | |
9200 | if (PyErr_Occurred()) SWIG_fail; | |
9201 | } | |
2f4c0a16 | 9202 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9203 | return resultobj; |
9204 | fail: | |
9205 | return NULL; | |
9206 | } | |
9207 | ||
9208 | ||
9209 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9210 | PyObject *resultobj; | |
9211 | int arg1 ; | |
8edf1c75 | 9212 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9213 | char *kwnames[] = { |
9214 | (char *) "encoding", NULL | |
9215 | }; | |
9216 | ||
8edf1c75 | 9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
9218 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
9219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9220 | { |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9223 | ||
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
9227 | Py_INCREF(Py_None); resultobj = Py_None; | |
9228 | return resultobj; | |
9229 | fail: | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
9234 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
9235 | PyObject *obj; | |
9236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9237 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9238 | Py_INCREF(obj); | |
9239 | return Py_BuildValue((char *)""); | |
9240 | } | |
9241 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9242 | PyObject *resultobj; | |
9243 | wxPyFontEnumerator *result; | |
9244 | char *kwnames[] = { | |
9245 | NULL | |
9246 | }; | |
9247 | ||
9248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9249 | { | |
9250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9251 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9252 | ||
9253 | wxPyEndAllowThreads(__tstate); | |
9254 | if (PyErr_Occurred()) SWIG_fail; | |
9255 | } | |
2f4c0a16 | 9256 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
9257 | return resultobj; |
9258 | fail: | |
9259 | return NULL; | |
9260 | } | |
9261 | ||
9262 | ||
9263 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9264 | PyObject *resultobj; | |
9265 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9266 | PyObject * obj0 = 0 ; | |
9267 | char *kwnames[] = { | |
9268 | (char *) "self", NULL | |
9269 | }; | |
9270 | ||
9271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9274 | { |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | delete arg1; | |
9277 | ||
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
9281 | Py_INCREF(Py_None); resultobj = Py_None; | |
9282 | return resultobj; | |
9283 | fail: | |
9284 | return NULL; | |
9285 | } | |
9286 | ||
9287 | ||
9288 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9289 | PyObject *resultobj; | |
9290 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9291 | PyObject *arg2 = (PyObject *) 0 ; | |
9292 | PyObject *arg3 = (PyObject *) 0 ; | |
9293 | bool arg4 ; | |
9294 | PyObject * obj0 = 0 ; | |
9295 | PyObject * obj1 = 0 ; | |
9296 | PyObject * obj2 = 0 ; | |
9297 | PyObject * obj3 = 0 ; | |
9298 | char *kwnames[] = { | |
9299 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9300 | }; | |
9301 | ||
9302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
9303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9305 | arg2 = obj1; |
9306 | arg3 = obj2; | |
2f4c0a16 RD |
9307 | arg4 = (bool) SWIG_AsBool(obj3); |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9309 | { |
9310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9311 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9312 | ||
9313 | wxPyEndAllowThreads(__tstate); | |
9314 | if (PyErr_Occurred()) SWIG_fail; | |
9315 | } | |
9316 | Py_INCREF(Py_None); resultobj = Py_None; | |
9317 | return resultobj; | |
9318 | fail: | |
9319 | return NULL; | |
9320 | } | |
9321 | ||
9322 | ||
9323 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9324 | PyObject *resultobj; | |
9325 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9326 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 9327 | bool arg3 = (bool) False ; |
d14a1e28 RD |
9328 | bool result; |
9329 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9331 | PyObject * obj2 = 0 ; |
9332 | char *kwnames[] = { | |
9333 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9334 | }; | |
9335 | ||
8edf1c75 | 9336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9339 | if (obj1) { |
2f4c0a16 RD |
9340 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9342 | } |
d14a1e28 | 9343 | if (obj2) { |
2f4c0a16 RD |
9344 | arg3 = (bool) SWIG_AsBool(obj2); |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9346 | } |
9347 | { | |
9348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9349 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9350 | ||
9351 | wxPyEndAllowThreads(__tstate); | |
9352 | if (PyErr_Occurred()) SWIG_fail; | |
9353 | } | |
4f89f6a3 RD |
9354 | { |
9355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9356 | } | |
d14a1e28 RD |
9357 | return resultobj; |
9358 | fail: | |
9359 | return NULL; | |
9360 | } | |
9361 | ||
9362 | ||
9363 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9364 | PyObject *resultobj; | |
9365 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9366 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9367 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9368 | bool result; | |
423f194a | 9369 | bool temp2 = False ; |
d14a1e28 RD |
9370 | PyObject * obj0 = 0 ; |
9371 | PyObject * obj1 = 0 ; | |
9372 | char *kwnames[] = { | |
9373 | (char *) "self",(char *) "facename", NULL | |
9374 | }; | |
9375 | ||
9376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9379 | if (obj1) { |
9380 | { | |
9381 | arg2 = wxString_in_helper(obj1); | |
9382 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9383 | temp2 = True; |
d14a1e28 RD |
9384 | } |
9385 | } | |
9386 | { | |
9387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9388 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9389 | ||
9390 | wxPyEndAllowThreads(__tstate); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | } | |
4f89f6a3 RD |
9393 | { |
9394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9395 | } | |
d14a1e28 RD |
9396 | { |
9397 | if (temp2) | |
9398 | delete arg2; | |
9399 | } | |
9400 | return resultobj; | |
9401 | fail: | |
9402 | { | |
9403 | if (temp2) | |
9404 | delete arg2; | |
9405 | } | |
9406 | return NULL; | |
9407 | } | |
9408 | ||
9409 | ||
9410 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9411 | PyObject *resultobj; | |
9412 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9413 | PyObject *result; | |
9414 | PyObject * obj0 = 0 ; | |
9415 | char *kwnames[] = { | |
9416 | (char *) "self", NULL | |
9417 | }; | |
9418 | ||
9419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9422 | { |
9423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9424 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9425 | ||
9426 | wxPyEndAllowThreads(__tstate); | |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
9428 | } | |
9429 | resultobj = result; | |
9430 | return resultobj; | |
9431 | fail: | |
9432 | return NULL; | |
9433 | } | |
9434 | ||
9435 | ||
9436 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9437 | PyObject *resultobj; | |
9438 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9439 | PyObject *result; | |
9440 | PyObject * obj0 = 0 ; | |
9441 | char *kwnames[] = { | |
9442 | (char *) "self", NULL | |
9443 | }; | |
9444 | ||
9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
9447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9448 | { |
9449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9450 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9451 | ||
9452 | wxPyEndAllowThreads(__tstate); | |
9453 | if (PyErr_Occurred()) SWIG_fail; | |
9454 | } | |
9455 | resultobj = result; | |
9456 | return resultobj; | |
9457 | fail: | |
9458 | return NULL; | |
9459 | } | |
9460 | ||
9461 | ||
9462 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
9463 | PyObject *obj; | |
9464 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9465 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9466 | Py_INCREF(obj); | |
9467 | return Py_BuildValue((char *)""); | |
9468 | } | |
9469 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9470 | PyObject *resultobj; | |
9471 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9472 | int arg2 ; | |
9473 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9475 | char *kwnames[] = { |
9476 | (char *) "self",(char *) "Language", NULL | |
9477 | }; | |
9478 | ||
8edf1c75 | 9479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9482 | arg2 = (int) SWIG_AsInt(obj1); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9484 | if (arg1) (arg1)->Language = arg2; |
9485 | ||
9486 | Py_INCREF(Py_None); resultobj = Py_None; | |
9487 | return resultobj; | |
9488 | fail: | |
9489 | return NULL; | |
9490 | } | |
9491 | ||
9492 | ||
9493 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9494 | PyObject *resultobj; | |
9495 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9496 | int result; | |
9497 | PyObject * obj0 = 0 ; | |
9498 | char *kwnames[] = { | |
9499 | (char *) "self", NULL | |
9500 | }; | |
9501 | ||
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9505 | result = (int) ((arg1)->Language); |
9506 | ||
2f4c0a16 | 9507 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9508 | return resultobj; |
9509 | fail: | |
9510 | return NULL; | |
9511 | } | |
9512 | ||
9513 | ||
9514 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9515 | PyObject *resultobj; | |
9516 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9517 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 9518 | bool temp2 = False ; |
d14a1e28 RD |
9519 | PyObject * obj0 = 0 ; |
9520 | PyObject * obj1 = 0 ; | |
9521 | char *kwnames[] = { | |
9522 | (char *) "self",(char *) "CanonicalName", NULL | |
9523 | }; | |
9524 | ||
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f775c30d RD |
9528 | { |
9529 | arg2 = wxString_in_helper(obj1); | |
9530 | if (arg2 == NULL) SWIG_fail; | |
9531 | temp2 = True; | |
9532 | } | |
d03fd34d | 9533 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
9534 | |
9535 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
9536 | { |
9537 | if (temp2) | |
9538 | delete arg2; | |
9539 | } | |
d14a1e28 RD |
9540 | return resultobj; |
9541 | fail: | |
f775c30d RD |
9542 | { |
9543 | if (temp2) | |
9544 | delete arg2; | |
9545 | } | |
d14a1e28 RD |
9546 | return NULL; |
9547 | } | |
9548 | ||
9549 | ||
9550 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9551 | PyObject *resultobj; | |
9552 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9553 | wxString *result; |
d14a1e28 RD |
9554 | PyObject * obj0 = 0 ; |
9555 | char *kwnames[] = { | |
9556 | (char *) "self", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d | 9562 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
9563 | |
9564 | { | |
9565 | #if wxUSE_UNICODE | |
d03fd34d | 9566 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9567 | #else |
d03fd34d | 9568 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9569 | #endif |
9570 | } | |
9571 | return resultobj; | |
9572 | fail: | |
9573 | return NULL; | |
9574 | } | |
9575 | ||
9576 | ||
9577 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9578 | PyObject *resultobj; | |
9579 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9580 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 9581 | bool temp2 = False ; |
d14a1e28 RD |
9582 | PyObject * obj0 = 0 ; |
9583 | PyObject * obj1 = 0 ; | |
9584 | char *kwnames[] = { | |
9585 | (char *) "self",(char *) "Description", NULL | |
9586 | }; | |
9587 | ||
9588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f775c30d RD |
9591 | { |
9592 | arg2 = wxString_in_helper(obj1); | |
9593 | if (arg2 == NULL) SWIG_fail; | |
9594 | temp2 = True; | |
9595 | } | |
d03fd34d | 9596 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
9597 | |
9598 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
9599 | { |
9600 | if (temp2) | |
9601 | delete arg2; | |
9602 | } | |
d14a1e28 RD |
9603 | return resultobj; |
9604 | fail: | |
f775c30d RD |
9605 | { |
9606 | if (temp2) | |
9607 | delete arg2; | |
9608 | } | |
d14a1e28 RD |
9609 | return NULL; |
9610 | } | |
9611 | ||
9612 | ||
9613 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9614 | PyObject *resultobj; | |
9615 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
d03fd34d | 9616 | wxString *result; |
d14a1e28 RD |
9617 | PyObject * obj0 = 0 ; |
9618 | char *kwnames[] = { | |
9619 | (char *) "self", NULL | |
9620 | }; | |
9621 | ||
9622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d | 9625 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
9626 | |
9627 | { | |
9628 | #if wxUSE_UNICODE | |
d03fd34d | 9629 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9630 | #else |
d03fd34d | 9631 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9632 | #endif |
9633 | } | |
9634 | return resultobj; | |
9635 | fail: | |
9636 | return NULL; | |
9637 | } | |
9638 | ||
9639 | ||
9640 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
9641 | PyObject *obj; | |
9642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9643 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9644 | Py_INCREF(obj); | |
9645 | return Py_BuildValue((char *)""); | |
9646 | } | |
9647 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9648 | PyObject *resultobj; | |
9649 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
9650 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9651 | wxLocale *result; | |
8edf1c75 RD |
9652 | PyObject * obj0 = 0 ; |
9653 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9654 | char *kwnames[] = { |
9655 | (char *) "language",(char *) "flags", NULL | |
9656 | }; | |
9657 | ||
8edf1c75 RD |
9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
9659 | if (obj0) { | |
2f4c0a16 RD |
9660 | arg1 = (int) SWIG_AsInt(obj0); |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9662 | } |
9663 | if (obj1) { | |
2f4c0a16 RD |
9664 | arg2 = (int) SWIG_AsInt(obj1); |
9665 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9666 | } |
d14a1e28 RD |
9667 | { |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
9670 | ||
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
2f4c0a16 | 9674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
9675 | return resultobj; |
9676 | fail: | |
9677 | return NULL; | |
9678 | } | |
9679 | ||
9680 | ||
9681 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9682 | PyObject *resultobj; | |
9683 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9684 | PyObject * obj0 = 0 ; | |
9685 | char *kwnames[] = { | |
9686 | (char *) "self", NULL | |
9687 | }; | |
9688 | ||
9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9692 | { |
9693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9694 | delete arg1; | |
9695 | ||
9696 | wxPyEndAllowThreads(__tstate); | |
9697 | if (PyErr_Occurred()) SWIG_fail; | |
9698 | } | |
9699 | Py_INCREF(Py_None); resultobj = Py_None; | |
9700 | return resultobj; | |
9701 | fail: | |
9702 | return NULL; | |
9703 | } | |
9704 | ||
9705 | ||
9706 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9707 | PyObject *resultobj; | |
9708 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9709 | wxString *arg2 = 0 ; | |
9710 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9711 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9712 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9713 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
9714 | bool arg5 = (bool) True ; |
9715 | bool arg6 = (bool) False ; | |
d14a1e28 | 9716 | bool result; |
423f194a RD |
9717 | bool temp2 = False ; |
9718 | bool temp3 = False ; | |
9719 | bool temp4 = False ; | |
d14a1e28 RD |
9720 | PyObject * obj0 = 0 ; |
9721 | PyObject * obj1 = 0 ; | |
9722 | PyObject * obj2 = 0 ; | |
9723 | PyObject * obj3 = 0 ; | |
9724 | PyObject * obj4 = 0 ; | |
9725 | PyObject * obj5 = 0 ; | |
9726 | char *kwnames[] = { | |
9727 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9728 | }; | |
9729 | ||
9730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
2f4c0a16 RD |
9731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9733 | { |
9734 | arg2 = wxString_in_helper(obj1); | |
9735 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9736 | temp2 = True; |
d14a1e28 RD |
9737 | } |
9738 | if (obj2) { | |
9739 | { | |
9740 | arg3 = wxString_in_helper(obj2); | |
9741 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9742 | temp3 = True; |
d14a1e28 RD |
9743 | } |
9744 | } | |
9745 | if (obj3) { | |
9746 | { | |
9747 | arg4 = wxString_in_helper(obj3); | |
9748 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 9749 | temp4 = True; |
d14a1e28 RD |
9750 | } |
9751 | } | |
9752 | if (obj4) { | |
2f4c0a16 RD |
9753 | arg5 = (bool) SWIG_AsBool(obj4); |
9754 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9755 | } |
9756 | if (obj5) { | |
2f4c0a16 RD |
9757 | arg6 = (bool) SWIG_AsBool(obj5); |
9758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9759 | } |
9760 | { | |
9761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9762 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9763 | ||
9764 | wxPyEndAllowThreads(__tstate); | |
9765 | if (PyErr_Occurred()) SWIG_fail; | |
9766 | } | |
4f89f6a3 RD |
9767 | { |
9768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9769 | } | |
d14a1e28 RD |
9770 | { |
9771 | if (temp2) | |
9772 | delete arg2; | |
9773 | } | |
9774 | { | |
9775 | if (temp3) | |
9776 | delete arg3; | |
9777 | } | |
9778 | { | |
9779 | if (temp4) | |
9780 | delete arg4; | |
9781 | } | |
9782 | return resultobj; | |
9783 | fail: | |
9784 | { | |
9785 | if (temp2) | |
9786 | delete arg2; | |
9787 | } | |
9788 | { | |
9789 | if (temp3) | |
9790 | delete arg3; | |
9791 | } | |
9792 | { | |
9793 | if (temp4) | |
9794 | delete arg4; | |
9795 | } | |
9796 | return NULL; | |
9797 | } | |
9798 | ||
9799 | ||
9800 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9801 | PyObject *resultobj; | |
9802 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9803 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9804 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9805 | bool result; | |
9806 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9807 | PyObject * obj1 = 0 ; |
9808 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9809 | char *kwnames[] = { |
9810 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9811 | }; | |
9812 | ||
8edf1c75 | 9813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9816 | if (obj1) { |
2f4c0a16 RD |
9817 | arg2 = (int) SWIG_AsInt(obj1); |
9818 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9819 | } |
9820 | if (obj2) { | |
2f4c0a16 RD |
9821 | arg3 = (int) SWIG_AsInt(obj2); |
9822 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9823 | } |
d14a1e28 RD |
9824 | { |
9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9826 | result = (bool)(arg1)->Init(arg2,arg3); | |
9827 | ||
9828 | wxPyEndAllowThreads(__tstate); | |
9829 | if (PyErr_Occurred()) SWIG_fail; | |
9830 | } | |
4f89f6a3 RD |
9831 | { |
9832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9833 | } | |
d14a1e28 RD |
9834 | return resultobj; |
9835 | fail: | |
9836 | return NULL; | |
9837 | } | |
9838 | ||
9839 | ||
9840 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9841 | PyObject *resultobj; | |
9842 | int result; | |
9843 | char *kwnames[] = { | |
9844 | NULL | |
9845 | }; | |
9846 | ||
9847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9848 | { | |
9849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9850 | result = (int)wxLocale::GetSystemLanguage(); | |
9851 | ||
9852 | wxPyEndAllowThreads(__tstate); | |
9853 | if (PyErr_Occurred()) SWIG_fail; | |
9854 | } | |
2f4c0a16 | 9855 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9856 | return resultobj; |
9857 | fail: | |
9858 | return NULL; | |
9859 | } | |
9860 | ||
9861 | ||
9862 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9863 | PyObject *resultobj; | |
9864 | int result; | |
9865 | char *kwnames[] = { | |
9866 | NULL | |
9867 | }; | |
9868 | ||
9869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9870 | { | |
9871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9872 | result = (int)wxLocale::GetSystemEncoding(); | |
9873 | ||
9874 | wxPyEndAllowThreads(__tstate); | |
9875 | if (PyErr_Occurred()) SWIG_fail; | |
9876 | } | |
2f4c0a16 | 9877 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9878 | return resultobj; |
9879 | fail: | |
9880 | return NULL; | |
9881 | } | |
9882 | ||
9883 | ||
9884 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9885 | PyObject *resultobj; | |
9886 | wxString result; | |
9887 | char *kwnames[] = { | |
9888 | NULL | |
9889 | }; | |
9890 | ||
9891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9892 | { | |
9893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9894 | result = wxLocale::GetSystemEncodingName(); | |
9895 | ||
9896 | wxPyEndAllowThreads(__tstate); | |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
9898 | } | |
9899 | { | |
9900 | #if wxUSE_UNICODE | |
9901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9902 | #else | |
9903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9904 | #endif | |
9905 | } | |
9906 | return resultobj; | |
9907 | fail: | |
9908 | return NULL; | |
9909 | } | |
9910 | ||
9911 | ||
9912 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9913 | PyObject *resultobj; | |
9914 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9915 | bool result; | |
9916 | PyObject * obj0 = 0 ; | |
9917 | char *kwnames[] = { | |
9918 | (char *) "self", NULL | |
9919 | }; | |
9920 | ||
9921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9924 | { |
9925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9926 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9927 | ||
9928 | wxPyEndAllowThreads(__tstate); | |
9929 | if (PyErr_Occurred()) SWIG_fail; | |
9930 | } | |
4f89f6a3 RD |
9931 | { |
9932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9933 | } | |
d14a1e28 RD |
9934 | return resultobj; |
9935 | fail: | |
9936 | return NULL; | |
9937 | } | |
9938 | ||
9939 | ||
9940 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, 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_GetLocale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9952 | { |
9953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9954 | result = ((wxLocale const *)arg1)->GetLocale(); | |
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_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject *resultobj; | |
9974 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9975 | int result; | |
9976 | PyObject * obj0 = 0 ; | |
9977 | char *kwnames[] = { | |
9978 | (char *) "self", NULL | |
9979 | }; | |
9980 | ||
9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9984 | { |
9985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9986 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9987 | ||
9988 | wxPyEndAllowThreads(__tstate); | |
9989 | if (PyErr_Occurred()) SWIG_fail; | |
9990 | } | |
2f4c0a16 | 9991 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9992 | return resultobj; |
9993 | fail: | |
9994 | return NULL; | |
9995 | } | |
9996 | ||
9997 | ||
9998 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9999 | PyObject *resultobj; | |
10000 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10001 | wxString result; | |
10002 | PyObject * obj0 = 0 ; | |
10003 | char *kwnames[] = { | |
10004 | (char *) "self", NULL | |
10005 | }; | |
10006 | ||
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10010 | { |
10011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10012 | result = ((wxLocale const *)arg1)->GetSysName(); | |
10013 | ||
10014 | wxPyEndAllowThreads(__tstate); | |
10015 | if (PyErr_Occurred()) SWIG_fail; | |
10016 | } | |
10017 | { | |
10018 | #if wxUSE_UNICODE | |
10019 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10020 | #else | |
10021 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10022 | #endif | |
10023 | } | |
10024 | return resultobj; | |
10025 | fail: | |
10026 | return NULL; | |
10027 | } | |
10028 | ||
10029 | ||
10030 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10031 | PyObject *resultobj; | |
10032 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10033 | wxString result; | |
10034 | PyObject * obj0 = 0 ; | |
10035 | char *kwnames[] = { | |
10036 | (char *) "self", NULL | |
10037 | }; | |
10038 | ||
10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10042 | { |
10043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
10045 | ||
10046 | wxPyEndAllowThreads(__tstate); | |
10047 | if (PyErr_Occurred()) SWIG_fail; | |
10048 | } | |
10049 | { | |
10050 | #if wxUSE_UNICODE | |
10051 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10052 | #else | |
10053 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10054 | #endif | |
10055 | } | |
10056 | return resultobj; | |
10057 | fail: | |
10058 | return NULL; | |
10059 | } | |
10060 | ||
10061 | ||
10062 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10063 | PyObject *resultobj; | |
10064 | wxString *arg1 = 0 ; | |
423f194a | 10065 | bool temp1 = False ; |
d14a1e28 RD |
10066 | PyObject * obj0 = 0 ; |
10067 | char *kwnames[] = { | |
10068 | (char *) "prefix", NULL | |
10069 | }; | |
10070 | ||
10071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
10072 | { | |
10073 | arg1 = wxString_in_helper(obj0); | |
10074 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10075 | temp1 = True; |
d14a1e28 RD |
10076 | } |
10077 | { | |
10078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10079 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
10080 | ||
10081 | wxPyEndAllowThreads(__tstate); | |
10082 | if (PyErr_Occurred()) SWIG_fail; | |
10083 | } | |
10084 | Py_INCREF(Py_None); resultobj = Py_None; | |
10085 | { | |
10086 | if (temp1) | |
10087 | delete arg1; | |
10088 | } | |
10089 | return resultobj; | |
10090 | fail: | |
10091 | { | |
10092 | if (temp1) | |
10093 | delete arg1; | |
10094 | } | |
10095 | return NULL; | |
10096 | } | |
10097 | ||
10098 | ||
10099 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject *resultobj; | |
10101 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10102 | wxString *arg2 = 0 ; | |
10103 | bool result; | |
423f194a | 10104 | bool temp2 = False ; |
d14a1e28 RD |
10105 | PyObject * obj0 = 0 ; |
10106 | PyObject * obj1 = 0 ; | |
10107 | char *kwnames[] = { | |
10108 | (char *) "self",(char *) "szDomain", NULL | |
10109 | }; | |
10110 | ||
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10114 | { |
10115 | arg2 = wxString_in_helper(obj1); | |
10116 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10117 | temp2 = True; |
d14a1e28 RD |
10118 | } |
10119 | { | |
10120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10121 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
10122 | ||
10123 | wxPyEndAllowThreads(__tstate); | |
10124 | if (PyErr_Occurred()) SWIG_fail; | |
10125 | } | |
4f89f6a3 RD |
10126 | { |
10127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10128 | } | |
d14a1e28 RD |
10129 | { |
10130 | if (temp2) | |
10131 | delete arg2; | |
10132 | } | |
10133 | return resultobj; | |
10134 | fail: | |
10135 | { | |
10136 | if (temp2) | |
10137 | delete arg2; | |
10138 | } | |
10139 | return NULL; | |
10140 | } | |
10141 | ||
10142 | ||
10143 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10144 | PyObject *resultobj; | |
10145 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10146 | wxString *arg2 = 0 ; | |
10147 | bool result; | |
423f194a | 10148 | bool temp2 = False ; |
d14a1e28 RD |
10149 | PyObject * obj0 = 0 ; |
10150 | PyObject * obj1 = 0 ; | |
10151 | char *kwnames[] = { | |
10152 | (char *) "self",(char *) "szDomain", NULL | |
10153 | }; | |
10154 | ||
10155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10158 | { |
10159 | arg2 = wxString_in_helper(obj1); | |
10160 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10161 | temp2 = True; |
d14a1e28 RD |
10162 | } |
10163 | { | |
10164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10165 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10166 | ||
10167 | wxPyEndAllowThreads(__tstate); | |
10168 | if (PyErr_Occurred()) SWIG_fail; | |
10169 | } | |
4f89f6a3 RD |
10170 | { |
10171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10172 | } | |
d14a1e28 RD |
10173 | { |
10174 | if (temp2) | |
10175 | delete arg2; | |
10176 | } | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | { | |
10180 | if (temp2) | |
10181 | delete arg2; | |
10182 | } | |
10183 | return NULL; | |
10184 | } | |
10185 | ||
10186 | ||
10187 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject *resultobj; | |
10189 | int arg1 ; | |
10190 | wxLanguageInfo *result; | |
8edf1c75 | 10191 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10192 | char *kwnames[] = { |
10193 | (char *) "lang", NULL | |
10194 | }; | |
10195 | ||
8edf1c75 | 10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
10197 | arg1 = (int) SWIG_AsInt(obj0); |
10198 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10199 | { |
10200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10201 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10202 | ||
10203 | wxPyEndAllowThreads(__tstate); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | } | |
2f4c0a16 | 10206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
10207 | return resultobj; |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | int arg1 ; | |
10216 | wxString result; | |
8edf1c75 | 10217 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10218 | char *kwnames[] = { |
10219 | (char *) "lang", NULL | |
10220 | }; | |
10221 | ||
8edf1c75 | 10222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
10223 | arg1 = (int) SWIG_AsInt(obj0); |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10225 | { |
10226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10227 | result = wxLocale::GetLanguageName(arg1); | |
10228 | ||
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
10232 | { | |
10233 | #if wxUSE_UNICODE | |
10234 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10235 | #else | |
10236 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10237 | #endif | |
10238 | } | |
10239 | return resultobj; | |
10240 | fail: | |
10241 | return NULL; | |
10242 | } | |
10243 | ||
10244 | ||
10245 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10246 | PyObject *resultobj; | |
10247 | wxString *arg1 = 0 ; | |
10248 | wxLanguageInfo *result; | |
423f194a | 10249 | bool temp1 = False ; |
d14a1e28 RD |
10250 | PyObject * obj0 = 0 ; |
10251 | char *kwnames[] = { | |
10252 | (char *) "locale", NULL | |
10253 | }; | |
10254 | ||
10255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10256 | { | |
10257 | arg1 = wxString_in_helper(obj0); | |
10258 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10259 | temp1 = True; |
d14a1e28 RD |
10260 | } |
10261 | { | |
10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10263 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10264 | ||
10265 | wxPyEndAllowThreads(__tstate); | |
10266 | if (PyErr_Occurred()) SWIG_fail; | |
10267 | } | |
2f4c0a16 | 10268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
10269 | { |
10270 | if (temp1) | |
10271 | delete arg1; | |
10272 | } | |
10273 | return resultobj; | |
10274 | fail: | |
10275 | { | |
10276 | if (temp1) | |
10277 | delete arg1; | |
10278 | } | |
10279 | return NULL; | |
10280 | } | |
10281 | ||
10282 | ||
10283 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10284 | PyObject *resultobj; | |
10285 | wxLanguageInfo *arg1 = 0 ; | |
10286 | PyObject * obj0 = 0 ; | |
10287 | char *kwnames[] = { | |
10288 | (char *) "info", NULL | |
10289 | }; | |
10290 | ||
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
10293 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10294 | SWIG_fail; | |
d14a1e28 | 10295 | if (arg1 == NULL) { |
2f4c0a16 RD |
10296 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10297 | SWIG_fail; | |
d14a1e28 RD |
10298 | } |
10299 | { | |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) SWIG_fail; | |
10305 | } | |
10306 | Py_INCREF(Py_None); resultobj = Py_None; | |
10307 | return resultobj; | |
10308 | fail: | |
10309 | return NULL; | |
10310 | } | |
10311 | ||
10312 | ||
10313 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10314 | PyObject *resultobj; | |
10315 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10316 | wxString *arg2 = 0 ; | |
10317 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10318 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10319 | wxString result; | |
423f194a RD |
10320 | bool temp2 = False ; |
10321 | bool temp3 = False ; | |
d14a1e28 RD |
10322 | PyObject * obj0 = 0 ; |
10323 | PyObject * obj1 = 0 ; | |
10324 | PyObject * obj2 = 0 ; | |
10325 | char *kwnames[] = { | |
10326 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10327 | }; | |
10328 | ||
10329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10332 | { |
10333 | arg2 = wxString_in_helper(obj1); | |
10334 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10335 | temp2 = True; |
d14a1e28 RD |
10336 | } |
10337 | if (obj2) { | |
10338 | { | |
10339 | arg3 = wxString_in_helper(obj2); | |
10340 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10341 | temp3 = True; |
d14a1e28 RD |
10342 | } |
10343 | } | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | { | |
10352 | #if wxUSE_UNICODE | |
10353 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10354 | #else | |
10355 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10356 | #endif | |
10357 | } | |
10358 | { | |
10359 | if (temp2) | |
10360 | delete arg2; | |
10361 | } | |
10362 | { | |
10363 | if (temp3) | |
10364 | delete arg3; | |
10365 | } | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | { | |
10369 | if (temp2) | |
10370 | delete arg2; | |
10371 | } | |
10372 | { | |
10373 | if (temp3) | |
10374 | delete arg3; | |
10375 | } | |
10376 | return NULL; | |
10377 | } | |
10378 | ||
10379 | ||
10380 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10381 | PyObject *resultobj; | |
10382 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10383 | wxString *result; | |
10384 | PyObject * obj0 = 0 ; | |
10385 | char *kwnames[] = { | |
10386 | (char *) "self", NULL | |
10387 | }; | |
10388 | ||
10389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
10391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10392 | { |
10393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10394 | { | |
10395 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10396 | result = (wxString *) &_result_ref; | |
10397 | } | |
10398 | ||
10399 | wxPyEndAllowThreads(__tstate); | |
10400 | if (PyErr_Occurred()) SWIG_fail; | |
10401 | } | |
f0983263 RD |
10402 | { |
10403 | #if wxUSE_UNICODE | |
10404 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10405 | #else | |
10406 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10407 | #endif | |
10408 | } | |
d14a1e28 RD |
10409 | return resultobj; |
10410 | fail: | |
10411 | return NULL; | |
10412 | } | |
10413 | ||
10414 | ||
10415 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
10416 | PyObject *obj; | |
10417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10418 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10419 | Py_INCREF(obj); | |
10420 | return Py_BuildValue((char *)""); | |
10421 | } | |
10422 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10423 | PyObject *resultobj; | |
10424 | wxLocale *result; | |
10425 | char *kwnames[] = { | |
10426 | NULL | |
10427 | }; | |
10428 | ||
10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10430 | { | |
10431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10432 | result = (wxLocale *)wxGetLocale(); | |
10433 | ||
10434 | wxPyEndAllowThreads(__tstate); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | } | |
2f4c0a16 | 10437 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
10438 | return resultobj; |
10439 | fail: | |
10440 | return NULL; | |
10441 | } | |
10442 | ||
10443 | ||
10444 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
10445 | PyObject *resultobj; | |
10446 | wxString *arg1 = 0 ; | |
10447 | wxString result; | |
423f194a | 10448 | bool temp1 = False ; |
d14a1e28 RD |
10449 | PyObject * obj0 = 0 ; |
10450 | ||
10451 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10452 | { | |
10453 | arg1 = wxString_in_helper(obj0); | |
10454 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10455 | temp1 = True; |
d14a1e28 RD |
10456 | } |
10457 | { | |
10458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10459 | result = wxGetTranslation((wxString const &)*arg1); | |
10460 | ||
10461 | wxPyEndAllowThreads(__tstate); | |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
10463 | } | |
10464 | { | |
10465 | #if wxUSE_UNICODE | |
10466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10467 | #else | |
10468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10469 | #endif | |
10470 | } | |
10471 | { | |
10472 | if (temp1) | |
10473 | delete arg1; | |
10474 | } | |
10475 | return resultobj; | |
10476 | fail: | |
10477 | { | |
10478 | if (temp1) | |
10479 | delete arg1; | |
10480 | } | |
10481 | return NULL; | |
10482 | } | |
10483 | ||
10484 | ||
10485 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
10486 | PyObject *resultobj; | |
10487 | wxString *arg1 = 0 ; | |
10488 | wxString *arg2 = 0 ; | |
10489 | size_t arg3 ; | |
10490 | wxString result; | |
423f194a RD |
10491 | bool temp1 = False ; |
10492 | bool temp2 = False ; | |
d14a1e28 RD |
10493 | PyObject * obj0 = 0 ; |
10494 | PyObject * obj1 = 0 ; | |
10495 | PyObject * obj2 = 0 ; | |
10496 | ||
10497 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10498 | { | |
10499 | arg1 = wxString_in_helper(obj0); | |
10500 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 10501 | temp1 = True; |
d14a1e28 RD |
10502 | } |
10503 | { | |
10504 | arg2 = wxString_in_helper(obj1); | |
10505 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10506 | temp2 = True; |
d14a1e28 | 10507 | } |
2f4c0a16 RD |
10508 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10510 | { |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10513 | ||
10514 | wxPyEndAllowThreads(__tstate); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | { | |
10518 | #if wxUSE_UNICODE | |
10519 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10520 | #else | |
10521 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10522 | #endif | |
10523 | } | |
10524 | { | |
10525 | if (temp1) | |
10526 | delete arg1; | |
10527 | } | |
10528 | { | |
10529 | if (temp2) | |
10530 | delete arg2; | |
10531 | } | |
10532 | return resultobj; | |
10533 | fail: | |
10534 | { | |
10535 | if (temp1) | |
10536 | delete arg1; | |
10537 | } | |
10538 | { | |
10539 | if (temp2) | |
10540 | delete arg2; | |
10541 | } | |
10542 | return NULL; | |
10543 | } | |
10544 | ||
10545 | ||
10546 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10547 | int argc; | |
10548 | PyObject *argv[4]; | |
10549 | int ii; | |
10550 | ||
10551 | argc = PyObject_Length(args); | |
10552 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10553 | argv[ii] = PyTuple_GetItem(args,ii); | |
10554 | } | |
10555 | if (argc == 1) { | |
10556 | int _v; | |
10557 | { | |
4e760a36 | 10558 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10559 | } |
10560 | if (_v) { | |
10561 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10562 | } | |
10563 | } | |
10564 | if (argc == 3) { | |
10565 | int _v; | |
10566 | { | |
4e760a36 | 10567 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
10568 | } |
10569 | if (_v) { | |
10570 | { | |
4e760a36 | 10571 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
10572 | } |
10573 | if (_v) { | |
2f4c0a16 | 10574 | _v = SWIG_CheckUnsignedLong(argv[2]); |
d14a1e28 RD |
10575 | if (_v) { |
10576 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10577 | } | |
10578 | } | |
10579 | } | |
10580 | } | |
10581 | ||
10582 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10583 | return NULL; | |
10584 | } | |
10585 | ||
10586 | ||
10587 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10588 | PyObject *resultobj; | |
10589 | wxEncodingConverter *result; | |
10590 | char *kwnames[] = { | |
10591 | NULL | |
10592 | }; | |
10593 | ||
10594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10595 | { | |
10596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10597 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10598 | ||
10599 | wxPyEndAllowThreads(__tstate); | |
10600 | if (PyErr_Occurred()) SWIG_fail; | |
10601 | } | |
2f4c0a16 | 10602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
10603 | return resultobj; |
10604 | fail: | |
10605 | return NULL; | |
10606 | } | |
10607 | ||
10608 | ||
10609 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10610 | PyObject *resultobj; | |
10611 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10612 | PyObject * obj0 = 0 ; | |
10613 | char *kwnames[] = { | |
10614 | (char *) "self", NULL | |
10615 | }; | |
10616 | ||
10617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10620 | { |
10621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10622 | delete arg1; | |
10623 | ||
10624 | wxPyEndAllowThreads(__tstate); | |
10625 | if (PyErr_Occurred()) SWIG_fail; | |
10626 | } | |
10627 | Py_INCREF(Py_None); resultobj = Py_None; | |
10628 | return resultobj; | |
10629 | fail: | |
10630 | return NULL; | |
10631 | } | |
10632 | ||
10633 | ||
10634 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10635 | PyObject *resultobj; | |
10636 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10637 | int arg2 ; | |
10638 | int arg3 ; | |
10639 | int arg4 = (int) wxCONVERT_STRICT ; | |
10640 | bool result; | |
10641 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10642 | PyObject * obj1 = 0 ; |
10643 | PyObject * obj2 = 0 ; | |
10644 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10645 | char *kwnames[] = { |
10646 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10647 | }; | |
10648 | ||
8edf1c75 | 10649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
10650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10652 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | arg3 = (wxFontEncoding) SWIG_AsInt(obj2); | |
10655 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10656 | if (obj3) { |
2f4c0a16 RD |
10657 | arg4 = (int) SWIG_AsInt(obj3); |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10659 | } |
d14a1e28 RD |
10660 | { |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
4f89f6a3 RD |
10667 | { |
10668 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10669 | } | |
d14a1e28 RD |
10670 | return resultobj; |
10671 | fail: | |
10672 | return NULL; | |
10673 | } | |
10674 | ||
10675 | ||
10676 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10677 | PyObject *resultobj; | |
10678 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10679 | wxString *arg2 = 0 ; | |
10680 | wxString result; | |
423f194a | 10681 | bool temp2 = False ; |
d14a1e28 RD |
10682 | PyObject * obj0 = 0 ; |
10683 | PyObject * obj1 = 0 ; | |
10684 | char *kwnames[] = { | |
10685 | (char *) "self",(char *) "input", NULL | |
10686 | }; | |
10687 | ||
10688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10691 | { |
10692 | arg2 = wxString_in_helper(obj1); | |
10693 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10694 | temp2 = True; |
d14a1e28 RD |
10695 | } |
10696 | { | |
10697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10698 | result = (arg1)->Convert((wxString const &)*arg2); | |
10699 | ||
10700 | wxPyEndAllowThreads(__tstate); | |
10701 | if (PyErr_Occurred()) SWIG_fail; | |
10702 | } | |
10703 | { | |
10704 | #if wxUSE_UNICODE | |
10705 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10706 | #else | |
10707 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10708 | #endif | |
10709 | } | |
10710 | { | |
10711 | if (temp2) | |
10712 | delete arg2; | |
10713 | } | |
10714 | return resultobj; | |
10715 | fail: | |
10716 | { | |
10717 | if (temp2) | |
10718 | delete arg2; | |
10719 | } | |
10720 | return NULL; | |
10721 | } | |
10722 | ||
10723 | ||
10724 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10725 | PyObject *resultobj; | |
10726 | int arg1 ; | |
10727 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10728 | wxFontEncodingArray result; | |
8edf1c75 RD |
10729 | PyObject * obj0 = 0 ; |
10730 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10731 | char *kwnames[] = { |
10732 | (char *) "enc",(char *) "platform", NULL | |
10733 | }; | |
10734 | ||
8edf1c75 | 10735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10736 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10737 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10738 | if (obj1) { |
2f4c0a16 RD |
10739 | arg2 = (int) SWIG_AsInt(obj1); |
10740 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10741 | } |
d14a1e28 RD |
10742 | { |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10744 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10745 | ||
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | { | |
10750 | resultobj = PyList_New(0); | |
10751 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10752 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10753 | PyList_Append(resultobj, number); | |
10754 | Py_DECREF(number); | |
10755 | } | |
10756 | } | |
10757 | return resultobj; | |
10758 | fail: | |
10759 | return NULL; | |
10760 | } | |
10761 | ||
10762 | ||
10763 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10764 | PyObject *resultobj; | |
10765 | int arg1 ; | |
10766 | wxFontEncodingArray result; | |
8edf1c75 | 10767 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10768 | char *kwnames[] = { |
10769 | (char *) "enc", NULL | |
10770 | }; | |
10771 | ||
8edf1c75 | 10772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
10773 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10774 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10775 | { |
10776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10777 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10778 | ||
10779 | wxPyEndAllowThreads(__tstate); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
10782 | { | |
10783 | resultobj = PyList_New(0); | |
10784 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10785 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10786 | PyList_Append(resultobj, number); | |
10787 | Py_DECREF(number); | |
10788 | } | |
10789 | } | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
10796 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10797 | PyObject *resultobj; | |
10798 | int arg1 ; | |
10799 | int arg2 ; | |
10800 | bool result; | |
8edf1c75 RD |
10801 | PyObject * obj0 = 0 ; |
10802 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10803 | char *kwnames[] = { |
10804 | (char *) "encIn",(char *) "encOut", NULL | |
10805 | }; | |
10806 | ||
8edf1c75 | 10807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10808 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10809 | if (PyErr_Occurred()) SWIG_fail; | |
10810 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10812 | { |
10813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10814 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10815 | ||
10816 | wxPyEndAllowThreads(__tstate); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
10818 | } | |
4f89f6a3 RD |
10819 | { |
10820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10821 | } | |
d14a1e28 RD |
10822 | return resultobj; |
10823 | fail: | |
10824 | return NULL; | |
10825 | } | |
10826 | ||
10827 | ||
10828 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10829 | PyObject *obj; | |
10830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10831 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10832 | Py_INCREF(obj); | |
10833 | return Py_BuildValue((char *)""); | |
10834 | } | |
10835 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10836 | PyObject *resultobj; | |
10837 | wxDC *arg1 = (wxDC *) 0 ; | |
10838 | PyObject * obj0 = 0 ; | |
10839 | char *kwnames[] = { | |
10840 | (char *) "self", NULL | |
10841 | }; | |
10842 | ||
10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10846 | { |
10847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10848 | delete arg1; | |
10849 | ||
10850 | wxPyEndAllowThreads(__tstate); | |
10851 | if (PyErr_Occurred()) SWIG_fail; | |
10852 | } | |
10853 | Py_INCREF(Py_None); resultobj = Py_None; | |
10854 | return resultobj; | |
10855 | fail: | |
10856 | return NULL; | |
10857 | } | |
10858 | ||
10859 | ||
10860 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10861 | PyObject *resultobj; | |
10862 | wxDC *arg1 = (wxDC *) 0 ; | |
10863 | PyObject * obj0 = 0 ; | |
10864 | char *kwnames[] = { | |
10865 | (char *) "self", NULL | |
10866 | }; | |
10867 | ||
10868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10871 | { |
10872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10873 | (arg1)->BeginDrawing(); | |
10874 | ||
10875 | wxPyEndAllowThreads(__tstate); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | Py_INCREF(Py_None); resultobj = Py_None; | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | return NULL; | |
10882 | } | |
10883 | ||
10884 | ||
10885 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10886 | PyObject *resultobj; | |
10887 | wxDC *arg1 = (wxDC *) 0 ; | |
10888 | PyObject * obj0 = 0 ; | |
10889 | char *kwnames[] = { | |
10890 | (char *) "self", NULL | |
10891 | }; | |
10892 | ||
10893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10896 | { |
10897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10898 | (arg1)->EndDrawing(); | |
10899 | ||
10900 | wxPyEndAllowThreads(__tstate); | |
10901 | if (PyErr_Occurred()) SWIG_fail; | |
10902 | } | |
10903 | Py_INCREF(Py_None); resultobj = Py_None; | |
10904 | return resultobj; | |
10905 | fail: | |
10906 | return NULL; | |
10907 | } | |
10908 | ||
10909 | ||
10910 | static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10911 | PyObject *resultobj; | |
10912 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10913 | int arg2 ; |
10914 | int arg3 ; | |
d14a1e28 RD |
10915 | wxColour *arg4 = 0 ; |
10916 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10917 | bool result; | |
10918 | wxColour temp4 ; | |
10919 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10920 | PyObject * obj1 = 0 ; |
10921 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10922 | PyObject * obj3 = 0 ; |
8edf1c75 | 10923 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10924 | char *kwnames[] = { |
10925 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10926 | }; | |
10927 | ||
8edf1c75 | 10928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10931 | arg2 = (int) SWIG_AsInt(obj1); | |
10932 | if (PyErr_Occurred()) SWIG_fail; | |
10933 | arg3 = (int) SWIG_AsInt(obj2); | |
10934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10935 | { |
10936 | arg4 = &temp4; | |
10937 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10938 | } | |
8edf1c75 | 10939 | if (obj4) { |
2f4c0a16 RD |
10940 | arg5 = (int) SWIG_AsInt(obj4); |
10941 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10942 | } |
d14a1e28 RD |
10943 | { |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
4f89f6a3 RD |
10950 | { |
10951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10952 | } | |
d14a1e28 RD |
10953 | return resultobj; |
10954 | fail: | |
10955 | return NULL; | |
10956 | } | |
10957 | ||
10958 | ||
10959 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10960 | PyObject *resultobj; | |
10961 | wxDC *arg1 = (wxDC *) 0 ; | |
10962 | wxPoint *arg2 = 0 ; | |
10963 | wxColour *arg3 = 0 ; | |
10964 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10965 | bool result; | |
10966 | wxPoint temp2 ; | |
10967 | wxColour temp3 ; | |
10968 | PyObject * obj0 = 0 ; | |
10969 | PyObject * obj1 = 0 ; | |
10970 | PyObject * obj2 = 0 ; | |
8edf1c75 | 10971 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10972 | char *kwnames[] = { |
10973 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10974 | }; | |
10975 | ||
8edf1c75 | 10976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
10977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10979 | { |
10980 | arg2 = &temp2; | |
10981 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10982 | } | |
10983 | { | |
10984 | arg3 = &temp3; | |
10985 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10986 | } | |
8edf1c75 | 10987 | if (obj3) { |
2f4c0a16 RD |
10988 | arg4 = (int) SWIG_AsInt(obj3); |
10989 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10990 | } |
d14a1e28 RD |
10991 | { |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10993 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10994 | ||
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
4f89f6a3 RD |
10998 | { |
10999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11000 | } | |
d14a1e28 RD |
11001 | return resultobj; |
11002 | fail: | |
11003 | return NULL; | |
11004 | } | |
11005 | ||
11006 | ||
11007 | static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11008 | PyObject *resultobj; | |
11009 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11010 | int arg2 ; |
11011 | int arg3 ; | |
d14a1e28 RD |
11012 | wxColour result; |
11013 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11014 | PyObject * obj1 = 0 ; |
11015 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11016 | char *kwnames[] = { |
11017 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11018 | }; | |
11019 | ||
8edf1c75 | 11020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11023 | arg2 = (int) SWIG_AsInt(obj1); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | arg3 = (int) SWIG_AsInt(obj2); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11027 | { |
11028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11029 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
11030 | ||
11031 | wxPyEndAllowThreads(__tstate); | |
11032 | if (PyErr_Occurred()) SWIG_fail; | |
11033 | } | |
11034 | { | |
11035 | wxColour * resultptr; | |
11036 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 11037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11038 | } |
11039 | return resultobj; | |
11040 | fail: | |
11041 | return NULL; | |
11042 | } | |
11043 | ||
11044 | ||
11045 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11046 | PyObject *resultobj; | |
11047 | wxDC *arg1 = (wxDC *) 0 ; | |
11048 | wxPoint *arg2 = 0 ; | |
11049 | wxColour result; | |
11050 | wxPoint temp2 ; | |
11051 | PyObject * obj0 = 0 ; | |
11052 | PyObject * obj1 = 0 ; | |
11053 | char *kwnames[] = { | |
11054 | (char *) "self",(char *) "pt", NULL | |
11055 | }; | |
11056 | ||
11057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11060 | { |
11061 | arg2 = &temp2; | |
11062 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11063 | } | |
11064 | { | |
11065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11066 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
11067 | ||
11068 | wxPyEndAllowThreads(__tstate); | |
11069 | if (PyErr_Occurred()) SWIG_fail; | |
11070 | } | |
11071 | { | |
11072 | wxColour * resultptr; | |
11073 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 11074 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
11075 | } |
11076 | return resultobj; | |
11077 | fail: | |
11078 | return NULL; | |
11079 | } | |
11080 | ||
11081 | ||
11082 | static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11083 | PyObject *resultobj; | |
11084 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11085 | int arg2 ; |
11086 | int arg3 ; | |
11087 | int arg4 ; | |
11088 | int arg5 ; | |
d14a1e28 | 11089 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11090 | PyObject * obj1 = 0 ; |
11091 | PyObject * obj2 = 0 ; | |
11092 | PyObject * obj3 = 0 ; | |
11093 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11094 | char *kwnames[] = { |
11095 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
11096 | }; | |
11097 | ||
8edf1c75 | 11098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11101 | arg2 = (int) SWIG_AsInt(obj1); | |
11102 | if (PyErr_Occurred()) SWIG_fail; | |
11103 | arg3 = (int) SWIG_AsInt(obj2); | |
11104 | if (PyErr_Occurred()) SWIG_fail; | |
11105 | arg4 = (int) SWIG_AsInt(obj3); | |
11106 | if (PyErr_Occurred()) SWIG_fail; | |
11107 | arg5 = (int) SWIG_AsInt(obj4); | |
11108 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11109 | { |
11110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11111 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
11112 | ||
11113 | wxPyEndAllowThreads(__tstate); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
11116 | Py_INCREF(Py_None); resultobj = Py_None; | |
11117 | return resultobj; | |
11118 | fail: | |
11119 | return NULL; | |
11120 | } | |
11121 | ||
11122 | ||
11123 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11124 | PyObject *resultobj; | |
11125 | wxDC *arg1 = (wxDC *) 0 ; | |
11126 | wxPoint *arg2 = 0 ; | |
11127 | wxPoint *arg3 = 0 ; | |
11128 | wxPoint temp2 ; | |
11129 | wxPoint temp3 ; | |
11130 | PyObject * obj0 = 0 ; | |
11131 | PyObject * obj1 = 0 ; | |
11132 | PyObject * obj2 = 0 ; | |
11133 | char *kwnames[] = { | |
11134 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
11135 | }; | |
11136 | ||
11137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11140 | { |
11141 | arg2 = &temp2; | |
11142 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11143 | } | |
11144 | { | |
11145 | arg3 = &temp3; | |
11146 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11147 | } | |
11148 | { | |
11149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11150 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11151 | ||
11152 | wxPyEndAllowThreads(__tstate); | |
11153 | if (PyErr_Occurred()) SWIG_fail; | |
11154 | } | |
11155 | Py_INCREF(Py_None); resultobj = Py_None; | |
11156 | return resultobj; | |
11157 | fail: | |
11158 | return NULL; | |
11159 | } | |
11160 | ||
11161 | ||
11162 | static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11163 | PyObject *resultobj; | |
11164 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11165 | int arg2 ; |
11166 | int arg3 ; | |
d14a1e28 | 11167 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11168 | PyObject * obj1 = 0 ; |
11169 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11170 | char *kwnames[] = { |
11171 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11172 | }; | |
11173 | ||
8edf1c75 | 11174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11177 | arg2 = (int) SWIG_AsInt(obj1); | |
11178 | if (PyErr_Occurred()) SWIG_fail; | |
11179 | arg3 = (int) SWIG_AsInt(obj2); | |
11180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11181 | { |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | (arg1)->CrossHair(arg2,arg3); | |
11184 | ||
11185 | wxPyEndAllowThreads(__tstate); | |
11186 | if (PyErr_Occurred()) SWIG_fail; | |
11187 | } | |
11188 | Py_INCREF(Py_None); resultobj = Py_None; | |
11189 | return resultobj; | |
11190 | fail: | |
11191 | return NULL; | |
11192 | } | |
11193 | ||
11194 | ||
11195 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11196 | PyObject *resultobj; | |
11197 | wxDC *arg1 = (wxDC *) 0 ; | |
11198 | wxPoint *arg2 = 0 ; | |
11199 | wxPoint temp2 ; | |
11200 | PyObject * obj0 = 0 ; | |
11201 | PyObject * obj1 = 0 ; | |
11202 | char *kwnames[] = { | |
11203 | (char *) "self",(char *) "pt", NULL | |
11204 | }; | |
11205 | ||
11206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11209 | { |
11210 | arg2 = &temp2; | |
11211 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11212 | } | |
11213 | { | |
11214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11215 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11216 | ||
11217 | wxPyEndAllowThreads(__tstate); | |
11218 | if (PyErr_Occurred()) SWIG_fail; | |
11219 | } | |
11220 | Py_INCREF(Py_None); resultobj = Py_None; | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
11227 | static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject *resultobj; | |
11229 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11230 | int arg2 ; |
11231 | int arg3 ; | |
11232 | int arg4 ; | |
11233 | int arg5 ; | |
11234 | int arg6 ; | |
11235 | int arg7 ; | |
d14a1e28 | 11236 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11237 | PyObject * obj1 = 0 ; |
11238 | PyObject * obj2 = 0 ; | |
11239 | PyObject * obj3 = 0 ; | |
11240 | PyObject * obj4 = 0 ; | |
11241 | PyObject * obj5 = 0 ; | |
11242 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
11243 | char *kwnames[] = { |
11244 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11245 | }; | |
11246 | ||
8edf1c75 | 11247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
11248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11250 | arg2 = (int) SWIG_AsInt(obj1); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | arg3 = (int) SWIG_AsInt(obj2); | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | arg4 = (int) SWIG_AsInt(obj3); | |
11255 | if (PyErr_Occurred()) SWIG_fail; | |
11256 | arg5 = (int) SWIG_AsInt(obj4); | |
11257 | if (PyErr_Occurred()) SWIG_fail; | |
11258 | arg6 = (int) SWIG_AsInt(obj5); | |
11259 | if (PyErr_Occurred()) SWIG_fail; | |
11260 | arg7 = (int) SWIG_AsInt(obj6); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11262 | { |
11263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11264 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11265 | ||
11266 | wxPyEndAllowThreads(__tstate); | |
11267 | if (PyErr_Occurred()) SWIG_fail; | |
11268 | } | |
11269 | Py_INCREF(Py_None); resultobj = Py_None; | |
11270 | return resultobj; | |
11271 | fail: | |
11272 | return NULL; | |
11273 | } | |
d14a1e28 RD |
11274 | |
11275 | ||
11276 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11277 | PyObject *resultobj; | |
11278 | wxDC *arg1 = (wxDC *) 0 ; | |
11279 | wxPoint *arg2 = 0 ; | |
11280 | wxPoint *arg3 = 0 ; | |
11281 | wxPoint *arg4 = 0 ; | |
11282 | wxPoint temp2 ; | |
11283 | wxPoint temp3 ; | |
11284 | wxPoint temp4 ; | |
11285 | PyObject * obj0 = 0 ; | |
11286 | PyObject * obj1 = 0 ; | |
11287 | PyObject * obj2 = 0 ; | |
11288 | PyObject * obj3 = 0 ; | |
11289 | char *kwnames[] = { | |
11290 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
11291 | }; | |
11292 | ||
11293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
11294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11296 | { |
11297 | arg2 = &temp2; | |
11298 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11299 | } | |
11300 | { | |
11301 | arg3 = &temp3; | |
11302 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11303 | } | |
11304 | { | |
11305 | arg4 = &temp4; | |
11306 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11307 | } | |
11308 | { | |
11309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11310 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11311 | ||
11312 | wxPyEndAllowThreads(__tstate); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | } | |
11315 | Py_INCREF(Py_None); resultobj = Py_None; | |
11316 | return resultobj; | |
11317 | fail: | |
11318 | return NULL; | |
11319 | } | |
11320 | ||
11321 | ||
11322 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11323 | PyObject *resultobj; | |
11324 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11325 | int arg2 ; |
11326 | int arg3 ; | |
11327 | int arg4 ; | |
11328 | int arg5 ; | |
d14a1e28 | 11329 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11330 | PyObject * obj1 = 0 ; |
11331 | PyObject * obj2 = 0 ; | |
11332 | PyObject * obj3 = 0 ; | |
11333 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11334 | char *kwnames[] = { |
11335 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11336 | }; | |
11337 | ||
8edf1c75 | 11338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11341 | arg2 = (int) SWIG_AsInt(obj1); | |
11342 | if (PyErr_Occurred()) SWIG_fail; | |
11343 | arg3 = (int) SWIG_AsInt(obj2); | |
11344 | if (PyErr_Occurred()) SWIG_fail; | |
11345 | arg4 = (int) SWIG_AsInt(obj3); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | arg5 = (int) SWIG_AsInt(obj4); | |
11348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11349 | { |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11351 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11352 | ||
11353 | wxPyEndAllowThreads(__tstate); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | } | |
11356 | Py_INCREF(Py_None); resultobj = Py_None; | |
11357 | return resultobj; | |
11358 | fail: | |
11359 | return NULL; | |
11360 | } | |
11361 | ||
11362 | ||
11363 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11364 | PyObject *resultobj; | |
11365 | wxDC *arg1 = (wxDC *) 0 ; | |
11366 | wxRect *arg2 = 0 ; | |
11367 | wxRect temp2 ; | |
11368 | PyObject * obj0 = 0 ; | |
11369 | PyObject * obj1 = 0 ; | |
11370 | char *kwnames[] = { | |
11371 | (char *) "self",(char *) "rect", NULL | |
11372 | }; | |
11373 | ||
11374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11377 | { |
11378 | arg2 = &temp2; | |
11379 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11380 | } | |
11381 | { | |
11382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11383 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11384 | ||
11385 | wxPyEndAllowThreads(__tstate); | |
11386 | if (PyErr_Occurred()) SWIG_fail; | |
11387 | } | |
11388 | Py_INCREF(Py_None); resultobj = Py_None; | |
11389 | return resultobj; | |
11390 | fail: | |
11391 | return NULL; | |
11392 | } | |
11393 | ||
11394 | ||
11395 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11396 | PyObject *resultobj; | |
11397 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11398 | int arg2 ; |
11399 | int arg3 ; | |
11400 | int arg4 ; | |
11401 | int arg5 ; | |
d14a1e28 RD |
11402 | double arg6 ; |
11403 | double arg7 ; | |
11404 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11405 | PyObject * obj1 = 0 ; |
11406 | PyObject * obj2 = 0 ; | |
11407 | PyObject * obj3 = 0 ; | |
11408 | PyObject * obj4 = 0 ; | |
11409 | PyObject * obj5 = 0 ; | |
11410 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
11411 | char *kwnames[] = { |
11412 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
11413 | }; | |
11414 | ||
8edf1c75 | 11415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
11416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11418 | arg2 = (int) SWIG_AsInt(obj1); | |
11419 | if (PyErr_Occurred()) SWIG_fail; | |
11420 | arg3 = (int) SWIG_AsInt(obj2); | |
11421 | if (PyErr_Occurred()) SWIG_fail; | |
11422 | arg4 = (int) SWIG_AsInt(obj3); | |
11423 | if (PyErr_Occurred()) SWIG_fail; | |
11424 | arg5 = (int) SWIG_AsInt(obj4); | |
11425 | if (PyErr_Occurred()) SWIG_fail; | |
11426 | arg6 = (double) SWIG_AsDouble(obj5); | |
11427 | if (PyErr_Occurred()) SWIG_fail; | |
11428 | arg7 = (double) SWIG_AsDouble(obj6); | |
11429 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11430 | { |
11431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11432 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11433 | ||
11434 | wxPyEndAllowThreads(__tstate); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | Py_INCREF(Py_None); resultobj = Py_None; | |
11438 | return resultobj; | |
11439 | fail: | |
11440 | return NULL; | |
11441 | } | |
11442 | ||
11443 | ||
11444 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11445 | PyObject *resultobj; | |
11446 | wxDC *arg1 = (wxDC *) 0 ; | |
11447 | wxPoint *arg2 = 0 ; | |
11448 | wxSize *arg3 = 0 ; | |
11449 | double arg4 ; | |
11450 | double arg5 ; | |
11451 | wxPoint temp2 ; | |
11452 | wxSize temp3 ; | |
11453 | PyObject * obj0 = 0 ; | |
11454 | PyObject * obj1 = 0 ; | |
11455 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
11456 | PyObject * obj3 = 0 ; |
11457 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11458 | char *kwnames[] = { |
11459 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
11460 | }; | |
11461 | ||
8edf1c75 | 11462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11465 | { |
11466 | arg2 = &temp2; | |
11467 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11468 | } | |
11469 | { | |
11470 | arg3 = &temp3; | |
11471 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11472 | } | |
2f4c0a16 RD |
11473 | arg4 = (double) SWIG_AsDouble(obj3); |
11474 | if (PyErr_Occurred()) SWIG_fail; | |
11475 | arg5 = (double) SWIG_AsDouble(obj4); | |
11476 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11477 | { |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11480 | ||
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
11484 | Py_INCREF(Py_None); resultobj = Py_None; | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | return NULL; | |
11488 | } | |
11489 | ||
11490 | ||
11491 | static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11492 | PyObject *resultobj; | |
11493 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11494 | int arg2 ; |
11495 | int arg3 ; | |
d14a1e28 | 11496 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11497 | PyObject * obj1 = 0 ; |
11498 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11499 | char *kwnames[] = { |
11500 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11501 | }; | |
11502 | ||
8edf1c75 | 11503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11506 | arg2 = (int) SWIG_AsInt(obj1); | |
11507 | if (PyErr_Occurred()) SWIG_fail; | |
11508 | arg3 = (int) SWIG_AsInt(obj2); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11510 | { |
11511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11512 | (arg1)->DrawPoint(arg2,arg3); | |
11513 | ||
11514 | wxPyEndAllowThreads(__tstate); | |
11515 | if (PyErr_Occurred()) SWIG_fail; | |
11516 | } | |
11517 | Py_INCREF(Py_None); resultobj = Py_None; | |
11518 | return resultobj; | |
11519 | fail: | |
11520 | return NULL; | |
11521 | } | |
11522 | ||
11523 | ||
11524 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11525 | PyObject *resultobj; | |
11526 | wxDC *arg1 = (wxDC *) 0 ; | |
11527 | wxPoint *arg2 = 0 ; | |
11528 | wxPoint temp2 ; | |
11529 | PyObject * obj0 = 0 ; | |
11530 | PyObject * obj1 = 0 ; | |
11531 | char *kwnames[] = { | |
11532 | (char *) "self",(char *) "pt", NULL | |
11533 | }; | |
11534 | ||
11535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11538 | { |
11539 | arg2 = &temp2; | |
11540 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11541 | } | |
11542 | { | |
11543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11544 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11545 | ||
11546 | wxPyEndAllowThreads(__tstate); | |
11547 | if (PyErr_Occurred()) SWIG_fail; | |
11548 | } | |
11549 | Py_INCREF(Py_None); resultobj = Py_None; | |
11550 | return resultobj; | |
11551 | fail: | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
11556 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11557 | PyObject *resultobj; | |
11558 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11559 | int arg2 ; |
11560 | int arg3 ; | |
11561 | int arg4 ; | |
11562 | int arg5 ; | |
d14a1e28 | 11563 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11564 | PyObject * obj1 = 0 ; |
11565 | PyObject * obj2 = 0 ; | |
11566 | PyObject * obj3 = 0 ; | |
11567 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11568 | char *kwnames[] = { |
11569 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11570 | }; | |
11571 | ||
8edf1c75 | 11572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11575 | arg2 = (int) SWIG_AsInt(obj1); | |
11576 | if (PyErr_Occurred()) SWIG_fail; | |
11577 | arg3 = (int) SWIG_AsInt(obj2); | |
11578 | if (PyErr_Occurred()) SWIG_fail; | |
11579 | arg4 = (int) SWIG_AsInt(obj3); | |
11580 | if (PyErr_Occurred()) SWIG_fail; | |
11581 | arg5 = (int) SWIG_AsInt(obj4); | |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11583 | { |
11584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11585 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11586 | ||
11587 | wxPyEndAllowThreads(__tstate); | |
11588 | if (PyErr_Occurred()) SWIG_fail; | |
11589 | } | |
11590 | Py_INCREF(Py_None); resultobj = Py_None; | |
11591 | return resultobj; | |
11592 | fail: | |
11593 | return NULL; | |
11594 | } | |
11595 | ||
11596 | ||
11597 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11598 | PyObject *resultobj; | |
11599 | wxDC *arg1 = (wxDC *) 0 ; | |
11600 | wxPoint *arg2 = 0 ; | |
11601 | wxSize *arg3 = 0 ; | |
11602 | wxPoint temp2 ; | |
11603 | wxSize temp3 ; | |
11604 | PyObject * obj0 = 0 ; | |
11605 | PyObject * obj1 = 0 ; | |
11606 | PyObject * obj2 = 0 ; | |
11607 | char *kwnames[] = { | |
11608 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11609 | }; | |
11610 | ||
11611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11614 | { |
11615 | arg2 = &temp2; | |
11616 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11617 | } | |
11618 | { | |
11619 | arg3 = &temp3; | |
11620 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11621 | } | |
11622 | { | |
11623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11624 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11625 | ||
11626 | wxPyEndAllowThreads(__tstate); | |
11627 | if (PyErr_Occurred()) SWIG_fail; | |
11628 | } | |
11629 | Py_INCREF(Py_None); resultobj = Py_None; | |
11630 | return resultobj; | |
11631 | fail: | |
11632 | return NULL; | |
11633 | } | |
11634 | ||
11635 | ||
11636 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11637 | PyObject *resultobj; | |
11638 | wxDC *arg1 = (wxDC *) 0 ; | |
11639 | wxRect *arg2 = 0 ; | |
11640 | wxRect temp2 ; | |
11641 | PyObject * obj0 = 0 ; | |
11642 | PyObject * obj1 = 0 ; | |
11643 | char *kwnames[] = { | |
11644 | (char *) "self",(char *) "rect", NULL | |
11645 | }; | |
11646 | ||
11647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11650 | { |
11651 | arg2 = &temp2; | |
11652 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11653 | } | |
11654 | { | |
11655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11656 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
11657 | ||
11658 | wxPyEndAllowThreads(__tstate); | |
11659 | if (PyErr_Occurred()) SWIG_fail; | |
11660 | } | |
11661 | Py_INCREF(Py_None); resultobj = Py_None; | |
11662 | return resultobj; | |
11663 | fail: | |
11664 | return NULL; | |
11665 | } | |
11666 | ||
11667 | ||
11668 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11669 | PyObject *resultobj; | |
11670 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11671 | int arg2 ; |
11672 | int arg3 ; | |
11673 | int arg4 ; | |
11674 | int arg5 ; | |
d14a1e28 RD |
11675 | double arg6 ; |
11676 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11677 | PyObject * obj1 = 0 ; |
11678 | PyObject * obj2 = 0 ; | |
11679 | PyObject * obj3 = 0 ; | |
11680 | PyObject * obj4 = 0 ; | |
11681 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11682 | char *kwnames[] = { |
11683 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11684 | }; | |
11685 | ||
8edf1c75 | 11686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
11687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11689 | arg2 = (int) SWIG_AsInt(obj1); | |
11690 | if (PyErr_Occurred()) SWIG_fail; | |
11691 | arg3 = (int) SWIG_AsInt(obj2); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | arg4 = (int) SWIG_AsInt(obj3); | |
11694 | if (PyErr_Occurred()) SWIG_fail; | |
11695 | arg5 = (int) SWIG_AsInt(obj4); | |
11696 | if (PyErr_Occurred()) SWIG_fail; | |
11697 | arg6 = (double) SWIG_AsDouble(obj5); | |
11698 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11699 | { |
11700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11701 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11702 | ||
11703 | wxPyEndAllowThreads(__tstate); | |
11704 | if (PyErr_Occurred()) SWIG_fail; | |
11705 | } | |
11706 | Py_INCREF(Py_None); resultobj = Py_None; | |
11707 | return resultobj; | |
11708 | fail: | |
11709 | return NULL; | |
11710 | } | |
11711 | ||
11712 | ||
11713 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11714 | PyObject *resultobj; | |
11715 | wxDC *arg1 = (wxDC *) 0 ; | |
11716 | wxPoint *arg2 = 0 ; | |
11717 | wxSize *arg3 = 0 ; | |
11718 | double arg4 ; | |
11719 | wxPoint temp2 ; | |
11720 | wxSize temp3 ; | |
11721 | PyObject * obj0 = 0 ; | |
11722 | PyObject * obj1 = 0 ; | |
11723 | PyObject * obj2 = 0 ; | |
8edf1c75 | 11724 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11725 | char *kwnames[] = { |
11726 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
11727 | }; | |
11728 | ||
8edf1c75 | 11729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11732 | { |
11733 | arg2 = &temp2; | |
11734 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11735 | } | |
11736 | { | |
11737 | arg3 = &temp3; | |
11738 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11739 | } | |
2f4c0a16 RD |
11740 | arg4 = (double) SWIG_AsDouble(obj3); |
11741 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11742 | { |
11743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11744 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
11745 | ||
11746 | wxPyEndAllowThreads(__tstate); | |
11747 | if (PyErr_Occurred()) SWIG_fail; | |
11748 | } | |
11749 | Py_INCREF(Py_None); resultobj = Py_None; | |
11750 | return resultobj; | |
11751 | fail: | |
11752 | return NULL; | |
11753 | } | |
11754 | ||
11755 | ||
11756 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11757 | PyObject *resultobj; | |
11758 | wxDC *arg1 = (wxDC *) 0 ; | |
11759 | wxRect *arg2 = 0 ; | |
11760 | double arg3 ; | |
11761 | wxRect temp2 ; | |
11762 | PyObject * obj0 = 0 ; | |
11763 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11764 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11765 | char *kwnames[] = { |
11766 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
11767 | }; | |
11768 | ||
8edf1c75 | 11769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11772 | { |
11773 | arg2 = &temp2; | |
11774 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11775 | } | |
2f4c0a16 RD |
11776 | arg3 = (double) SWIG_AsDouble(obj2); |
11777 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11778 | { |
11779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11780 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
11781 | ||
11782 | wxPyEndAllowThreads(__tstate); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
11785 | Py_INCREF(Py_None); resultobj = Py_None; | |
11786 | return resultobj; | |
11787 | fail: | |
11788 | return NULL; | |
11789 | } | |
11790 | ||
11791 | ||
11792 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11793 | PyObject *resultobj; | |
11794 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11795 | int arg2 ; |
11796 | int arg3 ; | |
11797 | int arg4 ; | |
d14a1e28 | 11798 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11799 | PyObject * obj1 = 0 ; |
11800 | PyObject * obj2 = 0 ; | |
11801 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11802 | char *kwnames[] = { |
11803 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11804 | }; | |
11805 | ||
8edf1c75 | 11806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11809 | arg2 = (int) SWIG_AsInt(obj1); | |
11810 | if (PyErr_Occurred()) SWIG_fail; | |
11811 | arg3 = (int) SWIG_AsInt(obj2); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | arg4 = (int) SWIG_AsInt(obj3); | |
11814 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11815 | { |
11816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11817 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11818 | ||
11819 | wxPyEndAllowThreads(__tstate); | |
11820 | if (PyErr_Occurred()) SWIG_fail; | |
11821 | } | |
11822 | Py_INCREF(Py_None); resultobj = Py_None; | |
11823 | return resultobj; | |
11824 | fail: | |
11825 | return NULL; | |
11826 | } | |
11827 | ||
11828 | ||
11829 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11830 | PyObject *resultobj; | |
11831 | wxDC *arg1 = (wxDC *) 0 ; | |
11832 | wxPoint *arg2 = 0 ; | |
423f194a | 11833 | int arg3 ; |
d14a1e28 RD |
11834 | wxPoint temp2 ; |
11835 | PyObject * obj0 = 0 ; | |
11836 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11837 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11838 | char *kwnames[] = { |
11839 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11840 | }; | |
11841 | ||
8edf1c75 | 11842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11845 | { |
11846 | arg2 = &temp2; | |
11847 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11848 | } | |
2f4c0a16 RD |
11849 | arg3 = (int) SWIG_AsInt(obj2); |
11850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11851 | { |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | Py_INCREF(Py_None); resultobj = Py_None; | |
11859 | return resultobj; | |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject *resultobj; | |
11867 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11868 | int arg2 ; |
11869 | int arg3 ; | |
11870 | int arg4 ; | |
11871 | int arg5 ; | |
d14a1e28 | 11872 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11873 | PyObject * obj1 = 0 ; |
11874 | PyObject * obj2 = 0 ; | |
11875 | PyObject * obj3 = 0 ; | |
11876 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11877 | char *kwnames[] = { |
11878 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11879 | }; | |
11880 | ||
8edf1c75 | 11881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11884 | arg2 = (int) SWIG_AsInt(obj1); | |
11885 | if (PyErr_Occurred()) SWIG_fail; | |
11886 | arg3 = (int) SWIG_AsInt(obj2); | |
11887 | if (PyErr_Occurred()) SWIG_fail; | |
11888 | arg4 = (int) SWIG_AsInt(obj3); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | arg5 = (int) SWIG_AsInt(obj4); | |
11891 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11892 | { |
11893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11894 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11895 | ||
11896 | wxPyEndAllowThreads(__tstate); | |
11897 | if (PyErr_Occurred()) SWIG_fail; | |
11898 | } | |
11899 | Py_INCREF(Py_None); resultobj = Py_None; | |
11900 | return resultobj; | |
11901 | fail: | |
11902 | return NULL; | |
11903 | } | |
11904 | ||
11905 | ||
11906 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11907 | PyObject *resultobj; | |
11908 | wxDC *arg1 = (wxDC *) 0 ; | |
11909 | wxPoint *arg2 = 0 ; | |
11910 | wxSize *arg3 = 0 ; | |
11911 | wxPoint temp2 ; | |
11912 | wxSize temp3 ; | |
11913 | PyObject * obj0 = 0 ; | |
11914 | PyObject * obj1 = 0 ; | |
11915 | PyObject * obj2 = 0 ; | |
11916 | char *kwnames[] = { | |
11917 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11918 | }; | |
11919 | ||
11920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11923 | { |
11924 | arg2 = &temp2; | |
11925 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11926 | } | |
11927 | { | |
11928 | arg3 = &temp3; | |
11929 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11930 | } | |
11931 | { | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11933 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11934 | ||
11935 | wxPyEndAllowThreads(__tstate); | |
11936 | if (PyErr_Occurred()) SWIG_fail; | |
11937 | } | |
11938 | Py_INCREF(Py_None); resultobj = Py_None; | |
11939 | return resultobj; | |
11940 | fail: | |
11941 | return NULL; | |
11942 | } | |
11943 | ||
11944 | ||
11945 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11946 | PyObject *resultobj; | |
11947 | wxDC *arg1 = (wxDC *) 0 ; | |
11948 | wxRect *arg2 = 0 ; | |
11949 | wxRect temp2 ; | |
11950 | PyObject * obj0 = 0 ; | |
11951 | PyObject * obj1 = 0 ; | |
11952 | char *kwnames[] = { | |
11953 | (char *) "self",(char *) "rect", NULL | |
11954 | }; | |
11955 | ||
11956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11959 | { |
11960 | arg2 = &temp2; | |
11961 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11962 | } | |
11963 | { | |
11964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11965 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
11966 | ||
11967 | wxPyEndAllowThreads(__tstate); | |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
11969 | } | |
11970 | Py_INCREF(Py_None); resultobj = Py_None; | |
11971 | return resultobj; | |
11972 | fail: | |
11973 | return NULL; | |
11974 | } | |
11975 | ||
11976 | ||
11977 | static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11978 | PyObject *resultobj; | |
11979 | wxDC *arg1 = (wxDC *) 0 ; | |
11980 | wxIcon *arg2 = 0 ; | |
423f194a RD |
11981 | int arg3 ; |
11982 | int arg4 ; | |
d14a1e28 RD |
11983 | PyObject * obj0 = 0 ; |
11984 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11985 | PyObject * obj2 = 0 ; |
11986 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11987 | char *kwnames[] = { |
11988 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11989 | }; | |
11990 | ||
8edf1c75 | 11991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11994 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11995 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11996 | SWIG_fail; | |
d14a1e28 | 11997 | if (arg2 == NULL) { |
2f4c0a16 RD |
11998 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11999 | SWIG_fail; | |
8edf1c75 | 12000 | } |
2f4c0a16 RD |
12001 | arg3 = (int) SWIG_AsInt(obj2); |
12002 | if (PyErr_Occurred()) SWIG_fail; | |
12003 | arg4 = (int) SWIG_AsInt(obj3); | |
12004 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12005 | { |
12006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12007 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
12008 | ||
12009 | wxPyEndAllowThreads(__tstate); | |
12010 | if (PyErr_Occurred()) SWIG_fail; | |
12011 | } | |
12012 | Py_INCREF(Py_None); resultobj = Py_None; | |
12013 | return resultobj; | |
12014 | fail: | |
12015 | return NULL; | |
12016 | } | |
12017 | ||
12018 | ||
12019 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12020 | PyObject *resultobj; | |
12021 | wxDC *arg1 = (wxDC *) 0 ; | |
12022 | wxIcon *arg2 = 0 ; | |
12023 | wxPoint *arg3 = 0 ; | |
12024 | wxPoint temp3 ; | |
12025 | PyObject * obj0 = 0 ; | |
12026 | PyObject * obj1 = 0 ; | |
12027 | PyObject * obj2 = 0 ; | |
12028 | char *kwnames[] = { | |
12029 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
12030 | }; | |
12031 | ||
12032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12036 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12037 | SWIG_fail; | |
d14a1e28 | 12038 | if (arg2 == NULL) { |
2f4c0a16 RD |
12039 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12040 | SWIG_fail; | |
d14a1e28 RD |
12041 | } |
12042 | { | |
12043 | arg3 = &temp3; | |
12044 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12045 | } | |
12046 | { | |
12047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12048 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
12049 | ||
12050 | wxPyEndAllowThreads(__tstate); | |
12051 | if (PyErr_Occurred()) SWIG_fail; | |
12052 | } | |
12053 | Py_INCREF(Py_None); resultobj = Py_None; | |
12054 | return resultobj; | |
12055 | fail: | |
12056 | return NULL; | |
12057 | } | |
12058 | ||
12059 | ||
12060 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12061 | PyObject *resultobj; | |
12062 | wxDC *arg1 = (wxDC *) 0 ; | |
12063 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
12064 | int arg3 ; |
12065 | int arg4 ; | |
12066 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
12067 | PyObject * obj0 = 0 ; |
12068 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12069 | PyObject * obj2 = 0 ; |
12070 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12071 | PyObject * obj4 = 0 ; |
12072 | char *kwnames[] = { | |
12073 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
12074 | }; | |
12075 | ||
8edf1c75 | 12076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12079 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12080 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12081 | SWIG_fail; | |
d14a1e28 | 12082 | if (arg2 == NULL) { |
2f4c0a16 RD |
12083 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12084 | SWIG_fail; | |
8edf1c75 | 12085 | } |
2f4c0a16 RD |
12086 | arg3 = (int) SWIG_AsInt(obj2); |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | arg4 = (int) SWIG_AsInt(obj3); | |
12089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12090 | if (obj4) { |
2f4c0a16 RD |
12091 | arg5 = (bool) SWIG_AsBool(obj4); |
12092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12093 | } |
12094 | { | |
12095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12096 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
12097 | ||
12098 | wxPyEndAllowThreads(__tstate); | |
12099 | if (PyErr_Occurred()) SWIG_fail; | |
12100 | } | |
12101 | Py_INCREF(Py_None); resultobj = Py_None; | |
12102 | return resultobj; | |
12103 | fail: | |
12104 | return NULL; | |
12105 | } | |
12106 | ||
12107 | ||
12108 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12109 | PyObject *resultobj; | |
12110 | wxDC *arg1 = (wxDC *) 0 ; | |
12111 | wxBitmap *arg2 = 0 ; | |
12112 | wxPoint *arg3 = 0 ; | |
423f194a | 12113 | bool arg4 = (bool) False ; |
d14a1e28 RD |
12114 | wxPoint temp3 ; |
12115 | PyObject * obj0 = 0 ; | |
12116 | PyObject * obj1 = 0 ; | |
12117 | PyObject * obj2 = 0 ; | |
12118 | PyObject * obj3 = 0 ; | |
12119 | char *kwnames[] = { | |
12120 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
12121 | }; | |
12122 | ||
12123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
12124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12127 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12128 | SWIG_fail; | |
d14a1e28 | 12129 | if (arg2 == NULL) { |
2f4c0a16 RD |
12130 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12131 | SWIG_fail; | |
d14a1e28 RD |
12132 | } |
12133 | { | |
12134 | arg3 = &temp3; | |
12135 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12136 | } | |
12137 | if (obj3) { | |
2f4c0a16 RD |
12138 | arg4 = (bool) SWIG_AsBool(obj3); |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12140 | } |
12141 | { | |
12142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12143 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12144 | ||
12145 | wxPyEndAllowThreads(__tstate); | |
12146 | if (PyErr_Occurred()) SWIG_fail; | |
12147 | } | |
12148 | Py_INCREF(Py_None); resultobj = Py_None; | |
12149 | return resultobj; | |
12150 | fail: | |
12151 | return NULL; | |
12152 | } | |
12153 | ||
12154 | ||
12155 | static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12156 | PyObject *resultobj; | |
12157 | wxDC *arg1 = (wxDC *) 0 ; | |
12158 | wxString *arg2 = 0 ; | |
423f194a RD |
12159 | int arg3 ; |
12160 | int arg4 ; | |
12161 | bool temp2 = False ; | |
d14a1e28 RD |
12162 | PyObject * obj0 = 0 ; |
12163 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12164 | PyObject * obj2 = 0 ; |
12165 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12166 | char *kwnames[] = { |
12167 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12168 | }; | |
12169 | ||
8edf1c75 | 12170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
12171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 12173 | { |
2f4c0a16 RD |
12174 | arg2 = wxString_in_helper(obj1); |
12175 | if (arg2 == NULL) SWIG_fail; | |
12176 | temp2 = True; | |
8edf1c75 | 12177 | } |
2f4c0a16 RD |
12178 | arg3 = (int) SWIG_AsInt(obj2); |
12179 | if (PyErr_Occurred()) SWIG_fail; | |
12180 | arg4 = (int) SWIG_AsInt(obj3); | |
12181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12182 | { |
12183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12184 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12185 | ||
12186 | wxPyEndAllowThreads(__tstate); | |
12187 | if (PyErr_Occurred()) SWIG_fail; | |
12188 | } | |
12189 | Py_INCREF(Py_None); resultobj = Py_None; | |
12190 | { | |
12191 | if (temp2) | |
12192 | delete arg2; | |
12193 | } | |
12194 | return resultobj; | |
12195 | fail: | |
12196 | { | |
12197 | if (temp2) | |
12198 | delete arg2; | |
12199 | } | |
12200 | return NULL; | |
12201 | } | |
12202 | ||
12203 | ||
12204 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12205 | PyObject *resultobj; | |
12206 | wxDC *arg1 = (wxDC *) 0 ; | |
12207 | wxString *arg2 = 0 ; | |
12208 | wxPoint *arg3 = 0 ; | |
423f194a | 12209 | bool temp2 = False ; |
d14a1e28 RD |
12210 | wxPoint temp3 ; |
12211 | PyObject * obj0 = 0 ; | |
12212 | PyObject * obj1 = 0 ; | |
12213 | PyObject * obj2 = 0 ; | |
12214 | char *kwnames[] = { | |
12215 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12216 | }; | |
12217 | ||
12218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12221 | { |
12222 | arg2 = wxString_in_helper(obj1); | |
12223 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12224 | temp2 = True; |
d14a1e28 RD |
12225 | } |
12226 | { | |
12227 | arg3 = &temp3; | |
12228 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12229 | } | |
12230 | { | |
12231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12232 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12233 | ||
12234 | wxPyEndAllowThreads(__tstate); | |
12235 | if (PyErr_Occurred()) SWIG_fail; | |
12236 | } | |
12237 | Py_INCREF(Py_None); resultobj = Py_None; | |
12238 | { | |
12239 | if (temp2) | |
12240 | delete arg2; | |
12241 | } | |
12242 | return resultobj; | |
12243 | fail: | |
12244 | { | |
12245 | if (temp2) | |
12246 | delete arg2; | |
12247 | } | |
12248 | return NULL; | |
12249 | } | |
12250 | ||
12251 | ||
12252 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12253 | PyObject *resultobj; | |
12254 | wxDC *arg1 = (wxDC *) 0 ; | |
12255 | wxString *arg2 = 0 ; | |
423f194a RD |
12256 | int arg3 ; |
12257 | int arg4 ; | |
d14a1e28 | 12258 | double arg5 ; |
423f194a | 12259 | bool temp2 = False ; |
d14a1e28 RD |
12260 | PyObject * obj0 = 0 ; |
12261 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12262 | PyObject * obj2 = 0 ; |
12263 | PyObject * obj3 = 0 ; | |
12264 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12265 | char *kwnames[] = { |
12266 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12267 | }; | |
12268 | ||
8edf1c75 | 12269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12272 | { |
12273 | arg2 = wxString_in_helper(obj1); | |
12274 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12275 | temp2 = True; |
d14a1e28 | 12276 | } |
2f4c0a16 RD |
12277 | arg3 = (int) SWIG_AsInt(obj2); |
12278 | if (PyErr_Occurred()) SWIG_fail; | |
12279 | arg4 = (int) SWIG_AsInt(obj3); | |
12280 | if (PyErr_Occurred()) SWIG_fail; | |
12281 | arg5 = (double) SWIG_AsDouble(obj4); | |
12282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12283 | { |
12284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12285 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12286 | ||
12287 | wxPyEndAllowThreads(__tstate); | |
12288 | if (PyErr_Occurred()) SWIG_fail; | |
12289 | } | |
12290 | Py_INCREF(Py_None); resultobj = Py_None; | |
12291 | { | |
12292 | if (temp2) | |
12293 | delete arg2; | |
12294 | } | |
12295 | return resultobj; | |
12296 | fail: | |
12297 | { | |
12298 | if (temp2) | |
12299 | delete arg2; | |
12300 | } | |
12301 | return NULL; | |
12302 | } | |
12303 | ||
12304 | ||
12305 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12306 | PyObject *resultobj; | |
12307 | wxDC *arg1 = (wxDC *) 0 ; | |
12308 | wxString *arg2 = 0 ; | |
12309 | wxPoint *arg3 = 0 ; | |
12310 | double arg4 ; | |
423f194a | 12311 | bool temp2 = False ; |
d14a1e28 RD |
12312 | wxPoint temp3 ; |
12313 | PyObject * obj0 = 0 ; | |
12314 | PyObject * obj1 = 0 ; | |
12315 | PyObject * obj2 = 0 ; | |
8edf1c75 | 12316 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
12317 | char *kwnames[] = { |
12318 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12319 | }; | |
12320 | ||
8edf1c75 | 12321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
12322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12324 | { |
12325 | arg2 = wxString_in_helper(obj1); | |
12326 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12327 | temp2 = True; |
d14a1e28 RD |
12328 | } |
12329 | { | |
12330 | arg3 = &temp3; | |
12331 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12332 | } | |
2f4c0a16 RD |
12333 | arg4 = (double) SWIG_AsDouble(obj3); |
12334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12335 | { |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | Py_INCREF(Py_None); resultobj = Py_None; | |
12343 | { | |
12344 | if (temp2) | |
12345 | delete arg2; | |
12346 | } | |
12347 | return resultobj; | |
12348 | fail: | |
12349 | { | |
12350 | if (temp2) | |
12351 | delete arg2; | |
12352 | } | |
12353 | return NULL; | |
12354 | } | |
12355 | ||
12356 | ||
12357 | static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12358 | PyObject *resultobj; | |
12359 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12360 | int arg2 ; |
12361 | int arg3 ; | |
12362 | int arg4 ; | |
12363 | int arg5 ; | |
d14a1e28 | 12364 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
12365 | int arg7 ; |
12366 | int arg8 ; | |
d14a1e28 | 12367 | int arg9 = (int) wxCOPY ; |
423f194a RD |
12368 | bool arg10 = (bool) False ; |
12369 | int arg11 = (int) -1 ; | |
12370 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
12371 | bool result; |
12372 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12373 | PyObject * obj1 = 0 ; |
12374 | PyObject * obj2 = 0 ; | |
12375 | PyObject * obj3 = 0 ; | |
12376 | PyObject * obj4 = 0 ; | |
d14a1e28 | 12377 | PyObject * obj5 = 0 ; |
8edf1c75 RD |
12378 | PyObject * obj6 = 0 ; |
12379 | PyObject * obj7 = 0 ; | |
12380 | PyObject * obj8 = 0 ; | |
d14a1e28 | 12381 | PyObject * obj9 = 0 ; |
8edf1c75 RD |
12382 | PyObject * obj10 = 0 ; |
12383 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
12384 | char *kwnames[] = { |
12385 | (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 | |
12386 | }; | |
12387 | ||
8edf1c75 | 12388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_BlitXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
2f4c0a16 RD |
12389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12391 | arg2 = (int) SWIG_AsInt(obj1); | |
12392 | if (PyErr_Occurred()) SWIG_fail; | |
12393 | arg3 = (int) SWIG_AsInt(obj2); | |
12394 | if (PyErr_Occurred()) SWIG_fail; | |
12395 | arg4 = (int) SWIG_AsInt(obj3); | |
12396 | if (PyErr_Occurred()) SWIG_fail; | |
12397 | arg5 = (int) SWIG_AsInt(obj4); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12401 | arg7 = (int) SWIG_AsInt(obj6); | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | arg8 = (int) SWIG_AsInt(obj7); | |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12405 | if (obj8) { |
2f4c0a16 RD |
12406 | arg9 = (int) SWIG_AsInt(obj8); |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12408 | } |
d14a1e28 | 12409 | if (obj9) { |
2f4c0a16 RD |
12410 | arg10 = (bool) SWIG_AsBool(obj9); |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12412 | } |
12413 | if (obj10) { | |
2f4c0a16 RD |
12414 | arg11 = (int) SWIG_AsInt(obj10); |
12415 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12416 | } |
12417 | if (obj11) { | |
2f4c0a16 RD |
12418 | arg12 = (int) SWIG_AsInt(obj11); |
12419 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12420 | } |
12421 | { | |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12423 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
4f89f6a3 RD |
12428 | { |
12429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12430 | } | |
d14a1e28 RD |
12431 | return resultobj; |
12432 | fail: | |
12433 | return NULL; | |
12434 | } | |
12435 | ||
12436 | ||
12437 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12438 | PyObject *resultobj; | |
12439 | wxDC *arg1 = (wxDC *) 0 ; | |
12440 | wxPoint *arg2 = 0 ; | |
12441 | wxSize *arg3 = 0 ; | |
12442 | wxDC *arg4 = (wxDC *) 0 ; | |
12443 | wxPoint *arg5 = 0 ; | |
12444 | int arg6 = (int) wxCOPY ; | |
423f194a | 12445 | bool arg7 = (bool) False ; |
d14a1e28 RD |
12446 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
12447 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12448 | bool result; | |
12449 | wxPoint temp2 ; | |
12450 | wxSize temp3 ; | |
12451 | wxPoint temp5 ; | |
12452 | wxPoint temp8 ; | |
12453 | PyObject * obj0 = 0 ; | |
12454 | PyObject * obj1 = 0 ; | |
12455 | PyObject * obj2 = 0 ; | |
12456 | PyObject * obj3 = 0 ; | |
12457 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12458 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12459 | PyObject * obj6 = 0 ; |
12460 | PyObject * obj7 = 0 ; | |
12461 | char *kwnames[] = { | |
12462 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12463 | }; | |
12464 | ||
8edf1c75 | 12465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
12466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12468 | { |
12469 | arg2 = &temp2; | |
12470 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12471 | } | |
12472 | { | |
12473 | arg3 = &temp3; | |
12474 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12475 | } | |
2f4c0a16 RD |
12476 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
12477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12478 | { |
12479 | arg5 = &temp5; | |
12480 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12481 | } | |
8edf1c75 | 12482 | if (obj5) { |
2f4c0a16 RD |
12483 | arg6 = (int) SWIG_AsInt(obj5); |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12485 | } |
d14a1e28 | 12486 | if (obj6) { |
2f4c0a16 RD |
12487 | arg7 = (bool) SWIG_AsBool(obj6); |
12488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12489 | } |
12490 | if (obj7) { | |
12491 | { | |
12492 | arg8 = &temp8; | |
12493 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12494 | } | |
12495 | } | |
12496 | { | |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
4f89f6a3 RD |
12503 | { |
12504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12505 | } | |
d14a1e28 RD |
12506 | return resultobj; |
12507 | fail: | |
12508 | return NULL; | |
12509 | } | |
12510 | ||
12511 | ||
12512 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12513 | PyObject *resultobj; | |
12514 | wxDC *arg1 = (wxDC *) 0 ; | |
12515 | int arg2 ; | |
12516 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
12517 | int arg4 = (int) 0 ; |
12518 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
12519 | PyObject * obj0 = 0 ; |
12520 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12521 | PyObject * obj2 = 0 ; |
12522 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12523 | char *kwnames[] = { |
12524 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12525 | }; | |
12526 | ||
8edf1c75 | 12527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
12528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12530 | { |
12531 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12532 | if (arg3 == NULL) SWIG_fail; | |
12533 | } | |
8edf1c75 | 12534 | if (obj2) { |
2f4c0a16 RD |
12535 | arg4 = (int) SWIG_AsInt(obj2); |
12536 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12537 | } |
12538 | if (obj3) { | |
2f4c0a16 RD |
12539 | arg5 = (int) SWIG_AsInt(obj3); |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12541 | } |
d14a1e28 RD |
12542 | { |
12543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12544 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12545 | ||
12546 | wxPyEndAllowThreads(__tstate); | |
12547 | if (PyErr_Occurred()) SWIG_fail; | |
12548 | } | |
12549 | Py_INCREF(Py_None); resultobj = Py_None; | |
12550 | { | |
12551 | if (arg3) delete [] arg3; | |
12552 | } | |
12553 | return resultobj; | |
12554 | fail: | |
12555 | { | |
12556 | if (arg3) delete [] arg3; | |
12557 | } | |
12558 | return NULL; | |
12559 | } | |
12560 | ||
12561 | ||
12562 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12563 | PyObject *resultobj; | |
12564 | wxDC *arg1 = (wxDC *) 0 ; | |
12565 | int arg2 ; | |
12566 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
12567 | int arg4 = (int) 0 ; |
12568 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
12569 | int arg6 = (int) wxODDEVEN_RULE ; |
12570 | PyObject * obj0 = 0 ; | |
12571 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12572 | PyObject * obj2 = 0 ; |
12573 | PyObject * obj3 = 0 ; | |
12574 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12575 | char *kwnames[] = { |
12576 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12577 | }; | |
12578 | ||
8edf1c75 | 12579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12582 | { |
12583 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12584 | if (arg3 == NULL) SWIG_fail; | |
12585 | } | |
8edf1c75 | 12586 | if (obj2) { |
2f4c0a16 RD |
12587 | arg4 = (int) SWIG_AsInt(obj2); |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12589 | } |
12590 | if (obj3) { | |
2f4c0a16 RD |
12591 | arg5 = (int) SWIG_AsInt(obj3); |
12592 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12593 | } |
12594 | if (obj4) { | |
2f4c0a16 RD |
12595 | arg6 = (int) SWIG_AsInt(obj4); |
12596 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12597 | } |
d14a1e28 RD |
12598 | { |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12600 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
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_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12619 | PyObject *resultobj; | |
12620 | wxDC *arg1 = (wxDC *) 0 ; | |
12621 | wxString *arg2 = 0 ; | |
12622 | wxRect *arg3 = 0 ; | |
12623 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12624 | int arg5 = (int) -1 ; | |
423f194a | 12625 | bool temp2 = False ; |
d14a1e28 RD |
12626 | wxRect temp3 ; |
12627 | PyObject * obj0 = 0 ; | |
12628 | PyObject * obj1 = 0 ; | |
12629 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
12630 | PyObject * obj3 = 0 ; |
12631 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12632 | char *kwnames[] = { |
12633 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12634 | }; | |
12635 | ||
8edf1c75 | 12636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12639 | { |
12640 | arg2 = wxString_in_helper(obj1); | |
12641 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12642 | temp2 = True; |
d14a1e28 RD |
12643 | } |
12644 | { | |
12645 | arg3 = &temp3; | |
12646 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12647 | } | |
8edf1c75 | 12648 | if (obj3) { |
2f4c0a16 RD |
12649 | arg4 = (int) SWIG_AsInt(obj3); |
12650 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12651 | } |
12652 | if (obj4) { | |
2f4c0a16 RD |
12653 | arg5 = (int) SWIG_AsInt(obj4); |
12654 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12655 | } |
d14a1e28 RD |
12656 | { |
12657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12658 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
12659 | ||
12660 | wxPyEndAllowThreads(__tstate); | |
12661 | if (PyErr_Occurred()) SWIG_fail; | |
12662 | } | |
12663 | Py_INCREF(Py_None); resultobj = Py_None; | |
12664 | { | |
12665 | if (temp2) | |
12666 | delete arg2; | |
12667 | } | |
12668 | return resultobj; | |
12669 | fail: | |
12670 | { | |
12671 | if (temp2) | |
12672 | delete arg2; | |
12673 | } | |
12674 | return NULL; | |
12675 | } | |
12676 | ||
12677 | ||
12678 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12679 | PyObject *resultobj; | |
12680 | wxDC *arg1 = (wxDC *) 0 ; | |
12681 | wxString *arg2 = 0 ; | |
12682 | wxBitmap *arg3 = 0 ; | |
12683 | wxRect *arg4 = 0 ; | |
12684 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12685 | int arg6 = (int) -1 ; | |
12686 | wxRect result; | |
423f194a | 12687 | bool temp2 = False ; |
d14a1e28 RD |
12688 | wxRect temp4 ; |
12689 | PyObject * obj0 = 0 ; | |
12690 | PyObject * obj1 = 0 ; | |
12691 | PyObject * obj2 = 0 ; | |
12692 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
12693 | PyObject * obj4 = 0 ; |
12694 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12695 | char *kwnames[] = { |
12696 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12697 | }; | |
12698 | ||
8edf1c75 | 12699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
12700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12702 | { |
12703 | arg2 = wxString_in_helper(obj1); | |
12704 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12705 | temp2 = True; |
d14a1e28 | 12706 | } |
2f4c0a16 RD |
12707 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
12708 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12709 | SWIG_fail; | |
d14a1e28 | 12710 | if (arg3 == NULL) { |
2f4c0a16 RD |
12711 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12712 | SWIG_fail; | |
d14a1e28 RD |
12713 | } |
12714 | { | |
12715 | arg4 = &temp4; | |
12716 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12717 | } | |
8edf1c75 | 12718 | if (obj4) { |
2f4c0a16 RD |
12719 | arg5 = (int) SWIG_AsInt(obj4); |
12720 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
12721 | } |
12722 | if (obj5) { | |
2f4c0a16 RD |
12723 | arg6 = (int) SWIG_AsInt(obj5); |
12724 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12725 | } |
d14a1e28 RD |
12726 | { |
12727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12728 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12729 | ||
12730 | wxPyEndAllowThreads(__tstate); | |
12731 | if (PyErr_Occurred()) SWIG_fail; | |
12732 | } | |
12733 | { | |
12734 | wxRect * resultptr; | |
12735 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 12736 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12737 | } |
12738 | { | |
12739 | if (temp2) | |
12740 | delete arg2; | |
12741 | } | |
12742 | return resultobj; | |
12743 | fail: | |
12744 | { | |
12745 | if (temp2) | |
12746 | delete arg2; | |
12747 | } | |
12748 | return NULL; | |
12749 | } | |
12750 | ||
12751 | ||
12752 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12753 | PyObject *resultobj; | |
12754 | wxDC *arg1 = (wxDC *) 0 ; | |
12755 | int arg2 ; | |
12756 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12757 | PyObject * obj0 = 0 ; | |
12758 | PyObject * obj1 = 0 ; | |
12759 | char *kwnames[] = { | |
12760 | (char *) "self",(char *) "points", NULL | |
12761 | }; | |
12762 | ||
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12766 | { |
12767 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12768 | if (arg3 == NULL) SWIG_fail; | |
12769 | } | |
12770 | { | |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | (arg1)->DrawSpline(arg2,arg3); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
12777 | Py_INCREF(Py_None); resultobj = Py_None; | |
12778 | { | |
12779 | if (arg3) delete [] arg3; | |
12780 | } | |
12781 | return resultobj; | |
12782 | fail: | |
12783 | { | |
12784 | if (arg3) delete [] arg3; | |
12785 | } | |
12786 | return NULL; | |
12787 | } | |
12788 | ||
12789 | ||
12790 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12791 | PyObject *resultobj; | |
12792 | wxDC *arg1 = (wxDC *) 0 ; | |
12793 | PyObject * obj0 = 0 ; | |
12794 | char *kwnames[] = { | |
12795 | (char *) "self", NULL | |
12796 | }; | |
12797 | ||
12798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12801 | { |
12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12803 | (arg1)->Clear(); | |
12804 | ||
12805 | wxPyEndAllowThreads(__tstate); | |
12806 | if (PyErr_Occurred()) SWIG_fail; | |
12807 | } | |
12808 | Py_INCREF(Py_None); resultobj = Py_None; | |
12809 | return resultobj; | |
12810 | fail: | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
12815 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12816 | PyObject *resultobj; | |
12817 | wxDC *arg1 = (wxDC *) 0 ; | |
12818 | wxString *arg2 = 0 ; | |
12819 | bool result; | |
423f194a | 12820 | bool temp2 = False ; |
d14a1e28 RD |
12821 | PyObject * obj0 = 0 ; |
12822 | PyObject * obj1 = 0 ; | |
12823 | char *kwnames[] = { | |
12824 | (char *) "self",(char *) "message", NULL | |
12825 | }; | |
12826 | ||
12827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12830 | { |
12831 | arg2 = wxString_in_helper(obj1); | |
12832 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12833 | temp2 = True; |
d14a1e28 RD |
12834 | } |
12835 | { | |
12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12837 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12838 | ||
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
4f89f6a3 RD |
12842 | { |
12843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12844 | } | |
d14a1e28 RD |
12845 | { |
12846 | if (temp2) | |
12847 | delete arg2; | |
12848 | } | |
12849 | return resultobj; | |
12850 | fail: | |
12851 | { | |
12852 | if (temp2) | |
12853 | delete arg2; | |
12854 | } | |
12855 | return NULL; | |
12856 | } | |
12857 | ||
12858 | ||
12859 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12860 | PyObject *resultobj; | |
12861 | wxDC *arg1 = (wxDC *) 0 ; | |
12862 | PyObject * obj0 = 0 ; | |
12863 | char *kwnames[] = { | |
12864 | (char *) "self", NULL | |
12865 | }; | |
12866 | ||
12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12870 | { |
12871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12872 | (arg1)->EndDoc(); | |
12873 | ||
12874 | wxPyEndAllowThreads(__tstate); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | } | |
12877 | Py_INCREF(Py_None); resultobj = Py_None; | |
12878 | return resultobj; | |
12879 | fail: | |
12880 | return NULL; | |
12881 | } | |
12882 | ||
12883 | ||
12884 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12885 | PyObject *resultobj; | |
12886 | wxDC *arg1 = (wxDC *) 0 ; | |
12887 | PyObject * obj0 = 0 ; | |
12888 | char *kwnames[] = { | |
12889 | (char *) "self", NULL | |
12890 | }; | |
12891 | ||
12892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12895 | { |
12896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12897 | (arg1)->StartPage(); | |
12898 | ||
12899 | wxPyEndAllowThreads(__tstate); | |
12900 | if (PyErr_Occurred()) SWIG_fail; | |
12901 | } | |
12902 | Py_INCREF(Py_None); resultobj = Py_None; | |
12903 | return resultobj; | |
12904 | fail: | |
12905 | return NULL; | |
12906 | } | |
12907 | ||
12908 | ||
12909 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12910 | PyObject *resultobj; | |
12911 | wxDC *arg1 = (wxDC *) 0 ; | |
12912 | PyObject * obj0 = 0 ; | |
12913 | char *kwnames[] = { | |
12914 | (char *) "self", NULL | |
12915 | }; | |
12916 | ||
12917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12920 | { |
12921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12922 | (arg1)->EndPage(); | |
12923 | ||
12924 | wxPyEndAllowThreads(__tstate); | |
12925 | if (PyErr_Occurred()) SWIG_fail; | |
12926 | } | |
12927 | Py_INCREF(Py_None); resultobj = Py_None; | |
12928 | return resultobj; | |
12929 | fail: | |
12930 | return NULL; | |
12931 | } | |
12932 | ||
12933 | ||
12934 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12935 | PyObject *resultobj; | |
12936 | wxDC *arg1 = (wxDC *) 0 ; | |
12937 | wxFont *arg2 = 0 ; | |
12938 | PyObject * obj0 = 0 ; | |
12939 | PyObject * obj1 = 0 ; | |
12940 | char *kwnames[] = { | |
12941 | (char *) "self",(char *) "font", NULL | |
12942 | }; | |
12943 | ||
12944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12947 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12948 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12949 | SWIG_fail; | |
d14a1e28 | 12950 | if (arg2 == NULL) { |
2f4c0a16 RD |
12951 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12952 | SWIG_fail; | |
d14a1e28 RD |
12953 | } |
12954 | { | |
12955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12956 | (arg1)->SetFont((wxFont const &)*arg2); | |
12957 | ||
12958 | wxPyEndAllowThreads(__tstate); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
12961 | Py_INCREF(Py_None); resultobj = Py_None; | |
12962 | return resultobj; | |
12963 | fail: | |
12964 | return NULL; | |
12965 | } | |
12966 | ||
12967 | ||
12968 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12969 | PyObject *resultobj; | |
12970 | wxDC *arg1 = (wxDC *) 0 ; | |
12971 | wxPen *arg2 = 0 ; | |
12972 | PyObject * obj0 = 0 ; | |
12973 | PyObject * obj1 = 0 ; | |
12974 | char *kwnames[] = { | |
12975 | (char *) "self",(char *) "pen", NULL | |
12976 | }; | |
12977 | ||
12978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
12982 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12983 | SWIG_fail; | |
d14a1e28 | 12984 | if (arg2 == NULL) { |
2f4c0a16 RD |
12985 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12986 | SWIG_fail; | |
d14a1e28 RD |
12987 | } |
12988 | { | |
12989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12990 | (arg1)->SetPen((wxPen const &)*arg2); | |
12991 | ||
12992 | wxPyEndAllowThreads(__tstate); | |
12993 | if (PyErr_Occurred()) SWIG_fail; | |
12994 | } | |
12995 | Py_INCREF(Py_None); resultobj = Py_None; | |
12996 | return resultobj; | |
12997 | fail: | |
12998 | return NULL; | |
12999 | } | |
13000 | ||
13001 | ||
13002 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13003 | PyObject *resultobj; | |
13004 | wxDC *arg1 = (wxDC *) 0 ; | |
13005 | wxBrush *arg2 = 0 ; | |
13006 | PyObject * obj0 = 0 ; | |
13007 | PyObject * obj1 = 0 ; | |
13008 | char *kwnames[] = { | |
13009 | (char *) "self",(char *) "brush", NULL | |
13010 | }; | |
13011 | ||
13012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13015 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13016 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13017 | SWIG_fail; | |
d14a1e28 | 13018 | if (arg2 == NULL) { |
2f4c0a16 RD |
13019 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13020 | SWIG_fail; | |
d14a1e28 RD |
13021 | } |
13022 | { | |
13023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13024 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13025 | ||
13026 | wxPyEndAllowThreads(__tstate); | |
13027 | if (PyErr_Occurred()) SWIG_fail; | |
13028 | } | |
13029 | Py_INCREF(Py_None); resultobj = Py_None; | |
13030 | return resultobj; | |
13031 | fail: | |
13032 | return NULL; | |
13033 | } | |
13034 | ||
13035 | ||
13036 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13037 | PyObject *resultobj; | |
13038 | wxDC *arg1 = (wxDC *) 0 ; | |
13039 | wxBrush *arg2 = 0 ; | |
13040 | PyObject * obj0 = 0 ; | |
13041 | PyObject * obj1 = 0 ; | |
13042 | char *kwnames[] = { | |
13043 | (char *) "self",(char *) "brush", NULL | |
13044 | }; | |
13045 | ||
13046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13051 | SWIG_fail; | |
d14a1e28 | 13052 | if (arg2 == NULL) { |
2f4c0a16 RD |
13053 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13054 | SWIG_fail; | |
d14a1e28 RD |
13055 | } |
13056 | { | |
13057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13058 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13059 | ||
13060 | wxPyEndAllowThreads(__tstate); | |
13061 | if (PyErr_Occurred()) SWIG_fail; | |
13062 | } | |
13063 | Py_INCREF(Py_None); resultobj = Py_None; | |
13064 | return resultobj; | |
13065 | fail: | |
13066 | return NULL; | |
13067 | } | |
13068 | ||
13069 | ||
13070 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13071 | PyObject *resultobj; | |
13072 | wxDC *arg1 = (wxDC *) 0 ; | |
13073 | int arg2 ; | |
13074 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13075 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13076 | char *kwnames[] = { |
13077 | (char *) "self",(char *) "mode", NULL | |
13078 | }; | |
13079 | ||
8edf1c75 | 13080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13083 | arg2 = (int) SWIG_AsInt(obj1); | |
13084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13085 | { |
13086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13087 | (arg1)->SetBackgroundMode(arg2); | |
13088 | ||
13089 | wxPyEndAllowThreads(__tstate); | |
13090 | if (PyErr_Occurred()) SWIG_fail; | |
13091 | } | |
13092 | Py_INCREF(Py_None); resultobj = Py_None; | |
13093 | return resultobj; | |
13094 | fail: | |
13095 | return NULL; | |
13096 | } | |
13097 | ||
13098 | ||
13099 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13100 | PyObject *resultobj; | |
13101 | wxDC *arg1 = (wxDC *) 0 ; | |
13102 | wxPalette *arg2 = 0 ; | |
13103 | PyObject * obj0 = 0 ; | |
13104 | PyObject * obj1 = 0 ; | |
13105 | char *kwnames[] = { | |
13106 | (char *) "self",(char *) "palette", NULL | |
13107 | }; | |
13108 | ||
13109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13113 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13114 | SWIG_fail; | |
d14a1e28 | 13115 | if (arg2 == NULL) { |
2f4c0a16 RD |
13116 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13117 | SWIG_fail; | |
d14a1e28 RD |
13118 | } |
13119 | { | |
13120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13121 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13122 | ||
13123 | wxPyEndAllowThreads(__tstate); | |
13124 | if (PyErr_Occurred()) SWIG_fail; | |
13125 | } | |
13126 | Py_INCREF(Py_None); resultobj = Py_None; | |
13127 | return resultobj; | |
13128 | fail: | |
13129 | return NULL; | |
13130 | } | |
13131 | ||
13132 | ||
f0983263 | 13133 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13134 | PyObject *resultobj; |
13135 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13136 | int arg2 ; |
13137 | int arg3 ; | |
13138 | int arg4 ; | |
13139 | int arg5 ; | |
d14a1e28 | 13140 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13141 | PyObject * obj1 = 0 ; |
13142 | PyObject * obj2 = 0 ; | |
13143 | PyObject * obj3 = 0 ; | |
13144 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
13145 | char *kwnames[] = { |
13146 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
13147 | }; | |
13148 | ||
8edf1c75 | 13149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13152 | arg2 = (int) SWIG_AsInt(obj1); | |
13153 | if (PyErr_Occurred()) SWIG_fail; | |
13154 | arg3 = (int) SWIG_AsInt(obj2); | |
13155 | if (PyErr_Occurred()) SWIG_fail; | |
13156 | arg4 = (int) SWIG_AsInt(obj3); | |
13157 | if (PyErr_Occurred()) SWIG_fail; | |
13158 | arg5 = (int) SWIG_AsInt(obj4); | |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13160 | { |
13161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13162 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
13163 | ||
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
13167 | Py_INCREF(Py_None); resultobj = Py_None; | |
13168 | return resultobj; | |
13169 | fail: | |
13170 | return NULL; | |
13171 | } | |
13172 | ||
13173 | ||
f0983263 RD |
13174 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
13175 | PyObject *resultobj; | |
13176 | wxDC *arg1 = (wxDC *) 0 ; | |
13177 | wxPoint *arg2 = 0 ; | |
13178 | wxSize *arg3 = 0 ; | |
13179 | wxPoint temp2 ; | |
13180 | wxSize temp3 ; | |
13181 | PyObject * obj0 = 0 ; | |
13182 | PyObject * obj1 = 0 ; | |
13183 | PyObject * obj2 = 0 ; | |
13184 | char *kwnames[] = { | |
13185 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
13186 | }; | |
13187 | ||
13188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f0983263 RD |
13191 | { |
13192 | arg2 = &temp2; | |
13193 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
13194 | } | |
13195 | { | |
13196 | arg3 = &temp3; | |
13197 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
13198 | } | |
13199 | { | |
13200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13201 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
13202 | ||
13203 | wxPyEndAllowThreads(__tstate); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
13206 | Py_INCREF(Py_None); resultobj = Py_None; | |
13207 | return resultobj; | |
13208 | fail: | |
13209 | return NULL; | |
13210 | } | |
13211 | ||
13212 | ||
d14a1e28 RD |
13213 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
13214 | PyObject *resultobj; | |
13215 | wxDC *arg1 = (wxDC *) 0 ; | |
13216 | wxRect *arg2 = 0 ; | |
13217 | wxRect temp2 ; | |
13218 | PyObject * obj0 = 0 ; | |
13219 | PyObject * obj1 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self",(char *) "rect", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13227 | { |
13228 | arg2 = &temp2; | |
13229 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
13230 | } | |
13231 | { | |
13232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13233 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
13234 | ||
13235 | wxPyEndAllowThreads(__tstate); | |
13236 | if (PyErr_Occurred()) SWIG_fail; | |
13237 | } | |
13238 | Py_INCREF(Py_None); resultobj = Py_None; | |
13239 | return resultobj; | |
13240 | fail: | |
13241 | return NULL; | |
13242 | } | |
13243 | ||
13244 | ||
13245 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13246 | PyObject *resultobj; | |
13247 | wxDC *arg1 = (wxDC *) 0 ; | |
13248 | wxRegion *arg2 = 0 ; | |
13249 | PyObject * obj0 = 0 ; | |
13250 | PyObject * obj1 = 0 ; | |
13251 | char *kwnames[] = { | |
13252 | (char *) "self",(char *) "region", NULL | |
13253 | }; | |
13254 | ||
13255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
13259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13260 | SWIG_fail; | |
d14a1e28 | 13261 | if (arg2 == NULL) { |
2f4c0a16 RD |
13262 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13263 | SWIG_fail; | |
d14a1e28 RD |
13264 | } |
13265 | { | |
13266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13267 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
13268 | ||
13269 | wxPyEndAllowThreads(__tstate); | |
13270 | if (PyErr_Occurred()) SWIG_fail; | |
13271 | } | |
13272 | Py_INCREF(Py_None); resultobj = Py_None; | |
13273 | return resultobj; | |
13274 | fail: | |
13275 | return NULL; | |
13276 | } | |
13277 | ||
13278 | ||
13279 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13280 | PyObject *resultobj; | |
13281 | wxDC *arg1 = (wxDC *) 0 ; | |
13282 | PyObject * obj0 = 0 ; | |
13283 | char *kwnames[] = { | |
13284 | (char *) "self", NULL | |
13285 | }; | |
13286 | ||
13287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13290 | { |
13291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13292 | (arg1)->DestroyClippingRegion(); | |
13293 | ||
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
13297 | Py_INCREF(Py_None); resultobj = Py_None; | |
13298 | return resultobj; | |
13299 | fail: | |
13300 | return NULL; | |
13301 | } | |
13302 | ||
13303 | ||
13304 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13305 | PyObject *resultobj; | |
13306 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13307 | int *arg2 = (int *) 0 ; |
13308 | int *arg3 = (int *) 0 ; | |
13309 | int *arg4 = (int *) 0 ; | |
13310 | int *arg5 = (int *) 0 ; | |
13311 | int temp2 ; | |
13312 | int temp3 ; | |
13313 | int temp4 ; | |
13314 | int temp5 ; | |
d14a1e28 RD |
13315 | PyObject * obj0 = 0 ; |
13316 | char *kwnames[] = { | |
13317 | (char *) "self", NULL | |
13318 | }; | |
13319 | ||
13320 | arg2 = &temp2; | |
13321 | arg3 = &temp3; | |
13322 | arg4 = &temp4; | |
13323 | arg5 = &temp5; | |
13324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13327 | { |
13328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13329 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13330 | ||
13331 | wxPyEndAllowThreads(__tstate); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | } | |
13334 | Py_INCREF(Py_None); resultobj = Py_None; | |
13335 | { | |
13336 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13337 | resultobj = t_output_helper(resultobj,o); | |
13338 | } | |
13339 | { | |
13340 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13341 | resultobj = t_output_helper(resultobj,o); | |
13342 | } | |
13343 | { | |
13344 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13345 | resultobj = t_output_helper(resultobj,o); | |
13346 | } | |
13347 | { | |
13348 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13349 | resultobj = t_output_helper(resultobj,o); | |
13350 | } | |
13351 | return resultobj; | |
13352 | fail: | |
13353 | return NULL; | |
13354 | } | |
13355 | ||
13356 | ||
13357 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13358 | PyObject *resultobj; | |
13359 | wxDC *arg1 = (wxDC *) 0 ; | |
13360 | wxRect result; | |
13361 | PyObject * obj0 = 0 ; | |
13362 | char *kwnames[] = { | |
13363 | (char *) "self", NULL | |
13364 | }; | |
13365 | ||
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13369 | { |
13370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13371 | result = wxDC_GetClippingRect(arg1); | |
13372 | ||
13373 | wxPyEndAllowThreads(__tstate); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | { | |
13377 | wxRect * resultptr; | |
13378 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 13379 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
13380 | } |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
13384 | } | |
13385 | ||
13386 | ||
13387 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13388 | PyObject *resultobj; | |
13389 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13390 | int result; |
d14a1e28 RD |
13391 | PyObject * obj0 = 0 ; |
13392 | char *kwnames[] = { | |
13393 | (char *) "self", NULL | |
13394 | }; | |
13395 | ||
13396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13399 | { |
13400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13401 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
13402 | |
13403 | wxPyEndAllowThreads(__tstate); | |
13404 | if (PyErr_Occurred()) SWIG_fail; | |
13405 | } | |
2f4c0a16 | 13406 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13407 | return resultobj; |
13408 | fail: | |
13409 | return NULL; | |
13410 | } | |
13411 | ||
13412 | ||
13413 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13414 | PyObject *resultobj; | |
13415 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 13416 | int result; |
d14a1e28 RD |
13417 | PyObject * obj0 = 0 ; |
13418 | char *kwnames[] = { | |
13419 | (char *) "self", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13425 | { |
13426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13427 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
13428 | |
13429 | wxPyEndAllowThreads(__tstate); | |
13430 | if (PyErr_Occurred()) SWIG_fail; | |
13431 | } | |
2f4c0a16 | 13432 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13433 | return resultobj; |
13434 | fail: | |
13435 | return NULL; | |
13436 | } | |
13437 | ||
13438 | ||
13439 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13440 | PyObject *resultobj; | |
13441 | wxDC *arg1 = (wxDC *) 0 ; | |
13442 | wxString *arg2 = 0 ; | |
423f194a RD |
13443 | int *arg3 = (int *) 0 ; |
13444 | int *arg4 = (int *) 0 ; | |
13445 | bool temp2 = False ; | |
13446 | int temp3 ; | |
13447 | int temp4 ; | |
d14a1e28 RD |
13448 | PyObject * obj0 = 0 ; |
13449 | PyObject * obj1 = 0 ; | |
13450 | char *kwnames[] = { | |
13451 | (char *) "self",(char *) "string", NULL | |
13452 | }; | |
13453 | ||
13454 | arg3 = &temp3; | |
13455 | arg4 = &temp4; | |
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13459 | { |
13460 | arg2 = wxString_in_helper(obj1); | |
13461 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13462 | temp2 = True; |
d14a1e28 RD |
13463 | } |
13464 | { | |
13465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13466 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13467 | ||
13468 | wxPyEndAllowThreads(__tstate); | |
13469 | if (PyErr_Occurred()) SWIG_fail; | |
13470 | } | |
13471 | Py_INCREF(Py_None); resultobj = Py_None; | |
13472 | { | |
13473 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13474 | resultobj = t_output_helper(resultobj,o); | |
13475 | } | |
13476 | { | |
13477 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13478 | resultobj = t_output_helper(resultobj,o); | |
13479 | } | |
13480 | { | |
13481 | if (temp2) | |
13482 | delete arg2; | |
13483 | } | |
13484 | return resultobj; | |
13485 | fail: | |
13486 | { | |
13487 | if (temp2) | |
13488 | delete arg2; | |
13489 | } | |
13490 | return NULL; | |
13491 | } | |
13492 | ||
13493 | ||
13494 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13495 | PyObject *resultobj; | |
13496 | wxDC *arg1 = (wxDC *) 0 ; | |
13497 | wxString *arg2 = 0 ; | |
423f194a RD |
13498 | int *arg3 = (int *) 0 ; |
13499 | int *arg4 = (int *) 0 ; | |
13500 | int *arg5 = (int *) 0 ; | |
13501 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 13502 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
13503 | bool temp2 = False ; |
13504 | int temp3 ; | |
13505 | int temp4 ; | |
13506 | int temp5 ; | |
13507 | int temp6 ; | |
d14a1e28 RD |
13508 | PyObject * obj0 = 0 ; |
13509 | PyObject * obj1 = 0 ; | |
13510 | PyObject * obj2 = 0 ; | |
13511 | char *kwnames[] = { | |
13512 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13513 | }; | |
13514 | ||
13515 | arg3 = &temp3; | |
13516 | arg4 = &temp4; | |
13517 | arg5 = &temp5; | |
13518 | arg6 = &temp6; | |
13519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13522 | { |
13523 | arg2 = wxString_in_helper(obj1); | |
13524 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13525 | temp2 = True; |
d14a1e28 RD |
13526 | } |
13527 | if (obj2) { | |
2f4c0a16 RD |
13528 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
13529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13530 | } |
13531 | { | |
13532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13533 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13534 | ||
13535 | wxPyEndAllowThreads(__tstate); | |
13536 | if (PyErr_Occurred()) SWIG_fail; | |
13537 | } | |
13538 | Py_INCREF(Py_None); resultobj = Py_None; | |
13539 | { | |
13540 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13541 | resultobj = t_output_helper(resultobj,o); | |
13542 | } | |
13543 | { | |
13544 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13545 | resultobj = t_output_helper(resultobj,o); | |
13546 | } | |
13547 | { | |
13548 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13549 | resultobj = t_output_helper(resultobj,o); | |
13550 | } | |
13551 | { | |
13552 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
13553 | resultobj = t_output_helper(resultobj,o); | |
13554 | } | |
13555 | { | |
13556 | if (temp2) | |
13557 | delete arg2; | |
13558 | } | |
13559 | return resultobj; | |
13560 | fail: | |
13561 | { | |
13562 | if (temp2) | |
13563 | delete arg2; | |
13564 | } | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13570 | PyObject *resultobj; | |
13571 | wxDC *arg1 = (wxDC *) 0 ; | |
13572 | wxString *arg2 = 0 ; | |
423f194a RD |
13573 | int *arg3 = (int *) 0 ; |
13574 | int *arg4 = (int *) 0 ; | |
13575 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 13576 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
13577 | bool temp2 = False ; |
13578 | int temp3 ; | |
13579 | int temp4 ; | |
13580 | int temp5 ; | |
d14a1e28 RD |
13581 | PyObject * obj0 = 0 ; |
13582 | PyObject * obj1 = 0 ; | |
13583 | PyObject * obj2 = 0 ; | |
13584 | char *kwnames[] = { | |
13585 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13586 | }; | |
13587 | ||
13588 | arg3 = &temp3; | |
13589 | arg4 = &temp4; | |
13590 | arg5 = &temp5; | |
13591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13594 | { |
13595 | arg2 = wxString_in_helper(obj1); | |
13596 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13597 | temp2 = True; |
d14a1e28 RD |
13598 | } |
13599 | if (obj2) { | |
2f4c0a16 RD |
13600 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, |
13601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13602 | } |
13603 | { | |
13604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13605 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13606 | ||
13607 | wxPyEndAllowThreads(__tstate); | |
13608 | if (PyErr_Occurred()) SWIG_fail; | |
13609 | } | |
13610 | Py_INCREF(Py_None); resultobj = Py_None; | |
13611 | { | |
13612 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13613 | resultobj = t_output_helper(resultobj,o); | |
13614 | } | |
13615 | { | |
13616 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13617 | resultobj = t_output_helper(resultobj,o); | |
13618 | } | |
13619 | { | |
13620 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13621 | resultobj = t_output_helper(resultobj,o); | |
13622 | } | |
13623 | { | |
13624 | if (temp2) | |
13625 | delete arg2; | |
13626 | } | |
13627 | return resultobj; | |
13628 | fail: | |
13629 | { | |
13630 | if (temp2) | |
13631 | delete arg2; | |
13632 | } | |
13633 | return NULL; | |
13634 | } | |
13635 | ||
13636 | ||
db914595 RD |
13637 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { |
13638 | PyObject *resultobj; | |
13639 | wxDC *arg1 = (wxDC *) 0 ; | |
13640 | wxString *arg2 = 0 ; | |
13641 | wxArrayInt result; | |
13642 | bool temp2 = False ; | |
13643 | PyObject * obj0 = 0 ; | |
13644 | PyObject * obj1 = 0 ; | |
13645 | char *kwnames[] = { | |
13646 | (char *) "self",(char *) "text", NULL | |
13647 | }; | |
13648 | ||
13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
13652 | { |
13653 | arg2 = wxString_in_helper(obj1); | |
13654 | if (arg2 == NULL) SWIG_fail; | |
13655 | temp2 = True; | |
13656 | } | |
13657 | { | |
13658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13659 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13660 | ||
13661 | wxPyEndAllowThreads(__tstate); | |
13662 | if (PyErr_Occurred()) SWIG_fail; | |
13663 | } | |
13664 | { | |
13665 | resultobj = PyList_New(0); | |
13666 | size_t idx; | |
13667 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13668 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13669 | PyList_Append(resultobj, val); | |
13670 | Py_DECREF(val); | |
13671 | } | |
13672 | } | |
13673 | { | |
13674 | if (temp2) | |
13675 | delete arg2; | |
13676 | } | |
13677 | return resultobj; | |
13678 | fail: | |
13679 | { | |
13680 | if (temp2) | |
13681 | delete arg2; | |
13682 | } | |
13683 | return NULL; | |
13684 | } | |
13685 | ||
13686 | ||
44127b65 RD |
13687 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
13688 | PyObject *resultobj; | |
13689 | wxDC *arg1 = (wxDC *) 0 ; | |
13690 | wxSize result; | |
13691 | PyObject * obj0 = 0 ; | |
13692 | char *kwnames[] = { | |
13693 | (char *) "self", NULL | |
13694 | }; | |
13695 | ||
13696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
13699 | { |
13700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13701 | result = (arg1)->GetSize(); | |
13702 | ||
13703 | wxPyEndAllowThreads(__tstate); | |
13704 | if (PyErr_Occurred()) SWIG_fail; | |
13705 | } | |
13706 | { | |
13707 | wxSize * resultptr; | |
13708 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 13709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
44127b65 RD |
13710 | } |
13711 | return resultobj; | |
13712 | fail: | |
13713 | return NULL; | |
13714 | } | |
13715 | ||
13716 | ||
d14a1e28 RD |
13717 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
13718 | PyObject *resultobj; | |
13719 | wxDC *arg1 = (wxDC *) 0 ; | |
13720 | int *arg2 = (int *) 0 ; | |
13721 | int *arg3 = (int *) 0 ; | |
13722 | int temp2 ; | |
13723 | int temp3 ; | |
13724 | PyObject * obj0 = 0 ; | |
13725 | char *kwnames[] = { | |
13726 | (char *) "self", NULL | |
13727 | }; | |
13728 | ||
13729 | arg2 = &temp2; | |
13730 | arg3 = &temp3; | |
13731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13734 | { |
13735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13736 | (arg1)->GetSize(arg2,arg3); | |
13737 | ||
13738 | wxPyEndAllowThreads(__tstate); | |
13739 | if (PyErr_Occurred()) SWIG_fail; | |
13740 | } | |
13741 | Py_INCREF(Py_None); resultobj = Py_None; | |
13742 | { | |
13743 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13744 | resultobj = t_output_helper(resultobj,o); | |
13745 | } | |
13746 | { | |
13747 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13748 | resultobj = t_output_helper(resultobj,o); | |
13749 | } | |
13750 | return resultobj; | |
13751 | fail: | |
13752 | return NULL; | |
13753 | } | |
13754 | ||
13755 | ||
44127b65 | 13756 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13757 | PyObject *resultobj; |
13758 | wxDC *arg1 = (wxDC *) 0 ; | |
13759 | wxSize result; | |
13760 | PyObject * obj0 = 0 ; | |
13761 | char *kwnames[] = { | |
13762 | (char *) "self", NULL | |
13763 | }; | |
13764 | ||
44127b65 | 13765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
13766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13768 | { |
13769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13770 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
13771 | |
13772 | wxPyEndAllowThreads(__tstate); | |
13773 | if (PyErr_Occurred()) SWIG_fail; | |
13774 | } | |
13775 | { | |
13776 | wxSize * resultptr; | |
13777 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 13778 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13779 | } |
13780 | return resultobj; | |
13781 | fail: | |
13782 | return NULL; | |
13783 | } | |
13784 | ||
13785 | ||
44127b65 | 13786 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13787 | PyObject *resultobj; |
13788 | wxDC *arg1 = (wxDC *) 0 ; | |
13789 | int *arg2 = (int *) 0 ; | |
13790 | int *arg3 = (int *) 0 ; | |
13791 | int temp2 ; | |
13792 | int temp3 ; | |
13793 | PyObject * obj0 = 0 ; | |
13794 | char *kwnames[] = { | |
13795 | (char *) "self", NULL | |
13796 | }; | |
13797 | ||
13798 | arg2 = &temp2; | |
13799 | arg3 = &temp3; | |
44127b65 | 13800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
13801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13803 | { |
13804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13805 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13806 | ||
13807 | wxPyEndAllowThreads(__tstate); | |
13808 | if (PyErr_Occurred()) SWIG_fail; | |
13809 | } | |
13810 | Py_INCREF(Py_None); resultobj = Py_None; | |
13811 | { | |
13812 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13813 | resultobj = t_output_helper(resultobj,o); | |
13814 | } | |
13815 | { | |
13816 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13817 | resultobj = t_output_helper(resultobj,o); | |
13818 | } | |
13819 | return resultobj; | |
13820 | fail: | |
13821 | return NULL; | |
13822 | } | |
13823 | ||
13824 | ||
d14a1e28 RD |
13825 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
13826 | PyObject *resultobj; | |
13827 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13828 | int arg2 ; |
13829 | int result; | |
d14a1e28 | 13830 | PyObject * obj0 = 0 ; |
8edf1c75 | 13831 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13832 | char *kwnames[] = { |
13833 | (char *) "self",(char *) "x", NULL | |
13834 | }; | |
13835 | ||
8edf1c75 | 13836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13839 | arg2 = (int) SWIG_AsInt(obj1); | |
13840 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13841 | { |
13842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13843 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13844 | |
13845 | wxPyEndAllowThreads(__tstate); | |
13846 | if (PyErr_Occurred()) SWIG_fail; | |
13847 | } | |
2f4c0a16 | 13848 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13849 | return resultobj; |
13850 | fail: | |
13851 | return NULL; | |
13852 | } | |
13853 | ||
13854 | ||
13855 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13856 | PyObject *resultobj; | |
13857 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13858 | int arg2 ; |
13859 | int result; | |
d14a1e28 | 13860 | PyObject * obj0 = 0 ; |
8edf1c75 | 13861 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13862 | char *kwnames[] = { |
13863 | (char *) "self",(char *) "y", NULL | |
13864 | }; | |
13865 | ||
8edf1c75 | 13866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13869 | arg2 = (int) SWIG_AsInt(obj1); | |
13870 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13871 | { |
13872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13873 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13874 | |
13875 | wxPyEndAllowThreads(__tstate); | |
13876 | if (PyErr_Occurred()) SWIG_fail; | |
13877 | } | |
2f4c0a16 | 13878 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13879 | return resultobj; |
13880 | fail: | |
13881 | return NULL; | |
13882 | } | |
13883 | ||
13884 | ||
13885 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13886 | PyObject *resultobj; | |
13887 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13888 | int arg2 ; |
13889 | int result; | |
d14a1e28 | 13890 | PyObject * obj0 = 0 ; |
8edf1c75 | 13891 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13892 | char *kwnames[] = { |
13893 | (char *) "self",(char *) "x", NULL | |
13894 | }; | |
13895 | ||
8edf1c75 | 13896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13899 | arg2 = (int) SWIG_AsInt(obj1); | |
13900 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13901 | { |
13902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13903 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13904 | |
13905 | wxPyEndAllowThreads(__tstate); | |
13906 | if (PyErr_Occurred()) SWIG_fail; | |
13907 | } | |
2f4c0a16 | 13908 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13909 | return resultobj; |
13910 | fail: | |
13911 | return NULL; | |
13912 | } | |
13913 | ||
13914 | ||
13915 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13916 | PyObject *resultobj; | |
13917 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13918 | int arg2 ; |
13919 | int result; | |
d14a1e28 | 13920 | PyObject * obj0 = 0 ; |
8edf1c75 | 13921 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13922 | char *kwnames[] = { |
13923 | (char *) "self",(char *) "y", NULL | |
13924 | }; | |
13925 | ||
8edf1c75 | 13926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13929 | arg2 = (int) SWIG_AsInt(obj1); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13931 | { |
13932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13933 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13934 | |
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
2f4c0a16 | 13938 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13939 | return resultobj; |
13940 | fail: | |
13941 | return NULL; | |
13942 | } | |
13943 | ||
13944 | ||
13945 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13946 | PyObject *resultobj; | |
13947 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13948 | int arg2 ; |
13949 | int result; | |
d14a1e28 | 13950 | PyObject * obj0 = 0 ; |
8edf1c75 | 13951 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13952 | char *kwnames[] = { |
13953 | (char *) "self",(char *) "x", NULL | |
13954 | }; | |
13955 | ||
8edf1c75 | 13956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13959 | arg2 = (int) SWIG_AsInt(obj1); | |
13960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13961 | { |
13962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13963 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13964 | |
13965 | wxPyEndAllowThreads(__tstate); | |
13966 | if (PyErr_Occurred()) SWIG_fail; | |
13967 | } | |
2f4c0a16 | 13968 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13969 | return resultobj; |
13970 | fail: | |
13971 | return NULL; | |
13972 | } | |
13973 | ||
13974 | ||
13975 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13976 | PyObject *resultobj; | |
13977 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13978 | int arg2 ; |
13979 | int result; | |
d14a1e28 | 13980 | PyObject * obj0 = 0 ; |
8edf1c75 | 13981 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13982 | char *kwnames[] = { |
13983 | (char *) "self",(char *) "y", NULL | |
13984 | }; | |
13985 | ||
8edf1c75 | 13986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13989 | arg2 = (int) SWIG_AsInt(obj1); | |
13990 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13991 | { |
13992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13993 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13994 | |
13995 | wxPyEndAllowThreads(__tstate); | |
13996 | if (PyErr_Occurred()) SWIG_fail; | |
13997 | } | |
2f4c0a16 | 13998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13999 | return resultobj; |
14000 | fail: | |
14001 | return NULL; | |
14002 | } | |
14003 | ||
14004 | ||
14005 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14006 | PyObject *resultobj; | |
14007 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14008 | int arg2 ; |
14009 | int result; | |
d14a1e28 | 14010 | PyObject * obj0 = 0 ; |
8edf1c75 | 14011 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14012 | char *kwnames[] = { |
14013 | (char *) "self",(char *) "x", NULL | |
14014 | }; | |
14015 | ||
8edf1c75 | 14016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14019 | arg2 = (int) SWIG_AsInt(obj1); | |
14020 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14021 | { |
14022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14023 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
14024 | |
14025 | wxPyEndAllowThreads(__tstate); | |
14026 | if (PyErr_Occurred()) SWIG_fail; | |
14027 | } | |
2f4c0a16 | 14028 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14029 | return resultobj; |
14030 | fail: | |
14031 | return NULL; | |
14032 | } | |
14033 | ||
14034 | ||
14035 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14036 | PyObject *resultobj; | |
14037 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14038 | int arg2 ; |
14039 | int result; | |
d14a1e28 | 14040 | PyObject * obj0 = 0 ; |
8edf1c75 | 14041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14042 | char *kwnames[] = { |
14043 | (char *) "self",(char *) "y", NULL | |
14044 | }; | |
14045 | ||
8edf1c75 | 14046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14049 | arg2 = (int) SWIG_AsInt(obj1); | |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14051 | { |
14052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14053 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
14054 | |
14055 | wxPyEndAllowThreads(__tstate); | |
14056 | if (PyErr_Occurred()) SWIG_fail; | |
14057 | } | |
2f4c0a16 | 14058 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14059 | return resultobj; |
14060 | fail: | |
14061 | return NULL; | |
14062 | } | |
14063 | ||
14064 | ||
14065 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14066 | PyObject *resultobj; | |
14067 | wxDC *arg1 = (wxDC *) 0 ; | |
14068 | bool result; | |
14069 | PyObject * obj0 = 0 ; | |
14070 | char *kwnames[] = { | |
14071 | (char *) "self", NULL | |
14072 | }; | |
14073 | ||
14074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14077 | { |
14078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14079 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
14080 | ||
14081 | wxPyEndAllowThreads(__tstate); | |
14082 | if (PyErr_Occurred()) SWIG_fail; | |
14083 | } | |
4f89f6a3 RD |
14084 | { |
14085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14086 | } | |
d14a1e28 RD |
14087 | return resultobj; |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14094 | PyObject *resultobj; | |
14095 | wxDC *arg1 = (wxDC *) 0 ; | |
14096 | bool result; | |
14097 | PyObject * obj0 = 0 ; | |
14098 | char *kwnames[] = { | |
14099 | (char *) "self", NULL | |
14100 | }; | |
14101 | ||
14102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14105 | { |
14106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14107 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
14108 | ||
14109 | wxPyEndAllowThreads(__tstate); | |
14110 | if (PyErr_Occurred()) SWIG_fail; | |
14111 | } | |
4f89f6a3 RD |
14112 | { |
14113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14114 | } | |
d14a1e28 RD |
14115 | return resultobj; |
14116 | fail: | |
14117 | return NULL; | |
14118 | } | |
14119 | ||
14120 | ||
14121 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14122 | PyObject *resultobj; | |
14123 | wxDC *arg1 = (wxDC *) 0 ; | |
14124 | int result; | |
14125 | PyObject * obj0 = 0 ; | |
14126 | char *kwnames[] = { | |
14127 | (char *) "self", NULL | |
14128 | }; | |
14129 | ||
14130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14133 | { |
14134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14135 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
14136 | ||
14137 | wxPyEndAllowThreads(__tstate); | |
14138 | if (PyErr_Occurred()) SWIG_fail; | |
14139 | } | |
2f4c0a16 | 14140 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14141 | return resultobj; |
14142 | fail: | |
14143 | return NULL; | |
14144 | } | |
14145 | ||
14146 | ||
14147 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14148 | PyObject *resultobj; | |
14149 | wxDC *arg1 = (wxDC *) 0 ; | |
14150 | wxSize result; | |
14151 | PyObject * obj0 = 0 ; | |
14152 | char *kwnames[] = { | |
14153 | (char *) "self", NULL | |
14154 | }; | |
14155 | ||
14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14159 | { |
14160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14161 | result = ((wxDC const *)arg1)->GetPPI(); | |
14162 | ||
14163 | wxPyEndAllowThreads(__tstate); | |
14164 | if (PyErr_Occurred()) SWIG_fail; | |
14165 | } | |
14166 | { | |
14167 | wxSize * resultptr; | |
14168 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 14169 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14170 | } |
14171 | return resultobj; | |
14172 | fail: | |
14173 | return NULL; | |
14174 | } | |
14175 | ||
14176 | ||
14177 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14178 | PyObject *resultobj; | |
14179 | wxDC *arg1 = (wxDC *) 0 ; | |
14180 | bool result; | |
14181 | PyObject * obj0 = 0 ; | |
14182 | char *kwnames[] = { | |
14183 | (char *) "self", NULL | |
14184 | }; | |
14185 | ||
14186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14189 | { |
14190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14191 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14192 | ||
14193 | wxPyEndAllowThreads(__tstate); | |
14194 | if (PyErr_Occurred()) SWIG_fail; | |
14195 | } | |
4f89f6a3 RD |
14196 | { |
14197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14198 | } | |
d14a1e28 RD |
14199 | return resultobj; |
14200 | fail: | |
14201 | return NULL; | |
14202 | } | |
14203 | ||
14204 | ||
14205 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14206 | PyObject *resultobj; | |
14207 | wxDC *arg1 = (wxDC *) 0 ; | |
14208 | int result; | |
14209 | PyObject * obj0 = 0 ; | |
14210 | char *kwnames[] = { | |
14211 | (char *) "self", NULL | |
14212 | }; | |
14213 | ||
14214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14217 | { |
14218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14219 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14220 | ||
14221 | wxPyEndAllowThreads(__tstate); | |
14222 | if (PyErr_Occurred()) SWIG_fail; | |
14223 | } | |
2f4c0a16 | 14224 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14225 | return resultobj; |
14226 | fail: | |
14227 | return NULL; | |
14228 | } | |
14229 | ||
14230 | ||
14231 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14232 | PyObject *resultobj; | |
14233 | wxDC *arg1 = (wxDC *) 0 ; | |
14234 | wxBrush *result; | |
14235 | PyObject * obj0 = 0 ; | |
14236 | char *kwnames[] = { | |
14237 | (char *) "self", NULL | |
14238 | }; | |
14239 | ||
14240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14243 | { |
14244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14245 | { | |
14246 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14247 | result = (wxBrush *) &_result_ref; | |
14248 | } | |
14249 | ||
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
fe763115 RD |
14253 | { |
14254 | wxBrush* resultptr = new wxBrush(*result); | |
14255 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14256 | } | |
d14a1e28 RD |
14257 | return resultobj; |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14264 | PyObject *resultobj; | |
14265 | wxDC *arg1 = (wxDC *) 0 ; | |
14266 | wxBrush *result; | |
14267 | PyObject * obj0 = 0 ; | |
14268 | char *kwnames[] = { | |
14269 | (char *) "self", NULL | |
14270 | }; | |
14271 | ||
14272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14275 | { |
14276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14277 | { | |
14278 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14279 | result = (wxBrush *) &_result_ref; | |
14280 | } | |
14281 | ||
14282 | wxPyEndAllowThreads(__tstate); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | } | |
fe763115 RD |
14285 | { |
14286 | wxBrush* resultptr = new wxBrush(*result); | |
14287 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14288 | } | |
d14a1e28 RD |
14289 | return resultobj; |
14290 | fail: | |
14291 | return NULL; | |
14292 | } | |
14293 | ||
14294 | ||
14295 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14296 | PyObject *resultobj; | |
14297 | wxDC *arg1 = (wxDC *) 0 ; | |
14298 | wxFont *result; | |
14299 | PyObject * obj0 = 0 ; | |
14300 | char *kwnames[] = { | |
14301 | (char *) "self", NULL | |
14302 | }; | |
14303 | ||
14304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14307 | { |
14308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14309 | { | |
14310 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14311 | result = (wxFont *) &_result_ref; | |
14312 | } | |
14313 | ||
14314 | wxPyEndAllowThreads(__tstate); | |
14315 | if (PyErr_Occurred()) SWIG_fail; | |
14316 | } | |
fe763115 RD |
14317 | { |
14318 | wxFont* resultptr = new wxFont(*result); | |
14319 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14320 | } | |
d14a1e28 RD |
14321 | return resultobj; |
14322 | fail: | |
14323 | return NULL; | |
14324 | } | |
14325 | ||
14326 | ||
14327 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14328 | PyObject *resultobj; | |
14329 | wxDC *arg1 = (wxDC *) 0 ; | |
14330 | wxPen *result; | |
14331 | PyObject * obj0 = 0 ; | |
14332 | char *kwnames[] = { | |
14333 | (char *) "self", NULL | |
14334 | }; | |
14335 | ||
14336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14339 | { |
14340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14341 | { | |
14342 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14343 | result = (wxPen *) &_result_ref; | |
14344 | } | |
14345 | ||
14346 | wxPyEndAllowThreads(__tstate); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
14348 | } | |
fe763115 RD |
14349 | { |
14350 | wxPen* resultptr = new wxPen(*result); | |
14351 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14352 | } | |
d14a1e28 RD |
14353 | return resultobj; |
14354 | fail: | |
14355 | return NULL; | |
14356 | } | |
14357 | ||
14358 | ||
14359 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14360 | PyObject *resultobj; | |
14361 | wxDC *arg1 = (wxDC *) 0 ; | |
14362 | wxColour *result; | |
14363 | PyObject * obj0 = 0 ; | |
14364 | char *kwnames[] = { | |
14365 | (char *) "self", NULL | |
14366 | }; | |
14367 | ||
14368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14371 | { |
14372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14373 | { | |
14374 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14375 | result = (wxColour *) &_result_ref; | |
14376 | } | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
2f4c0a16 | 14381 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
14382 | return resultobj; |
14383 | fail: | |
14384 | return NULL; | |
14385 | } | |
14386 | ||
14387 | ||
14388 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14389 | PyObject *resultobj; | |
14390 | wxDC *arg1 = (wxDC *) 0 ; | |
14391 | wxColour *result; | |
14392 | PyObject * obj0 = 0 ; | |
14393 | char *kwnames[] = { | |
14394 | (char *) "self", NULL | |
14395 | }; | |
14396 | ||
14397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14400 | { |
14401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14402 | { | |
14403 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14404 | result = (wxColour *) &_result_ref; | |
14405 | } | |
14406 | ||
14407 | wxPyEndAllowThreads(__tstate); | |
14408 | if (PyErr_Occurred()) SWIG_fail; | |
14409 | } | |
2f4c0a16 | 14410 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
14411 | return resultobj; |
14412 | fail: | |
14413 | return NULL; | |
14414 | } | |
14415 | ||
14416 | ||
14417 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14418 | PyObject *resultobj; | |
14419 | wxDC *arg1 = (wxDC *) 0 ; | |
14420 | wxColour *arg2 = 0 ; | |
14421 | wxColour temp2 ; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | PyObject * obj1 = 0 ; | |
14424 | char *kwnames[] = { | |
14425 | (char *) "self",(char *) "colour", NULL | |
14426 | }; | |
14427 | ||
14428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14431 | { |
14432 | arg2 = &temp2; | |
14433 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14434 | } | |
14435 | { | |
14436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14437 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14438 | ||
14439 | wxPyEndAllowThreads(__tstate); | |
14440 | if (PyErr_Occurred()) SWIG_fail; | |
14441 | } | |
14442 | Py_INCREF(Py_None); resultobj = Py_None; | |
14443 | return resultobj; | |
14444 | fail: | |
14445 | return NULL; | |
14446 | } | |
14447 | ||
14448 | ||
14449 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14450 | PyObject *resultobj; | |
14451 | wxDC *arg1 = (wxDC *) 0 ; | |
14452 | wxColour *arg2 = 0 ; | |
14453 | wxColour temp2 ; | |
14454 | PyObject * obj0 = 0 ; | |
14455 | PyObject * obj1 = 0 ; | |
14456 | char *kwnames[] = { | |
14457 | (char *) "self",(char *) "colour", NULL | |
14458 | }; | |
14459 | ||
14460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14463 | { |
14464 | arg2 = &temp2; | |
14465 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14466 | } | |
14467 | { | |
14468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14469 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14470 | ||
14471 | wxPyEndAllowThreads(__tstate); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
14474 | Py_INCREF(Py_None); resultobj = Py_None; | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | return NULL; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14482 | PyObject *resultobj; | |
14483 | wxDC *arg1 = (wxDC *) 0 ; | |
14484 | int result; | |
14485 | PyObject * obj0 = 0 ; | |
14486 | char *kwnames[] = { | |
14487 | (char *) "self", NULL | |
14488 | }; | |
14489 | ||
14490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14493 | { |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
2f4c0a16 | 14500 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14501 | return resultobj; |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxDC *arg1 = (wxDC *) 0 ; | |
14510 | int arg2 ; | |
14511 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14513 | char *kwnames[] = { |
14514 | (char *) "self",(char *) "mode", NULL | |
14515 | }; | |
14516 | ||
8edf1c75 | 14517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14520 | arg2 = (int) SWIG_AsInt(obj1); | |
14521 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14522 | { |
14523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14524 | (arg1)->SetMapMode(arg2); | |
14525 | ||
14526 | wxPyEndAllowThreads(__tstate); | |
14527 | if (PyErr_Occurred()) SWIG_fail; | |
14528 | } | |
14529 | Py_INCREF(Py_None); resultobj = Py_None; | |
14530 | return resultobj; | |
14531 | fail: | |
14532 | return NULL; | |
14533 | } | |
14534 | ||
14535 | ||
14536 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14537 | PyObject *resultobj; | |
14538 | wxDC *arg1 = (wxDC *) 0 ; | |
14539 | double *arg2 = (double *) 0 ; | |
14540 | double *arg3 = (double *) 0 ; | |
14541 | double temp2 ; | |
14542 | double temp3 ; | |
14543 | PyObject * obj0 = 0 ; | |
14544 | char *kwnames[] = { | |
14545 | (char *) "self", NULL | |
14546 | }; | |
14547 | ||
14548 | arg2 = &temp2; | |
14549 | arg3 = &temp3; | |
14550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14553 | { |
14554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14555 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14556 | ||
14557 | wxPyEndAllowThreads(__tstate); | |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
14559 | } | |
14560 | Py_INCREF(Py_None); resultobj = Py_None; | |
14561 | { | |
14562 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14563 | resultobj = t_output_helper(resultobj,o); | |
14564 | } | |
14565 | { | |
14566 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14567 | resultobj = t_output_helper(resultobj,o); | |
14568 | } | |
14569 | return resultobj; | |
14570 | fail: | |
14571 | return NULL; | |
14572 | } | |
14573 | ||
14574 | ||
14575 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14576 | PyObject *resultobj; | |
14577 | wxDC *arg1 = (wxDC *) 0 ; | |
14578 | double arg2 ; | |
14579 | double arg3 ; | |
14580 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14581 | PyObject * obj1 = 0 ; |
14582 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14583 | char *kwnames[] = { |
14584 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14585 | }; | |
14586 | ||
8edf1c75 | 14587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14590 | arg2 = (double) SWIG_AsDouble(obj1); | |
14591 | if (PyErr_Occurred()) SWIG_fail; | |
14592 | arg3 = (double) SWIG_AsDouble(obj2); | |
14593 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14594 | { |
14595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14596 | (arg1)->SetUserScale(arg2,arg3); | |
14597 | ||
14598 | wxPyEndAllowThreads(__tstate); | |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
14600 | } | |
14601 | Py_INCREF(Py_None); resultobj = Py_None; | |
14602 | return resultobj; | |
14603 | fail: | |
14604 | return NULL; | |
14605 | } | |
14606 | ||
14607 | ||
14608 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14609 | PyObject *resultobj; | |
14610 | wxDC *arg1 = (wxDC *) 0 ; | |
14611 | double *arg2 = (double *) 0 ; | |
14612 | double *arg3 = (double *) 0 ; | |
14613 | double temp2 ; | |
14614 | double temp3 ; | |
14615 | PyObject * obj0 = 0 ; | |
14616 | char *kwnames[] = { | |
14617 | (char *) "self", NULL | |
14618 | }; | |
14619 | ||
14620 | arg2 = &temp2; | |
14621 | arg3 = &temp3; | |
14622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14625 | { |
14626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14627 | (arg1)->GetLogicalScale(arg2,arg3); | |
14628 | ||
14629 | wxPyEndAllowThreads(__tstate); | |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
14631 | } | |
14632 | Py_INCREF(Py_None); resultobj = Py_None; | |
14633 | { | |
14634 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14635 | resultobj = t_output_helper(resultobj,o); | |
14636 | } | |
14637 | { | |
14638 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14639 | resultobj = t_output_helper(resultobj,o); | |
14640 | } | |
14641 | return resultobj; | |
14642 | fail: | |
14643 | return NULL; | |
14644 | } | |
14645 | ||
14646 | ||
14647 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14648 | PyObject *resultobj; | |
14649 | wxDC *arg1 = (wxDC *) 0 ; | |
14650 | double arg2 ; | |
14651 | double arg3 ; | |
14652 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
14653 | PyObject * obj1 = 0 ; |
14654 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14655 | char *kwnames[] = { |
14656 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14657 | }; | |
14658 | ||
8edf1c75 | 14659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14662 | arg2 = (double) SWIG_AsDouble(obj1); | |
14663 | if (PyErr_Occurred()) SWIG_fail; | |
14664 | arg3 = (double) SWIG_AsDouble(obj2); | |
14665 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14666 | { |
14667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14668 | (arg1)->SetLogicalScale(arg2,arg3); | |
14669 | ||
14670 | wxPyEndAllowThreads(__tstate); | |
14671 | if (PyErr_Occurred()) SWIG_fail; | |
14672 | } | |
14673 | Py_INCREF(Py_None); resultobj = Py_None; | |
14674 | return resultobj; | |
14675 | fail: | |
14676 | return NULL; | |
14677 | } | |
14678 | ||
14679 | ||
44127b65 | 14680 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14681 | PyObject *resultobj; |
14682 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 14683 | wxPoint result; |
d14a1e28 RD |
14684 | PyObject * obj0 = 0 ; |
14685 | char *kwnames[] = { | |
14686 | (char *) "self", NULL | |
14687 | }; | |
14688 | ||
44127b65 | 14689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
14690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14692 | { |
14693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14694 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
14695 | |
14696 | wxPyEndAllowThreads(__tstate); | |
14697 | if (PyErr_Occurred()) SWIG_fail; | |
14698 | } | |
d14a1e28 | 14699 | { |
44127b65 RD |
14700 | wxPoint * resultptr; |
14701 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14703 | } |
14704 | return resultobj; | |
14705 | fail: | |
14706 | return NULL; | |
14707 | } | |
14708 | ||
14709 | ||
44127b65 | 14710 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14711 | PyObject *resultobj; |
14712 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
14713 | int *arg2 = (int *) 0 ; |
14714 | int *arg3 = (int *) 0 ; | |
14715 | int temp2 ; | |
14716 | int temp3 ; | |
d14a1e28 RD |
14717 | PyObject * obj0 = 0 ; |
14718 | char *kwnames[] = { | |
14719 | (char *) "self", NULL | |
14720 | }; | |
14721 | ||
44127b65 RD |
14722 | arg2 = &temp2; |
14723 | arg3 = &temp3; | |
14724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14727 | { |
14728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14729 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
14730 | |
14731 | wxPyEndAllowThreads(__tstate); | |
14732 | if (PyErr_Occurred()) SWIG_fail; | |
14733 | } | |
44127b65 | 14734 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14735 | { |
44127b65 RD |
14736 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14737 | resultobj = t_output_helper(resultobj,o); | |
14738 | } | |
14739 | { | |
14740 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14741 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14742 | } |
14743 | return resultobj; | |
14744 | fail: | |
14745 | return NULL; | |
14746 | } | |
14747 | ||
14748 | ||
14749 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14750 | PyObject *resultobj; | |
14751 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14752 | int arg2 ; |
14753 | int arg3 ; | |
d14a1e28 | 14754 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14755 | PyObject * obj1 = 0 ; |
14756 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14757 | char *kwnames[] = { |
14758 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14759 | }; | |
14760 | ||
8edf1c75 | 14761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14764 | arg2 = (int) SWIG_AsInt(obj1); | |
14765 | if (PyErr_Occurred()) SWIG_fail; | |
14766 | arg3 = (int) SWIG_AsInt(obj2); | |
14767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14768 | { |
14769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14770 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14771 | ||
14772 | wxPyEndAllowThreads(__tstate); | |
14773 | if (PyErr_Occurred()) SWIG_fail; | |
14774 | } | |
14775 | Py_INCREF(Py_None); resultobj = Py_None; | |
14776 | return resultobj; | |
14777 | fail: | |
14778 | return NULL; | |
14779 | } | |
14780 | ||
14781 | ||
44127b65 | 14782 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14783 | PyObject *resultobj; |
14784 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 14785 | wxPoint result; |
d14a1e28 RD |
14786 | PyObject * obj0 = 0 ; |
14787 | char *kwnames[] = { | |
14788 | (char *) "self", NULL | |
14789 | }; | |
14790 | ||
44127b65 | 14791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
14792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14794 | { |
14795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14796 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
14797 | |
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
d14a1e28 | 14801 | { |
44127b65 RD |
14802 | wxPoint * resultptr; |
14803 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 14804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14805 | } |
14806 | return resultobj; | |
14807 | fail: | |
14808 | return NULL; | |
14809 | } | |
14810 | ||
14811 | ||
44127b65 | 14812 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14813 | PyObject *resultobj; |
14814 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
14815 | int *arg2 = (int *) 0 ; |
14816 | int *arg3 = (int *) 0 ; | |
14817 | int temp2 ; | |
14818 | int temp3 ; | |
d14a1e28 RD |
14819 | PyObject * obj0 = 0 ; |
14820 | char *kwnames[] = { | |
14821 | (char *) "self", NULL | |
14822 | }; | |
14823 | ||
44127b65 RD |
14824 | arg2 = &temp2; |
14825 | arg3 = &temp3; | |
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14829 | { |
14830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14831 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14832 | |
14833 | wxPyEndAllowThreads(__tstate); | |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
14835 | } | |
44127b65 | 14836 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14837 | { |
44127b65 RD |
14838 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14839 | resultobj = t_output_helper(resultobj,o); | |
14840 | } | |
14841 | { | |
14842 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14843 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14844 | } |
14845 | return resultobj; | |
14846 | fail: | |
14847 | return NULL; | |
14848 | } | |
14849 | ||
14850 | ||
14851 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14852 | PyObject *resultobj; | |
14853 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14854 | int arg2 ; |
14855 | int arg3 ; | |
d14a1e28 | 14856 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14857 | PyObject * obj1 = 0 ; |
14858 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14859 | char *kwnames[] = { |
14860 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14861 | }; | |
14862 | ||
8edf1c75 | 14863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14866 | arg2 = (int) SWIG_AsInt(obj1); | |
14867 | if (PyErr_Occurred()) SWIG_fail; | |
14868 | arg3 = (int) SWIG_AsInt(obj2); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14870 | { |
14871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14872 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14873 | ||
14874 | wxPyEndAllowThreads(__tstate); | |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
14876 | } | |
14877 | Py_INCREF(Py_None); resultobj = Py_None; | |
14878 | return resultobj; | |
14879 | fail: | |
14880 | return NULL; | |
14881 | } | |
14882 | ||
14883 | ||
14884 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14885 | PyObject *resultobj; | |
14886 | wxDC *arg1 = (wxDC *) 0 ; | |
14887 | bool arg2 ; | |
14888 | bool arg3 ; | |
14889 | PyObject * obj0 = 0 ; | |
14890 | PyObject * obj1 = 0 ; | |
14891 | PyObject * obj2 = 0 ; | |
14892 | char *kwnames[] = { | |
14893 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14894 | }; | |
14895 | ||
14896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14899 | arg2 = (bool) SWIG_AsBool(obj1); | |
14900 | if (PyErr_Occurred()) SWIG_fail; | |
14901 | arg3 = (bool) SWIG_AsBool(obj2); | |
14902 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14903 | { |
14904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14905 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14906 | ||
14907 | wxPyEndAllowThreads(__tstate); | |
14908 | if (PyErr_Occurred()) SWIG_fail; | |
14909 | } | |
14910 | Py_INCREF(Py_None); resultobj = Py_None; | |
14911 | return resultobj; | |
14912 | fail: | |
14913 | return NULL; | |
14914 | } | |
14915 | ||
14916 | ||
14917 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14918 | PyObject *resultobj; | |
14919 | wxDC *arg1 = (wxDC *) 0 ; | |
14920 | int result; | |
14921 | PyObject * obj0 = 0 ; | |
14922 | char *kwnames[] = { | |
14923 | (char *) "self", NULL | |
14924 | }; | |
14925 | ||
14926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14929 | { |
14930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14931 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14932 | ||
14933 | wxPyEndAllowThreads(__tstate); | |
14934 | if (PyErr_Occurred()) SWIG_fail; | |
14935 | } | |
2f4c0a16 | 14936 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14937 | return resultobj; |
14938 | fail: | |
14939 | return NULL; | |
14940 | } | |
14941 | ||
14942 | ||
14943 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14944 | PyObject *resultobj; | |
14945 | wxDC *arg1 = (wxDC *) 0 ; | |
14946 | int arg2 ; | |
14947 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14949 | char *kwnames[] = { |
14950 | (char *) "self",(char *) "function", NULL | |
14951 | }; | |
14952 | ||
8edf1c75 | 14953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14956 | arg2 = (int) SWIG_AsInt(obj1); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14958 | { |
14959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14960 | (arg1)->SetLogicalFunction(arg2); | |
14961 | ||
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | Py_INCREF(Py_None); resultobj = Py_None; | |
14966 | return resultobj; | |
14967 | fail: | |
14968 | return NULL; | |
14969 | } | |
14970 | ||
14971 | ||
14972 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14973 | PyObject *resultobj; | |
14974 | wxDC *arg1 = (wxDC *) 0 ; | |
14975 | bool arg2 ; | |
14976 | PyObject * obj0 = 0 ; | |
14977 | PyObject * obj1 = 0 ; | |
14978 | char *kwnames[] = { | |
14979 | (char *) "self",(char *) "opt", NULL | |
14980 | }; | |
14981 | ||
14982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14985 | arg2 = (bool) SWIG_AsBool(obj1); | |
14986 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14987 | { |
14988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14989 | (arg1)->SetOptimization(arg2); | |
14990 | ||
14991 | wxPyEndAllowThreads(__tstate); | |
14992 | if (PyErr_Occurred()) SWIG_fail; | |
14993 | } | |
14994 | Py_INCREF(Py_None); resultobj = Py_None; | |
14995 | return resultobj; | |
14996 | fail: | |
14997 | return NULL; | |
14998 | } | |
14999 | ||
15000 | ||
15001 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15002 | PyObject *resultobj; | |
15003 | wxDC *arg1 = (wxDC *) 0 ; | |
15004 | bool result; | |
15005 | PyObject * obj0 = 0 ; | |
15006 | char *kwnames[] = { | |
15007 | (char *) "self", NULL | |
15008 | }; | |
15009 | ||
15010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15013 | { |
15014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15015 | result = (bool)(arg1)->GetOptimization(); | |
15016 | ||
15017 | wxPyEndAllowThreads(__tstate); | |
15018 | if (PyErr_Occurred()) SWIG_fail; | |
15019 | } | |
4f89f6a3 RD |
15020 | { |
15021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15022 | } | |
d14a1e28 RD |
15023 | return resultobj; |
15024 | fail: | |
15025 | return NULL; | |
15026 | } | |
15027 | ||
15028 | ||
15029 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15030 | PyObject *resultobj; | |
15031 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
15032 | int arg2 ; |
15033 | int arg3 ; | |
d14a1e28 | 15034 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
15035 | PyObject * obj1 = 0 ; |
15036 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15037 | char *kwnames[] = { |
15038 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15039 | }; | |
15040 | ||
8edf1c75 | 15041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15044 | arg2 = (int) SWIG_AsInt(obj1); | |
15045 | if (PyErr_Occurred()) SWIG_fail; | |
15046 | arg3 = (int) SWIG_AsInt(obj2); | |
15047 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15048 | { |
15049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15050 | (arg1)->CalcBoundingBox(arg2,arg3); | |
15051 | ||
15052 | wxPyEndAllowThreads(__tstate); | |
15053 | if (PyErr_Occurred()) SWIG_fail; | |
15054 | } | |
15055 | Py_INCREF(Py_None); resultobj = Py_None; | |
15056 | return resultobj; | |
15057 | fail: | |
15058 | return NULL; | |
15059 | } | |
15060 | ||
15061 | ||
15062 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15063 | PyObject *resultobj; | |
15064 | wxDC *arg1 = (wxDC *) 0 ; | |
15065 | PyObject * obj0 = 0 ; | |
15066 | char *kwnames[] = { | |
15067 | (char *) "self", NULL | |
15068 | }; | |
15069 | ||
15070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15073 | { |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15075 | (arg1)->ResetBoundingBox(); | |
15076 | ||
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
15080 | Py_INCREF(Py_None); resultobj = Py_None; | |
15081 | return resultobj; | |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
15087 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15088 | PyObject *resultobj; | |
15089 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 15090 | int result; |
d14a1e28 RD |
15091 | PyObject * obj0 = 0 ; |
15092 | char *kwnames[] = { | |
15093 | (char *) "self", NULL | |
15094 | }; | |
15095 | ||
15096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15099 | { |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15101 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
15102 | |
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
2f4c0a16 | 15106 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15107 | return resultobj; |
15108 | fail: | |
15109 | return NULL; | |
15110 | } | |
15111 | ||
15112 | ||
15113 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15114 | PyObject *resultobj; | |
15115 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 15116 | int result; |
d14a1e28 RD |
15117 | PyObject * obj0 = 0 ; |
15118 | char *kwnames[] = { | |
15119 | (char *) "self", NULL | |
15120 | }; | |
15121 | ||
15122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15125 | { |
15126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15127 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
15128 | |
15129 | wxPyEndAllowThreads(__tstate); | |
15130 | if (PyErr_Occurred()) SWIG_fail; | |
15131 | } | |
2f4c0a16 | 15132 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15133 | return resultobj; |
15134 | fail: | |
15135 | return NULL; | |
15136 | } | |
15137 | ||
15138 | ||
15139 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15140 | PyObject *resultobj; | |
15141 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 15142 | int result; |
d14a1e28 RD |
15143 | PyObject * obj0 = 0 ; |
15144 | char *kwnames[] = { | |
15145 | (char *) "self", NULL | |
15146 | }; | |
15147 | ||
15148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15151 | { |
15152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15153 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
15154 | |
15155 | wxPyEndAllowThreads(__tstate); | |
15156 | if (PyErr_Occurred()) SWIG_fail; | |
15157 | } | |
2f4c0a16 | 15158 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15159 | return resultobj; |
15160 | fail: | |
15161 | return NULL; | |
15162 | } | |
15163 | ||
15164 | ||
15165 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15166 | PyObject *resultobj; | |
15167 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 15168 | int result; |
d14a1e28 RD |
15169 | PyObject * obj0 = 0 ; |
15170 | char *kwnames[] = { | |
15171 | (char *) "self", NULL | |
15172 | }; | |
15173 | ||
15174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15177 | { |
15178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 15179 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
15180 | |
15181 | wxPyEndAllowThreads(__tstate); | |
15182 | if (PyErr_Occurred()) SWIG_fail; | |
15183 | } | |
2f4c0a16 | 15184 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15185 | return resultobj; |
15186 | fail: | |
15187 | return NULL; | |
15188 | } | |
15189 | ||
15190 | ||
15191 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15192 | PyObject *resultobj; | |
15193 | wxDC *arg1 = (wxDC *) 0 ; | |
15194 | int *arg2 = (int *) 0 ; | |
15195 | int *arg3 = (int *) 0 ; | |
15196 | int *arg4 = (int *) 0 ; | |
15197 | int *arg5 = (int *) 0 ; | |
15198 | int temp2 ; | |
15199 | int temp3 ; | |
15200 | int temp4 ; | |
15201 | int temp5 ; | |
15202 | PyObject * obj0 = 0 ; | |
15203 | char *kwnames[] = { | |
15204 | (char *) "self", NULL | |
15205 | }; | |
15206 | ||
15207 | arg2 = &temp2; | |
15208 | arg3 = &temp3; | |
15209 | arg4 = &temp4; | |
15210 | arg5 = &temp5; | |
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15214 | { |
15215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15216 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15217 | ||
15218 | wxPyEndAllowThreads(__tstate); | |
15219 | if (PyErr_Occurred()) SWIG_fail; | |
15220 | } | |
15221 | Py_INCREF(Py_None); resultobj = Py_None; | |
15222 | { | |
15223 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15224 | resultobj = t_output_helper(resultobj,o); | |
15225 | } | |
15226 | { | |
15227 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15228 | resultobj = t_output_helper(resultobj,o); | |
15229 | } | |
15230 | { | |
15231 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15232 | resultobj = t_output_helper(resultobj,o); | |
15233 | } | |
15234 | { | |
15235 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
15236 | resultobj = t_output_helper(resultobj,o); | |
15237 | } | |
15238 | return resultobj; | |
15239 | fail: | |
15240 | return NULL; | |
15241 | } | |
15242 | ||
15243 | ||
15244 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15245 | PyObject *resultobj; | |
15246 | wxDC *arg1 = (wxDC *) 0 ; | |
15247 | PyObject *arg2 = (PyObject *) 0 ; | |
15248 | PyObject *arg3 = (PyObject *) 0 ; | |
15249 | PyObject *arg4 = (PyObject *) 0 ; | |
15250 | PyObject *result; | |
15251 | PyObject * obj0 = 0 ; | |
15252 | PyObject * obj1 = 0 ; | |
15253 | PyObject * obj2 = 0 ; | |
15254 | PyObject * obj3 = 0 ; | |
15255 | char *kwnames[] = { | |
15256 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
15260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15262 | arg2 = obj1; |
15263 | arg3 = obj2; | |
15264 | arg4 = obj3; | |
15265 | { | |
15266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15267 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15268 | ||
15269 | wxPyEndAllowThreads(__tstate); | |
15270 | if (PyErr_Occurred()) SWIG_fail; | |
15271 | } | |
15272 | resultobj = result; | |
15273 | return resultobj; | |
15274 | fail: | |
15275 | return NULL; | |
15276 | } | |
15277 | ||
15278 | ||
15279 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15280 | PyObject *resultobj; | |
15281 | wxDC *arg1 = (wxDC *) 0 ; | |
15282 | PyObject *arg2 = (PyObject *) 0 ; | |
15283 | PyObject *arg3 = (PyObject *) 0 ; | |
15284 | PyObject *arg4 = (PyObject *) 0 ; | |
15285 | PyObject *result; | |
15286 | PyObject * obj0 = 0 ; | |
15287 | PyObject * obj1 = 0 ; | |
15288 | PyObject * obj2 = 0 ; | |
15289 | PyObject * obj3 = 0 ; | |
15290 | char *kwnames[] = { | |
15291 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15292 | }; | |
15293 | ||
15294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
15295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15297 | arg2 = obj1; |
15298 | arg3 = obj2; | |
15299 | arg4 = obj3; | |
15300 | { | |
15301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15302 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15303 | ||
15304 | wxPyEndAllowThreads(__tstate); | |
15305 | if (PyErr_Occurred()) SWIG_fail; | |
15306 | } | |
15307 | resultobj = result; | |
15308 | return resultobj; | |
15309 | fail: | |
15310 | return NULL; | |
15311 | } | |
15312 | ||
15313 | ||
15314 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15315 | PyObject *resultobj; | |
15316 | wxDC *arg1 = (wxDC *) 0 ; | |
15317 | PyObject *arg2 = (PyObject *) 0 ; | |
15318 | PyObject *arg3 = (PyObject *) 0 ; | |
15319 | PyObject *arg4 = (PyObject *) 0 ; | |
15320 | PyObject *result; | |
15321 | PyObject * obj0 = 0 ; | |
15322 | PyObject * obj1 = 0 ; | |
15323 | PyObject * obj2 = 0 ; | |
15324 | PyObject * obj3 = 0 ; | |
15325 | char *kwnames[] = { | |
15326 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15327 | }; | |
15328 | ||
15329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
15330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15332 | arg2 = obj1; |
15333 | arg3 = obj2; | |
15334 | arg4 = obj3; | |
15335 | { | |
15336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15337 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15338 | ||
15339 | wxPyEndAllowThreads(__tstate); | |
15340 | if (PyErr_Occurred()) SWIG_fail; | |
15341 | } | |
15342 | resultobj = result; | |
15343 | return resultobj; | |
15344 | fail: | |
15345 | return NULL; | |
15346 | } | |
15347 | ||
15348 | ||
15349 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15350 | PyObject *resultobj; | |
15351 | wxDC *arg1 = (wxDC *) 0 ; | |
15352 | PyObject *arg2 = (PyObject *) 0 ; | |
15353 | PyObject *arg3 = (PyObject *) 0 ; | |
15354 | PyObject *arg4 = (PyObject *) 0 ; | |
15355 | PyObject *result; | |
15356 | PyObject * obj0 = 0 ; | |
15357 | PyObject * obj1 = 0 ; | |
15358 | PyObject * obj2 = 0 ; | |
15359 | PyObject * obj3 = 0 ; | |
15360 | char *kwnames[] = { | |
15361 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15362 | }; | |
15363 | ||
15364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
15365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15367 | arg2 = obj1; |
15368 | arg3 = obj2; | |
15369 | arg4 = obj3; | |
15370 | { | |
15371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15372 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15373 | ||
15374 | wxPyEndAllowThreads(__tstate); | |
15375 | if (PyErr_Occurred()) SWIG_fail; | |
15376 | } | |
15377 | resultobj = result; | |
15378 | return resultobj; | |
15379 | fail: | |
15380 | return NULL; | |
15381 | } | |
15382 | ||
15383 | ||
15384 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15385 | PyObject *resultobj; | |
15386 | wxDC *arg1 = (wxDC *) 0 ; | |
15387 | PyObject *arg2 = (PyObject *) 0 ; | |
15388 | PyObject *arg3 = (PyObject *) 0 ; | |
15389 | PyObject *arg4 = (PyObject *) 0 ; | |
15390 | PyObject *result; | |
15391 | PyObject * obj0 = 0 ; | |
15392 | PyObject * obj1 = 0 ; | |
15393 | PyObject * obj2 = 0 ; | |
15394 | PyObject * obj3 = 0 ; | |
15395 | char *kwnames[] = { | |
15396 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15397 | }; | |
15398 | ||
15399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
15400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15402 | arg2 = obj1; |
15403 | arg3 = obj2; | |
15404 | arg4 = obj3; | |
15405 | { | |
15406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15407 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15408 | ||
15409 | wxPyEndAllowThreads(__tstate); | |
15410 | if (PyErr_Occurred()) SWIG_fail; | |
15411 | } | |
15412 | resultobj = result; | |
15413 | return resultobj; | |
15414 | fail: | |
15415 | return NULL; | |
15416 | } | |
15417 | ||
15418 | ||
15419 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15420 | PyObject *resultobj; | |
15421 | wxDC *arg1 = (wxDC *) 0 ; | |
15422 | PyObject *arg2 = (PyObject *) 0 ; | |
15423 | PyObject *arg3 = (PyObject *) 0 ; | |
15424 | PyObject *arg4 = (PyObject *) 0 ; | |
15425 | PyObject *arg5 = (PyObject *) 0 ; | |
15426 | PyObject *result; | |
15427 | PyObject * obj0 = 0 ; | |
15428 | PyObject * obj1 = 0 ; | |
15429 | PyObject * obj2 = 0 ; | |
15430 | PyObject * obj3 = 0 ; | |
15431 | PyObject * obj4 = 0 ; | |
15432 | char *kwnames[] = { | |
15433 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15434 | }; | |
15435 | ||
15436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
15437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15439 | arg2 = obj1; |
15440 | arg3 = obj2; | |
15441 | arg4 = obj3; | |
15442 | arg5 = obj4; | |
15443 | { | |
15444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15445 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15446 | ||
15447 | wxPyEndAllowThreads(__tstate); | |
15448 | if (PyErr_Occurred()) SWIG_fail; | |
15449 | } | |
15450 | resultobj = result; | |
15451 | return resultobj; | |
15452 | fail: | |
15453 | return NULL; | |
15454 | } | |
15455 | ||
15456 | ||
15457 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
15458 | PyObject *obj; | |
15459 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15460 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15461 | Py_INCREF(obj); | |
15462 | return Py_BuildValue((char *)""); | |
15463 | } | |
15464 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj; | |
15466 | wxMemoryDC *result; | |
15467 | char *kwnames[] = { | |
15468 | NULL | |
15469 | }; | |
15470 | ||
15471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15472 | { | |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15474 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15475 | ||
15476 | wxPyEndAllowThreads(__tstate); | |
15477 | if (PyErr_Occurred()) SWIG_fail; | |
15478 | } | |
2f4c0a16 | 15479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
15480 | return resultobj; |
15481 | fail: | |
15482 | return NULL; | |
15483 | } | |
15484 | ||
15485 | ||
15486 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15487 | PyObject *resultobj; | |
15488 | wxDC *arg1 = (wxDC *) 0 ; | |
15489 | wxMemoryDC *result; | |
15490 | PyObject * obj0 = 0 ; | |
15491 | char *kwnames[] = { | |
15492 | (char *) "oldDC", NULL | |
15493 | }; | |
15494 | ||
15495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15498 | { |
15499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15500 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15501 | ||
15502 | wxPyEndAllowThreads(__tstate); | |
15503 | if (PyErr_Occurred()) SWIG_fail; | |
15504 | } | |
2f4c0a16 | 15505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
15506 | return resultobj; |
15507 | fail: | |
15508 | return NULL; | |
15509 | } | |
15510 | ||
15511 | ||
15512 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15513 | PyObject *resultobj; | |
15514 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15515 | wxBitmap *arg2 = 0 ; | |
15516 | PyObject * obj0 = 0 ; | |
15517 | PyObject * obj1 = 0 ; | |
15518 | char *kwnames[] = { | |
15519 | (char *) "self",(char *) "bitmap", NULL | |
15520 | }; | |
15521 | ||
15522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, |
15524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15526 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15527 | SWIG_fail; | |
d14a1e28 | 15528 | if (arg2 == NULL) { |
2f4c0a16 RD |
15529 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15530 | SWIG_fail; | |
d14a1e28 RD |
15531 | } |
15532 | { | |
15533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15534 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15535 | ||
15536 | wxPyEndAllowThreads(__tstate); | |
15537 | if (PyErr_Occurred()) SWIG_fail; | |
15538 | } | |
15539 | Py_INCREF(Py_None); resultobj = Py_None; | |
15540 | return resultobj; | |
15541 | fail: | |
15542 | return NULL; | |
15543 | } | |
15544 | ||
15545 | ||
15546 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
15547 | PyObject *obj; | |
15548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15549 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15550 | Py_INCREF(obj); | |
15551 | return Py_BuildValue((char *)""); | |
15552 | } | |
db914595 | 15553 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
15554 | PyObject *resultobj; |
15555 | wxDC *arg1 = (wxDC *) 0 ; | |
15556 | wxBitmap *arg2 = 0 ; | |
15557 | wxBufferedDC *result; | |
15558 | PyObject * obj0 = 0 ; | |
15559 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15560 | |
db914595 | 15561 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15564 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15565 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15566 | SWIG_fail; | |
d14a1e28 | 15567 | if (arg2 == NULL) { |
2f4c0a16 RD |
15568 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15569 | SWIG_fail; | |
d14a1e28 RD |
15570 | } |
15571 | { | |
15572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15573 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15574 | ||
15575 | wxPyEndAllowThreads(__tstate); | |
15576 | if (PyErr_Occurred()) SWIG_fail; | |
15577 | } | |
2f4c0a16 | 15578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
15579 | return resultobj; |
15580 | fail: | |
15581 | return NULL; | |
15582 | } | |
15583 | ||
15584 | ||
db914595 | 15585 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
15586 | PyObject *resultobj; |
15587 | wxDC *arg1 = (wxDC *) 0 ; | |
15588 | wxSize *arg2 = 0 ; | |
15589 | wxBufferedDC *result; | |
15590 | wxSize temp2 ; | |
15591 | PyObject * obj0 = 0 ; | |
15592 | PyObject * obj1 = 0 ; | |
db914595 | 15593 | |
328fcd84 | 15594 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
15597 | { |
15598 | arg2 = &temp2; | |
15599 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15600 | } | |
db914595 RD |
15601 | { |
15602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15603 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
db914595 RD |
15604 | |
15605 | wxPyEndAllowThreads(__tstate); | |
15606 | if (PyErr_Occurred()) SWIG_fail; | |
15607 | } | |
2f4c0a16 | 15608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
db914595 RD |
15609 | return resultobj; |
15610 | fail: | |
15611 | return NULL; | |
15612 | } | |
15613 | ||
15614 | ||
15615 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15616 | int argc; | |
328fcd84 | 15617 | PyObject *argv[3]; |
db914595 RD |
15618 | int ii; |
15619 | ||
15620 | argc = PyObject_Length(args); | |
328fcd84 | 15621 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
db914595 RD |
15622 | argv[ii] = PyTuple_GetItem(args,ii); |
15623 | } | |
15624 | if (argc == 2) { | |
15625 | int _v; | |
15626 | { | |
15627 | void *ptr; | |
2f4c0a16 | 15628 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
db914595 RD |
15629 | _v = 0; |
15630 | PyErr_Clear(); | |
15631 | } else { | |
15632 | _v = 1; | |
15633 | } | |
15634 | } | |
15635 | if (_v) { | |
15636 | { | |
15637 | void *ptr; | |
2f4c0a16 | 15638 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { |
db914595 RD |
15639 | _v = 0; |
15640 | PyErr_Clear(); | |
15641 | } else { | |
15642 | _v = 1; | |
15643 | } | |
15644 | } | |
15645 | if (_v) { | |
15646 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15647 | } | |
15648 | } | |
15649 | } | |
328fcd84 | 15650 | if (argc == 2) { |
db914595 RD |
15651 | int _v; |
15652 | { | |
15653 | void *ptr; | |
2f4c0a16 | 15654 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
db914595 RD |
15655 | _v = 0; |
15656 | PyErr_Clear(); | |
15657 | } else { | |
15658 | _v = 1; | |
15659 | } | |
15660 | } | |
15661 | if (_v) { | |
15662 | { | |
15663 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15664 | } | |
15665 | if (_v) { | |
328fcd84 | 15666 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
db914595 RD |
15667 | } |
15668 | } | |
15669 | } | |
d14a1e28 | 15670 | |
db914595 RD |
15671 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
15677 | PyObject *resultobj; | |
15678 | wxDC *arg1 = (wxDC *) 0 ; | |
15679 | wxSize *arg2 = 0 ; | |
db914595 RD |
15680 | wxBufferedDC *result; |
15681 | wxSize temp2 ; | |
15682 | PyObject * obj0 = 0 ; | |
15683 | PyObject * obj1 = 0 ; | |
db914595 | 15684 | |
328fcd84 | 15685 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15688 | { |
15689 | arg2 = &temp2; | |
15690 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15691 | } | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15694 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
15695 | |
15696 | wxPyEndAllowThreads(__tstate); | |
15697 | if (PyErr_Occurred()) SWIG_fail; | |
15698 | } | |
2f4c0a16 | 15699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
15700 | return resultobj; |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
328fcd84 | 15706 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15707 | PyObject *resultobj; |
15708 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15709 | PyObject * obj0 = 0 ; | |
15710 | char *kwnames[] = { | |
15711 | (char *) "self", NULL | |
15712 | }; | |
15713 | ||
328fcd84 | 15714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
15715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15717 | { |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15719 | delete arg1; |
d14a1e28 RD |
15720 | |
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | Py_INCREF(Py_None); resultobj = Py_None; | |
15725 | return resultobj; | |
15726 | fail: | |
15727 | return NULL; | |
15728 | } | |
15729 | ||
15730 | ||
328fcd84 | 15731 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15732 | PyObject *resultobj; |
328fcd84 | 15733 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
db914595 | 15734 | PyObject * obj0 = 0 ; |
328fcd84 RD |
15735 | char *kwnames[] = { |
15736 | (char *) "self", NULL | |
15737 | }; | |
db914595 | 15738 | |
328fcd84 | 15739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
15740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
15742 | { |
15743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15744 | (arg1)->UnMask(); |
db914595 RD |
15745 | |
15746 | wxPyEndAllowThreads(__tstate); | |
15747 | if (PyErr_Occurred()) SWIG_fail; | |
15748 | } | |
328fcd84 | 15749 | Py_INCREF(Py_None); resultobj = Py_None; |
db914595 RD |
15750 | return resultobj; |
15751 | fail: | |
15752 | return NULL; | |
15753 | } | |
15754 | ||
15755 | ||
328fcd84 RD |
15756 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { |
15757 | PyObject *obj; | |
15758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15759 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15760 | Py_INCREF(obj); | |
15761 | return Py_BuildValue((char *)""); | |
15762 | } | |
15763 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
15764 | PyObject *resultobj; |
15765 | wxWindow *arg1 = (wxWindow *) 0 ; | |
328fcd84 RD |
15766 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
15767 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
d14a1e28 RD |
15768 | wxBufferedPaintDC *result; |
15769 | PyObject * obj0 = 0 ; | |
15770 | PyObject * obj1 = 0 ; | |
328fcd84 RD |
15771 | char *kwnames[] = { |
15772 | (char *) "window",(char *) "buffer", NULL | |
15773 | }; | |
d14a1e28 | 15774 | |
328fcd84 | 15775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15778 | if (obj1) { |
2f4c0a16 RD |
15779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
15780 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15781 | SWIG_fail; | |
328fcd84 | 15782 | if (arg2 == NULL) { |
2f4c0a16 RD |
15783 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15784 | SWIG_fail; | |
d14a1e28 RD |
15785 | } |
15786 | } | |
15787 | { | |
15788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 15789 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
15790 | |
15791 | wxPyEndAllowThreads(__tstate); | |
15792 | if (PyErr_Occurred()) SWIG_fail; | |
15793 | } | |
2f4c0a16 | 15794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
15795 | return resultobj; |
15796 | fail: | |
15797 | return NULL; | |
15798 | } | |
15799 | ||
15800 | ||
15801 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
15802 | PyObject *obj; | |
15803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15804 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15805 | Py_INCREF(obj); | |
15806 | return Py_BuildValue((char *)""); | |
15807 | } | |
15808 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15809 | PyObject *resultobj; | |
15810 | wxScreenDC *result; | |
15811 | char *kwnames[] = { | |
15812 | NULL | |
15813 | }; | |
15814 | ||
15815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15816 | { | |
15817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15818 | result = (wxScreenDC *)new wxScreenDC(); | |
15819 | ||
15820 | wxPyEndAllowThreads(__tstate); | |
15821 | if (PyErr_Occurred()) SWIG_fail; | |
15822 | } | |
2f4c0a16 | 15823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
15824 | return resultobj; |
15825 | fail: | |
15826 | return NULL; | |
15827 | } | |
15828 | ||
15829 | ||
15830 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15831 | PyObject *resultobj; | |
15832 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15833 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15834 | bool result; | |
15835 | PyObject * obj0 = 0 ; | |
15836 | PyObject * obj1 = 0 ; | |
15837 | char *kwnames[] = { | |
15838 | (char *) "self",(char *) "window", NULL | |
15839 | }; | |
15840 | ||
15841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15846 | { |
15847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15848 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15849 | ||
15850 | wxPyEndAllowThreads(__tstate); | |
15851 | if (PyErr_Occurred()) SWIG_fail; | |
15852 | } | |
4f89f6a3 RD |
15853 | { |
15854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15855 | } | |
d14a1e28 RD |
15856 | return resultobj; |
15857 | fail: | |
15858 | return NULL; | |
15859 | } | |
15860 | ||
15861 | ||
15862 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15863 | PyObject *resultobj; | |
15864 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15865 | wxRect *arg2 = (wxRect *) NULL ; | |
15866 | bool result; | |
15867 | PyObject * obj0 = 0 ; | |
15868 | PyObject * obj1 = 0 ; | |
15869 | char *kwnames[] = { | |
15870 | (char *) "self",(char *) "rect", NULL | |
15871 | }; | |
15872 | ||
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15876 | if (obj1) { |
2f4c0a16 RD |
15877 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, |
15878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15879 | } |
15880 | { | |
15881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15882 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15883 | ||
15884 | wxPyEndAllowThreads(__tstate); | |
15885 | if (PyErr_Occurred()) SWIG_fail; | |
15886 | } | |
4f89f6a3 RD |
15887 | { |
15888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15889 | } | |
d14a1e28 RD |
15890 | return resultobj; |
15891 | fail: | |
15892 | return NULL; | |
15893 | } | |
15894 | ||
15895 | ||
15896 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15897 | PyObject *resultobj; | |
15898 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15899 | bool result; | |
15900 | PyObject * obj0 = 0 ; | |
15901 | char *kwnames[] = { | |
15902 | (char *) "self", NULL | |
15903 | }; | |
15904 | ||
15905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15908 | { |
15909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15910 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15911 | ||
15912 | wxPyEndAllowThreads(__tstate); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | } | |
4f89f6a3 RD |
15915 | { |
15916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15917 | } | |
d14a1e28 RD |
15918 | return resultobj; |
15919 | fail: | |
15920 | return NULL; | |
15921 | } | |
15922 | ||
15923 | ||
15924 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15925 | PyObject *obj; | |
15926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15927 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15928 | Py_INCREF(obj); | |
15929 | return Py_BuildValue((char *)""); | |
15930 | } | |
15931 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15932 | PyObject *resultobj; | |
15933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15934 | wxClientDC *result; | |
15935 | PyObject * obj0 = 0 ; | |
15936 | char *kwnames[] = { | |
15937 | (char *) "win", NULL | |
15938 | }; | |
15939 | ||
15940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15943 | { |
15944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15945 | result = (wxClientDC *)new wxClientDC(arg1); | |
15946 | ||
15947 | wxPyEndAllowThreads(__tstate); | |
15948 | if (PyErr_Occurred()) SWIG_fail; | |
15949 | } | |
2f4c0a16 | 15950 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
15951 | return resultobj; |
15952 | fail: | |
15953 | return NULL; | |
15954 | } | |
15955 | ||
15956 | ||
15957 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15958 | PyObject *obj; | |
15959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15960 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15961 | Py_INCREF(obj); | |
15962 | return Py_BuildValue((char *)""); | |
15963 | } | |
15964 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15965 | PyObject *resultobj; | |
15966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15967 | wxPaintDC *result; | |
15968 | PyObject * obj0 = 0 ; | |
15969 | char *kwnames[] = { | |
15970 | (char *) "win", NULL | |
15971 | }; | |
15972 | ||
15973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15976 | { |
15977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15978 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15979 | ||
15980 | wxPyEndAllowThreads(__tstate); | |
15981 | if (PyErr_Occurred()) SWIG_fail; | |
15982 | } | |
2f4c0a16 | 15983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
15984 | return resultobj; |
15985 | fail: | |
15986 | return NULL; | |
15987 | } | |
15988 | ||
15989 | ||
15990 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15991 | PyObject *obj; | |
15992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15993 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15994 | Py_INCREF(obj); | |
15995 | return Py_BuildValue((char *)""); | |
15996 | } | |
15997 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15998 | PyObject *resultobj; | |
15999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16000 | wxWindowDC *result; | |
16001 | PyObject * obj0 = 0 ; | |
16002 | char *kwnames[] = { | |
16003 | (char *) "win", NULL | |
16004 | }; | |
16005 | ||
16006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16009 | { |
16010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16011 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
16012 | ||
16013 | wxPyEndAllowThreads(__tstate); | |
16014 | if (PyErr_Occurred()) SWIG_fail; | |
16015 | } | |
2f4c0a16 | 16016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
16017 | return resultobj; |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
16024 | PyObject *obj; | |
16025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16026 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
16027 | Py_INCREF(obj); | |
16028 | return Py_BuildValue((char *)""); | |
16029 | } | |
16030 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16031 | PyObject *resultobj; | |
16032 | wxDC *arg1 = 0 ; | |
16033 | bool arg2 ; | |
16034 | wxMirrorDC *result; | |
16035 | PyObject * obj0 = 0 ; | |
16036 | PyObject * obj1 = 0 ; | |
16037 | char *kwnames[] = { | |
16038 | (char *) "dc",(char *) "mirror", NULL | |
16039 | }; | |
16040 | ||
16041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
16043 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16044 | SWIG_fail; | |
d14a1e28 | 16045 | if (arg1 == NULL) { |
2f4c0a16 RD |
16046 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16047 | SWIG_fail; | |
83448d71 | 16048 | } |
2f4c0a16 RD |
16049 | arg2 = (bool) SWIG_AsBool(obj1); |
16050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16051 | { |
16052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16053 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
16054 | ||
16055 | wxPyEndAllowThreads(__tstate); | |
16056 | if (PyErr_Occurred()) SWIG_fail; | |
16057 | } | |
2f4c0a16 | 16058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
d14a1e28 RD |
16059 | return resultobj; |
16060 | fail: | |
16061 | return NULL; | |
16062 | } | |
16063 | ||
16064 | ||
16065 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
16066 | PyObject *obj; | |
16067 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16068 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
16069 | Py_INCREF(obj); | |
16070 | return Py_BuildValue((char *)""); | |
16071 | } | |
16072 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16073 | PyObject *resultobj; | |
16074 | wxPrintData *arg1 = 0 ; | |
16075 | wxPostScriptDC *result; | |
16076 | PyObject * obj0 = 0 ; | |
16077 | char *kwnames[] = { | |
16078 | (char *) "printData", NULL | |
16079 | }; | |
16080 | ||
16081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
16083 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16084 | SWIG_fail; | |
d14a1e28 | 16085 | if (arg1 == NULL) { |
2f4c0a16 RD |
16086 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16087 | SWIG_fail; | |
d14a1e28 RD |
16088 | } |
16089 | { | |
16090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16091 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
16092 | ||
16093 | wxPyEndAllowThreads(__tstate); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
2f4c0a16 | 16096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
16097 | return resultobj; |
16098 | fail: | |
16099 | return NULL; | |
16100 | } | |
16101 | ||
16102 | ||
16103 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16104 | PyObject *resultobj; | |
16105 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16106 | wxPrintData *result; | |
16107 | PyObject * obj0 = 0 ; | |
16108 | char *kwnames[] = { | |
16109 | (char *) "self", NULL | |
16110 | }; | |
16111 | ||
16112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
16114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16115 | { |
16116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16117 | { | |
16118 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16119 | result = (wxPrintData *) &_result_ref; | |
16120 | } | |
16121 | ||
16122 | wxPyEndAllowThreads(__tstate); | |
16123 | if (PyErr_Occurred()) SWIG_fail; | |
16124 | } | |
2f4c0a16 | 16125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
16126 | return resultobj; |
16127 | fail: | |
16128 | return NULL; | |
16129 | } | |
16130 | ||
16131 | ||
16132 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16133 | PyObject *resultobj; | |
16134 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16135 | wxPrintData *arg2 = 0 ; | |
16136 | PyObject * obj0 = 0 ; | |
16137 | PyObject * obj1 = 0 ; | |
16138 | char *kwnames[] = { | |
16139 | (char *) "self",(char *) "data", NULL | |
16140 | }; | |
16141 | ||
16142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
16144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16147 | SWIG_fail; | |
d14a1e28 | 16148 | if (arg2 == NULL) { |
2f4c0a16 RD |
16149 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16150 | SWIG_fail; | |
d14a1e28 RD |
16151 | } |
16152 | { | |
16153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16154 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16155 | ||
16156 | wxPyEndAllowThreads(__tstate); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | } | |
16159 | Py_INCREF(Py_None); resultobj = Py_None; | |
16160 | return resultobj; | |
16161 | fail: | |
16162 | return NULL; | |
16163 | } | |
16164 | ||
16165 | ||
16166 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16167 | PyObject *resultobj; | |
16168 | int arg1 ; | |
8edf1c75 | 16169 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16170 | char *kwnames[] = { |
16171 | (char *) "ppi", NULL | |
16172 | }; | |
16173 | ||
8edf1c75 | 16174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
16175 | arg1 = (int) SWIG_AsInt(obj0); |
16176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16177 | { |
16178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16179 | wxPostScriptDC::SetResolution(arg1); | |
16180 | ||
16181 | wxPyEndAllowThreads(__tstate); | |
16182 | if (PyErr_Occurred()) SWIG_fail; | |
16183 | } | |
16184 | Py_INCREF(Py_None); resultobj = Py_None; | |
16185 | return resultobj; | |
16186 | fail: | |
16187 | return NULL; | |
16188 | } | |
16189 | ||
16190 | ||
16191 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16192 | PyObject *resultobj; | |
16193 | int result; | |
16194 | char *kwnames[] = { | |
16195 | NULL | |
16196 | }; | |
16197 | ||
16198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16199 | { | |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16201 | result = (int)wxPostScriptDC::GetResolution(); | |
16202 | ||
16203 | wxPyEndAllowThreads(__tstate); | |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
16205 | } | |
2f4c0a16 | 16206 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16207 | return resultobj; |
16208 | fail: | |
16209 | return NULL; | |
16210 | } | |
16211 | ||
16212 | ||
16213 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
16214 | PyObject *obj; | |
16215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16216 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16217 | Py_INCREF(obj); | |
16218 | return Py_BuildValue((char *)""); | |
16219 | } | |
16220 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16221 | PyObject *resultobj; | |
16222 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16223 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16224 | wxMetaFile *result; | |
423f194a | 16225 | bool temp1 = False ; |
d14a1e28 RD |
16226 | PyObject * obj0 = 0 ; |
16227 | char *kwnames[] = { | |
16228 | (char *) "filename", NULL | |
16229 | }; | |
16230 | ||
16231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16232 | if (obj0) { | |
16233 | { | |
16234 | arg1 = wxString_in_helper(obj0); | |
16235 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16236 | temp1 = True; |
d14a1e28 RD |
16237 | } |
16238 | } | |
16239 | { | |
16240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16241 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16242 | ||
16243 | wxPyEndAllowThreads(__tstate); | |
16244 | if (PyErr_Occurred()) SWIG_fail; | |
16245 | } | |
2f4c0a16 | 16246 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); |
d14a1e28 RD |
16247 | { |
16248 | if (temp1) | |
16249 | delete arg1; | |
16250 | } | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | { | |
16254 | if (temp1) | |
16255 | delete arg1; | |
16256 | } | |
16257 | return NULL; | |
16258 | } | |
16259 | ||
16260 | ||
16261 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16262 | PyObject *resultobj; | |
16263 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16264 | PyObject * obj0 = 0 ; | |
16265 | char *kwnames[] = { | |
16266 | (char *) "self", NULL | |
16267 | }; | |
16268 | ||
16269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, |
16271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16272 | { |
16273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16274 | delete arg1; | |
16275 | ||
16276 | wxPyEndAllowThreads(__tstate); | |
16277 | if (PyErr_Occurred()) SWIG_fail; | |
16278 | } | |
16279 | Py_INCREF(Py_None); resultobj = Py_None; | |
16280 | return resultobj; | |
16281 | fail: | |
16282 | return NULL; | |
16283 | } | |
16284 | ||
16285 | ||
16286 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16287 | PyObject *resultobj; | |
16288 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16289 | bool result; | |
16290 | PyObject * obj0 = 0 ; | |
16291 | char *kwnames[] = { | |
16292 | (char *) "self", NULL | |
16293 | }; | |
16294 | ||
16295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, |
16297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16298 | { |
16299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16300 | result = (bool)(arg1)->Ok(); | |
16301 | ||
16302 | wxPyEndAllowThreads(__tstate); | |
16303 | if (PyErr_Occurred()) SWIG_fail; | |
16304 | } | |
4f89f6a3 RD |
16305 | { |
16306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16307 | } | |
d14a1e28 RD |
16308 | return resultobj; |
16309 | fail: | |
16310 | return NULL; | |
16311 | } | |
16312 | ||
16313 | ||
16314 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16315 | PyObject *resultobj; | |
16316 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16317 | int arg2 = (int) 0 ; | |
16318 | int arg3 = (int) 0 ; | |
16319 | bool result; | |
16320 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
16321 | PyObject * obj1 = 0 ; |
16322 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16323 | char *kwnames[] = { |
16324 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16325 | }; | |
16326 | ||
8edf1c75 | 16327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, |
16329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 16330 | if (obj1) { |
2f4c0a16 RD |
16331 | arg2 = (int) SWIG_AsInt(obj1); |
16332 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16333 | } |
16334 | if (obj2) { | |
2f4c0a16 RD |
16335 | arg3 = (int) SWIG_AsInt(obj2); |
16336 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16337 | } |
d14a1e28 RD |
16338 | { |
16339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16340 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
16341 | ||
16342 | wxPyEndAllowThreads(__tstate); | |
16343 | if (PyErr_Occurred()) SWIG_fail; | |
16344 | } | |
4f89f6a3 RD |
16345 | { |
16346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16347 | } | |
d14a1e28 RD |
16348 | return resultobj; |
16349 | fail: | |
16350 | return NULL; | |
16351 | } | |
16352 | ||
16353 | ||
16354 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16355 | PyObject *resultobj; | |
16356 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16357 | wxSize result; | |
16358 | PyObject * obj0 = 0 ; | |
16359 | char *kwnames[] = { | |
16360 | (char *) "self", NULL | |
16361 | }; | |
16362 | ||
16363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, |
16365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16366 | { |
16367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16368 | result = (arg1)->GetSize(); | |
16369 | ||
16370 | wxPyEndAllowThreads(__tstate); | |
16371 | if (PyErr_Occurred()) SWIG_fail; | |
16372 | } | |
16373 | { | |
16374 | wxSize * resultptr; | |
16375 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 16376 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16377 | } |
16378 | return resultobj; | |
16379 | fail: | |
16380 | return NULL; | |
16381 | } | |
16382 | ||
16383 | ||
16384 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16385 | PyObject *resultobj; | |
16386 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16387 | int result; | |
16388 | PyObject * obj0 = 0 ; | |
16389 | char *kwnames[] = { | |
16390 | (char *) "self", NULL | |
16391 | }; | |
16392 | ||
16393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, |
16395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16396 | { |
16397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16398 | result = (int)(arg1)->GetWidth(); | |
16399 | ||
16400 | wxPyEndAllowThreads(__tstate); | |
16401 | if (PyErr_Occurred()) SWIG_fail; | |
16402 | } | |
2f4c0a16 | 16403 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16404 | return resultobj; |
16405 | fail: | |
16406 | return NULL; | |
16407 | } | |
16408 | ||
16409 | ||
16410 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16411 | PyObject *resultobj; | |
16412 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16413 | int result; | |
16414 | PyObject * obj0 = 0 ; | |
16415 | char *kwnames[] = { | |
16416 | (char *) "self", NULL | |
16417 | }; | |
16418 | ||
16419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, |
16421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16422 | { |
16423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16424 | result = (int)(arg1)->GetHeight(); | |
16425 | ||
16426 | wxPyEndAllowThreads(__tstate); | |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
2f4c0a16 | 16429 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16430 | return resultobj; |
16431 | fail: | |
16432 | return NULL; | |
16433 | } | |
16434 | ||
16435 | ||
16436 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16437 | PyObject *resultobj; | |
16438 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16439 | wxString *result; | |
16440 | PyObject * obj0 = 0 ; | |
16441 | char *kwnames[] = { | |
16442 | (char *) "self", NULL | |
16443 | }; | |
16444 | ||
16445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, |
16447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16448 | { |
16449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16450 | { | |
16451 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
16452 | result = (wxString *) &_result_ref; | |
16453 | } | |
16454 | ||
16455 | wxPyEndAllowThreads(__tstate); | |
16456 | if (PyErr_Occurred()) SWIG_fail; | |
16457 | } | |
f0983263 RD |
16458 | { |
16459 | #if wxUSE_UNICODE | |
16460 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16461 | #else | |
16462 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16463 | #endif | |
16464 | } | |
d14a1e28 RD |
16465 | return resultobj; |
16466 | fail: | |
16467 | return NULL; | |
16468 | } | |
16469 | ||
16470 | ||
16471 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
16472 | PyObject *obj; | |
16473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16474 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16475 | Py_INCREF(obj); | |
16476 | return Py_BuildValue((char *)""); | |
16477 | } | |
16478 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16479 | PyObject *resultobj; | |
16480 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16481 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16482 | int arg2 = (int) 0 ; | |
16483 | int arg3 = (int) 0 ; | |
16484 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16485 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16486 | wxMetaFileDC *result; | |
423f194a RD |
16487 | bool temp1 = False ; |
16488 | bool temp4 = False ; | |
d14a1e28 | 16489 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
16490 | PyObject * obj1 = 0 ; |
16491 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
16492 | PyObject * obj3 = 0 ; |
16493 | char *kwnames[] = { | |
16494 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16495 | }; | |
16496 | ||
8edf1c75 | 16497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
16498 | if (obj0) { |
16499 | { | |
16500 | arg1 = wxString_in_helper(obj0); | |
16501 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 16502 | temp1 = True; |
d14a1e28 RD |
16503 | } |
16504 | } | |
8edf1c75 | 16505 | if (obj1) { |
2f4c0a16 RD |
16506 | arg2 = (int) SWIG_AsInt(obj1); |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16508 | } |
16509 | if (obj2) { | |
2f4c0a16 RD |
16510 | arg3 = (int) SWIG_AsInt(obj2); |
16511 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16512 | } |
d14a1e28 RD |
16513 | if (obj3) { |
16514 | { | |
16515 | arg4 = wxString_in_helper(obj3); | |
16516 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16517 | temp4 = True; |
d14a1e28 RD |
16518 | } |
16519 | } | |
16520 | { | |
16521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16522 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16523 | ||
16524 | wxPyEndAllowThreads(__tstate); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
16526 | } | |
2f4c0a16 | 16527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); |
d14a1e28 RD |
16528 | { |
16529 | if (temp1) | |
16530 | delete arg1; | |
16531 | } | |
16532 | { | |
16533 | if (temp4) | |
16534 | delete arg4; | |
16535 | } | |
16536 | return resultobj; | |
16537 | fail: | |
16538 | { | |
16539 | if (temp1) | |
16540 | delete arg1; | |
16541 | } | |
16542 | { | |
16543 | if (temp4) | |
16544 | delete arg4; | |
16545 | } | |
16546 | return NULL; | |
16547 | } | |
16548 | ||
16549 | ||
16550 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16551 | PyObject *resultobj; | |
16552 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
16553 | wxMetaFile *result; | |
16554 | PyObject * obj0 = 0 ; | |
16555 | char *kwnames[] = { | |
16556 | (char *) "self", NULL | |
16557 | }; | |
16558 | ||
16559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, |
16561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16562 | { |
16563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16564 | result = (wxMetaFile *)(arg1)->Close(); | |
16565 | ||
16566 | wxPyEndAllowThreads(__tstate); | |
16567 | if (PyErr_Occurred()) SWIG_fail; | |
16568 | } | |
2f4c0a16 | 16569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); |
d14a1e28 RD |
16570 | return resultobj; |
16571 | fail: | |
16572 | return NULL; | |
16573 | } | |
16574 | ||
16575 | ||
16576 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
16577 | PyObject *obj; | |
16578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16579 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16580 | Py_INCREF(obj); | |
16581 | return Py_BuildValue((char *)""); | |
16582 | } | |
16583 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16584 | PyObject *resultobj; | |
16585 | wxPrintData *arg1 = 0 ; | |
16586 | wxPrinterDC *result; | |
16587 | PyObject * obj0 = 0 ; | |
16588 | char *kwnames[] = { | |
16589 | (char *) "printData", NULL | |
16590 | }; | |
16591 | ||
16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
16594 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16595 | SWIG_fail; | |
d14a1e28 | 16596 | if (arg1 == NULL) { |
2f4c0a16 RD |
16597 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16598 | SWIG_fail; | |
d14a1e28 RD |
16599 | } |
16600 | { | |
16601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16602 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16603 | ||
16604 | wxPyEndAllowThreads(__tstate); | |
16605 | if (PyErr_Occurred()) SWIG_fail; | |
16606 | } | |
2f4c0a16 | 16607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); |
d14a1e28 RD |
16608 | return resultobj; |
16609 | fail: | |
16610 | return NULL; | |
16611 | } | |
16612 | ||
16613 | ||
16614 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
16615 | PyObject *obj; | |
16616 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16617 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16618 | Py_INCREF(obj); | |
16619 | return Py_BuildValue((char *)""); | |
16620 | } | |
16621 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16622 | PyObject *resultobj; | |
16623 | int arg1 ; | |
16624 | int arg2 ; | |
423f194a | 16625 | int arg3 = (int) True ; |
d14a1e28 RD |
16626 | int arg4 = (int) 1 ; |
16627 | wxImageList *result; | |
8edf1c75 RD |
16628 | PyObject * obj0 = 0 ; |
16629 | PyObject * obj1 = 0 ; | |
16630 | PyObject * obj2 = 0 ; | |
16631 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
16632 | char *kwnames[] = { |
16633 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16634 | }; | |
16635 | ||
8edf1c75 | 16636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
16637 | arg1 = (int) SWIG_AsInt(obj0); |
16638 | if (PyErr_Occurred()) SWIG_fail; | |
16639 | arg2 = (int) SWIG_AsInt(obj1); | |
16640 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16641 | if (obj2) { |
2f4c0a16 RD |
16642 | arg3 = (int) SWIG_AsInt(obj2); |
16643 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16644 | } |
16645 | if (obj3) { | |
2f4c0a16 RD |
16646 | arg4 = (int) SWIG_AsInt(obj3); |
16647 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16648 | } |
d14a1e28 RD |
16649 | { |
16650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16651 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16652 | ||
16653 | wxPyEndAllowThreads(__tstate); | |
16654 | if (PyErr_Occurred()) SWIG_fail; | |
16655 | } | |
16656 | { | |
16657 | resultobj = wxPyMake_wxObject(result); | |
16658 | } | |
16659 | return resultobj; | |
16660 | fail: | |
16661 | return NULL; | |
16662 | } | |
16663 | ||
16664 | ||
16665 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16666 | PyObject *resultobj; | |
16667 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16668 | PyObject * obj0 = 0 ; | |
16669 | char *kwnames[] = { | |
16670 | (char *) "self", NULL | |
16671 | }; | |
16672 | ||
16673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16676 | { |
16677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16678 | delete arg1; | |
16679 | ||
16680 | wxPyEndAllowThreads(__tstate); | |
16681 | if (PyErr_Occurred()) SWIG_fail; | |
16682 | } | |
16683 | Py_INCREF(Py_None); resultobj = Py_None; | |
16684 | return resultobj; | |
16685 | fail: | |
16686 | return NULL; | |
16687 | } | |
16688 | ||
16689 | ||
16690 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16691 | PyObject *resultobj; | |
16692 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16693 | wxBitmap *arg2 = 0 ; | |
16694 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16695 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16696 | int result; | |
16697 | PyObject * obj0 = 0 ; | |
16698 | PyObject * obj1 = 0 ; | |
16699 | PyObject * obj2 = 0 ; | |
16700 | char *kwnames[] = { | |
16701 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16702 | }; | |
16703 | ||
16704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16707 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16708 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16709 | SWIG_fail; | |
d14a1e28 | 16710 | if (arg2 == NULL) { |
2f4c0a16 RD |
16711 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16712 | SWIG_fail; | |
d14a1e28 RD |
16713 | } |
16714 | if (obj2) { | |
2f4c0a16 RD |
16715 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
16716 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16717 | SWIG_fail; | |
d14a1e28 | 16718 | if (arg3 == NULL) { |
2f4c0a16 RD |
16719 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16720 | SWIG_fail; | |
d14a1e28 RD |
16721 | } |
16722 | } | |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16726 | ||
16727 | wxPyEndAllowThreads(__tstate); | |
16728 | if (PyErr_Occurred()) SWIG_fail; | |
16729 | } | |
2f4c0a16 | 16730 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16731 | return resultobj; |
16732 | fail: | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16738 | PyObject *resultobj; | |
16739 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16740 | wxBitmap *arg2 = 0 ; | |
16741 | wxColour *arg3 = 0 ; | |
16742 | int result; | |
16743 | wxColour temp3 ; | |
16744 | PyObject * obj0 = 0 ; | |
16745 | PyObject * obj1 = 0 ; | |
16746 | PyObject * obj2 = 0 ; | |
16747 | char *kwnames[] = { | |
16748 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16749 | }; | |
16750 | ||
16751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16756 | SWIG_fail; | |
d14a1e28 | 16757 | if (arg2 == NULL) { |
2f4c0a16 RD |
16758 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16759 | SWIG_fail; | |
d14a1e28 RD |
16760 | } |
16761 | { | |
16762 | arg3 = &temp3; | |
16763 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16764 | } | |
16765 | { | |
16766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16767 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16768 | ||
16769 | wxPyEndAllowThreads(__tstate); | |
16770 | if (PyErr_Occurred()) SWIG_fail; | |
16771 | } | |
2f4c0a16 | 16772 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16773 | return resultobj; |
16774 | fail: | |
16775 | return NULL; | |
16776 | } | |
16777 | ||
16778 | ||
16779 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16780 | PyObject *resultobj; | |
16781 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16782 | wxIcon *arg2 = 0 ; | |
16783 | int result; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | PyObject * obj1 = 0 ; | |
16786 | char *kwnames[] = { | |
16787 | (char *) "self",(char *) "icon", NULL | |
16788 | }; | |
16789 | ||
16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16794 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16795 | SWIG_fail; | |
d14a1e28 | 16796 | if (arg2 == NULL) { |
2f4c0a16 RD |
16797 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16798 | SWIG_fail; | |
d14a1e28 RD |
16799 | } |
16800 | { | |
16801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16802 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16803 | ||
16804 | wxPyEndAllowThreads(__tstate); | |
16805 | if (PyErr_Occurred()) SWIG_fail; | |
16806 | } | |
2f4c0a16 | 16807 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16808 | return resultobj; |
16809 | fail: | |
16810 | return NULL; | |
16811 | } | |
16812 | ||
16813 | ||
16814 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16815 | PyObject *resultobj; | |
16816 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16817 | int arg2 ; | |
16818 | wxBitmap *arg3 = 0 ; | |
16819 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
16820 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
16821 | bool result; | |
16822 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16823 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16824 | PyObject * obj2 = 0 ; |
16825 | PyObject * obj3 = 0 ; | |
16826 | char *kwnames[] = { | |
16827 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
16828 | }; | |
16829 | ||
8edf1c75 | 16830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
16831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16833 | arg2 = (int) SWIG_AsInt(obj1); | |
16834 | if (PyErr_Occurred()) SWIG_fail; | |
16835 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16836 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16837 | SWIG_fail; | |
d14a1e28 | 16838 | if (arg3 == NULL) { |
2f4c0a16 RD |
16839 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16840 | SWIG_fail; | |
d14a1e28 RD |
16841 | } |
16842 | if (obj3) { | |
2f4c0a16 RD |
16843 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16844 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16845 | SWIG_fail; | |
d14a1e28 | 16846 | if (arg4 == NULL) { |
2f4c0a16 RD |
16847 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16848 | SWIG_fail; | |
d14a1e28 RD |
16849 | } |
16850 | } | |
16851 | { | |
16852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16853 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
16854 | ||
16855 | wxPyEndAllowThreads(__tstate); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
16857 | } | |
4f89f6a3 RD |
16858 | { |
16859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16860 | } | |
d14a1e28 RD |
16861 | return resultobj; |
16862 | fail: | |
16863 | return NULL; | |
16864 | } | |
16865 | ||
16866 | ||
16867 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16868 | PyObject *resultobj; | |
16869 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16870 | int arg2 ; | |
16871 | wxDC *arg3 = 0 ; | |
16872 | int arg4 ; | |
16873 | int arg5 ; | |
16874 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 16875 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
16876 | bool result; |
16877 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16878 | PyObject * obj1 = 0 ; |
d14a1e28 | 16879 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
16880 | PyObject * obj3 = 0 ; |
16881 | PyObject * obj4 = 0 ; | |
16882 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
16883 | PyObject * obj6 = 0 ; |
16884 | char *kwnames[] = { | |
16885 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16886 | }; | |
16887 | ||
8edf1c75 | 16888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
16889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16891 | arg2 = (int) SWIG_AsInt(obj1); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
16894 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16895 | SWIG_fail; | |
d14a1e28 | 16896 | if (arg3 == NULL) { |
2f4c0a16 RD |
16897 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16898 | SWIG_fail; | |
8edf1c75 | 16899 | } |
2f4c0a16 RD |
16900 | arg4 = (int) SWIG_AsInt(obj3); |
16901 | if (PyErr_Occurred()) SWIG_fail; | |
16902 | arg5 = (int) SWIG_AsInt(obj4); | |
16903 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16904 | if (obj5) { |
2f4c0a16 RD |
16905 | arg6 = (int) SWIG_AsInt(obj5); |
16906 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16907 | } |
d14a1e28 | 16908 | if (obj6) { |
2f4c0a16 RD |
16909 | arg7 = (bool const) SWIG_AsBool(obj6); |
16910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16911 | } |
16912 | { | |
16913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16914 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16915 | ||
16916 | wxPyEndAllowThreads(__tstate); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | } | |
4f89f6a3 RD |
16919 | { |
16920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16921 | } | |
d14a1e28 RD |
16922 | return resultobj; |
16923 | fail: | |
16924 | return NULL; | |
16925 | } | |
16926 | ||
16927 | ||
16928 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16929 | PyObject *resultobj; | |
16930 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16931 | int result; | |
16932 | PyObject * obj0 = 0 ; | |
16933 | char *kwnames[] = { | |
16934 | (char *) "self", NULL | |
16935 | }; | |
16936 | ||
16937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16940 | { |
16941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16942 | result = (int)(arg1)->GetImageCount(); | |
16943 | ||
16944 | wxPyEndAllowThreads(__tstate); | |
16945 | if (PyErr_Occurred()) SWIG_fail; | |
16946 | } | |
2f4c0a16 | 16947 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16948 | return resultobj; |
16949 | fail: | |
16950 | return NULL; | |
16951 | } | |
16952 | ||
16953 | ||
16954 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16955 | PyObject *resultobj; | |
16956 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16957 | int arg2 ; | |
16958 | bool result; | |
16959 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16961 | char *kwnames[] = { |
16962 | (char *) "self",(char *) "index", NULL | |
16963 | }; | |
16964 | ||
8edf1c75 | 16965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16968 | arg2 = (int) SWIG_AsInt(obj1); | |
16969 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16970 | { |
16971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16972 | result = (bool)(arg1)->Remove(arg2); | |
16973 | ||
16974 | wxPyEndAllowThreads(__tstate); | |
16975 | if (PyErr_Occurred()) SWIG_fail; | |
16976 | } | |
4f89f6a3 RD |
16977 | { |
16978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16979 | } | |
d14a1e28 RD |
16980 | return resultobj; |
16981 | fail: | |
16982 | return NULL; | |
16983 | } | |
16984 | ||
16985 | ||
16986 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16987 | PyObject *resultobj; | |
16988 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16989 | bool result; | |
16990 | PyObject * obj0 = 0 ; | |
16991 | char *kwnames[] = { | |
16992 | (char *) "self", NULL | |
16993 | }; | |
16994 | ||
16995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16998 | { |
16999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17000 | result = (bool)(arg1)->RemoveAll(); | |
17001 | ||
17002 | wxPyEndAllowThreads(__tstate); | |
17003 | if (PyErr_Occurred()) SWIG_fail; | |
17004 | } | |
4f89f6a3 RD |
17005 | { |
17006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17007 | } | |
d14a1e28 RD |
17008 | return resultobj; |
17009 | fail: | |
17010 | return NULL; | |
17011 | } | |
17012 | ||
17013 | ||
17014 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17015 | PyObject *resultobj; | |
17016 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17017 | int arg2 ; | |
17018 | int *arg3 = 0 ; | |
17019 | int *arg4 = 0 ; | |
17020 | int temp3 ; | |
17021 | int temp4 ; | |
17022 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17023 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17024 | char *kwnames[] = { |
17025 | (char *) "self",(char *) "index", NULL | |
17026 | }; | |
17027 | ||
17028 | arg3 = &temp3; | |
17029 | arg4 = &temp4; | |
8edf1c75 | 17030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
17032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17033 | arg2 = (int) SWIG_AsInt(obj1); | |
17034 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17035 | { |
17036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17037 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
17038 | ||
17039 | wxPyEndAllowThreads(__tstate); | |
17040 | if (PyErr_Occurred()) SWIG_fail; | |
17041 | } | |
17042 | Py_INCREF(Py_None); resultobj = Py_None; | |
17043 | { | |
17044 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17045 | resultobj = t_output_helper(resultobj,o); | |
17046 | } | |
17047 | { | |
17048 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
17049 | resultobj = t_output_helper(resultobj,o); | |
17050 | } | |
17051 | return resultobj; | |
17052 | fail: | |
17053 | return NULL; | |
17054 | } | |
17055 | ||
17056 | ||
17057 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
17058 | PyObject *obj; | |
17059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17060 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
17061 | Py_INCREF(obj); | |
17062 | return Py_BuildValue((char *)""); | |
17063 | } | |
2f4c0a16 | 17064 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { |
8edf1c75 RD |
17065 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); |
17066 | return 1; | |
17067 | } | |
17068 | ||
17069 | ||
17070 | static PyObject *_wrap_NORMAL_FONT_get() { | |
17071 | PyObject *pyobj; | |
d14a1e28 | 17072 | |
2f4c0a16 | 17073 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 17074 | return pyobj; |
d14a1e28 RD |
17075 | } |
17076 | ||
17077 | ||
2f4c0a16 | 17078 | static int _wrap_SMALL_FONT_set(PyObject *_val) { |
8edf1c75 RD |
17079 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); |
17080 | return 1; | |
d14a1e28 RD |
17081 | } |
17082 | ||
17083 | ||
8edf1c75 RD |
17084 | static PyObject *_wrap_SMALL_FONT_get() { |
17085 | PyObject *pyobj; | |
d14a1e28 | 17086 | |
2f4c0a16 | 17087 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 17088 | return pyobj; |
d14a1e28 RD |
17089 | } |
17090 | ||
17091 | ||
2f4c0a16 | 17092 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { |
8edf1c75 RD |
17093 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); |
17094 | return 1; | |
d14a1e28 RD |
17095 | } |
17096 | ||
17097 | ||
8edf1c75 RD |
17098 | static PyObject *_wrap_ITALIC_FONT_get() { |
17099 | PyObject *pyobj; | |
d14a1e28 | 17100 | |
2f4c0a16 | 17101 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 17102 | return pyobj; |
d14a1e28 RD |
17103 | } |
17104 | ||
17105 | ||
2f4c0a16 | 17106 | static int _wrap_SWISS_FONT_set(PyObject *_val) { |
8edf1c75 RD |
17107 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); |
17108 | return 1; | |
d14a1e28 RD |
17109 | } |
17110 | ||
17111 | ||
8edf1c75 RD |
17112 | static PyObject *_wrap_SWISS_FONT_get() { |
17113 | PyObject *pyobj; | |
d14a1e28 | 17114 | |
2f4c0a16 | 17115 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 17116 | return pyobj; |
d14a1e28 RD |
17117 | } |
17118 | ||
17119 | ||
2f4c0a16 | 17120 | static int _wrap_RED_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17121 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); |
17122 | return 1; | |
17123 | } | |
17124 | ||
17125 | ||
17126 | static PyObject *_wrap_RED_PEN_get() { | |
17127 | PyObject *pyobj; | |
d14a1e28 | 17128 | |
2f4c0a16 | 17129 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17130 | return pyobj; |
d14a1e28 RD |
17131 | } |
17132 | ||
17133 | ||
2f4c0a16 | 17134 | static int _wrap_CYAN_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17135 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); |
17136 | return 1; | |
d14a1e28 | 17137 | } |
8edf1c75 RD |
17138 | |
17139 | ||
17140 | static PyObject *_wrap_CYAN_PEN_get() { | |
17141 | PyObject *pyobj; | |
d14a1e28 | 17142 | |
2f4c0a16 | 17143 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17144 | return pyobj; |
d14a1e28 RD |
17145 | } |
17146 | ||
17147 | ||
2f4c0a16 | 17148 | static int _wrap_GREEN_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17149 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); |
17150 | return 1; | |
d14a1e28 RD |
17151 | } |
17152 | ||
17153 | ||
8edf1c75 RD |
17154 | static PyObject *_wrap_GREEN_PEN_get() { |
17155 | PyObject *pyobj; | |
d14a1e28 | 17156 | |
2f4c0a16 | 17157 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17158 | return pyobj; |
d14a1e28 RD |
17159 | } |
17160 | ||
17161 | ||
2f4c0a16 | 17162 | static int _wrap_BLACK_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17163 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); |
17164 | return 1; | |
d14a1e28 RD |
17165 | } |
17166 | ||
17167 | ||
8edf1c75 RD |
17168 | static PyObject *_wrap_BLACK_PEN_get() { |
17169 | PyObject *pyobj; | |
d14a1e28 | 17170 | |
2f4c0a16 | 17171 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17172 | return pyobj; |
d14a1e28 RD |
17173 | } |
17174 | ||
17175 | ||
2f4c0a16 | 17176 | static int _wrap_WHITE_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17177 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); |
17178 | return 1; | |
17179 | } | |
17180 | ||
17181 | ||
17182 | static PyObject *_wrap_WHITE_PEN_get() { | |
17183 | PyObject *pyobj; | |
d14a1e28 | 17184 | |
2f4c0a16 | 17185 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17186 | return pyobj; |
d14a1e28 RD |
17187 | } |
17188 | ||
17189 | ||
2f4c0a16 | 17190 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17191 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); |
17192 | return 1; | |
d14a1e28 | 17193 | } |
8edf1c75 RD |
17194 | |
17195 | ||
17196 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
17197 | PyObject *pyobj; | |
d14a1e28 | 17198 | |
2f4c0a16 | 17199 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17200 | return pyobj; |
d14a1e28 RD |
17201 | } |
17202 | ||
17203 | ||
2f4c0a16 | 17204 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17205 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); |
17206 | return 1; | |
17207 | } | |
17208 | ||
17209 | ||
17210 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
17211 | PyObject *pyobj; | |
d14a1e28 | 17212 | |
2f4c0a16 | 17213 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17214 | return pyobj; |
d14a1e28 RD |
17215 | } |
17216 | ||
17217 | ||
2f4c0a16 | 17218 | static int _wrap_GREY_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17219 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); |
17220 | return 1; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_GREY_PEN_get() { | |
17225 | PyObject *pyobj; | |
d14a1e28 | 17226 | |
2f4c0a16 | 17227 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17228 | return pyobj; |
d14a1e28 RD |
17229 | } |
17230 | ||
17231 | ||
2f4c0a16 | 17232 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17233 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); |
17234 | return 1; | |
17235 | } | |
17236 | ||
17237 | ||
17238 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
17239 | PyObject *pyobj; | |
d14a1e28 | 17240 | |
2f4c0a16 | 17241 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 17242 | return pyobj; |
d14a1e28 RD |
17243 | } |
17244 | ||
17245 | ||
2f4c0a16 | 17246 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { |
8edf1c75 RD |
17247 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); |
17248 | return 1; | |
d14a1e28 | 17249 | } |
8edf1c75 RD |
17250 | |
17251 | ||
17252 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
17253 | PyObject *pyobj; | |
17254 | ||
2f4c0a16 | 17255 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 RD |
17256 | return pyobj; |
17257 | } | |
17258 | ||
17259 | ||
2f4c0a16 | 17260 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17261 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); |
d14a1e28 RD |
17262 | return 1; |
17263 | } | |
17264 | ||
17265 | ||
8edf1c75 | 17266 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
17267 | PyObject *pyobj; |
17268 | ||
2f4c0a16 | 17269 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17270 | return pyobj; |
17271 | } | |
17272 | ||
17273 | ||
2f4c0a16 | 17274 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17275 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); |
d14a1e28 RD |
17276 | return 1; |
17277 | } | |
17278 | ||
17279 | ||
8edf1c75 | 17280 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
17281 | PyObject *pyobj; |
17282 | ||
2f4c0a16 | 17283 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17284 | return pyobj; |
17285 | } | |
17286 | ||
17287 | ||
2f4c0a16 | 17288 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17289 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); |
d14a1e28 RD |
17290 | return 1; |
17291 | } | |
17292 | ||
17293 | ||
8edf1c75 | 17294 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
17295 | PyObject *pyobj; |
17296 | ||
2f4c0a16 | 17297 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17298 | return pyobj; |
17299 | } | |
17300 | ||
17301 | ||
2f4c0a16 | 17302 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17303 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); |
d14a1e28 RD |
17304 | return 1; |
17305 | } | |
17306 | ||
17307 | ||
8edf1c75 | 17308 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
17309 | PyObject *pyobj; |
17310 | ||
2f4c0a16 | 17311 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17312 | return pyobj; |
17313 | } | |
17314 | ||
17315 | ||
2f4c0a16 | 17316 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17317 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); |
d14a1e28 RD |
17318 | return 1; |
17319 | } | |
17320 | ||
17321 | ||
8edf1c75 | 17322 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
17323 | PyObject *pyobj; |
17324 | ||
2f4c0a16 | 17325 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17326 | return pyobj; |
17327 | } | |
17328 | ||
17329 | ||
2f4c0a16 | 17330 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17331 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); |
d14a1e28 RD |
17332 | return 1; |
17333 | } | |
17334 | ||
17335 | ||
8edf1c75 | 17336 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
17337 | PyObject *pyobj; |
17338 | ||
2f4c0a16 | 17339 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17340 | return pyobj; |
17341 | } | |
17342 | ||
17343 | ||
2f4c0a16 | 17344 | static int _wrap_RED_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17345 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); |
d14a1e28 RD |
17346 | return 1; |
17347 | } | |
17348 | ||
17349 | ||
8edf1c75 | 17350 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
17351 | PyObject *pyobj; |
17352 | ||
2f4c0a16 | 17353 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17354 | return pyobj; |
17355 | } | |
17356 | ||
17357 | ||
2f4c0a16 | 17358 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17359 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); |
d14a1e28 RD |
17360 | return 1; |
17361 | } | |
17362 | ||
17363 | ||
8edf1c75 | 17364 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
17365 | PyObject *pyobj; |
17366 | ||
2f4c0a16 | 17367 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17368 | return pyobj; |
17369 | } | |
17370 | ||
17371 | ||
2f4c0a16 | 17372 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17373 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); |
d14a1e28 RD |
17374 | return 1; |
17375 | } | |
17376 | ||
17377 | ||
8edf1c75 | 17378 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
17379 | PyObject *pyobj; |
17380 | ||
2f4c0a16 | 17381 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17382 | return pyobj; |
17383 | } | |
17384 | ||
17385 | ||
2f4c0a16 | 17386 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { |
8edf1c75 | 17387 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); |
d14a1e28 RD |
17388 | return 1; |
17389 | } | |
17390 | ||
17391 | ||
8edf1c75 | 17392 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
17393 | PyObject *pyobj; |
17394 | ||
2f4c0a16 | 17395 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17396 | return pyobj; |
17397 | } | |
17398 | ||
17399 | ||
2f4c0a16 | 17400 | static int _wrap_BLACK_set(PyObject *_val) { |
8edf1c75 | 17401 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); |
d14a1e28 RD |
17402 | return 1; |
17403 | } | |
17404 | ||
17405 | ||
8edf1c75 | 17406 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
17407 | PyObject *pyobj; |
17408 | ||
2f4c0a16 | 17409 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17410 | return pyobj; |
17411 | } | |
17412 | ||
17413 | ||
2f4c0a16 | 17414 | static int _wrap_WHITE_set(PyObject *_val) { |
8edf1c75 | 17415 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); |
d14a1e28 RD |
17416 | return 1; |
17417 | } | |
17418 | ||
17419 | ||
8edf1c75 | 17420 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
17421 | PyObject *pyobj; |
17422 | ||
2f4c0a16 | 17423 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17424 | return pyobj; |
17425 | } | |
17426 | ||
17427 | ||
2f4c0a16 | 17428 | static int _wrap_RED_set(PyObject *_val) { |
8edf1c75 | 17429 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); |
d14a1e28 RD |
17430 | return 1; |
17431 | } | |
17432 | ||
17433 | ||
8edf1c75 | 17434 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
17435 | PyObject *pyobj; |
17436 | ||
2f4c0a16 | 17437 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17438 | return pyobj; |
17439 | } | |
17440 | ||
17441 | ||
2f4c0a16 | 17442 | static int _wrap_BLUE_set(PyObject *_val) { |
8edf1c75 | 17443 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); |
d14a1e28 RD |
17444 | return 1; |
17445 | } | |
17446 | ||
17447 | ||
8edf1c75 | 17448 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
17449 | PyObject *pyobj; |
17450 | ||
2f4c0a16 | 17451 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17452 | return pyobj; |
17453 | } | |
17454 | ||
17455 | ||
2f4c0a16 | 17456 | static int _wrap_GREEN_set(PyObject *_val) { |
8edf1c75 | 17457 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); |
d14a1e28 RD |
17458 | return 1; |
17459 | } | |
17460 | ||
17461 | ||
8edf1c75 | 17462 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
17463 | PyObject *pyobj; |
17464 | ||
2f4c0a16 | 17465 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17466 | return pyobj; |
17467 | } | |
17468 | ||
17469 | ||
2f4c0a16 | 17470 | static int _wrap_CYAN_set(PyObject *_val) { |
8edf1c75 | 17471 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); |
d14a1e28 RD |
17472 | return 1; |
17473 | } | |
17474 | ||
17475 | ||
8edf1c75 | 17476 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
17477 | PyObject *pyobj; |
17478 | ||
2f4c0a16 | 17479 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17480 | return pyobj; |
17481 | } | |
17482 | ||
17483 | ||
2f4c0a16 | 17484 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { |
8edf1c75 | 17485 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); |
d14a1e28 RD |
17486 | return 1; |
17487 | } | |
17488 | ||
17489 | ||
8edf1c75 | 17490 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
17491 | PyObject *pyobj; |
17492 | ||
2f4c0a16 | 17493 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17494 | return pyobj; |
17495 | } | |
17496 | ||
17497 | ||
2f4c0a16 | 17498 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { |
8edf1c75 | 17499 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); |
d14a1e28 RD |
17500 | return 1; |
17501 | } | |
17502 | ||
17503 | ||
8edf1c75 | 17504 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
17505 | PyObject *pyobj; |
17506 | ||
2f4c0a16 | 17507 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17508 | return pyobj; |
17509 | } | |
17510 | ||
17511 | ||
2f4c0a16 | 17512 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { |
8edf1c75 | 17513 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); |
d14a1e28 RD |
17514 | return 1; |
17515 | } | |
17516 | ||
17517 | ||
8edf1c75 | 17518 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
17519 | PyObject *pyobj; |
17520 | ||
2f4c0a16 | 17521 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17522 | return pyobj; |
17523 | } | |
17524 | ||
17525 | ||
2f4c0a16 | 17526 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { |
8edf1c75 | 17527 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); |
d14a1e28 RD |
17528 | return 1; |
17529 | } | |
17530 | ||
17531 | ||
8edf1c75 | 17532 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
17533 | PyObject *pyobj; |
17534 | ||
2f4c0a16 | 17535 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17536 | return pyobj; |
17537 | } | |
17538 | ||
17539 | ||
2f4c0a16 | 17540 | static int _wrap_NullBitmap_set(PyObject *_val) { |
8edf1c75 | 17541 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); |
d14a1e28 RD |
17542 | return 1; |
17543 | } | |
17544 | ||
17545 | ||
8edf1c75 | 17546 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
17547 | PyObject *pyobj; |
17548 | ||
2f4c0a16 | 17549 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
17550 | return pyobj; |
17551 | } | |
17552 | ||
17553 | ||
2f4c0a16 | 17554 | static int _wrap_NullIcon_set(PyObject *_val) { |
8edf1c75 | 17555 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); |
d14a1e28 RD |
17556 | return 1; |
17557 | } | |
17558 | ||
17559 | ||
8edf1c75 | 17560 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
17561 | PyObject *pyobj; |
17562 | ||
2f4c0a16 | 17563 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
17564 | return pyobj; |
17565 | } | |
17566 | ||
17567 | ||
2f4c0a16 | 17568 | static int _wrap_NullCursor_set(PyObject *_val) { |
8edf1c75 | 17569 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); |
d14a1e28 RD |
17570 | return 1; |
17571 | } | |
17572 | ||
17573 | ||
8edf1c75 | 17574 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
17575 | PyObject *pyobj; |
17576 | ||
2f4c0a16 | 17577 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
17578 | return pyobj; |
17579 | } | |
17580 | ||
17581 | ||
2f4c0a16 | 17582 | static int _wrap_NullPen_set(PyObject *_val) { |
8edf1c75 | 17583 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); |
d14a1e28 RD |
17584 | return 1; |
17585 | } | |
17586 | ||
17587 | ||
8edf1c75 | 17588 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
17589 | PyObject *pyobj; |
17590 | ||
2f4c0a16 | 17591 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
17592 | return pyobj; |
17593 | } | |
17594 | ||
17595 | ||
2f4c0a16 | 17596 | static int _wrap_NullBrush_set(PyObject *_val) { |
8edf1c75 | 17597 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); |
d14a1e28 RD |
17598 | return 1; |
17599 | } | |
17600 | ||
17601 | ||
8edf1c75 | 17602 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
17603 | PyObject *pyobj; |
17604 | ||
2f4c0a16 | 17605 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
17606 | return pyobj; |
17607 | } | |
17608 | ||
17609 | ||
2f4c0a16 | 17610 | static int _wrap_NullPalette_set(PyObject *_val) { |
8edf1c75 | 17611 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); |
d14a1e28 RD |
17612 | return 1; |
17613 | } | |
17614 | ||
17615 | ||
8edf1c75 | 17616 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
17617 | PyObject *pyobj; |
17618 | ||
2f4c0a16 | 17619 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
17620 | return pyobj; |
17621 | } | |
17622 | ||
17623 | ||
2f4c0a16 | 17624 | static int _wrap_NullFont_set(PyObject *_val) { |
8edf1c75 | 17625 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); |
d14a1e28 RD |
17626 | return 1; |
17627 | } | |
17628 | ||
17629 | ||
8edf1c75 | 17630 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
17631 | PyObject *pyobj; |
17632 | ||
2f4c0a16 | 17633 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
17634 | return pyobj; |
17635 | } | |
17636 | ||
17637 | ||
2f4c0a16 | 17638 | static int _wrap_NullColour_set(PyObject *_val) { |
8edf1c75 | 17639 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); |
d14a1e28 RD |
17640 | return 1; |
17641 | } | |
17642 | ||
17643 | ||
8edf1c75 | 17644 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
17645 | PyObject *pyobj; |
17646 | ||
2f4c0a16 | 17647 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
17648 | return pyobj; |
17649 | } | |
17650 | ||
17651 | ||
8edf1c75 RD |
17652 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
17653 | PyObject *resultobj; | |
17654 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17655 | wxPen *arg2 = (wxPen *) 0 ; | |
17656 | PyObject * obj0 = 0 ; | |
17657 | PyObject * obj1 = 0 ; | |
17658 | char *kwnames[] = { | |
17659 | (char *) "self",(char *) "pen", NULL | |
17660 | }; | |
17661 | ||
17662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17667 | { |
17668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17669 | (arg1)->AddPen(arg2); | |
17670 | ||
17671 | wxPyEndAllowThreads(__tstate); | |
17672 | if (PyErr_Occurred()) SWIG_fail; | |
17673 | } | |
17674 | Py_INCREF(Py_None); resultobj = Py_None; | |
17675 | return resultobj; | |
17676 | fail: | |
17677 | return NULL; | |
d14a1e28 RD |
17678 | } |
17679 | ||
17680 | ||
8edf1c75 RD |
17681 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
17682 | PyObject *resultobj; | |
17683 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17684 | wxColour *arg2 = 0 ; | |
17685 | int arg3 ; | |
17686 | int arg4 ; | |
17687 | wxPen *result; | |
17688 | wxColour temp2 ; | |
17689 | PyObject * obj0 = 0 ; | |
17690 | PyObject * obj1 = 0 ; | |
17691 | PyObject * obj2 = 0 ; | |
17692 | PyObject * obj3 = 0 ; | |
17693 | char *kwnames[] = { | |
17694 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17695 | }; | |
d14a1e28 | 17696 | |
8edf1c75 | 17697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
17698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17700 | { |
17701 | arg2 = &temp2; | |
17702 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17703 | } | |
2f4c0a16 RD |
17704 | arg3 = (int) SWIG_AsInt(obj2); |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | arg4 = (int) SWIG_AsInt(obj3); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17708 | { |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17711 | ||
17712 | wxPyEndAllowThreads(__tstate); | |
17713 | if (PyErr_Occurred()) SWIG_fail; | |
17714 | } | |
2f4c0a16 | 17715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
8edf1c75 RD |
17716 | return resultobj; |
17717 | fail: | |
17718 | return NULL; | |
d14a1e28 RD |
17719 | } |
17720 | ||
17721 | ||
8edf1c75 RD |
17722 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
17723 | PyObject *resultobj; | |
17724 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17725 | wxPen *arg2 = (wxPen *) 0 ; | |
17726 | PyObject * obj0 = 0 ; | |
17727 | PyObject * obj1 = 0 ; | |
17728 | char *kwnames[] = { | |
17729 | (char *) "self",(char *) "pen", NULL | |
17730 | }; | |
17731 | ||
17732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17735 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17737 | { |
17738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17739 | (arg1)->RemovePen(arg2); | |
17740 | ||
17741 | wxPyEndAllowThreads(__tstate); | |
17742 | if (PyErr_Occurred()) SWIG_fail; | |
17743 | } | |
17744 | Py_INCREF(Py_None); resultobj = Py_None; | |
17745 | return resultobj; | |
17746 | fail: | |
17747 | return NULL; | |
d14a1e28 RD |
17748 | } |
17749 | ||
17750 | ||
8edf1c75 RD |
17751 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17752 | PyObject *resultobj; | |
17753 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17754 | int result; | |
17755 | PyObject * obj0 = 0 ; | |
17756 | char *kwnames[] = { | |
17757 | (char *) "self", NULL | |
17758 | }; | |
d14a1e28 | 17759 | |
8edf1c75 | 17760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17763 | { |
17764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17765 | result = (int)(arg1)->GetCount(); | |
17766 | ||
17767 | wxPyEndAllowThreads(__tstate); | |
17768 | if (PyErr_Occurred()) SWIG_fail; | |
17769 | } | |
2f4c0a16 | 17770 | resultobj = SWIG_FromInt((int)result); |
8edf1c75 RD |
17771 | return resultobj; |
17772 | fail: | |
17773 | return NULL; | |
d14a1e28 RD |
17774 | } |
17775 | ||
17776 | ||
8edf1c75 RD |
17777 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
17778 | PyObject *obj; | |
17779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17780 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17781 | Py_INCREF(obj); | |
17782 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17783 | } |
8edf1c75 RD |
17784 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
17785 | PyObject *resultobj; | |
17786 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17787 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17788 | PyObject * obj0 = 0 ; | |
17789 | PyObject * obj1 = 0 ; | |
17790 | char *kwnames[] = { | |
17791 | (char *) "self",(char *) "brush", NULL | |
17792 | }; | |
d14a1e28 | 17793 | |
8edf1c75 | 17794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17799 | { |
17800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17801 | (arg1)->AddBrush(arg2); | |
17802 | ||
17803 | wxPyEndAllowThreads(__tstate); | |
17804 | if (PyErr_Occurred()) SWIG_fail; | |
17805 | } | |
17806 | Py_INCREF(Py_None); resultobj = Py_None; | |
17807 | return resultobj; | |
17808 | fail: | |
17809 | return NULL; | |
d14a1e28 RD |
17810 | } |
17811 | ||
17812 | ||
8edf1c75 RD |
17813 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
17814 | PyObject *resultobj; | |
17815 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17816 | wxColour *arg2 = 0 ; | |
17817 | int arg3 ; | |
17818 | wxBrush *result; | |
17819 | wxColour temp2 ; | |
17820 | PyObject * obj0 = 0 ; | |
17821 | PyObject * obj1 = 0 ; | |
17822 | PyObject * obj2 = 0 ; | |
17823 | char *kwnames[] = { | |
17824 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17825 | }; | |
17826 | ||
17827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
17828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17830 | { |
17831 | arg2 = &temp2; | |
17832 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17833 | } | |
2f4c0a16 RD |
17834 | arg3 = (int) SWIG_AsInt(obj2); |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17836 | { |
17837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17838 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17839 | ||
17840 | wxPyEndAllowThreads(__tstate); | |
17841 | if (PyErr_Occurred()) SWIG_fail; | |
17842 | } | |
2f4c0a16 | 17843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
8edf1c75 RD |
17844 | return resultobj; |
17845 | fail: | |
17846 | return NULL; | |
d14a1e28 RD |
17847 | } |
17848 | ||
17849 | ||
8edf1c75 RD |
17850 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
17851 | PyObject *resultobj; | |
17852 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17853 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17854 | PyObject * obj0 = 0 ; | |
17855 | PyObject * obj1 = 0 ; | |
17856 | char *kwnames[] = { | |
17857 | (char *) "self",(char *) "brush", NULL | |
17858 | }; | |
d14a1e28 | 17859 | |
8edf1c75 | 17860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17863 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17865 | { |
17866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17867 | (arg1)->RemoveBrush(arg2); | |
17868 | ||
17869 | wxPyEndAllowThreads(__tstate); | |
17870 | if (PyErr_Occurred()) SWIG_fail; | |
17871 | } | |
17872 | Py_INCREF(Py_None); resultobj = Py_None; | |
17873 | return resultobj; | |
17874 | fail: | |
17875 | return NULL; | |
d14a1e28 RD |
17876 | } |
17877 | ||
17878 | ||
8edf1c75 RD |
17879 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17880 | PyObject *resultobj; | |
17881 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17882 | int result; | |
17883 | PyObject * obj0 = 0 ; | |
17884 | char *kwnames[] = { | |
17885 | (char *) "self", NULL | |
17886 | }; | |
d14a1e28 | 17887 | |
8edf1c75 | 17888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17891 | { |
17892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17893 | result = (int)(arg1)->GetCount(); | |
17894 | ||
17895 | wxPyEndAllowThreads(__tstate); | |
17896 | if (PyErr_Occurred()) SWIG_fail; | |
17897 | } | |
2f4c0a16 | 17898 | resultobj = SWIG_FromInt((int)result); |
8edf1c75 RD |
17899 | return resultobj; |
17900 | fail: | |
17901 | return NULL; | |
d14a1e28 RD |
17902 | } |
17903 | ||
17904 | ||
8edf1c75 RD |
17905 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
17906 | PyObject *obj; | |
17907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17908 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17909 | Py_INCREF(obj); | |
17910 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17911 | } |
8edf1c75 RD |
17912 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
17913 | PyObject *resultobj; | |
17914 | wxColourDatabase *result; | |
17915 | char *kwnames[] = { | |
17916 | NULL | |
17917 | }; | |
d14a1e28 | 17918 | |
8edf1c75 RD |
17919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
17920 | { | |
17921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17922 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17923 | ||
17924 | wxPyEndAllowThreads(__tstate); | |
17925 | if (PyErr_Occurred()) SWIG_fail; | |
17926 | } | |
2f4c0a16 | 17927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
8edf1c75 RD |
17928 | return resultobj; |
17929 | fail: | |
17930 | return NULL; | |
d14a1e28 RD |
17931 | } |
17932 | ||
17933 | ||
8edf1c75 RD |
17934 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
17935 | PyObject *resultobj; | |
17936 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | char *kwnames[] = { | |
17939 | (char *) "self", NULL | |
17940 | }; | |
d14a1e28 | 17941 | |
8edf1c75 | 17942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17945 | { |
17946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17947 | delete arg1; | |
17948 | ||
17949 | wxPyEndAllowThreads(__tstate); | |
17950 | if (PyErr_Occurred()) SWIG_fail; | |
17951 | } | |
17952 | Py_INCREF(Py_None); resultobj = Py_None; | |
17953 | return resultobj; | |
17954 | fail: | |
17955 | return NULL; | |
d14a1e28 RD |
17956 | } |
17957 | ||
17958 | ||
8edf1c75 RD |
17959 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
17960 | PyObject *resultobj; | |
17961 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17962 | wxString *arg2 = 0 ; | |
17963 | wxColour result; | |
17964 | bool temp2 = False ; | |
17965 | PyObject * obj0 = 0 ; | |
17966 | PyObject * obj1 = 0 ; | |
17967 | char *kwnames[] = { | |
17968 | (char *) "self",(char *) "name", NULL | |
17969 | }; | |
d14a1e28 | 17970 | |
8edf1c75 | 17971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17974 | { |
17975 | arg2 = wxString_in_helper(obj1); | |
17976 | if (arg2 == NULL) SWIG_fail; | |
17977 | temp2 = True; | |
17978 | } | |
17979 | { | |
17980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17981 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17982 | ||
17983 | wxPyEndAllowThreads(__tstate); | |
17984 | if (PyErr_Occurred()) SWIG_fail; | |
17985 | } | |
17986 | { | |
17987 | wxColour * resultptr; | |
17988 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 17989 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
8edf1c75 RD |
17990 | } |
17991 | { | |
17992 | if (temp2) | |
17993 | delete arg2; | |
17994 | } | |
17995 | return resultobj; | |
17996 | fail: | |
17997 | { | |
17998 | if (temp2) | |
17999 | delete arg2; | |
18000 | } | |
18001 | return NULL; | |
d14a1e28 RD |
18002 | } |
18003 | ||
18004 | ||
8edf1c75 RD |
18005 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
18006 | PyObject *resultobj; | |
18007 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18008 | wxColour *arg2 = 0 ; | |
18009 | wxString result; | |
18010 | wxColour temp2 ; | |
18011 | PyObject * obj0 = 0 ; | |
18012 | PyObject * obj1 = 0 ; | |
18013 | char *kwnames[] = { | |
18014 | (char *) "self",(char *) "colour", NULL | |
18015 | }; | |
d14a1e28 | 18016 | |
8edf1c75 | 18017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
18019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
18020 | { |
18021 | arg2 = &temp2; | |
18022 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18023 | } | |
18024 | { | |
18025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18026 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
18027 | ||
18028 | wxPyEndAllowThreads(__tstate); | |
18029 | if (PyErr_Occurred()) SWIG_fail; | |
18030 | } | |
18031 | { | |
18032 | #if wxUSE_UNICODE | |
18033 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18034 | #else | |
18035 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18036 | #endif | |
18037 | } | |
18038 | return resultobj; | |
18039 | fail: | |
18040 | return NULL; | |
d14a1e28 RD |
18041 | } |
18042 | ||
18043 | ||
8edf1c75 RD |
18044 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
18045 | PyObject *resultobj; | |
18046 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18047 | wxString *arg2 = 0 ; | |
18048 | wxColour *arg3 = 0 ; | |
18049 | bool temp2 = False ; | |
18050 | wxColour temp3 ; | |
18051 | PyObject * obj0 = 0 ; | |
18052 | PyObject * obj1 = 0 ; | |
18053 | PyObject * obj2 = 0 ; | |
18054 | char *kwnames[] = { | |
18055 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
18056 | }; | |
18057 | ||
18058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
18059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
18060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
18061 | { |
18062 | arg2 = wxString_in_helper(obj1); | |
18063 | if (arg2 == NULL) SWIG_fail; | |
18064 | temp2 = True; | |
18065 | } | |
18066 | { | |
18067 | arg3 = &temp3; | |
18068 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18069 | } | |
18070 | { | |
18071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18072 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
18073 | ||
18074 | wxPyEndAllowThreads(__tstate); | |
18075 | if (PyErr_Occurred()) SWIG_fail; | |
18076 | } | |
18077 | Py_INCREF(Py_None); resultobj = Py_None; | |
18078 | { | |
18079 | if (temp2) | |
18080 | delete arg2; | |
18081 | } | |
18082 | return resultobj; | |
18083 | fail: | |
18084 | { | |
18085 | if (temp2) | |
18086 | delete arg2; | |
18087 | } | |
18088 | return NULL; | |
d14a1e28 RD |
18089 | } |
18090 | ||
18091 | ||
8edf1c75 RD |
18092 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
18093 | PyObject *resultobj; | |
18094 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18095 | wxString *arg2 = 0 ; | |
18096 | int arg3 ; | |
18097 | int arg4 ; | |
18098 | int arg5 ; | |
18099 | bool temp2 = False ; | |
18100 | PyObject * obj0 = 0 ; | |
18101 | PyObject * obj1 = 0 ; | |
18102 | PyObject * obj2 = 0 ; | |
18103 | PyObject * obj3 = 0 ; | |
18104 | PyObject * obj4 = 0 ; | |
18105 | char *kwnames[] = { | |
18106 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
18107 | }; | |
d14a1e28 | 18108 | |
8edf1c75 | 18109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
18110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
18111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
18112 | { |
18113 | arg2 = wxString_in_helper(obj1); | |
18114 | if (arg2 == NULL) SWIG_fail; | |
18115 | temp2 = True; | |
18116 | } | |
2f4c0a16 RD |
18117 | arg3 = (int) SWIG_AsInt(obj2); |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | arg4 = (int) SWIG_AsInt(obj3); | |
18120 | if (PyErr_Occurred()) SWIG_fail; | |
18121 | arg5 = (int) SWIG_AsInt(obj4); | |
18122 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18123 | { |
18124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18125 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18126 | ||
18127 | wxPyEndAllowThreads(__tstate); | |
18128 | if (PyErr_Occurred()) SWIG_fail; | |
18129 | } | |
18130 | Py_INCREF(Py_None); resultobj = Py_None; | |
18131 | { | |
18132 | if (temp2) | |
18133 | delete arg2; | |
18134 | } | |
18135 | return resultobj; | |
18136 | fail: | |
18137 | { | |
18138 | if (temp2) | |
18139 | delete arg2; | |
18140 | } | |
18141 | return NULL; | |
d14a1e28 RD |
18142 | } |
18143 | ||
18144 | ||
8edf1c75 RD |
18145 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
18146 | PyObject *obj; | |
18147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18148 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
18149 | Py_INCREF(obj); | |
18150 | return Py_BuildValue((char *)""); | |
d14a1e28 | 18151 | } |
8edf1c75 RD |
18152 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
18153 | PyObject *resultobj; | |
18154 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18155 | wxFont *arg2 = (wxFont *) 0 ; | |
18156 | PyObject * obj0 = 0 ; | |
18157 | PyObject * obj1 = 0 ; | |
18158 | char *kwnames[] = { | |
18159 | (char *) "self",(char *) "font", NULL | |
18160 | }; | |
d14a1e28 | 18161 | |
8edf1c75 | 18162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
18164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
18167 | { |
18168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18169 | (arg1)->AddFont(arg2); | |
18170 | ||
18171 | wxPyEndAllowThreads(__tstate); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
18174 | Py_INCREF(Py_None); resultobj = Py_None; | |
18175 | return resultobj; | |
18176 | fail: | |
18177 | return NULL; | |
d14a1e28 RD |
18178 | } |
18179 | ||
18180 | ||
8edf1c75 RD |
18181 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
18182 | PyObject *resultobj; | |
18183 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18184 | int arg2 ; | |
18185 | int arg3 ; | |
18186 | int arg4 ; | |
18187 | int arg5 ; | |
18188 | bool arg6 = (bool) False ; | |
18189 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18190 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18191 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
18192 | wxFont *result; | |
18193 | bool temp7 = False ; | |
18194 | PyObject * obj0 = 0 ; | |
18195 | PyObject * obj1 = 0 ; | |
18196 | PyObject * obj2 = 0 ; | |
18197 | PyObject * obj3 = 0 ; | |
18198 | PyObject * obj4 = 0 ; | |
18199 | PyObject * obj5 = 0 ; | |
18200 | PyObject * obj6 = 0 ; | |
18201 | PyObject * obj7 = 0 ; | |
18202 | char *kwnames[] = { | |
18203 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
18204 | }; | |
d14a1e28 | 18205 | |
8edf1c75 | 18206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
18207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
18208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18209 | arg2 = (int) SWIG_AsInt(obj1); | |
18210 | if (PyErr_Occurred()) SWIG_fail; | |
18211 | arg3 = (int) SWIG_AsInt(obj2); | |
18212 | if (PyErr_Occurred()) SWIG_fail; | |
18213 | arg4 = (int) SWIG_AsInt(obj3); | |
18214 | if (PyErr_Occurred()) SWIG_fail; | |
18215 | arg5 = (int) SWIG_AsInt(obj4); | |
18216 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18217 | if (obj5) { |
2f4c0a16 RD |
18218 | arg6 = (bool) SWIG_AsBool(obj5); |
18219 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18220 | } |
18221 | if (obj6) { | |
18222 | { | |
18223 | arg7 = wxString_in_helper(obj6); | |
18224 | if (arg7 == NULL) SWIG_fail; | |
18225 | temp7 = True; | |
18226 | } | |
18227 | } | |
18228 | if (obj7) { | |
2f4c0a16 RD |
18229 | arg8 = (wxFontEncoding) SWIG_AsInt(obj7); |
18230 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
18231 | } |
18232 | { | |
18233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18234 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
18235 | ||
18236 | wxPyEndAllowThreads(__tstate); | |
18237 | if (PyErr_Occurred()) SWIG_fail; | |
18238 | } | |
2f4c0a16 | 18239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
8edf1c75 RD |
18240 | { |
18241 | if (temp7) | |
18242 | delete arg7; | |
18243 | } | |
18244 | return resultobj; | |
18245 | fail: | |
18246 | { | |
18247 | if (temp7) | |
18248 | delete arg7; | |
18249 | } | |
18250 | return NULL; | |
d14a1e28 RD |
18251 | } |
18252 | ||
18253 | ||
8edf1c75 RD |
18254 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
18255 | PyObject *resultobj; | |
18256 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18257 | wxFont *arg2 = (wxFont *) 0 ; | |
18258 | PyObject * obj0 = 0 ; | |
18259 | PyObject * obj1 = 0 ; | |
18260 | char *kwnames[] = { | |
18261 | (char *) "self",(char *) "font", NULL | |
18262 | }; | |
d14a1e28 | 18263 | |
8edf1c75 | 18264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
18266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
18269 | { |
18270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18271 | (arg1)->RemoveFont(arg2); | |
18272 | ||
18273 | wxPyEndAllowThreads(__tstate); | |
18274 | if (PyErr_Occurred()) SWIG_fail; | |
18275 | } | |
18276 | Py_INCREF(Py_None); resultobj = Py_None; | |
18277 | return resultobj; | |
18278 | fail: | |
18279 | return NULL; | |
d14a1e28 RD |
18280 | } |
18281 | ||
18282 | ||
8edf1c75 RD |
18283 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
18284 | PyObject *resultobj; | |
18285 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18286 | int result; | |
18287 | PyObject * obj0 = 0 ; | |
18288 | char *kwnames[] = { | |
18289 | (char *) "self", NULL | |
18290 | }; | |
d14a1e28 | 18291 | |
8edf1c75 | 18292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
18294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
18295 | { |
18296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18297 | result = (int)(arg1)->GetCount(); | |
18298 | ||
18299 | wxPyEndAllowThreads(__tstate); | |
18300 | if (PyErr_Occurred()) SWIG_fail; | |
18301 | } | |
2f4c0a16 | 18302 | resultobj = SWIG_FromInt((int)result); |
8edf1c75 RD |
18303 | return resultobj; |
18304 | fail: | |
18305 | return NULL; | |
d14a1e28 RD |
18306 | } |
18307 | ||
18308 | ||
8edf1c75 RD |
18309 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
18310 | PyObject *obj; | |
18311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18312 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
18313 | Py_INCREF(obj); | |
18314 | return Py_BuildValue((char *)""); | |
18315 | } | |
2f4c0a16 | 18316 | static int _wrap_TheFontList_set(PyObject *_val) { |
d14a1e28 RD |
18317 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
18318 | return 1; | |
18319 | } | |
18320 | ||
18321 | ||
18322 | static PyObject *_wrap_TheFontList_get() { | |
18323 | PyObject *pyobj; | |
18324 | ||
2f4c0a16 | 18325 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
18326 | return pyobj; |
18327 | } | |
18328 | ||
18329 | ||
2f4c0a16 | 18330 | static int _wrap_ThePenList_set(PyObject *_val) { |
d14a1e28 RD |
18331 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
18332 | return 1; | |
18333 | } | |
18334 | ||
18335 | ||
18336 | static PyObject *_wrap_ThePenList_get() { | |
18337 | PyObject *pyobj; | |
18338 | ||
2f4c0a16 | 18339 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
18340 | return pyobj; |
18341 | } | |
18342 | ||
18343 | ||
2f4c0a16 | 18344 | static int _wrap_TheBrushList_set(PyObject *_val) { |
d14a1e28 RD |
18345 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
18346 | return 1; | |
18347 | } | |
18348 | ||
18349 | ||
18350 | static PyObject *_wrap_TheBrushList_get() { | |
18351 | PyObject *pyobj; | |
18352 | ||
2f4c0a16 | 18353 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
18354 | return pyobj; |
18355 | } | |
18356 | ||
18357 | ||
2f4c0a16 | 18358 | static int _wrap_TheColourDatabase_set(PyObject *_val) { |
d14a1e28 RD |
18359 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
18360 | return 1; | |
18361 | } | |
18362 | ||
18363 | ||
18364 | static PyObject *_wrap_TheColourDatabase_get() { | |
18365 | PyObject *pyobj; | |
18366 | ||
2f4c0a16 | 18367 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
18368 | return pyobj; |
18369 | } | |
18370 | ||
18371 | ||
423f194a | 18372 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18373 | PyObject *resultobj; |
423f194a | 18374 | wxEffects *result; |
d14a1e28 | 18375 | char *kwnames[] = { |
423f194a | 18376 | NULL |
d14a1e28 RD |
18377 | }; |
18378 | ||
423f194a | 18379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
18380 | { |
18381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18382 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
18383 | |
18384 | wxPyEndAllowThreads(__tstate); | |
18385 | if (PyErr_Occurred()) SWIG_fail; | |
18386 | } | |
2f4c0a16 | 18387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
18388 | return resultobj; |
18389 | fail: | |
18390 | return NULL; | |
18391 | } | |
18392 | ||
18393 | ||
423f194a | 18394 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18395 | PyObject *resultobj; |
423f194a RD |
18396 | wxEffects *arg1 = (wxEffects *) 0 ; |
18397 | wxColour result; | |
d14a1e28 | 18398 | PyObject * obj0 = 0 ; |
d14a1e28 | 18399 | char *kwnames[] = { |
423f194a | 18400 | (char *) "self", NULL |
d14a1e28 RD |
18401 | }; |
18402 | ||
423f194a | 18403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18406 | { |
18407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18408 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
18409 | |
18410 | wxPyEndAllowThreads(__tstate); | |
18411 | if (PyErr_Occurred()) SWIG_fail; | |
18412 | } | |
423f194a RD |
18413 | { |
18414 | wxColour * resultptr; | |
18415 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18416 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
423f194a | 18417 | } |
d14a1e28 RD |
18418 | return resultobj; |
18419 | fail: | |
18420 | return NULL; | |
18421 | } | |
18422 | ||
18423 | ||
423f194a | 18424 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18425 | PyObject *resultobj; |
423f194a RD |
18426 | wxEffects *arg1 = (wxEffects *) 0 ; |
18427 | wxColour result; | |
d14a1e28 | 18428 | PyObject * obj0 = 0 ; |
d14a1e28 | 18429 | char *kwnames[] = { |
423f194a | 18430 | (char *) "self", NULL |
d14a1e28 RD |
18431 | }; |
18432 | ||
423f194a | 18433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18436 | { |
18437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18438 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
18439 | |
18440 | wxPyEndAllowThreads(__tstate); | |
18441 | if (PyErr_Occurred()) SWIG_fail; | |
18442 | } | |
d14a1e28 | 18443 | { |
423f194a RD |
18444 | wxColour * resultptr; |
18445 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18446 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18447 | } |
18448 | return resultobj; | |
18449 | fail: | |
d14a1e28 RD |
18450 | return NULL; |
18451 | } | |
18452 | ||
18453 | ||
423f194a | 18454 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18455 | PyObject *resultobj; |
423f194a RD |
18456 | wxEffects *arg1 = (wxEffects *) 0 ; |
18457 | wxColour result; | |
d14a1e28 | 18458 | PyObject * obj0 = 0 ; |
d14a1e28 | 18459 | char *kwnames[] = { |
423f194a | 18460 | (char *) "self", NULL |
d14a1e28 RD |
18461 | }; |
18462 | ||
423f194a | 18463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
18464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18466 | { |
18467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 18468 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
18469 | |
18470 | wxPyEndAllowThreads(__tstate); | |
18471 | if (PyErr_Occurred()) SWIG_fail; | |
18472 | } | |
423f194a RD |
18473 | { |
18474 | wxColour * resultptr; | |
18475 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
423f194a | 18477 | } |
d14a1e28 RD |
18478 | return resultobj; |
18479 | fail: | |
18480 | return NULL; | |
18481 | } | |
18482 | ||
18483 | ||
423f194a | 18484 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 18485 | PyObject *resultobj; |
423f194a RD |
18486 | wxEffects *arg1 = (wxEffects *) 0 ; |
18487 | wxColour result; | |
d14a1e28 RD |
18488 | PyObject * obj0 = 0 ; |
18489 | char *kwnames[] = { | |
18490 | (char *) "self", NULL | |
18491 | }; | |
18492 | ||
18493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18496 | { |
18497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18498 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18499 | ||
18500 | wxPyEndAllowThreads(__tstate); | |
18501 | if (PyErr_Occurred()) SWIG_fail; | |
18502 | } | |
18503 | { | |
18504 | wxColour * resultptr; | |
18505 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18507 | } |
18508 | return resultobj; | |
18509 | fail: | |
18510 | return NULL; | |
18511 | } | |
18512 | ||
18513 | ||
18514 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18515 | PyObject *resultobj; | |
18516 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18517 | wxColour result; | |
18518 | PyObject * obj0 = 0 ; | |
18519 | char *kwnames[] = { | |
18520 | (char *) "self", NULL | |
18521 | }; | |
18522 | ||
18523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18526 | { |
18527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18528 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18529 | ||
18530 | wxPyEndAllowThreads(__tstate); | |
18531 | if (PyErr_Occurred()) SWIG_fail; | |
18532 | } | |
18533 | { | |
18534 | wxColour * resultptr; | |
18535 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18536 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18537 | } |
18538 | return resultobj; | |
18539 | fail: | |
18540 | return NULL; | |
18541 | } | |
18542 | ||
18543 | ||
18544 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18545 | PyObject *resultobj; | |
18546 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18547 | wxColour *arg2 = 0 ; | |
18548 | wxColour temp2 ; | |
18549 | PyObject * obj0 = 0 ; | |
18550 | PyObject * obj1 = 0 ; | |
18551 | char *kwnames[] = { | |
18552 | (char *) "self",(char *) "c", NULL | |
18553 | }; | |
18554 | ||
18555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18558 | { |
18559 | arg2 = &temp2; | |
18560 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18561 | } | |
18562 | { | |
18563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18564 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18565 | ||
18566 | wxPyEndAllowThreads(__tstate); | |
18567 | if (PyErr_Occurred()) SWIG_fail; | |
18568 | } | |
18569 | Py_INCREF(Py_None); resultobj = Py_None; | |
18570 | return resultobj; | |
18571 | fail: | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
18576 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18577 | PyObject *resultobj; | |
18578 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18579 | wxColour *arg2 = 0 ; | |
18580 | wxColour temp2 ; | |
18581 | PyObject * obj0 = 0 ; | |
18582 | PyObject * obj1 = 0 ; | |
18583 | char *kwnames[] = { | |
18584 | (char *) "self",(char *) "c", NULL | |
18585 | }; | |
18586 | ||
18587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18590 | { |
18591 | arg2 = &temp2; | |
18592 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18593 | } | |
18594 | { | |
18595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18596 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18597 | ||
18598 | wxPyEndAllowThreads(__tstate); | |
18599 | if (PyErr_Occurred()) SWIG_fail; | |
18600 | } | |
18601 | Py_INCREF(Py_None); resultobj = Py_None; | |
18602 | return resultobj; | |
18603 | fail: | |
18604 | return NULL; | |
18605 | } | |
18606 | ||
18607 | ||
18608 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18609 | PyObject *resultobj; | |
18610 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18611 | wxColour *arg2 = 0 ; | |
18612 | wxColour temp2 ; | |
18613 | PyObject * obj0 = 0 ; | |
18614 | PyObject * obj1 = 0 ; | |
18615 | char *kwnames[] = { | |
18616 | (char *) "self",(char *) "c", NULL | |
18617 | }; | |
18618 | ||
18619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18622 | { |
18623 | arg2 = &temp2; | |
18624 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18625 | } | |
18626 | { | |
18627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18628 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18629 | ||
18630 | wxPyEndAllowThreads(__tstate); | |
18631 | if (PyErr_Occurred()) SWIG_fail; | |
18632 | } | |
18633 | Py_INCREF(Py_None); resultobj = Py_None; | |
18634 | return resultobj; | |
18635 | fail: | |
18636 | return NULL; | |
18637 | } | |
18638 | ||
18639 | ||
18640 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18641 | PyObject *resultobj; | |
18642 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18643 | wxColour *arg2 = 0 ; | |
18644 | wxColour temp2 ; | |
18645 | PyObject * obj0 = 0 ; | |
18646 | PyObject * obj1 = 0 ; | |
18647 | char *kwnames[] = { | |
18648 | (char *) "self",(char *) "c", NULL | |
18649 | }; | |
18650 | ||
18651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18654 | { |
18655 | arg2 = &temp2; | |
18656 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18657 | } | |
18658 | { | |
18659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18660 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18661 | ||
18662 | wxPyEndAllowThreads(__tstate); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | } | |
18665 | Py_INCREF(Py_None); resultobj = Py_None; | |
18666 | return resultobj; | |
18667 | fail: | |
18668 | return NULL; | |
18669 | } | |
18670 | ||
18671 | ||
18672 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18673 | PyObject *resultobj; | |
18674 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18675 | wxColour *arg2 = 0 ; | |
18676 | wxColour temp2 ; | |
18677 | PyObject * obj0 = 0 ; | |
18678 | PyObject * obj1 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "self",(char *) "c", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18686 | { |
18687 | arg2 = &temp2; | |
18688 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18689 | } | |
18690 | { | |
18691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18692 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18693 | ||
18694 | wxPyEndAllowThreads(__tstate); | |
18695 | if (PyErr_Occurred()) SWIG_fail; | |
18696 | } | |
18697 | Py_INCREF(Py_None); resultobj = Py_None; | |
18698 | return resultobj; | |
18699 | fail: | |
18700 | return NULL; | |
18701 | } | |
18702 | ||
18703 | ||
18704 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18705 | PyObject *resultobj; | |
18706 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18707 | wxColour *arg2 = 0 ; | |
18708 | wxColour *arg3 = 0 ; | |
18709 | wxColour *arg4 = 0 ; | |
18710 | wxColour *arg5 = 0 ; | |
18711 | wxColour *arg6 = 0 ; | |
18712 | wxColour temp2 ; | |
18713 | wxColour temp3 ; | |
18714 | wxColour temp4 ; | |
18715 | wxColour temp5 ; | |
18716 | wxColour temp6 ; | |
18717 | PyObject * obj0 = 0 ; | |
18718 | PyObject * obj1 = 0 ; | |
18719 | PyObject * obj2 = 0 ; | |
18720 | PyObject * obj3 = 0 ; | |
18721 | PyObject * obj4 = 0 ; | |
18722 | PyObject * obj5 = 0 ; | |
18723 | char *kwnames[] = { | |
18724 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18725 | }; | |
18726 | ||
18727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
2f4c0a16 RD |
18728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18730 | { |
18731 | arg2 = &temp2; | |
18732 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18733 | } | |
18734 | { | |
18735 | arg3 = &temp3; | |
18736 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18737 | } | |
18738 | { | |
18739 | arg4 = &temp4; | |
18740 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18741 | } | |
18742 | { | |
18743 | arg5 = &temp5; | |
18744 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18745 | } | |
18746 | { | |
18747 | arg6 = &temp6; | |
18748 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18749 | } | |
18750 | { | |
18751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18752 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18753 | ||
18754 | wxPyEndAllowThreads(__tstate); | |
18755 | if (PyErr_Occurred()) SWIG_fail; | |
18756 | } | |
18757 | Py_INCREF(Py_None); resultobj = Py_None; | |
18758 | return resultobj; | |
18759 | fail: | |
18760 | return NULL; | |
18761 | } | |
18762 | ||
18763 | ||
18764 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18765 | PyObject *resultobj; | |
18766 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18767 | wxDC *arg2 = 0 ; | |
18768 | wxRect *arg3 = 0 ; | |
18769 | int arg4 = (int) 1 ; | |
18770 | wxRect temp3 ; | |
18771 | PyObject * obj0 = 0 ; | |
18772 | PyObject * obj1 = 0 ; | |
18773 | PyObject * obj2 = 0 ; | |
8edf1c75 | 18774 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
18775 | char *kwnames[] = { |
18776 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18777 | }; | |
18778 | ||
8edf1c75 | 18779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
18780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18783 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18784 | SWIG_fail; | |
d14a1e28 | 18785 | if (arg2 == NULL) { |
2f4c0a16 RD |
18786 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18787 | SWIG_fail; | |
d14a1e28 RD |
18788 | } |
18789 | { | |
18790 | arg3 = &temp3; | |
18791 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18792 | } | |
8edf1c75 | 18793 | if (obj3) { |
2f4c0a16 RD |
18794 | arg4 = (int) SWIG_AsInt(obj3); |
18795 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 18796 | } |
d14a1e28 RD |
18797 | { |
18798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18799 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18800 | ||
18801 | wxPyEndAllowThreads(__tstate); | |
18802 | if (PyErr_Occurred()) SWIG_fail; | |
18803 | } | |
18804 | Py_INCREF(Py_None); resultobj = Py_None; | |
18805 | return resultobj; | |
18806 | fail: | |
18807 | return NULL; | |
18808 | } | |
18809 | ||
18810 | ||
18811 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18812 | PyObject *resultobj; | |
18813 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18814 | wxRect *arg2 = 0 ; | |
18815 | wxDC *arg3 = 0 ; | |
18816 | wxBitmap *arg4 = 0 ; | |
18817 | bool result; | |
18818 | wxRect temp2 ; | |
18819 | PyObject * obj0 = 0 ; | |
18820 | PyObject * obj1 = 0 ; | |
18821 | PyObject * obj2 = 0 ; | |
18822 | PyObject * obj3 = 0 ; | |
18823 | char *kwnames[] = { | |
18824 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18825 | }; | |
18826 | ||
18827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
18828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18830 | { |
18831 | arg2 = &temp2; | |
18832 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18833 | } | |
2f4c0a16 RD |
18834 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, |
18835 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18836 | SWIG_fail; | |
d14a1e28 | 18837 | if (arg3 == NULL) { |
2f4c0a16 RD |
18838 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18839 | SWIG_fail; | |
d14a1e28 | 18840 | } |
2f4c0a16 RD |
18841 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
18842 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18843 | SWIG_fail; | |
d14a1e28 | 18844 | if (arg4 == NULL) { |
2f4c0a16 RD |
18845 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18846 | SWIG_fail; | |
d14a1e28 RD |
18847 | } |
18848 | { | |
18849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18850 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18851 | ||
18852 | wxPyEndAllowThreads(__tstate); | |
18853 | if (PyErr_Occurred()) SWIG_fail; | |
18854 | } | |
4f89f6a3 RD |
18855 | { |
18856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18857 | } | |
d14a1e28 RD |
18858 | return resultobj; |
18859 | fail: | |
18860 | return NULL; | |
18861 | } | |
18862 | ||
18863 | ||
18864 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
18865 | PyObject *obj; | |
18866 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18867 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18868 | Py_INCREF(obj); | |
18869 | return Py_BuildValue((char *)""); | |
18870 | } | |
18871 | static PyMethodDef SwigMethods[] = { | |
18872 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18873 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18874 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18875 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18876 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
18877 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
18878 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18879 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, |
18880 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
328fcd84 | 18881 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18882 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, |
18883 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
18884 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
18885 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18886 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 18887 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
328fcd84 RD |
18888 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, |
18889 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18890 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
18891 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18892 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
328fcd84 | 18893 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18894 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, |
18895 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18896 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18897 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18898 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
18899 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18900 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
18901 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18902 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18903 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
18904 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18905 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18906 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18907 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18908 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18909 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
18910 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18911 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18912 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18913 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18914 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
18915 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 18916 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
328fcd84 | 18917 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, |
9fd4be55 | 18918 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18919 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
18920 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18921 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
18922 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
18923 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS }, | |
18924 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
18925 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS }, | |
18926 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, | |
18927 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
18928 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18929 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18930 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18931 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18932 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18933 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18934 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18935 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
18936 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
18937 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
18938 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18939 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18940 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
18941 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18942 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
18943 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
18944 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18945 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18946 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18947 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18948 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18949 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18950 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
18951 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
18952 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
18953 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
18954 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18955 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
18956 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18957 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18958 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18959 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18960 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18961 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
18962 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
18963 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 RD |
18964 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, |
18965 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18966 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, |
18967 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18968 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, |
18969 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18970 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18971 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
18972 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
18973 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18974 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18975 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18976 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18977 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
18978 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18979 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18980 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18981 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18982 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18983 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18984 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18985 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
18986 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18987 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
18988 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18989 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18990 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18991 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18992 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18993 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18994 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18995 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
18996 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18997 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18998 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18999 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
19000 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
19001 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
19002 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
19003 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
19004 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
19005 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
19006 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
19007 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
19008 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
19009 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19010 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19011 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19012 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19013 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19014 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19015 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19016 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19017 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
19018 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
19019 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
19020 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19021 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
19022 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
19023 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
19024 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
19025 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
19026 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
19027 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
19028 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
19029 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
19030 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
19031 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
19032 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
19033 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
19034 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
19035 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
19036 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
19037 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
19038 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
19039 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
19040 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
19041 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
19042 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
19043 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19044 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19045 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
19046 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
19047 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
19048 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
19049 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
19050 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
19051 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19052 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
19053 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19054 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
19055 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
19056 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
19057 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
19058 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
19059 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
19060 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19061 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19062 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
19063 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
19064 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19065 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19066 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19067 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19068 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19069 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19070 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19071 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19072 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19073 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19074 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19075 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19076 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19077 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19078 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
19079 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
19080 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
19081 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
19082 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
19083 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
19084 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
19085 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
19086 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
19087 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
19088 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
19089 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
19090 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
19091 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
19092 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
19093 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19094 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19095 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
19096 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
19097 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
19098 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
19099 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19100 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
19101 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19102 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
19103 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
19104 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
19105 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
19106 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
19107 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19108 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
19109 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
19110 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
19111 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
19112 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
19113 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
19114 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
19115 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
19116 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
19117 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19118 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
19119 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
19120 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19121 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19122 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19123 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19124 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19125 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19126 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19127 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19128 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
19129 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
19130 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
19131 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19132 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19133 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19134 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19135 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19136 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19137 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19138 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19139 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
19140 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
19141 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
19142 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
19143 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
19144 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
19145 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
19146 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19147 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19148 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
19149 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
19150 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
19151 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
19152 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
19153 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
19154 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
19155 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
19156 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
19157 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
19158 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
19159 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
19160 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
19161 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
19162 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
19163 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
19164 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
19165 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
19166 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
19167 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
19168 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19169 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19170 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
19171 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
19172 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
19173 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19174 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
19175 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
19176 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
19177 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
19178 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
19179 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
19180 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
19181 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
19182 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19183 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
19184 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
19185 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
19186 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
19187 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
19188 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
19189 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
19190 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
19191 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
19192 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
19193 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
19194 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
19195 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
19196 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
19197 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
19198 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
19199 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS }, | |
19200 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
19201 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS }, | |
19202 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
19203 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS }, | |
19204 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
19205 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS }, | |
19206 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
19207 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS }, | |
19208 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
19209 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS }, | |
19210 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, | |
19211 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS }, | |
19212 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
19213 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS }, | |
19214 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
19215 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
19216 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
19217 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
19218 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS }, | |
19219 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
19220 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
19221 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS }, | |
19222 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
19223 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS }, | |
19224 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
19225 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
19226 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS }, | |
19227 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, | |
19228 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS }, | |
19229 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19230 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS }, | |
19231 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
19232 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS }, | |
19233 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
19234 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS }, | |
19235 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
19236 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
19237 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
19238 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
19239 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
19240 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
19241 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
19242 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
19243 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
19244 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
19245 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
19246 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
19247 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
19248 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
19249 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
19250 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
19251 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
f0983263 | 19252 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
19253 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
19254 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
19255 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
19256 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
19257 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
19258 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
19259 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
19260 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
19261 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19262 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19263 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 19264 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 19265 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 19266 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 19267 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 19268 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
19269 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
19270 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
19271 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
19272 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
19273 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
19274 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
19275 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
19276 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
19277 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19278 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19279 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19280 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
19281 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19282 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
19283 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
19284 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
19285 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
19286 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
19287 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
19288 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
19289 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
19290 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
19291 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
19292 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
19293 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
19294 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
19295 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
19296 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 19297 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 19298 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 19299 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 19300 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 19301 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
19302 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
19303 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
19304 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
19305 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
19306 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
19307 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
19308 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
19309 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
19310 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
19311 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
19312 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
19313 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
19314 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
19315 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
19316 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
19317 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
19318 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
19319 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
19320 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
19321 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
19322 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
19323 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
19324 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
19325 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
db914595 RD |
19326 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
19327 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
328fcd84 | 19328 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
19329 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
19330 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
328fcd84 | 19331 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
19332 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
19333 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
19334 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
19335 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19336 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19337 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
19338 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
19339 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
19340 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
19341 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
19342 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
19343 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
19344 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
19345 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
19346 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
19347 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19348 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19349 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19350 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19351 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
19352 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19353 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19354 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19355 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
19356 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19357 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19358 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19359 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19360 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
19361 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
19362 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
19363 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
19364 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
19365 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
19366 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19367 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19368 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
19369 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
19370 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
19371 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
19372 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
19373 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
19374 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
19375 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
19376 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19377 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
19378 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
19379 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
19380 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
19381 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19382 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
19383 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
19384 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
19385 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
19386 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19387 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
19388 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19389 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19390 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
19391 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
19392 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
19393 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
19394 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
19395 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
19396 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
19397 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
19398 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19399 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
19400 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
19401 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19402 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19403 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19404 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19405 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19406 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19407 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19408 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19409 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19410 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19411 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
19412 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
19413 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19414 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
19415 | { NULL, NULL } | |
19416 | }; | |
19417 | ||
19418 | ||
19419 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19420 | ||
423f194a RD |
19421 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
19422 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19423 | } | |
19424 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19425 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19426 | } | |
19427 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19428 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19429 | } | |
d14a1e28 RD |
19430 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
19431 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19432 | } | |
19433 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19434 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19435 | } | |
d14a1e28 RD |
19436 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
19437 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19438 | } | |
19439 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19440 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19441 | } | |
19442 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19443 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19444 | } | |
19445 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19446 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19447 | } | |
19448 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19449 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19450 | } | |
19451 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19452 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19453 | } | |
19454 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19455 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19456 | } | |
19457 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19458 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19459 | } | |
19460 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19461 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19462 | } | |
19463 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19464 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19465 | } | |
19466 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19467 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19468 | } | |
19469 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19470 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19471 | } | |
19472 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19473 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19474 | } | |
19475 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19476 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19477 | } | |
19478 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19479 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19480 | } | |
19481 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19482 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19483 | } | |
19484 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19485 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19486 | } | |
19487 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19488 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19489 | } | |
19490 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19491 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19492 | } | |
19493 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19494 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19495 | } | |
19496 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19497 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19498 | } | |
19499 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19500 | return (void *)((wxObject *) ((wxDC *) x)); | |
19501 | } | |
19502 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19503 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19504 | } | |
19505 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19506 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19507 | } | |
19508 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19509 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19510 | } | |
19511 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19512 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19513 | } | |
19514 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19515 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19516 | } | |
19517 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19518 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19519 | } | |
19520 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19521 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19522 | } | |
19523 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19524 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19525 | } | |
19526 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19527 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19528 | } | |
19529 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19530 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19531 | } | |
19532 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19533 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19534 | } | |
19535 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19536 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19537 | } | |
19538 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19539 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19540 | } | |
19541 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19542 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19543 | } | |
19544 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19545 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19546 | } | |
19547 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19548 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19549 | } | |
19550 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19551 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19552 | } | |
19553 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19554 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19555 | } | |
19556 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19557 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19558 | } | |
19559 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19560 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19561 | } | |
19562 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19563 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19564 | } | |
19565 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19566 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19567 | } | |
19568 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19569 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19570 | } | |
19571 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19572 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19573 | } | |
19574 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19575 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19576 | } | |
19577 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19578 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19579 | } | |
19580 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19581 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19582 | } | |
19583 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19584 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19585 | } | |
19586 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19587 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19588 | } | |
19589 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19590 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19591 | } | |
19592 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19593 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19594 | } | |
19595 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19596 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19597 | } | |
19598 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19599 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19600 | } | |
19601 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19602 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19603 | } | |
19604 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19605 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19606 | } | |
19607 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19608 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19609 | } | |
19610 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19611 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19612 | } | |
19613 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19614 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19615 | } | |
19616 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19617 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19618 | } | |
19619 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19620 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19621 | } | |
19622 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19623 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19624 | } | |
19625 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19626 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19627 | } | |
19628 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19629 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19630 | } | |
19631 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19632 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19633 | } | |
41f1cec7 RD |
19634 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
19635 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19636 | } | |
d14a1e28 RD |
19637 | static void *_p_wxImageTo_p_wxObject(void *x) { |
19638 | return (void *)((wxObject *) ((wxImage *) x)); | |
19639 | } | |
19640 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19641 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19642 | } | |
d14a1e28 RD |
19643 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
19644 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19645 | } | |
19646 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19647 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19648 | } | |
19649 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19650 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19651 | } | |
19652 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19653 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19654 | } | |
19655 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19656 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19657 | } | |
19658 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19659 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19660 | } | |
19661 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19662 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19663 | } | |
19664 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19665 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19666 | } | |
19667 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19668 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19669 | } | |
19670 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19671 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19672 | } | |
19673 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19674 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19675 | } | |
19676 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19677 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19678 | } | |
19679 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19680 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19681 | } | |
19682 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19683 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19684 | } | |
19685 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
19686 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
19687 | } | |
19688 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
19689 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19690 | } | |
19691 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19692 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19693 | } | |
19694 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19695 | return (void *)((wxObject *) ((wxMask *) x)); | |
19696 | } | |
19697 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19698 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19699 | } | |
19700 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19701 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19702 | } | |
19703 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19704 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19705 | } | |
19706 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19707 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19708 | } | |
19709 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19710 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19711 | } | |
19712 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19713 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19714 | } | |
19715 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19716 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19717 | } | |
19718 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19719 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19720 | } | |
19721 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19722 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19723 | } | |
19724 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19725 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19726 | } | |
19727 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19728 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19729 | } | |
19730 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19731 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19732 | } | |
19733 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19734 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19735 | } | |
19736 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19737 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19738 | } | |
19739 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19740 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19741 | } | |
19742 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19743 | return (void *)((wxObject *) ((wxColour *) x)); | |
19744 | } | |
19745 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19746 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19747 | } | |
19748 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19749 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19750 | } | |
19751 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19752 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19753 | } | |
423f194a RD |
19754 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
19755 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 19756 | } |
423f194a RD |
19757 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
19758 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 19759 | } |
423f194a RD |
19760 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
19761 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19762 | } | |
19763 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19764 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19765 | } | |
19766 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19767 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19768 | } | |
19769 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19770 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19771 | } | |
19772 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19773 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19774 | } | |
19775 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19776 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19777 | } | |
19778 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19779 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19780 | } | |
19781 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19782 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19783 | } | |
19784 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19785 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19786 | } | |
19787 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19788 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19789 | } | |
19790 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
19791 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
19792 | } | |
19793 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
19794 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19795 | } | |
19796 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19797 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19798 | } | |
19799 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19800 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19801 | } | |
19802 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19803 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19804 | } | |
19805 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19806 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19807 | } | |
19808 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19809 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19810 | } | |
19811 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19812 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19813 | } | |
19814 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19815 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19816 | } | |
19817 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
19818 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 | 19819 | } |
2f4c0a16 RD |
19820 | 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}}; |
19821 | 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}}; | |
19822 | 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}}; | |
19823 | 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}}; | |
19824 | 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}}; | |
19825 | 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}}; | |
19826 | 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}}; | |
19827 | 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}}; | |
19828 | 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}}; | |
19829 | 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}}; | |
19830 | 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}}; | |
19831 | 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}}; | |
19832 | 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}}; | |
19833 | 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}}; | |
19834 | 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}}; | |
19835 | 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}}; | |
19836 | 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}}; | |
19837 | 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}}; | |
19838 | 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}}; | |
19839 | 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}}; | |
19840 | 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}}; | |
19841 | 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}}; | |
19842 | 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_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_wxPCXHandler", _p_wxPCXHandlerTo_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_wxPyPen", _p_wxPyPenTo_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}}; | |
19843 | 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}}; | |
19844 | 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}}; | |
19845 | 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}}; | |
19846 | 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}}; | |
19847 | 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}}; | |
19848 | 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}}; | |
19849 | 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}}; | |
19850 | 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}}; | |
19851 | 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}}; | |
19852 | 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}}; | |
19853 | 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}}; | |
19854 | 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}}; | |
19855 | 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}}; | |
19856 | 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_wxPyPen", _p_wxPyPenTo_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}}; | |
19857 | 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}}; | |
19858 | 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}}; | |
19859 | 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}}; | |
19860 | 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}}; | |
19861 | 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}}; | |
19862 | 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}}; | |
19863 | 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}}; | |
19864 | 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}}; | |
19865 | 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}}; | |
19866 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen, 0, 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
19867 | 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}}; | |
19868 | 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}}; | |
19869 | 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}}; | |
19870 | static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0, 0, 0, 0},{"_p_wxPyPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
19871 | 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}}; | |
19872 | 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}}; | |
19873 | 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}}; | |
19874 | 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}}; | |
19875 | static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d14a1e28 RD |
19876 | |
19877 | static swig_type_info *swig_types_initial[] = { | |
19878 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
19879 | _swigt__p_wxBrush, |
19880 | _swigt__p_wxColour, | |
d14a1e28 RD |
19881 | _swigt__p_wxDC, |
19882 | _swigt__p_wxMirrorDC, | |
19883 | _swigt__p_byte, | |
19884 | _swigt__p_wxPyFontEnumerator, | |
8edf1c75 | 19885 | _swigt__p_char, |
d14a1e28 RD |
19886 | _swigt__p_wxIconLocation, |
19887 | _swigt__p_wxImage, | |
19888 | _swigt__p_wxMetaFileDC, | |
19889 | _swigt__p_wxMask, | |
19890 | _swigt__p_wxFont, | |
19891 | _swigt__p_wxWindow, | |
19892 | _swigt__p_wxSize, | |
19893 | _swigt__p_double, | |
19894 | _swigt__p_wxMemoryDC, | |
19895 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
19896 | _swigt__p_wxEffects, |
19897 | _swigt__p_wxNativeEncodingInfo, | |
19898 | _swigt__p_wxPalette, | |
19899 | _swigt__p_wxBitmap, | |
19900 | _swigt__p_wxObject, | |
19901 | _swigt__p_wxRegionIterator, | |
19902 | _swigt__p_wxRect, | |
19903 | _swigt__p_wxString, | |
19904 | _swigt__p_wxPrinterDC, | |
19905 | _swigt__p_wxIconBundle, | |
19906 | _swigt__p_wxPoint, | |
19907 | _swigt__p_wxDash, | |
19908 | _swigt__p_wxScreenDC, | |
19909 | _swigt__p_wxCursor, | |
19910 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
19911 | _swigt__p_wxBufferedDC, |
19912 | _swigt__p_wxImageList, | |
19913 | _swigt__p_unsigned_char, | |
19914 | _swigt__p_wxGDIObject, | |
d14a1e28 | 19915 | _swigt__p_wxIcon, |
8edf1c75 | 19916 | _swigt__p_wxLocale, |
d14a1e28 RD |
19917 | _swigt__p_wxRegion, |
19918 | _swigt__p_wxLanguageInfo, | |
19919 | _swigt__p_wxConfigBase, | |
19920 | _swigt__p_wxWindowDC, | |
19921 | _swigt__p_wxPrintData, | |
19922 | _swigt__p_wxBrushList, | |
19923 | _swigt__p_wxFontList, | |
19924 | _swigt__p_wxPen, | |
19925 | _swigt__p_wxBufferedPaintDC, | |
19926 | _swigt__p_wxPaintDC, | |
19927 | _swigt__p_wxPenList, | |
d14a1e28 RD |
19928 | _swigt__p_wxPyPen, |
19929 | _swigt__p_int, | |
19930 | _swigt__p_wxMetaFile, | |
19931 | _swigt__p_wxNativeFontInfo, | |
19932 | _swigt__p_wxEncodingConverter, | |
19933 | _swigt__p_wxColourDatabase, | |
19934 | 0 | |
19935 | }; | |
19936 | ||
19937 | ||
19938 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19939 | ||
19940 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
19941 | {0}}; |
19942 | ||
19943 | #ifdef __cplusplus | |
19944 | } | |
19945 | #endif | |
19946 | ||
19947 | #ifdef __cplusplus | |
19948 | extern "C" | |
19949 | #endif | |
19950 | SWIGEXPORT(void) SWIG_init(void) { | |
19951 | static PyObject *SWIG_globals = 0; | |
19952 | static int typeinit = 0; | |
19953 | PyObject *m, *d; | |
19954 | int i; | |
19955 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19956 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19957 | d = PyModule_GetDict(m); | |
19958 | ||
19959 | if (!typeinit) { | |
19960 | for (i = 0; swig_types_initial[i]; i++) { | |
19961 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19962 | } | |
19963 | typeinit = 1; | |
19964 | } | |
19965 | SWIG_InstallConstants(d,swig_const_table); | |
19966 | ||
2f4c0a16 RD |
19967 | PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); |
19968 | PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); | |
19969 | PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); | |
19970 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
19971 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
19972 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); | |
19973 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
19974 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); | |
19975 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); | |
19976 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
19977 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); | |
19978 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
19979 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); | |
19980 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); | |
19981 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); | |
19982 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); | |
19983 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
19984 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
19985 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); | |
19986 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); | |
19987 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); | |
19988 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); | |
19989 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); | |
19990 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); | |
19991 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); | |
19992 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
19993 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19994 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
19995 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
19996 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); | |
19997 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); | |
19998 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); | |
19999 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
20000 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
20001 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
20002 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
20003 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
20004 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
20005 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
20006 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
20007 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
20008 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
20009 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
20010 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
20011 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
20012 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
20013 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
20014 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
20015 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); | |
20016 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
20017 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
20018 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); | |
20019 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); | |
20020 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); | |
20021 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); | |
20022 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); | |
20023 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); | |
20024 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); | |
20025 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); | |
20026 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); | |
20027 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); | |
20028 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); | |
20029 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); | |
20030 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); | |
20031 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); | |
20032 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); | |
20033 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); | |
20034 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); | |
20035 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); | |
20036 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
20037 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); | |
20038 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); | |
20039 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); | |
20040 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); | |
20041 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); | |
20042 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); | |
20043 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); | |
20044 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); | |
20045 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
20046 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
20047 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
20048 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); | |
20049 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
20050 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); | |
20051 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
20052 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
20053 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
20054 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
20055 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); | |
20056 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
20057 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
20058 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
20059 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
20060 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
20061 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
20062 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
20063 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); | |
20064 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); | |
20065 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
20066 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
20067 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
20068 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
20069 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
20070 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
20071 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
20072 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
20073 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
20074 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
20075 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
20076 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
20077 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
20078 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
20079 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
20080 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
20081 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
20082 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
20083 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
20084 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); | |
20085 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); | |
20086 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); | |
20087 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); | |
20088 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); | |
20089 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); | |
20090 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); | |
20091 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); | |
20092 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
20093 | |
20094 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
20095 | ||
2f4c0a16 RD |
20096 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); |
20097 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
20098 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
20099 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); | |
20100 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
20101 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
20102 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); | |
20103 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); | |
20104 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
20105 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
20106 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
20107 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
20108 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
20109 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
20110 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
20111 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
20112 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
20113 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
20114 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
20115 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
20116 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
20117 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
20118 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
20119 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
20120 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
20121 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
20122 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
20123 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); | |
20124 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); | |
20125 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
20126 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
20127 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); | |
20128 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); | |
20129 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
20130 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); | |
20131 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); | |
20132 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); | |
20133 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); | |
20134 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); | |
20135 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
20136 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); | |
20137 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
20138 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); | |
20139 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); | |
20140 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
20141 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
20142 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
20143 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
20144 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
20145 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
20146 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); | |
20147 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); | |
20148 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); | |
20149 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); | |
20150 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); | |
20151 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
20152 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); | |
20153 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
20154 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
20155 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
20156 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
20157 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
20158 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
20159 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
20160 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
20161 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
20162 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
20163 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
20164 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
20165 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
20166 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
20167 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
20168 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
20169 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
20170 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); | |
20171 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); | |
20172 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); | |
20173 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); | |
20174 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); | |
20175 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
20176 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
20177 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
20178 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
20179 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
20180 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); | |
20181 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); | |
20182 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
20183 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); | |
20184 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
20185 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
20186 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
20187 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
20188 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
20189 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); | |
20190 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
20191 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); | |
20192 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); | |
20193 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); | |
20194 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); | |
20195 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); | |
20196 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
20197 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
20198 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
20199 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
20200 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
20201 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
20202 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); | |
20203 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); | |
20204 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); | |
20205 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
20206 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); | |
20207 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); | |
20208 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); | |
20209 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
20210 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
20211 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); | |
20212 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
20213 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
20214 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
20215 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
20216 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); | |
20217 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); | |
20218 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); | |
20219 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
20220 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); | |
20221 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); | |
20222 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); | |
20223 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
20224 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
20225 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); | |
20226 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); | |
20227 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
20228 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
20229 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
20230 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); | |
20231 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); | |
20232 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); | |
20233 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); | |
20234 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
20235 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
20236 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); | |
20237 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); | |
20238 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
20239 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
20240 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
20241 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); | |
20242 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); | |
20243 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); | |
20244 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); | |
20245 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); | |
20246 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
20247 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
20248 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); | |
20249 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); | |
20250 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
20251 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
20252 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
20253 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
20254 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); | |
20255 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); | |
20256 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
20257 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
20258 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); | |
20259 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
20260 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
20261 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
20262 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); | |
20263 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); | |
20264 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); | |
20265 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); | |
20266 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); | |
20267 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); | |
20268 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); | |
20269 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
20270 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); | |
20271 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); | |
20272 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
20273 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
20274 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
20275 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
20276 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
20277 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
20278 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
20279 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
20280 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
20281 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
20282 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
20283 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
20284 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
20285 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
20286 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
20287 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
20288 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
20289 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
20290 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
20291 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
20292 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
20293 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); | |
20294 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); | |
20295 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
20296 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); | |
20297 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); | |
20298 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); | |
20299 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); | |
20300 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); | |
20301 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); | |
20302 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); | |
20303 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
20304 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); | |
20305 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); | |
20306 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); | |
20307 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); | |
20308 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); | |
20309 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); | |
20310 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
20311 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); | |
20312 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
20313 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
20314 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); | |
20315 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
20316 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
20317 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
20318 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
20319 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); | |
20320 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); | |
20321 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); | |
20322 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); | |
20323 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); | |
20324 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); | |
20325 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); | |
20326 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
20327 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
20328 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); | |
20329 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); | |
20330 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); | |
20331 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
20332 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
20333 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
20334 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
20335 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); | |
20336 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
20337 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); | |
20338 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); | |
20339 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); | |
20340 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); | |
20341 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); | |
20342 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
20343 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
20344 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
20345 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
20346 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
20347 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); | |
20348 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
20349 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
20350 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20351 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20352 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20353 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20354 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20355 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20356 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20357 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20358 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20359 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20360 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20361 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20362 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20363 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20364 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20365 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20366 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20367 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20368 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20369 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20370 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20371 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20372 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20373 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20374 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20375 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20376 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20377 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20378 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20379 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20380 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20381 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20382 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20383 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20384 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20385 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20386 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20387 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20388 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20389 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20390 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20391 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20392 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20393 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20394 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20395 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
20396 | |
20397 | // Work around a chicken/egg problem in drawlist.cpp | |
20398 | wxPyDrawList_SetAPIPtr(); | |
20399 | ||
d14a1e28 RD |
20400 | } |
20401 |