]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
2dbef272 | 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 | ||
0f774bef 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 |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 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 { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 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 *); | |
0f774bef 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) | |
2dbef272 | 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 | |
0f774bef 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 | |
cbd72d4f | 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 | } | |
38f59159 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) | |
38f59159 | 469 | { |
2f4c0a16 | 470 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); |
38f59159 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); | |
529 | wxPyBeginBlockThreads(); | |
530 | PyObject* retval = PyList_New(0); | |
531 | for (int x=0; x<count; x++) | |
532 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
533 | wxPyEndBlockThreads(); | |
534 | return retval; | |
535 | } | |
38f59159 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 | ||
2f4c0a16 RD |
557 | SWIGSTATICINLINE(short) |
558 | SWIG_AsShort(PyObject *obj) | |
8edf1c75 | 559 | { |
2f4c0a16 RD |
560 | return swig_numeric_cast(short, |
561 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
562 | "short", SHRT_MIN, SHRT_MAX)); | |
563 | } | |
564 | ||
565 | ||
566 | SWIGSTATICINLINE(int) | |
567 | SWIG_CheckShort(PyObject* obj) | |
568 | { | |
569 | SWIG_AsShort(obj); | |
570 | if (PyErr_Occurred()) { | |
571 | PyErr_Clear(); | |
572 | return 0; | |
573 | } else { | |
574 | return 1; | |
575 | } | |
8edf1c75 RD |
576 | } |
577 | ||
578 | ||
d14a1e28 RD |
579 | #include <wx/image.h> |
580 | ||
581 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
582 | char** cArray = NULL; | |
583 | int count; | |
584 | ||
585 | if (!PyList_Check(listOfStrings)) { | |
586 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
587 | return NULL; | |
588 | } | |
589 | count = PyList_Size(listOfStrings); | |
590 | cArray = new char*[count]; | |
591 | ||
592 | for(int x=0; x<count; x++) { | |
593 | // TODO: Need some validation and error checking here | |
594 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
595 | } | |
596 | return cArray; | |
597 | } | |
598 | ||
599 | ||
600 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
601 | char** cArray = NULL; | |
602 | wxBitmap* bmp; | |
603 | ||
604 | cArray = ConvertListOfStrings(listOfStrings); | |
605 | if (! cArray) | |
606 | return NULL; | |
607 | bmp = new wxBitmap(cArray); | |
608 | delete [] cArray; | |
609 | return bmp; | |
610 | } | |
611 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
612 | char* buf; | |
613 | int length; | |
614 | PyString_AsStringAndSize(bits, &buf, &length); | |
615 | return new wxBitmap(buf, width, height, depth); | |
616 | } | |
617 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
618 | wxMask *mask = new wxMask(*self, colour); | |
619 | self->SetMask(mask); | |
620 | } | |
0ffb2aa6 RD |
621 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
622 | if ( !colour.Ok() ) | |
623 | return new wxMask(bitmap, *wxBLACK); | |
624 | else | |
625 | return new wxMask(bitmap, colour); | |
626 | } | |
d14a1e28 RD |
627 | |
628 | #include <wx/iconbndl.h> | |
629 | ||
630 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
631 | wxIcon* icon = new wxIcon(); | |
632 | icon->CopyFromBitmap(bmp); | |
633 | return icon; | |
634 | } | |
635 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
636 | char** cArray = NULL; | |
637 | wxIcon* icon; | |
638 | ||
639 | cArray = ConvertListOfStrings(listOfStrings); | |
640 | if (! cArray) | |
641 | return NULL; | |
642 | icon = new wxIcon(cArray); | |
643 | delete [] cArray; | |
644 | return icon; | |
645 | } | |
646 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
647 | ||
648 | ||
649 | ||
650 | return new wxIconLocation(*filename); | |
651 | ||
652 | } | |
653 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
654 | ||
655 | ||
656 | ||
657 | // do nothing | |
658 | ||
659 | } | |
660 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
661 | ||
662 | ||
663 | ||
664 | return -1; | |
665 | ||
666 | } | |
8edf1c75 | 667 | |
2f4c0a16 RD |
668 | SWIGSTATICINLINE(int) |
669 | SWIG_CheckLong(PyObject* obj) | |
8edf1c75 | 670 | { |
2f4c0a16 RD |
671 | SWIG_AsLong(obj); |
672 | if (PyErr_Occurred()) { | |
673 | PyErr_Clear(); | |
674 | return 0; | |
675 | } else { | |
676 | return 1; | |
677 | } | |
8edf1c75 RD |
678 | } |
679 | ||
2f4c0a16 RD |
680 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ |
681 | #ifdef __WXGTK__ | |
682 | wxCHECK_MSG(False, NULL, | |
683 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); | |
684 | #else | |
685 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
686 | #endif | |
d14a1e28 RD |
687 | } |
688 | ||
689 | ||
690 | wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){ | |
cbd72d4f | 691 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
692 | return NULL; |
693 | } | |
694 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
695 | (*self) ++; | |
696 | } | |
697 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
698 | return self->operator bool(); | |
699 | } | |
700 | ||
701 | #include <wx/fontutil.h> | |
702 | #include <wx/fontmap.h> | |
703 | #include <wx/fontenum.h> | |
704 | ||
705 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
706 | return self->ToString(); | |
707 | } | |
708 | ||
709 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
710 | static wxNativeEncodingInfo info; | |
711 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
712 | return &info; | |
713 | else | |
714 | return NULL; | |
715 | } | |
716 | ||
717 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
718 | wxFontEncoding alt_enc; | |
719 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
720 | return PyInt_FromLong(alt_enc); | |
721 | else { | |
722 | Py_INCREF(Py_None); | |
723 | return Py_None; | |
724 | } | |
725 | } | |
726 | wxFont *new_wxFont(wxString const &info){ | |
727 | wxNativeFontInfo nfi; | |
728 | nfi.FromString(info); | |
729 | return new wxFont(nfi); | |
730 | } | |
731 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
732 | return wxFont::New(pointSize, family, flags, face, encoding); | |
733 | } | |
38f59159 RD |
734 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
735 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
736 | |
737 | class wxPyFontEnumerator : public wxFontEnumerator { | |
738 | public: | |
739 | wxPyFontEnumerator() {} | |
740 | ~wxPyFontEnumerator() {} | |
741 | ||
742 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
743 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
744 | ||
745 | PYPRIVATE; | |
746 | }; | |
747 | ||
748 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
749 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
750 | ||
751 | ||
752 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
753 | wxArrayString* arr = self->GetEncodings(); | |
754 | return wxArrayString2PyList_helper(*arr); | |
755 | } | |
756 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
757 | wxArrayString* arr = self->GetFacenames(); | |
758 | return wxArrayString2PyList_helper(*arr); | |
759 | } | |
760 | ||
761 | ||
762 | ||
763 | #include "wx/wxPython/pydrawxxx.h" | |
764 | ||
423f194a | 765 | wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){ |
d14a1e28 RD |
766 | wxColour col; |
767 | self->GetPixel(x, y, &col); | |
768 | return col; | |
769 | } | |
770 | wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){ | |
771 | wxColour col; | |
772 | self->GetPixel(pt, &col); | |
773 | return col; | |
774 | } | |
8edf1c75 | 775 | |
2f4c0a16 RD |
776 | SWIGSTATICINLINE(double) |
777 | SWIG_AsDouble(PyObject *obj) | |
8edf1c75 | 778 | { |
2f4c0a16 | 779 | double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : |
8edf1c75 | 780 | #if HAVE_LONG_LONG |
2f4c0a16 | 781 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); |
8edf1c75 | 782 | #else |
2f4c0a16 | 783 | ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); |
8edf1c75 RD |
784 | #endif |
785 | if (PyErr_Occurred()) { | |
786 | PyErr_Clear(); | |
787 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
788 | } | |
2f4c0a16 RD |
789 | return val; |
790 | } | |
791 | ||
792 | ||
793 | SWIGSTATICINLINE(int) | |
794 | SWIG_CheckDouble(PyObject* obj) | |
795 | { | |
796 | SWIG_AsDouble(obj); | |
797 | if (PyErr_Occurred()) { | |
798 | PyErr_Clear(); | |
799 | return 0; | |
800 | } else { | |
801 | return 1; | |
802 | } | |
8edf1c75 RD |
803 | } |
804 | ||
d14a1e28 RD |
805 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
806 | wxRect rv; | |
807 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
808 | return rv; | |
809 | } | |
810 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
811 | wxRect rect; | |
812 | self->GetClippingBox(rect); | |
813 | return rect; | |
814 | } | |
0ffb2aa6 RD |
815 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
816 | wxArrayInt widths; | |
817 | self->GetPartialTextExtents(text, widths); | |
818 | return widths; | |
819 | } | |
d14a1e28 RD |
820 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
821 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
822 | } | |
823 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
824 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
825 | } | |
826 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
827 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
828 | } | |
829 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
830 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
831 | } | |
832 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
833 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
834 | } | |
835 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
836 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
837 | } | |
838 | ||
839 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
840 | *x1 = dc->MinX(); | |
841 | *y1 = dc->MinY(); | |
842 | *x2 = dc->MaxX(); | |
843 | *y2 = dc->MaxY(); | |
844 | } | |
845 | ||
846 | ||
38f59159 | 847 | //-=-=-=-=-=-=-=-=-=-=- |
2f4c0a16 RD |
848 | |
849 | #if 1 | |
850 | // Use the standard wxBufferedDC | |
38f59159 | 851 | #include <wx/dcbuffer.h> |
38f59159 | 852 | |
2f4c0a16 | 853 | #else |
38f59159 | 854 | |
2f4c0a16 | 855 | // Or, temporarily put a set of classes here similar to the old buffered DC |
38f59159 RD |
856 | // classes until the real ones can be fixed to work "correctly" again. |
857 | ||
858 | class wxBufferedDC : public wxMemoryDC | |
859 | { | |
860 | private: | |
861 | wxDC *m_dc; | |
862 | wxBitmap m_buffer; | |
863 | ||
864 | public: | |
865 | ||
866 | wxBufferedDC() : m_dc( 0 ) {} | |
867 | ||
868 | wxBufferedDC( wxDC *dc, const wxBitmap &buffer ) | |
869 | : m_dc( dc ), m_buffer( buffer ) | |
870 | { | |
871 | SelectObject( m_buffer ); | |
872 | } | |
873 | ||
874 | wxBufferedDC( wxDC *dc, const wxSize &area ) | |
875 | : m_dc( dc ), m_buffer( area.GetWidth(), area.GetHeight() ) | |
876 | { | |
877 | SelectObject( m_buffer ); | |
878 | } | |
879 | ||
880 | ~wxBufferedDC() { | |
881 | if( m_dc != 0 ) | |
882 | UnMask(); | |
883 | } | |
884 | ||
885 | ||
886 | void Init( wxDC *dc, const wxBitmap &buffer ) { | |
887 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
888 | _T("wxBufferedDC already initialised") ); | |
889 | m_dc = dc; | |
890 | m_buffer = buffer; | |
891 | SelectObject( m_buffer ); | |
892 | } | |
893 | ||
894 | void Init( wxDC *dc, const wxSize &area ) { | |
895 | wxASSERT_MSG( m_dc == 0 && m_buffer == wxNullBitmap, | |
896 | _T("wxBufferedDC already initialised") ); | |
897 | m_dc = dc; | |
898 | m_buffer = wxBitmap( area.GetWidth(), area.GetHeight() ); | |
899 | SelectObject( m_buffer ); | |
900 | } | |
901 | ||
902 | void UnMask() { | |
903 | wxASSERT_MSG( m_dc != 0, _T("No low level DC associated with buffer (anymore)") ); | |
904 | m_dc->Blit( 0, 0, m_buffer.GetWidth(), m_buffer.GetHeight(), this, 0, 0 ); | |
905 | m_dc = 0; | |
906 | } | |
907 | }; | |
908 | ||
909 | ||
910 | class wxBufferedPaintDC : public wxBufferedDC | |
911 | { | |
912 | private: | |
913 | wxPaintDC m_paintdc; | |
914 | ||
915 | public: | |
916 | wxBufferedPaintDC( wxWindow *window, const wxBitmap &buffer = wxNullBitmap ) | |
917 | : m_paintdc( window ) | |
918 | { | |
919 | window->PrepareDC( m_paintdc ); | |
920 | ||
921 | if( buffer != wxNullBitmap ) | |
922 | Init( &m_paintdc, buffer ); | |
923 | else | |
924 | Init( &m_paintdc, window->GetClientSize() ); | |
925 | } | |
926 | ||
927 | ~wxBufferedPaintDC() { | |
928 | UnMask(); | |
929 | } | |
930 | }; | |
931 | ||
932 | #endif | |
933 | //-=-=-=-=-=-=-=-=-=-=- | |
934 | ||
935 | ||
d14a1e28 RD |
936 | #include <wx/dcps.h> |
937 | ||
938 | ||
939 | class wxMetaFile : public wxObject { | |
940 | public: | |
941 | wxMetaFile(const wxString&) | |
cbd72d4f | 942 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
943 | }; |
944 | ||
945 | class wxMetaFileDC : public wxClientDC { | |
946 | public: | |
947 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
cbd72d4f | 948 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
949 | }; |
950 | ||
951 | ||
952 | ||
953 | ||
954 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
955 | self->AddColour(name, wxColour(red, green, blue)); | |
956 | } | |
957 | ||
d14a1e28 RD |
958 | #include <wx/effects.h> |
959 | ||
960 | #ifdef __cplusplus | |
961 | extern "C" { | |
962 | #endif | |
2f4c0a16 | 963 | static PyObject *_wrap_new_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
964 | PyObject *resultobj; |
965 | wxGDIObject *result; | |
966 | char *kwnames[] = { | |
967 | NULL | |
968 | }; | |
969 | ||
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
971 | { | |
972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
973 | result = (wxGDIObject *)new wxGDIObject(); | |
974 | ||
975 | wxPyEndAllowThreads(__tstate); | |
976 | if (PyErr_Occurred()) SWIG_fail; | |
977 | } | |
2f4c0a16 | 978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
979 | return resultobj; |
980 | fail: | |
981 | return NULL; | |
982 | } | |
983 | ||
984 | ||
2f4c0a16 | 985 | static PyObject *_wrap_delete_GDIObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
986 | PyObject *resultobj; |
987 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
988 | PyObject * obj0 = 0 ; | |
989 | char *kwnames[] = { | |
990 | (char *) "self", NULL | |
991 | }; | |
992 | ||
993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
996 | { |
997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
998 | delete arg1; | |
999 | ||
1000 | wxPyEndAllowThreads(__tstate); | |
1001 | if (PyErr_Occurred()) SWIG_fail; | |
1002 | } | |
1003 | Py_INCREF(Py_None); resultobj = Py_None; | |
1004 | return resultobj; | |
1005 | fail: | |
1006 | return NULL; | |
1007 | } | |
1008 | ||
1009 | ||
2f4c0a16 | 1010 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1011 | PyObject *resultobj; |
1012 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1013 | bool result; | |
1014 | PyObject * obj0 = 0 ; | |
1015 | char *kwnames[] = { | |
1016 | (char *) "self", NULL | |
1017 | }; | |
1018 | ||
1019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1022 | { |
1023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1024 | result = (bool)(arg1)->GetVisible(); | |
1025 | ||
1026 | wxPyEndAllowThreads(__tstate); | |
1027 | if (PyErr_Occurred()) SWIG_fail; | |
1028 | } | |
02a34c4c | 1029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1030 | return resultobj; |
1031 | fail: | |
1032 | return NULL; | |
1033 | } | |
1034 | ||
1035 | ||
2f4c0a16 | 1036 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1037 | PyObject *resultobj; |
1038 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1039 | bool arg2 ; | |
1040 | PyObject * obj0 = 0 ; | |
1041 | PyObject * obj1 = 0 ; | |
1042 | char *kwnames[] = { | |
1043 | (char *) "self",(char *) "visible", NULL | |
1044 | }; | |
1045 | ||
1046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1049 | arg2 = (bool) SWIG_AsBool(obj1); | |
1050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1051 | { |
1052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1053 | (arg1)->SetVisible(arg2); | |
1054 | ||
1055 | wxPyEndAllowThreads(__tstate); | |
1056 | if (PyErr_Occurred()) SWIG_fail; | |
1057 | } | |
1058 | Py_INCREF(Py_None); resultobj = Py_None; | |
1059 | return resultobj; | |
1060 | fail: | |
1061 | return NULL; | |
1062 | } | |
1063 | ||
1064 | ||
2f4c0a16 | 1065 | static PyObject *_wrap_GDIObject_IsNull(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1066 | PyObject *resultobj; |
1067 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1068 | bool result; | |
1069 | PyObject * obj0 = 0 ; | |
1070 | char *kwnames[] = { | |
1071 | (char *) "self", NULL | |
1072 | }; | |
1073 | ||
1074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1077 | { |
1078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1079 | result = (bool)(arg1)->IsNull(); | |
1080 | ||
1081 | wxPyEndAllowThreads(__tstate); | |
1082 | if (PyErr_Occurred()) SWIG_fail; | |
1083 | } | |
02a34c4c | 1084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1085 | return resultobj; |
1086 | fail: | |
1087 | return NULL; | |
1088 | } | |
1089 | ||
1090 | ||
2f4c0a16 | 1091 | static PyObject * GDIObject_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1092 | PyObject *obj; |
1093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1094 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1095 | Py_INCREF(obj); | |
1096 | return Py_BuildValue((char *)""); | |
1097 | } | |
2f4c0a16 | 1098 | static PyObject *_wrap_new_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1099 | PyObject *resultobj; |
1100 | unsigned char arg1 = (unsigned char) 0 ; | |
1101 | unsigned char arg2 = (unsigned char) 0 ; | |
1102 | unsigned char arg3 = (unsigned char) 0 ; | |
1103 | wxColour *result; | |
1104 | PyObject * obj0 = 0 ; | |
1105 | PyObject * obj1 = 0 ; | |
1106 | PyObject * obj2 = 0 ; | |
1107 | char *kwnames[] = { | |
1108 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1109 | }; | |
1110 | ||
1111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1112 | if (obj0) { | |
2f4c0a16 RD |
1113 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
1114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1115 | } |
1116 | if (obj1) { | |
2f4c0a16 RD |
1117 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
1118 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1119 | } |
1120 | if (obj2) { | |
2f4c0a16 RD |
1121 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
1122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1123 | } |
1124 | { | |
1125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1126 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
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 | return resultobj; |
1133 | fail: | |
1134 | return NULL; | |
1135 | } | |
1136 | ||
1137 | ||
2f4c0a16 | 1138 | static PyObject *_wrap_new_NamedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1139 | PyObject *resultobj; |
1140 | wxString *arg1 = 0 ; | |
1141 | wxColour *result; | |
423f194a | 1142 | bool temp1 = False ; |
d14a1e28 RD |
1143 | PyObject * obj0 = 0 ; |
1144 | char *kwnames[] = { | |
1145 | (char *) "colorName", NULL | |
1146 | }; | |
1147 | ||
1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1149 | { | |
1150 | arg1 = wxString_in_helper(obj0); | |
1151 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 1152 | temp1 = True; |
d14a1e28 RD |
1153 | } |
1154 | { | |
1155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1156 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1157 | ||
1158 | wxPyEndAllowThreads(__tstate); | |
1159 | if (PyErr_Occurred()) SWIG_fail; | |
1160 | } | |
2f4c0a16 | 1161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1162 | { |
1163 | if (temp1) | |
1164 | delete arg1; | |
1165 | } | |
1166 | return resultobj; | |
1167 | fail: | |
1168 | { | |
1169 | if (temp1) | |
1170 | delete arg1; | |
1171 | } | |
1172 | return NULL; | |
1173 | } | |
1174 | ||
1175 | ||
2f4c0a16 | 1176 | static PyObject *_wrap_new_ColourRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1177 | PyObject *resultobj; |
1178 | unsigned long arg1 ; | |
1179 | wxColour *result; | |
1180 | PyObject * obj0 = 0 ; | |
1181 | char *kwnames[] = { | |
1182 | (char *) "colRGB", NULL | |
1183 | }; | |
1184 | ||
1185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1186 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
1187 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1188 | { |
1189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1190 | result = (wxColour *)new wxColour(arg1); | |
1191 | ||
1192 | wxPyEndAllowThreads(__tstate); | |
1193 | if (PyErr_Occurred()) SWIG_fail; | |
1194 | } | |
2f4c0a16 | 1195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1196 | return resultobj; |
1197 | fail: | |
1198 | return NULL; | |
1199 | } | |
1200 | ||
1201 | ||
2f4c0a16 | 1202 | static PyObject *_wrap_delete_Colour(PyObject *, PyObject *args, PyObject *kwargs) { |
38f59159 RD |
1203 | PyObject *resultobj; |
1204 | wxColour *arg1 = (wxColour *) 0 ; | |
1205 | PyObject * obj0 = 0 ; | |
1206 | char *kwnames[] = { | |
1207 | (char *) "self", NULL | |
1208 | }; | |
1209 | ||
1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38f59159 RD |
1213 | { |
1214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1215 | delete arg1; | |
1216 | ||
1217 | wxPyEndAllowThreads(__tstate); | |
1218 | if (PyErr_Occurred()) SWIG_fail; | |
1219 | } | |
1220 | Py_INCREF(Py_None); resultobj = Py_None; | |
1221 | return resultobj; | |
1222 | fail: | |
1223 | return NULL; | |
1224 | } | |
1225 | ||
1226 | ||
2f4c0a16 | 1227 | static PyObject *_wrap_Colour_Red(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1228 | PyObject *resultobj; |
1229 | wxColour *arg1 = (wxColour *) 0 ; | |
1230 | unsigned char result; | |
1231 | PyObject * obj0 = 0 ; | |
1232 | char *kwnames[] = { | |
1233 | (char *) "self", NULL | |
1234 | }; | |
1235 | ||
1236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1239 | { |
1240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1241 | result = (unsigned char)(arg1)->Red(); | |
1242 | ||
1243 | wxPyEndAllowThreads(__tstate); | |
1244 | if (PyErr_Occurred()) SWIG_fail; | |
1245 | } | |
2f4c0a16 | 1246 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1247 | return resultobj; |
1248 | fail: | |
1249 | return NULL; | |
1250 | } | |
1251 | ||
1252 | ||
2f4c0a16 | 1253 | static PyObject *_wrap_Colour_Green(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1254 | PyObject *resultobj; |
1255 | wxColour *arg1 = (wxColour *) 0 ; | |
1256 | unsigned char result; | |
1257 | PyObject * obj0 = 0 ; | |
1258 | char *kwnames[] = { | |
1259 | (char *) "self", NULL | |
1260 | }; | |
1261 | ||
1262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1265 | { |
1266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1267 | result = (unsigned char)(arg1)->Green(); | |
1268 | ||
1269 | wxPyEndAllowThreads(__tstate); | |
1270 | if (PyErr_Occurred()) SWIG_fail; | |
1271 | } | |
2f4c0a16 | 1272 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1273 | return resultobj; |
1274 | fail: | |
1275 | return NULL; | |
1276 | } | |
1277 | ||
1278 | ||
2f4c0a16 | 1279 | static PyObject *_wrap_Colour_Blue(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1280 | PyObject *resultobj; |
1281 | wxColour *arg1 = (wxColour *) 0 ; | |
1282 | unsigned char result; | |
1283 | PyObject * obj0 = 0 ; | |
1284 | char *kwnames[] = { | |
1285 | (char *) "self", NULL | |
1286 | }; | |
1287 | ||
1288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1291 | { |
1292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1293 | result = (unsigned char)(arg1)->Blue(); | |
1294 | ||
1295 | wxPyEndAllowThreads(__tstate); | |
1296 | if (PyErr_Occurred()) SWIG_fail; | |
1297 | } | |
2f4c0a16 | 1298 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1299 | return resultobj; |
1300 | fail: | |
1301 | return NULL; | |
1302 | } | |
1303 | ||
1304 | ||
2f4c0a16 | 1305 | static PyObject *_wrap_Colour_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1306 | PyObject *resultobj; |
1307 | wxColour *arg1 = (wxColour *) 0 ; | |
1308 | bool result; | |
1309 | PyObject * obj0 = 0 ; | |
1310 | char *kwnames[] = { | |
1311 | (char *) "self", NULL | |
1312 | }; | |
1313 | ||
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1317 | { |
1318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1319 | result = (bool)(arg1)->Ok(); | |
1320 | ||
1321 | wxPyEndAllowThreads(__tstate); | |
1322 | if (PyErr_Occurred()) SWIG_fail; | |
1323 | } | |
02a34c4c | 1324 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1325 | return resultobj; |
1326 | fail: | |
1327 | return NULL; | |
1328 | } | |
1329 | ||
1330 | ||
2f4c0a16 | 1331 | static PyObject *_wrap_Colour_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1332 | PyObject *resultobj; |
1333 | wxColour *arg1 = (wxColour *) 0 ; | |
1334 | unsigned char arg2 ; | |
1335 | unsigned char arg3 ; | |
1336 | unsigned char arg4 ; | |
1337 | PyObject * obj0 = 0 ; | |
1338 | PyObject * obj1 = 0 ; | |
1339 | PyObject * obj2 = 0 ; | |
1340 | PyObject * obj3 = 0 ; | |
1341 | char *kwnames[] = { | |
1342 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1343 | }; | |
1344 | ||
1345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
1346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1348 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
1349 | if (PyErr_Occurred()) SWIG_fail; | |
1350 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
1351 | if (PyErr_Occurred()) SWIG_fail; | |
1352 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
1353 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1354 | { |
1355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1356 | (arg1)->Set(arg2,arg3,arg4); | |
1357 | ||
1358 | wxPyEndAllowThreads(__tstate); | |
1359 | if (PyErr_Occurred()) SWIG_fail; | |
1360 | } | |
1361 | Py_INCREF(Py_None); resultobj = Py_None; | |
1362 | return resultobj; | |
1363 | fail: | |
1364 | return NULL; | |
1365 | } | |
1366 | ||
1367 | ||
2f4c0a16 | 1368 | static PyObject *_wrap_Colour_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1369 | PyObject *resultobj; |
1370 | wxColour *arg1 = (wxColour *) 0 ; | |
1371 | unsigned long arg2 ; | |
1372 | PyObject * obj0 = 0 ; | |
1373 | PyObject * obj1 = 0 ; | |
1374 | char *kwnames[] = { | |
1375 | (char *) "self",(char *) "colRGB", NULL | |
1376 | }; | |
1377 | ||
9fd4be55 | 1378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1381 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
1382 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1383 | { |
1384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1385 | (arg1)->Set(arg2); | |
1386 | ||
1387 | wxPyEndAllowThreads(__tstate); | |
1388 | if (PyErr_Occurred()) SWIG_fail; | |
1389 | } | |
1390 | Py_INCREF(Py_None); resultobj = Py_None; | |
1391 | return resultobj; | |
1392 | fail: | |
1393 | return NULL; | |
1394 | } | |
1395 | ||
1396 | ||
2f4c0a16 | 1397 | static PyObject *_wrap_Colour_SetFromName(PyObject *, PyObject *args, PyObject *kwargs) { |
38f59159 RD |
1398 | PyObject *resultobj; |
1399 | wxColour *arg1 = (wxColour *) 0 ; | |
1400 | wxString *arg2 = 0 ; | |
1401 | bool temp2 = False ; | |
1402 | PyObject * obj0 = 0 ; | |
1403 | PyObject * obj1 = 0 ; | |
1404 | char *kwnames[] = { | |
1405 | (char *) "self",(char *) "colourName", NULL | |
1406 | }; | |
1407 | ||
1408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38f59159 RD |
1411 | { |
1412 | arg2 = wxString_in_helper(obj1); | |
1413 | if (arg2 == NULL) SWIG_fail; | |
1414 | temp2 = True; | |
1415 | } | |
1416 | { | |
1417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1418 | (arg1)->InitFromName((wxString const &)*arg2); | |
1419 | ||
1420 | wxPyEndAllowThreads(__tstate); | |
1421 | if (PyErr_Occurred()) SWIG_fail; | |
1422 | } | |
1423 | Py_INCREF(Py_None); resultobj = Py_None; | |
1424 | { | |
1425 | if (temp2) | |
1426 | delete arg2; | |
1427 | } | |
1428 | return resultobj; | |
1429 | fail: | |
1430 | { | |
1431 | if (temp2) | |
1432 | delete arg2; | |
1433 | } | |
1434 | return NULL; | |
1435 | } | |
1436 | ||
1437 | ||
2f4c0a16 | 1438 | static PyObject *_wrap_Colour_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
38f59159 RD |
1439 | PyObject *resultobj; |
1440 | wxColour *arg1 = (wxColour *) 0 ; | |
1441 | long result; | |
1442 | PyObject * obj0 = 0 ; | |
1443 | char *kwnames[] = { | |
1444 | (char *) "self", NULL | |
1445 | }; | |
1446 | ||
1447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38f59159 RD |
1450 | { |
1451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1452 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1453 | ||
1454 | wxPyEndAllowThreads(__tstate); | |
1455 | if (PyErr_Occurred()) SWIG_fail; | |
1456 | } | |
2f4c0a16 | 1457 | resultobj = SWIG_FromLong((long)result); |
38f59159 RD |
1458 | return resultobj; |
1459 | fail: | |
1460 | return NULL; | |
1461 | } | |
1462 | ||
1463 | ||
2f4c0a16 | 1464 | static PyObject *_wrap_Colour___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1465 | PyObject *resultobj; |
1466 | wxColour *arg1 = (wxColour *) 0 ; | |
1467 | wxColour *arg2 = 0 ; | |
1468 | bool result; | |
1469 | wxColour temp2 ; | |
1470 | PyObject * obj0 = 0 ; | |
1471 | PyObject * obj1 = 0 ; | |
1472 | char *kwnames[] = { | |
1473 | (char *) "self",(char *) "colour", NULL | |
1474 | }; | |
1475 | ||
1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1479 | { |
1480 | arg2 = &temp2; | |
1481 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1482 | } | |
1483 | { | |
1484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1485 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1486 | ||
1487 | wxPyEndAllowThreads(__tstate); | |
1488 | if (PyErr_Occurred()) SWIG_fail; | |
1489 | } | |
02a34c4c | 1490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1491 | return resultobj; |
1492 | fail: | |
1493 | return NULL; | |
1494 | } | |
1495 | ||
1496 | ||
2f4c0a16 | 1497 | static PyObject *_wrap_Colour___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1498 | PyObject *resultobj; |
1499 | wxColour *arg1 = (wxColour *) 0 ; | |
1500 | wxColour *arg2 = 0 ; | |
1501 | bool result; | |
1502 | wxColour temp2 ; | |
1503 | PyObject * obj0 = 0 ; | |
1504 | PyObject * obj1 = 0 ; | |
1505 | char *kwnames[] = { | |
1506 | (char *) "self",(char *) "colour", NULL | |
1507 | }; | |
1508 | ||
1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1512 | { |
1513 | arg2 = &temp2; | |
1514 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1515 | } | |
1516 | { | |
1517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1518 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1519 | ||
1520 | wxPyEndAllowThreads(__tstate); | |
1521 | if (PyErr_Occurred()) SWIG_fail; | |
1522 | } | |
02a34c4c | 1523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1524 | return resultobj; |
1525 | fail: | |
1526 | return NULL; | |
1527 | } | |
1528 | ||
1529 | ||
2f4c0a16 | 1530 | static PyObject *_wrap_Colour_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
9fd4be55 RD |
1531 | PyObject *resultobj; |
1532 | wxColour *arg1 = (wxColour *) 0 ; | |
38f59159 | 1533 | PyObject *result; |
9fd4be55 | 1534 | PyObject * obj0 = 0 ; |
9fd4be55 | 1535 | char *kwnames[] = { |
38f59159 | 1536 | (char *) "self", NULL |
9fd4be55 RD |
1537 | }; |
1538 | ||
38f59159 | 1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
1542 | { |
1543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 1544 | result = (PyObject *)wxColour_Get(arg1); |
9fd4be55 RD |
1545 | |
1546 | wxPyEndAllowThreads(__tstate); | |
1547 | if (PyErr_Occurred()) SWIG_fail; | |
1548 | } | |
38f59159 | 1549 | resultobj = result; |
9fd4be55 RD |
1550 | return resultobj; |
1551 | fail: | |
9fd4be55 RD |
1552 | return NULL; |
1553 | } | |
1554 | ||
1555 | ||
2f4c0a16 | 1556 | static PyObject *_wrap_Colour_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1557 | PyObject *resultobj; |
1558 | wxColour *arg1 = (wxColour *) 0 ; | |
38f59159 | 1559 | unsigned long result; |
d14a1e28 RD |
1560 | PyObject * obj0 = 0 ; |
1561 | char *kwnames[] = { | |
1562 | (char *) "self", NULL | |
1563 | }; | |
1564 | ||
38f59159 | 1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
1566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1568 | { |
1569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 1570 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1571 | |
1572 | wxPyEndAllowThreads(__tstate); | |
1573 | if (PyErr_Occurred()) SWIG_fail; | |
1574 | } | |
2f4c0a16 | 1575 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
1576 | return resultobj; |
1577 | fail: | |
1578 | return NULL; | |
1579 | } | |
1580 | ||
1581 | ||
2f4c0a16 | 1582 | static PyObject * Colour_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1583 | PyObject *obj; |
1584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1585 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1586 | Py_INCREF(obj); | |
1587 | return Py_BuildValue((char *)""); | |
1588 | } | |
2f4c0a16 | 1589 | static PyObject *_wrap_new_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1590 | PyObject *resultobj; |
1591 | int arg1 ; | |
1592 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1593 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1594 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1595 | wxPalette *result; | |
8edf1c75 | 1596 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1597 | PyObject * obj1 = 0 ; |
1598 | PyObject * obj2 = 0 ; | |
1599 | PyObject * obj3 = 0 ; | |
1600 | char *kwnames[] = { | |
1601 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1602 | }; | |
1603 | ||
8edf1c75 | 1604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
1605 | arg1 = (int) SWIG_AsInt(obj0); |
1606 | if (PyErr_Occurred()) SWIG_fail; | |
1607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1609 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1611 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1613 | { |
1614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1615 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1616 | ||
1617 | wxPyEndAllowThreads(__tstate); | |
1618 | if (PyErr_Occurred()) SWIG_fail; | |
1619 | } | |
2f4c0a16 | 1620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
1621 | return resultobj; |
1622 | fail: | |
1623 | return NULL; | |
1624 | } | |
1625 | ||
1626 | ||
2f4c0a16 | 1627 | static PyObject *_wrap_delete_Palette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1628 | PyObject *resultobj; |
1629 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1630 | PyObject * obj0 = 0 ; | |
1631 | char *kwnames[] = { | |
1632 | (char *) "self", NULL | |
1633 | }; | |
1634 | ||
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1638 | { |
1639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1640 | delete arg1; | |
1641 | ||
1642 | wxPyEndAllowThreads(__tstate); | |
1643 | if (PyErr_Occurred()) SWIG_fail; | |
1644 | } | |
1645 | Py_INCREF(Py_None); resultobj = Py_None; | |
1646 | return resultobj; | |
1647 | fail: | |
1648 | return NULL; | |
1649 | } | |
1650 | ||
1651 | ||
2f4c0a16 | 1652 | static PyObject *_wrap_Palette_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1653 | PyObject *resultobj; |
1654 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1655 | byte arg2 ; | |
1656 | byte arg3 ; | |
1657 | byte arg4 ; | |
1658 | int result; | |
1659 | PyObject * obj0 = 0 ; | |
1660 | PyObject * obj1 = 0 ; | |
1661 | PyObject * obj2 = 0 ; | |
1662 | PyObject * obj3 = 0 ; | |
1663 | char *kwnames[] = { | |
1664 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1665 | }; | |
1666 | ||
1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
1668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1670 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
1671 | if (PyErr_Occurred()) SWIG_fail; | |
1672 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
1673 | if (PyErr_Occurred()) SWIG_fail; | |
1674 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
1675 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1676 | { |
1677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1678 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1679 | ||
1680 | wxPyEndAllowThreads(__tstate); | |
1681 | if (PyErr_Occurred()) SWIG_fail; | |
1682 | } | |
2f4c0a16 | 1683 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1684 | return resultobj; |
1685 | fail: | |
1686 | return NULL; | |
1687 | } | |
1688 | ||
1689 | ||
2f4c0a16 | 1690 | static PyObject *_wrap_Palette_GetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1691 | PyObject *resultobj; |
1692 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1693 | int arg2 ; | |
1694 | byte *arg3 = (byte *) 0 ; | |
1695 | byte *arg4 = (byte *) 0 ; | |
1696 | byte *arg5 = (byte *) 0 ; | |
1697 | bool result; | |
1698 | byte temp3 ; | |
1699 | byte temp4 ; | |
1700 | byte temp5 ; | |
1701 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1702 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1703 | char *kwnames[] = { |
1704 | (char *) "self",(char *) "pixel", NULL | |
1705 | }; | |
1706 | ||
1707 | arg3 = &temp3; | |
1708 | arg4 = &temp4; | |
1709 | arg5 = &temp5; | |
8edf1c75 | 1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
1711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1713 | arg2 = (int) SWIG_AsInt(obj1); | |
1714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1715 | { |
1716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1717 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1718 | ||
1719 | wxPyEndAllowThreads(__tstate); | |
1720 | if (PyErr_Occurred()) SWIG_fail; | |
1721 | } | |
02a34c4c | 1722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1723 | { |
1724 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1725 | resultobj = t_output_helper(resultobj,o); | |
1726 | } | |
1727 | { | |
1728 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1729 | resultobj = t_output_helper(resultobj,o); | |
1730 | } | |
1731 | { | |
1732 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1733 | resultobj = t_output_helper(resultobj,o); | |
1734 | } | |
1735 | return resultobj; | |
1736 | fail: | |
1737 | return NULL; | |
1738 | } | |
1739 | ||
1740 | ||
2f4c0a16 | 1741 | static PyObject *_wrap_Palette_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1742 | PyObject *resultobj; |
1743 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1744 | bool result; | |
1745 | PyObject * obj0 = 0 ; | |
1746 | char *kwnames[] = { | |
1747 | (char *) "self", NULL | |
1748 | }; | |
1749 | ||
1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1753 | { |
1754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1755 | result = (bool)(arg1)->Ok(); | |
1756 | ||
1757 | wxPyEndAllowThreads(__tstate); | |
1758 | if (PyErr_Occurred()) SWIG_fail; | |
1759 | } | |
02a34c4c | 1760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1761 | return resultobj; |
1762 | fail: | |
1763 | return NULL; | |
1764 | } | |
1765 | ||
1766 | ||
2f4c0a16 | 1767 | static PyObject * Palette_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
1768 | PyObject *obj; |
1769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1770 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1771 | Py_INCREF(obj); | |
1772 | return Py_BuildValue((char *)""); | |
1773 | } | |
2f4c0a16 | 1774 | static PyObject *_wrap_new_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1775 | PyObject *resultobj; |
1776 | wxColour *arg1 = 0 ; | |
1777 | int arg2 = (int) 1 ; | |
1778 | int arg3 = (int) wxSOLID ; | |
1779 | wxPen *result; | |
1780 | wxColour temp1 ; | |
1781 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1782 | PyObject * obj1 = 0 ; |
1783 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1784 | char *kwnames[] = { |
1785 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1786 | }; | |
1787 | ||
8edf1c75 | 1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1789 | { |
1790 | arg1 = &temp1; | |
1791 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1792 | } | |
8edf1c75 | 1793 | if (obj1) { |
2f4c0a16 RD |
1794 | arg2 = (int) SWIG_AsInt(obj1); |
1795 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
1796 | } |
1797 | if (obj2) { | |
2f4c0a16 RD |
1798 | arg3 = (int) SWIG_AsInt(obj2); |
1799 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1800 | } |
d14a1e28 RD |
1801 | { |
1802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1803 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1804 | ||
1805 | wxPyEndAllowThreads(__tstate); | |
1806 | if (PyErr_Occurred()) SWIG_fail; | |
1807 | } | |
2f4c0a16 | 1808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
1809 | return resultobj; |
1810 | fail: | |
1811 | return NULL; | |
1812 | } | |
1813 | ||
1814 | ||
2f4c0a16 | 1815 | static PyObject *_wrap_delete_Pen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1816 | PyObject *resultobj; |
1817 | wxPen *arg1 = (wxPen *) 0 ; | |
1818 | PyObject * obj0 = 0 ; | |
1819 | char *kwnames[] = { | |
1820 | (char *) "self", NULL | |
1821 | }; | |
1822 | ||
1823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1826 | { |
1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1828 | delete arg1; | |
1829 | ||
1830 | wxPyEndAllowThreads(__tstate); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
1832 | } | |
1833 | Py_INCREF(Py_None); resultobj = Py_None; | |
1834 | return resultobj; | |
1835 | fail: | |
1836 | return NULL; | |
1837 | } | |
1838 | ||
1839 | ||
2f4c0a16 | 1840 | static PyObject *_wrap_Pen_GetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1841 | PyObject *resultobj; |
1842 | wxPen *arg1 = (wxPen *) 0 ; | |
1843 | int result; | |
1844 | PyObject * obj0 = 0 ; | |
1845 | char *kwnames[] = { | |
1846 | (char *) "self", NULL | |
1847 | }; | |
1848 | ||
1849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1852 | { |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | result = (int)(arg1)->GetCap(); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
1858 | } | |
2f4c0a16 | 1859 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1860 | return resultobj; |
1861 | fail: | |
1862 | return NULL; | |
1863 | } | |
1864 | ||
1865 | ||
2f4c0a16 | 1866 | static PyObject *_wrap_Pen_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1867 | PyObject *resultobj; |
1868 | wxPen *arg1 = (wxPen *) 0 ; | |
1869 | wxColour result; | |
1870 | PyObject * obj0 = 0 ; | |
1871 | char *kwnames[] = { | |
1872 | (char *) "self", NULL | |
1873 | }; | |
1874 | ||
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1878 | { |
1879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1880 | result = (arg1)->GetColour(); | |
1881 | ||
1882 | wxPyEndAllowThreads(__tstate); | |
1883 | if (PyErr_Occurred()) SWIG_fail; | |
1884 | } | |
1885 | { | |
1886 | wxColour * resultptr; | |
1887 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 1888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1889 | } |
1890 | return resultobj; | |
1891 | fail: | |
1892 | return NULL; | |
1893 | } | |
1894 | ||
1895 | ||
2f4c0a16 | 1896 | static PyObject *_wrap_Pen_GetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1897 | PyObject *resultobj; |
1898 | wxPen *arg1 = (wxPen *) 0 ; | |
1899 | int result; | |
1900 | PyObject * obj0 = 0 ; | |
1901 | char *kwnames[] = { | |
1902 | (char *) "self", NULL | |
1903 | }; | |
1904 | ||
1905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1908 | { |
1909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1910 | result = (int)(arg1)->GetJoin(); | |
1911 | ||
1912 | wxPyEndAllowThreads(__tstate); | |
1913 | if (PyErr_Occurred()) SWIG_fail; | |
1914 | } | |
2f4c0a16 | 1915 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1916 | return resultobj; |
1917 | fail: | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
2f4c0a16 | 1922 | static PyObject *_wrap_Pen_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1923 | PyObject *resultobj; |
1924 | wxPen *arg1 = (wxPen *) 0 ; | |
1925 | int result; | |
1926 | PyObject * obj0 = 0 ; | |
1927 | char *kwnames[] = { | |
1928 | (char *) "self", NULL | |
1929 | }; | |
1930 | ||
1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1934 | { |
1935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1936 | result = (int)(arg1)->GetStyle(); | |
1937 | ||
1938 | wxPyEndAllowThreads(__tstate); | |
1939 | if (PyErr_Occurred()) SWIG_fail; | |
1940 | } | |
2f4c0a16 | 1941 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1942 | return resultobj; |
1943 | fail: | |
1944 | return NULL; | |
1945 | } | |
1946 | ||
1947 | ||
2f4c0a16 | 1948 | static PyObject *_wrap_Pen_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1949 | PyObject *resultobj; |
1950 | wxPen *arg1 = (wxPen *) 0 ; | |
1951 | int result; | |
1952 | PyObject * obj0 = 0 ; | |
1953 | char *kwnames[] = { | |
1954 | (char *) "self", NULL | |
1955 | }; | |
1956 | ||
1957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1960 | { |
1961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1962 | result = (int)(arg1)->GetWidth(); | |
1963 | ||
1964 | wxPyEndAllowThreads(__tstate); | |
1965 | if (PyErr_Occurred()) SWIG_fail; | |
1966 | } | |
2f4c0a16 | 1967 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1968 | return resultobj; |
1969 | fail: | |
1970 | return NULL; | |
1971 | } | |
1972 | ||
1973 | ||
2f4c0a16 | 1974 | static PyObject *_wrap_Pen_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1975 | PyObject *resultobj; |
1976 | wxPen *arg1 = (wxPen *) 0 ; | |
1977 | bool result; | |
1978 | PyObject * obj0 = 0 ; | |
1979 | char *kwnames[] = { | |
1980 | (char *) "self", NULL | |
1981 | }; | |
1982 | ||
1983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1986 | { |
1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1988 | result = (bool)(arg1)->Ok(); | |
1989 | ||
1990 | wxPyEndAllowThreads(__tstate); | |
1991 | if (PyErr_Occurred()) SWIG_fail; | |
1992 | } | |
02a34c4c | 1993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1994 | return resultobj; |
1995 | fail: | |
1996 | return NULL; | |
1997 | } | |
1998 | ||
1999 | ||
2f4c0a16 | 2000 | static PyObject *_wrap_Pen_SetCap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2001 | PyObject *resultobj; |
2002 | wxPen *arg1 = (wxPen *) 0 ; | |
2003 | int arg2 ; | |
2004 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2006 | char *kwnames[] = { |
2007 | (char *) "self",(char *) "cap_style", NULL | |
2008 | }; | |
2009 | ||
8edf1c75 | 2010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2013 | arg2 = (int) SWIG_AsInt(obj1); | |
2014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2015 | { |
2016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2017 | (arg1)->SetCap(arg2); | |
2018 | ||
2019 | wxPyEndAllowThreads(__tstate); | |
2020 | if (PyErr_Occurred()) SWIG_fail; | |
2021 | } | |
2022 | Py_INCREF(Py_None); resultobj = Py_None; | |
2023 | return resultobj; | |
2024 | fail: | |
2025 | return NULL; | |
2026 | } | |
2027 | ||
2028 | ||
2f4c0a16 | 2029 | static PyObject *_wrap_Pen_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2030 | PyObject *resultobj; |
2031 | wxPen *arg1 = (wxPen *) 0 ; | |
2032 | wxColour *arg2 = 0 ; | |
2033 | wxColour temp2 ; | |
2034 | PyObject * obj0 = 0 ; | |
2035 | PyObject * obj1 = 0 ; | |
2036 | char *kwnames[] = { | |
2037 | (char *) "self",(char *) "colour", NULL | |
2038 | }; | |
2039 | ||
2040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2043 | { |
2044 | arg2 = &temp2; | |
2045 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2046 | } | |
2047 | { | |
2048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2049 | (arg1)->SetColour(*arg2); | |
2050 | ||
2051 | wxPyEndAllowThreads(__tstate); | |
2052 | if (PyErr_Occurred()) SWIG_fail; | |
2053 | } | |
2054 | Py_INCREF(Py_None); resultobj = Py_None; | |
2055 | return resultobj; | |
2056 | fail: | |
2057 | return NULL; | |
2058 | } | |
2059 | ||
2060 | ||
2f4c0a16 | 2061 | static PyObject *_wrap_Pen_SetJoin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2062 | PyObject *resultobj; |
2063 | wxPen *arg1 = (wxPen *) 0 ; | |
2064 | int arg2 ; | |
2065 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2066 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2067 | char *kwnames[] = { |
2068 | (char *) "self",(char *) "join_style", NULL | |
2069 | }; | |
2070 | ||
8edf1c75 | 2071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2074 | arg2 = (int) SWIG_AsInt(obj1); | |
2075 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2076 | { |
2077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2078 | (arg1)->SetJoin(arg2); | |
2079 | ||
2080 | wxPyEndAllowThreads(__tstate); | |
2081 | if (PyErr_Occurred()) SWIG_fail; | |
2082 | } | |
2083 | Py_INCREF(Py_None); resultobj = Py_None; | |
2084 | return resultobj; | |
2085 | fail: | |
2086 | return NULL; | |
2087 | } | |
2088 | ||
2089 | ||
2f4c0a16 | 2090 | static PyObject *_wrap_Pen_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2091 | PyObject *resultobj; |
2092 | wxPen *arg1 = (wxPen *) 0 ; | |
2093 | int arg2 ; | |
2094 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2095 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2096 | char *kwnames[] = { |
2097 | (char *) "self",(char *) "style", NULL | |
2098 | }; | |
2099 | ||
8edf1c75 | 2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2103 | arg2 = (int) SWIG_AsInt(obj1); | |
2104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2105 | { |
2106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2107 | (arg1)->SetStyle(arg2); | |
2108 | ||
2109 | wxPyEndAllowThreads(__tstate); | |
2110 | if (PyErr_Occurred()) SWIG_fail; | |
2111 | } | |
2112 | Py_INCREF(Py_None); resultobj = Py_None; | |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
2f4c0a16 | 2119 | static PyObject *_wrap_Pen_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2120 | PyObject *resultobj; |
2121 | wxPen *arg1 = (wxPen *) 0 ; | |
2122 | int arg2 ; | |
2123 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2124 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2125 | char *kwnames[] = { |
2126 | (char *) "self",(char *) "width", NULL | |
2127 | }; | |
2128 | ||
8edf1c75 | 2129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2132 | arg2 = (int) SWIG_AsInt(obj1); | |
2133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2134 | { |
2135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2136 | (arg1)->SetWidth(arg2); | |
2137 | ||
2138 | wxPyEndAllowThreads(__tstate); | |
2139 | if (PyErr_Occurred()) SWIG_fail; | |
2140 | } | |
2141 | Py_INCREF(Py_None); resultobj = Py_None; | |
2142 | return resultobj; | |
2143 | fail: | |
2144 | return NULL; | |
2145 | } | |
2146 | ||
2147 | ||
2f4c0a16 | 2148 | static PyObject *_wrap_Pen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2149 | PyObject *resultobj; |
2150 | wxPen *arg1 = (wxPen *) 0 ; | |
2151 | int arg2 ; | |
2152 | wxDash *arg3 = (wxDash *) 0 ; | |
2153 | PyObject * obj0 = 0 ; | |
2154 | PyObject * obj1 = 0 ; | |
2155 | char *kwnames[] = { | |
2156 | (char *) "self",(char *) "dashes", NULL | |
2157 | }; | |
2158 | ||
2159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2162 | { |
2163 | arg2 = PyList_Size(obj1); | |
2164 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2165 | if (arg3 == NULL) SWIG_fail; | |
2166 | } | |
2167 | { | |
2168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2169 | (arg1)->SetDashes(arg2,arg3); | |
2170 | ||
2171 | wxPyEndAllowThreads(__tstate); | |
2172 | if (PyErr_Occurred()) SWIG_fail; | |
2173 | } | |
2174 | Py_INCREF(Py_None); resultobj = Py_None; | |
2175 | { | |
2176 | if (arg3) delete [] arg3; | |
2177 | } | |
2178 | return resultobj; | |
2179 | fail: | |
2180 | { | |
2181 | if (arg3) delete [] arg3; | |
2182 | } | |
2183 | return NULL; | |
2184 | } | |
2185 | ||
2186 | ||
2f4c0a16 | 2187 | static PyObject *_wrap_Pen_GetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2188 | PyObject *resultobj; |
2189 | wxPen *arg1 = (wxPen *) 0 ; | |
2190 | PyObject *result; | |
2191 | PyObject * obj0 = 0 ; | |
2192 | char *kwnames[] = { | |
2193 | (char *) "self", NULL | |
2194 | }; | |
2195 | ||
2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2199 | { |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
2206 | resultobj = result; | |
2207 | return resultobj; | |
2208 | fail: | |
2209 | return NULL; | |
2210 | } | |
2211 | ||
2212 | ||
2f4c0a16 | 2213 | static PyObject *_wrap_Pen___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
0ffb2aa6 RD |
2214 | PyObject *resultobj; |
2215 | wxPen *arg1 = (wxPen *) 0 ; | |
38f59159 | 2216 | wxPen *arg2 = (wxPen *) 0 ; |
0ffb2aa6 RD |
2217 | bool result; |
2218 | PyObject * obj0 = 0 ; | |
2219 | PyObject * obj1 = 0 ; | |
2220 | char *kwnames[] = { | |
38f59159 | 2221 | (char *) "self",(char *) "other", NULL |
0ffb2aa6 RD |
2222 | }; |
2223 | ||
2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38f59159 RD |
2229 | { |
2230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2231 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
2232 | ||
2233 | wxPyEndAllowThreads(__tstate); | |
2234 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 | 2235 | } |
38f59159 RD |
2236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
2237 | return resultobj; | |
2238 | fail: | |
2239 | return NULL; | |
2240 | } | |
2241 | ||
2242 | ||
2f4c0a16 | 2243 | static PyObject *_wrap_Pen___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
38f59159 RD |
2244 | PyObject *resultobj; |
2245 | wxPen *arg1 = (wxPen *) 0 ; | |
2246 | wxPen *arg2 = (wxPen *) 0 ; | |
2247 | bool result; | |
2248 | PyObject * obj0 = 0 ; | |
2249 | PyObject * obj1 = 0 ; | |
2250 | char *kwnames[] = { | |
2251 | (char *) "self",(char *) "other", NULL | |
2252 | }; | |
2253 | ||
2254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0ffb2aa6 RD |
2259 | { |
2260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 2261 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
0ffb2aa6 RD |
2262 | |
2263 | wxPyEndAllowThreads(__tstate); | |
2264 | if (PyErr_Occurred()) SWIG_fail; | |
2265 | } | |
2266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2267 | return resultobj; | |
2268 | fail: | |
2269 | return NULL; | |
2270 | } | |
2271 | ||
2272 | ||
2f4c0a16 | 2273 | static PyObject * Pen_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2274 | PyObject *obj; |
2275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2276 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); | |
2277 | Py_INCREF(obj); | |
2278 | return Py_BuildValue((char *)""); | |
2279 | } | |
2f4c0a16 | 2280 | static PyObject *_wrap_new_PyPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2281 | PyObject *resultobj; |
2282 | wxColour *arg1 = 0 ; | |
2283 | int arg2 = (int) 1 ; | |
2284 | int arg3 = (int) wxSOLID ; | |
2285 | wxPyPen *result; | |
2286 | wxColour temp1 ; | |
2287 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2288 | PyObject * obj1 = 0 ; |
2289 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2290 | char *kwnames[] = { |
2291 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
2292 | }; | |
2293 | ||
8edf1c75 | 2294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
2295 | { |
2296 | arg1 = &temp1; | |
2297 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2298 | } | |
8edf1c75 | 2299 | if (obj1) { |
2f4c0a16 RD |
2300 | arg2 = (int) SWIG_AsInt(obj1); |
2301 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
2302 | } |
2303 | if (obj2) { | |
2f4c0a16 RD |
2304 | arg3 = (int) SWIG_AsInt(obj2); |
2305 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2306 | } |
d14a1e28 RD |
2307 | { |
2308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2309 | result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3); | |
2310 | ||
2311 | wxPyEndAllowThreads(__tstate); | |
2312 | if (PyErr_Occurred()) SWIG_fail; | |
2313 | } | |
2f4c0a16 | 2314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPen, 1); |
d14a1e28 RD |
2315 | return resultobj; |
2316 | fail: | |
2317 | return NULL; | |
2318 | } | |
2319 | ||
2320 | ||
2f4c0a16 | 2321 | static PyObject *_wrap_delete_PyPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2322 | PyObject *resultobj; |
2323 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2324 | PyObject * obj0 = 0 ; | |
2325 | char *kwnames[] = { | |
2326 | (char *) "self", NULL | |
2327 | }; | |
2328 | ||
2329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, |
2331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2332 | { |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2334 | delete arg1; | |
2335 | ||
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
2339 | Py_INCREF(Py_None); resultobj = Py_None; | |
2340 | return resultobj; | |
2341 | fail: | |
2342 | return NULL; | |
2343 | } | |
2344 | ||
2345 | ||
2f4c0a16 | 2346 | static PyObject *_wrap_PyPen_SetDashes(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2347 | PyObject *resultobj; |
2348 | wxPyPen *arg1 = (wxPyPen *) 0 ; | |
2349 | int arg2 ; | |
2350 | wxDash *arg3 = (wxDash *) 0 ; | |
2351 | PyObject * obj0 = 0 ; | |
2352 | PyObject * obj1 = 0 ; | |
2353 | char *kwnames[] = { | |
2354 | (char *) "self",(char *) "dashes", NULL | |
2355 | }; | |
2356 | ||
2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPen, |
2359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2360 | { |
2361 | arg2 = PyList_Size(obj1); | |
2362 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2363 | if (arg3 == NULL) SWIG_fail; | |
2364 | } | |
2365 | { | |
2366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2367 | (arg1)->SetDashes(arg2,arg3); | |
2368 | ||
2369 | wxPyEndAllowThreads(__tstate); | |
2370 | if (PyErr_Occurred()) SWIG_fail; | |
2371 | } | |
2372 | Py_INCREF(Py_None); resultobj = Py_None; | |
2373 | { | |
2374 | if (arg3) delete [] arg3; | |
2375 | } | |
2376 | return resultobj; | |
2377 | fail: | |
2378 | { | |
2379 | if (arg3) delete [] arg3; | |
2380 | } | |
2381 | return NULL; | |
2382 | } | |
2383 | ||
2384 | ||
2f4c0a16 | 2385 | static PyObject * PyPen_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2386 | PyObject *obj; |
2387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2388 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj); | |
2389 | Py_INCREF(obj); | |
2390 | return Py_BuildValue((char *)""); | |
2391 | } | |
2f4c0a16 | 2392 | static PyObject *_wrap_new_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2393 | PyObject *resultobj; |
2394 | wxColour *arg1 = 0 ; | |
2395 | int arg2 = (int) wxSOLID ; | |
2396 | wxBrush *result; | |
2397 | wxColour temp1 ; | |
2398 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2400 | char *kwnames[] = { |
2401 | (char *) "colour",(char *) "style", NULL | |
2402 | }; | |
2403 | ||
8edf1c75 | 2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2405 | { |
2406 | arg1 = &temp1; | |
2407 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2408 | } | |
8edf1c75 | 2409 | if (obj1) { |
2f4c0a16 RD |
2410 | arg2 = (int) SWIG_AsInt(obj1); |
2411 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2412 | } |
d14a1e28 RD |
2413 | { |
2414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2415 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2416 | ||
2417 | wxPyEndAllowThreads(__tstate); | |
2418 | if (PyErr_Occurred()) SWIG_fail; | |
2419 | } | |
2f4c0a16 | 2420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
2421 | return resultobj; |
2422 | fail: | |
2423 | return NULL; | |
2424 | } | |
2425 | ||
2426 | ||
2f4c0a16 | 2427 | static PyObject *_wrap_delete_Brush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2428 | PyObject *resultobj; |
2429 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2430 | PyObject * obj0 = 0 ; | |
2431 | char *kwnames[] = { | |
2432 | (char *) "self", NULL | |
2433 | }; | |
2434 | ||
2435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2438 | { |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2440 | delete arg1; | |
2441 | ||
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) SWIG_fail; | |
2444 | } | |
2445 | Py_INCREF(Py_None); resultobj = Py_None; | |
2446 | return resultobj; | |
2447 | fail: | |
2448 | return NULL; | |
2449 | } | |
2450 | ||
2451 | ||
2f4c0a16 | 2452 | static PyObject *_wrap_Brush_SetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2453 | PyObject *resultobj; |
2454 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2455 | wxColour *arg2 = 0 ; | |
2456 | wxColour temp2 ; | |
2457 | PyObject * obj0 = 0 ; | |
2458 | PyObject * obj1 = 0 ; | |
2459 | char *kwnames[] = { | |
2460 | (char *) "self",(char *) "col", NULL | |
2461 | }; | |
2462 | ||
2463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2466 | { |
2467 | arg2 = &temp2; | |
2468 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2469 | } | |
2470 | { | |
2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2472 | (arg1)->SetColour((wxColour const &)*arg2); | |
2473 | ||
2474 | wxPyEndAllowThreads(__tstate); | |
2475 | if (PyErr_Occurred()) SWIG_fail; | |
2476 | } | |
2477 | Py_INCREF(Py_None); resultobj = Py_None; | |
2478 | return resultobj; | |
2479 | fail: | |
2480 | return NULL; | |
2481 | } | |
2482 | ||
2483 | ||
2f4c0a16 | 2484 | static PyObject *_wrap_Brush_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2485 | PyObject *resultobj; |
2486 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2487 | int arg2 ; | |
2488 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2489 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2490 | char *kwnames[] = { |
2491 | (char *) "self",(char *) "style", NULL | |
2492 | }; | |
2493 | ||
8edf1c75 | 2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2497 | arg2 = (int) SWIG_AsInt(obj1); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2499 | { |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | (arg1)->SetStyle(arg2); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | Py_INCREF(Py_None); resultobj = Py_None; | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2f4c0a16 | 2513 | static PyObject *_wrap_Brush_SetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2514 | PyObject *resultobj; |
2515 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2516 | wxBitmap *arg2 = 0 ; | |
2517 | PyObject * obj0 = 0 ; | |
2518 | PyObject * obj1 = 0 ; | |
2519 | char *kwnames[] = { | |
2520 | (char *) "self",(char *) "stipple", NULL | |
2521 | }; | |
2522 | ||
2523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2526 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2527 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2528 | SWIG_fail; | |
d14a1e28 | 2529 | if (arg2 == NULL) { |
2f4c0a16 RD |
2530 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2531 | SWIG_fail; | |
d14a1e28 RD |
2532 | } |
2533 | { | |
2534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2535 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2536 | ||
2537 | wxPyEndAllowThreads(__tstate); | |
2538 | if (PyErr_Occurred()) SWIG_fail; | |
2539 | } | |
2540 | Py_INCREF(Py_None); resultobj = Py_None; | |
2541 | return resultobj; | |
2542 | fail: | |
2543 | return NULL; | |
2544 | } | |
2545 | ||
2546 | ||
2f4c0a16 | 2547 | static PyObject *_wrap_Brush_GetColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2548 | PyObject *resultobj; |
2549 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2550 | wxColour result; | |
2551 | PyObject * obj0 = 0 ; | |
2552 | char *kwnames[] = { | |
2553 | (char *) "self", NULL | |
2554 | }; | |
2555 | ||
2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2559 | { |
2560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2561 | result = ((wxBrush const *)arg1)->GetColour(); | |
2562 | ||
2563 | wxPyEndAllowThreads(__tstate); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | { | |
2567 | wxColour * resultptr; | |
2568 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 2569 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2570 | } |
2571 | return resultobj; | |
2572 | fail: | |
2573 | return NULL; | |
2574 | } | |
2575 | ||
2576 | ||
2f4c0a16 | 2577 | static PyObject *_wrap_Brush_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2578 | PyObject *resultobj; |
2579 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2580 | int result; | |
2581 | PyObject * obj0 = 0 ; | |
2582 | char *kwnames[] = { | |
2583 | (char *) "self", NULL | |
2584 | }; | |
2585 | ||
2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2589 | { |
2590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2591 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2592 | ||
2593 | wxPyEndAllowThreads(__tstate); | |
2594 | if (PyErr_Occurred()) SWIG_fail; | |
2595 | } | |
2f4c0a16 | 2596 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2597 | return resultobj; |
2598 | fail: | |
2599 | return NULL; | |
2600 | } | |
2601 | ||
2602 | ||
2f4c0a16 | 2603 | static PyObject *_wrap_Brush_GetStipple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2604 | PyObject *resultobj; |
2605 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2606 | wxBitmap *result; | |
2607 | PyObject * obj0 = 0 ; | |
2608 | char *kwnames[] = { | |
2609 | (char *) "self", NULL | |
2610 | }; | |
2611 | ||
2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2615 | { |
2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2617 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2618 | ||
2619 | wxPyEndAllowThreads(__tstate); | |
2620 | if (PyErr_Occurred()) SWIG_fail; | |
2621 | } | |
2f4c0a16 | 2622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
2623 | return resultobj; |
2624 | fail: | |
2625 | return NULL; | |
2626 | } | |
2627 | ||
2628 | ||
2f4c0a16 | 2629 | static PyObject *_wrap_Brush_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2630 | PyObject *resultobj; |
2631 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2632 | bool result; | |
2633 | PyObject * obj0 = 0 ; | |
2634 | char *kwnames[] = { | |
2635 | (char *) "self", NULL | |
2636 | }; | |
2637 | ||
2638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2641 | { |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | result = (bool)(arg1)->Ok(); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
02a34c4c | 2648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2649 | return resultobj; |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
2f4c0a16 | 2655 | static PyObject *_wrap_Brush_GetMacTheme(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2656 | PyObject *resultobj; |
2657 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2658 | short result; | |
2659 | PyObject * obj0 = 0 ; | |
2660 | char *kwnames[] = { | |
2661 | (char *) "self", NULL | |
2662 | }; | |
2663 | ||
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2667 | { |
2668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2669 | result = (short)(arg1)->GetMacTheme(); | |
2670 | ||
2671 | wxPyEndAllowThreads(__tstate); | |
2672 | if (PyErr_Occurred()) SWIG_fail; | |
2673 | } | |
2f4c0a16 | 2674 | resultobj = SWIG_FromShort((short)result); |
d14a1e28 RD |
2675 | return resultobj; |
2676 | fail: | |
2677 | return NULL; | |
2678 | } | |
2679 | ||
2680 | ||
2f4c0a16 | 2681 | static PyObject *_wrap_Brush_SetMacTheme(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2682 | PyObject *resultobj; |
2683 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2684 | short arg2 ; | |
2685 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2686 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2687 | char *kwnames[] = { |
2688 | (char *) "self",(char *) "macThemeBrush", NULL | |
2689 | }; | |
2690 | ||
8edf1c75 | 2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetMacTheme",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2694 | arg2 = (short) SWIG_AsShort(obj1); | |
2695 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2696 | { |
2697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2698 | (arg1)->SetMacTheme(arg2); | |
2699 | ||
2700 | wxPyEndAllowThreads(__tstate); | |
2701 | if (PyErr_Occurred()) SWIG_fail; | |
2702 | } | |
2703 | Py_INCREF(Py_None); resultobj = Py_None; | |
2704 | return resultobj; | |
2705 | fail: | |
2706 | return NULL; | |
2707 | } | |
2708 | ||
2709 | ||
2f4c0a16 | 2710 | static PyObject * Brush_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
2711 | PyObject *obj; |
2712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2713 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2714 | Py_INCREF(obj); | |
2715 | return Py_BuildValue((char *)""); | |
2716 | } | |
2f4c0a16 | 2717 | static PyObject *_wrap_new_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2718 | PyObject *resultobj; |
2719 | wxString *arg1 = 0 ; | |
2720 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2721 | wxBitmap *result; | |
423f194a | 2722 | bool temp1 = False ; |
d14a1e28 | 2723 | PyObject * obj0 = 0 ; |
8edf1c75 | 2724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2725 | char *kwnames[] = { |
2726 | (char *) "name",(char *) "type", NULL | |
2727 | }; | |
2728 | ||
8edf1c75 | 2729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2730 | { |
2731 | arg1 = wxString_in_helper(obj0); | |
2732 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 2733 | temp1 = True; |
d14a1e28 | 2734 | } |
8edf1c75 | 2735 | if (obj1) { |
2f4c0a16 RD |
2736 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
2737 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2738 | } |
d14a1e28 RD |
2739 | { |
2740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2741 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2742 | ||
2743 | wxPyEndAllowThreads(__tstate); | |
2744 | if (PyErr_Occurred()) SWIG_fail; | |
2745 | } | |
2f4c0a16 | 2746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2747 | { |
2748 | if (temp1) | |
2749 | delete arg1; | |
2750 | } | |
2751 | return resultobj; | |
2752 | fail: | |
2753 | { | |
2754 | if (temp1) | |
2755 | delete arg1; | |
2756 | } | |
2757 | return NULL; | |
2758 | } | |
2759 | ||
2760 | ||
2f4c0a16 | 2761 | static PyObject *_wrap_delete_Bitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2762 | PyObject *resultobj; |
2763 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2764 | PyObject * obj0 = 0 ; | |
2765 | char *kwnames[] = { | |
2766 | (char *) "self", NULL | |
2767 | }; | |
2768 | ||
2769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2772 | { |
2773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2774 | delete arg1; | |
2775 | ||
2776 | wxPyEndAllowThreads(__tstate); | |
2777 | if (PyErr_Occurred()) SWIG_fail; | |
2778 | } | |
2779 | Py_INCREF(Py_None); resultobj = Py_None; | |
2780 | return resultobj; | |
2781 | fail: | |
2782 | return NULL; | |
2783 | } | |
2784 | ||
2785 | ||
2f4c0a16 | 2786 | static PyObject *_wrap_new_EmptyBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2787 | PyObject *resultobj; |
2788 | int arg1 ; | |
2789 | int arg2 ; | |
2790 | int arg3 = (int) -1 ; | |
2791 | wxBitmap *result; | |
8edf1c75 RD |
2792 | PyObject * obj0 = 0 ; |
2793 | PyObject * obj1 = 0 ; | |
2794 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2795 | char *kwnames[] = { |
2796 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2797 | }; | |
2798 | ||
8edf1c75 | 2799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2800 | arg1 = (int) SWIG_AsInt(obj0); |
2801 | if (PyErr_Occurred()) SWIG_fail; | |
2802 | arg2 = (int) SWIG_AsInt(obj1); | |
2803 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2804 | if (obj2) { |
2f4c0a16 RD |
2805 | arg3 = (int) SWIG_AsInt(obj2); |
2806 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2807 | } |
d14a1e28 RD |
2808 | { |
2809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2810 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2811 | ||
2812 | wxPyEndAllowThreads(__tstate); | |
2813 | if (PyErr_Occurred()) SWIG_fail; | |
2814 | } | |
2f4c0a16 | 2815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2816 | return resultobj; |
2817 | fail: | |
2818 | return NULL; | |
2819 | } | |
2820 | ||
2821 | ||
2f4c0a16 | 2822 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2823 | PyObject *resultobj; |
2824 | wxIcon *arg1 = 0 ; | |
2825 | wxBitmap *result; | |
2826 | PyObject * obj0 = 0 ; | |
2827 | char *kwnames[] = { | |
2828 | (char *) "icon", NULL | |
2829 | }; | |
2830 | ||
2831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
2833 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2834 | SWIG_fail; | |
d14a1e28 | 2835 | if (arg1 == NULL) { |
2f4c0a16 RD |
2836 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2837 | SWIG_fail; | |
d14a1e28 RD |
2838 | } |
2839 | { | |
2840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2841 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2842 | ||
2843 | wxPyEndAllowThreads(__tstate); | |
2844 | if (PyErr_Occurred()) SWIG_fail; | |
2845 | } | |
2f4c0a16 | 2846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2847 | return resultobj; |
2848 | fail: | |
2849 | return NULL; | |
2850 | } | |
2851 | ||
2852 | ||
2f4c0a16 | 2853 | static PyObject *_wrap_new_BitmapFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2854 | PyObject *resultobj; |
2855 | wxImage *arg1 = 0 ; | |
2856 | int arg2 = (int) -1 ; | |
2857 | wxBitmap *result; | |
2858 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2859 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2860 | char *kwnames[] = { |
2861 | (char *) "image",(char *) "depth", NULL | |
2862 | }; | |
2863 | ||
8edf1c75 | 2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
2866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2867 | SWIG_fail; | |
d14a1e28 | 2868 | if (arg1 == NULL) { |
2f4c0a16 RD |
2869 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2870 | SWIG_fail; | |
d14a1e28 | 2871 | } |
8edf1c75 | 2872 | if (obj1) { |
2f4c0a16 RD |
2873 | arg2 = (int) SWIG_AsInt(obj1); |
2874 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2875 | } |
d14a1e28 RD |
2876 | { |
2877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2878 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2879 | ||
2880 | wxPyEndAllowThreads(__tstate); | |
2881 | if (PyErr_Occurred()) SWIG_fail; | |
2882 | } | |
2f4c0a16 | 2883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2884 | return resultobj; |
2885 | fail: | |
2886 | return NULL; | |
2887 | } | |
2888 | ||
2889 | ||
2f4c0a16 | 2890 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2891 | PyObject *resultobj; |
2892 | PyObject *arg1 = (PyObject *) 0 ; | |
2893 | wxBitmap *result; | |
2894 | PyObject * obj0 = 0 ; | |
2895 | char *kwnames[] = { | |
2896 | (char *) "listOfStrings", NULL | |
2897 | }; | |
2898 | ||
2899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2900 | arg1 = obj0; | |
2901 | { | |
2902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2903 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2904 | ||
2905 | wxPyEndAllowThreads(__tstate); | |
2906 | if (PyErr_Occurred()) SWIG_fail; | |
2907 | } | |
2f4c0a16 | 2908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2909 | return resultobj; |
2910 | fail: | |
2911 | return NULL; | |
2912 | } | |
2913 | ||
2914 | ||
2f4c0a16 | 2915 | static PyObject *_wrap_new_BitmapFromBits(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2916 | PyObject *resultobj; |
2917 | PyObject *arg1 = (PyObject *) 0 ; | |
2918 | int arg2 ; | |
2919 | int arg3 ; | |
2920 | int arg4 = (int) 1 ; | |
2921 | wxBitmap *result; | |
2922 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
2923 | PyObject * obj1 = 0 ; |
2924 | PyObject * obj2 = 0 ; | |
2925 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2926 | char *kwnames[] = { |
2927 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2928 | }; | |
2929 | ||
8edf1c75 | 2930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2931 | arg1 = obj0; |
2f4c0a16 RD |
2932 | arg2 = (int) SWIG_AsInt(obj1); |
2933 | if (PyErr_Occurred()) SWIG_fail; | |
2934 | arg3 = (int) SWIG_AsInt(obj2); | |
2935 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2936 | if (obj3) { |
2f4c0a16 RD |
2937 | arg4 = (int) SWIG_AsInt(obj3); |
2938 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2939 | } |
d14a1e28 RD |
2940 | { |
2941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2942 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2943 | ||
2944 | wxPyEndAllowThreads(__tstate); | |
2945 | if (PyErr_Occurred()) SWIG_fail; | |
2946 | } | |
2f4c0a16 | 2947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2948 | return resultobj; |
2949 | fail: | |
2950 | return NULL; | |
2951 | } | |
2952 | ||
2953 | ||
2f4c0a16 | 2954 | static PyObject *_wrap_Bitmap_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2955 | PyObject *resultobj; |
2956 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2957 | bool result; | |
2958 | PyObject * obj0 = 0 ; | |
2959 | char *kwnames[] = { | |
2960 | (char *) "self", NULL | |
2961 | }; | |
2962 | ||
2963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2966 | { |
2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2968 | result = (bool)(arg1)->Ok(); | |
2969 | ||
2970 | wxPyEndAllowThreads(__tstate); | |
2971 | if (PyErr_Occurred()) SWIG_fail; | |
2972 | } | |
02a34c4c | 2973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2974 | return resultobj; |
2975 | fail: | |
2976 | return NULL; | |
2977 | } | |
2978 | ||
2979 | ||
2f4c0a16 | 2980 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2981 | PyObject *resultobj; |
2982 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2983 | int result; | |
2984 | PyObject * obj0 = 0 ; | |
2985 | char *kwnames[] = { | |
2986 | (char *) "self", NULL | |
2987 | }; | |
2988 | ||
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2992 | { |
2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2994 | result = (int)(arg1)->GetWidth(); | |
2995 | ||
2996 | wxPyEndAllowThreads(__tstate); | |
2997 | if (PyErr_Occurred()) SWIG_fail; | |
2998 | } | |
2f4c0a16 | 2999 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3000 | return resultobj; |
3001 | fail: | |
3002 | return NULL; | |
3003 | } | |
3004 | ||
3005 | ||
2f4c0a16 | 3006 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3007 | PyObject *resultobj; |
3008 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3009 | int result; | |
3010 | PyObject * obj0 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3018 | { |
3019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3020 | result = (int)(arg1)->GetHeight(); | |
3021 | ||
3022 | wxPyEndAllowThreads(__tstate); | |
3023 | if (PyErr_Occurred()) SWIG_fail; | |
3024 | } | |
2f4c0a16 | 3025 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3026 | return resultobj; |
3027 | fail: | |
3028 | return NULL; | |
3029 | } | |
3030 | ||
3031 | ||
2f4c0a16 | 3032 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3033 | PyObject *resultobj; |
3034 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3035 | int result; | |
3036 | PyObject * obj0 = 0 ; | |
3037 | char *kwnames[] = { | |
3038 | (char *) "self", NULL | |
3039 | }; | |
3040 | ||
3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3044 | { |
3045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3046 | result = (int)(arg1)->GetDepth(); | |
3047 | ||
3048 | wxPyEndAllowThreads(__tstate); | |
3049 | if (PyErr_Occurred()) SWIG_fail; | |
3050 | } | |
2f4c0a16 | 3051 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3052 | return resultobj; |
3053 | fail: | |
3054 | return NULL; | |
3055 | } | |
3056 | ||
3057 | ||
2f4c0a16 | 3058 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3059 | PyObject *resultobj; |
3060 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3061 | SwigValueWrapper< wxImage > result; | |
3062 | PyObject * obj0 = 0 ; | |
3063 | char *kwnames[] = { | |
3064 | (char *) "self", NULL | |
3065 | }; | |
3066 | ||
3067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3070 | { |
3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3072 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3073 | ||
3074 | wxPyEndAllowThreads(__tstate); | |
3075 | if (PyErr_Occurred()) SWIG_fail; | |
3076 | } | |
3077 | { | |
3078 | wxImage * resultptr; | |
3079 | resultptr = new wxImage((wxImage &) result); | |
2f4c0a16 | 3080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
3081 | } |
3082 | return resultobj; | |
3083 | fail: | |
3084 | return NULL; | |
3085 | } | |
3086 | ||
3087 | ||
2f4c0a16 | 3088 | static PyObject *_wrap_Bitmap_GetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3089 | PyObject *resultobj; |
3090 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3091 | wxMask *result; | |
3092 | PyObject * obj0 = 0 ; | |
3093 | char *kwnames[] = { | |
3094 | (char *) "self", NULL | |
3095 | }; | |
3096 | ||
3097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3100 | { |
3101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3102 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3103 | ||
3104 | wxPyEndAllowThreads(__tstate); | |
3105 | if (PyErr_Occurred()) SWIG_fail; | |
3106 | } | |
2f4c0a16 | 3107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
3108 | return resultobj; |
3109 | fail: | |
3110 | return NULL; | |
3111 | } | |
3112 | ||
3113 | ||
2f4c0a16 | 3114 | static PyObject *_wrap_Bitmap_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3115 | PyObject *resultobj; |
3116 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3117 | wxMask *arg2 = (wxMask *) 0 ; | |
3118 | PyObject * obj0 = 0 ; | |
3119 | PyObject * obj1 = 0 ; | |
3120 | char *kwnames[] = { | |
3121 | (char *) "self",(char *) "mask", NULL | |
3122 | }; | |
3123 | ||
3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3129 | { |
3130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3131 | (arg1)->SetMask(arg2); | |
3132 | ||
3133 | wxPyEndAllowThreads(__tstate); | |
3134 | if (PyErr_Occurred()) SWIG_fail; | |
3135 | } | |
3136 | Py_INCREF(Py_None); resultobj = Py_None; | |
3137 | return resultobj; | |
3138 | fail: | |
3139 | return NULL; | |
3140 | } | |
3141 | ||
3142 | ||
2f4c0a16 | 3143 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3144 | PyObject *resultobj; |
3145 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3146 | wxColour *arg2 = 0 ; | |
3147 | wxColour temp2 ; | |
3148 | PyObject * obj0 = 0 ; | |
3149 | PyObject * obj1 = 0 ; | |
3150 | char *kwnames[] = { | |
3151 | (char *) "self",(char *) "colour", NULL | |
3152 | }; | |
3153 | ||
3154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3157 | { |
3158 | arg2 = &temp2; | |
3159 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3160 | } | |
3161 | { | |
3162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3163 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3164 | ||
3165 | wxPyEndAllowThreads(__tstate); | |
3166 | if (PyErr_Occurred()) SWIG_fail; | |
3167 | } | |
3168 | Py_INCREF(Py_None); resultobj = Py_None; | |
3169 | return resultobj; | |
3170 | fail: | |
3171 | return NULL; | |
3172 | } | |
3173 | ||
3174 | ||
2f4c0a16 | 3175 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3176 | PyObject *resultobj; |
3177 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3178 | wxRect *arg2 = 0 ; | |
3179 | SwigValueWrapper< wxBitmap > result; | |
3180 | wxRect temp2 ; | |
3181 | PyObject * obj0 = 0 ; | |
3182 | PyObject * obj1 = 0 ; | |
3183 | char *kwnames[] = { | |
3184 | (char *) "self",(char *) "rect", NULL | |
3185 | }; | |
3186 | ||
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3190 | { |
3191 | arg2 = &temp2; | |
3192 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3193 | } | |
3194 | { | |
3195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3196 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3197 | ||
3198 | wxPyEndAllowThreads(__tstate); | |
3199 | if (PyErr_Occurred()) SWIG_fail; | |
3200 | } | |
3201 | { | |
3202 | wxBitmap * resultptr; | |
3203 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 3204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3205 | } |
3206 | return resultobj; | |
3207 | fail: | |
3208 | return NULL; | |
3209 | } | |
3210 | ||
3211 | ||
2f4c0a16 | 3212 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3213 | PyObject *resultobj; |
3214 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3215 | wxString *arg2 = 0 ; | |
3216 | int arg3 ; | |
3217 | wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ; | |
3218 | bool result; | |
423f194a | 3219 | bool temp2 = False ; |
d14a1e28 RD |
3220 | PyObject * obj0 = 0 ; |
3221 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3222 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3223 | PyObject * obj3 = 0 ; |
3224 | char *kwnames[] = { | |
3225 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3226 | }; | |
3227 | ||
8edf1c75 | 3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
3229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3231 | { |
3232 | arg2 = wxString_in_helper(obj1); | |
3233 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3234 | temp2 = True; |
d14a1e28 | 3235 | } |
2f4c0a16 RD |
3236 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 3238 | if (obj3) { |
2f4c0a16 RD |
3239 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, |
3240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3241 | } |
3242 | { | |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3245 | ||
3246 | wxPyEndAllowThreads(__tstate); | |
3247 | if (PyErr_Occurred()) SWIG_fail; | |
3248 | } | |
02a34c4c | 3249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3250 | { |
3251 | if (temp2) | |
3252 | delete arg2; | |
3253 | } | |
3254 | return resultobj; | |
3255 | fail: | |
3256 | { | |
3257 | if (temp2) | |
3258 | delete arg2; | |
3259 | } | |
3260 | return NULL; | |
3261 | } | |
3262 | ||
3263 | ||
2f4c0a16 | 3264 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3265 | PyObject *resultobj; |
3266 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3267 | wxString *arg2 = 0 ; | |
3268 | int arg3 ; | |
3269 | bool result; | |
423f194a | 3270 | bool temp2 = False ; |
d14a1e28 RD |
3271 | PyObject * obj0 = 0 ; |
3272 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3273 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3274 | char *kwnames[] = { |
3275 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3276 | }; | |
3277 | ||
8edf1c75 | 3278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3281 | { |
3282 | arg2 = wxString_in_helper(obj1); | |
3283 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3284 | temp2 = True; |
d14a1e28 | 3285 | } |
2f4c0a16 RD |
3286 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3288 | { |
3289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3290 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3291 | ||
3292 | wxPyEndAllowThreads(__tstate); | |
3293 | if (PyErr_Occurred()) SWIG_fail; | |
3294 | } | |
02a34c4c | 3295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3296 | { |
3297 | if (temp2) | |
3298 | delete arg2; | |
3299 | } | |
3300 | return resultobj; | |
3301 | fail: | |
3302 | { | |
3303 | if (temp2) | |
3304 | delete arg2; | |
3305 | } | |
3306 | return NULL; | |
3307 | } | |
3308 | ||
3309 | ||
2f4c0a16 | 3310 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3311 | PyObject *resultobj; |
3312 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3313 | wxIcon *arg2 = 0 ; | |
3314 | bool result; | |
3315 | PyObject * obj0 = 0 ; | |
3316 | PyObject * obj1 = 0 ; | |
3317 | char *kwnames[] = { | |
3318 | (char *) "self",(char *) "icon", NULL | |
3319 | }; | |
3320 | ||
3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3325 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3326 | SWIG_fail; | |
d14a1e28 | 3327 | if (arg2 == NULL) { |
2f4c0a16 RD |
3328 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3329 | SWIG_fail; | |
d14a1e28 RD |
3330 | } |
3331 | { | |
3332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3333 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3334 | ||
3335 | wxPyEndAllowThreads(__tstate); | |
3336 | if (PyErr_Occurred()) SWIG_fail; | |
3337 | } | |
02a34c4c | 3338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3339 | return resultobj; |
3340 | fail: | |
3341 | return NULL; | |
3342 | } | |
3343 | ||
3344 | ||
2f4c0a16 | 3345 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3346 | PyObject *resultobj; |
3347 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3348 | int arg2 ; | |
3349 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3351 | char *kwnames[] = { |
3352 | (char *) "self",(char *) "height", NULL | |
3353 | }; | |
3354 | ||
8edf1c75 | 3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3358 | arg2 = (int) SWIG_AsInt(obj1); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3360 | { |
3361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3362 | (arg1)->SetHeight(arg2); | |
3363 | ||
3364 | wxPyEndAllowThreads(__tstate); | |
3365 | if (PyErr_Occurred()) SWIG_fail; | |
3366 | } | |
3367 | Py_INCREF(Py_None); resultobj = Py_None; | |
3368 | return resultobj; | |
3369 | fail: | |
3370 | return NULL; | |
3371 | } | |
3372 | ||
3373 | ||
2f4c0a16 | 3374 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3375 | PyObject *resultobj; |
3376 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3377 | int arg2 ; | |
3378 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3379 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3380 | char *kwnames[] = { |
3381 | (char *) "self",(char *) "width", NULL | |
3382 | }; | |
3383 | ||
8edf1c75 | 3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3387 | arg2 = (int) SWIG_AsInt(obj1); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3389 | { |
3390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3391 | (arg1)->SetWidth(arg2); | |
3392 | ||
3393 | wxPyEndAllowThreads(__tstate); | |
3394 | if (PyErr_Occurred()) SWIG_fail; | |
3395 | } | |
3396 | Py_INCREF(Py_None); resultobj = Py_None; | |
3397 | return resultobj; | |
3398 | fail: | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
2f4c0a16 | 3403 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3404 | PyObject *resultobj; |
3405 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3406 | int arg2 ; | |
3407 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3409 | char *kwnames[] = { |
3410 | (char *) "self",(char *) "depth", NULL | |
3411 | }; | |
3412 | ||
8edf1c75 | 3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3416 | arg2 = (int) SWIG_AsInt(obj1); | |
3417 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3418 | { |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | (arg1)->SetDepth(arg2); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
3425 | Py_INCREF(Py_None); resultobj = Py_None; | |
3426 | return resultobj; | |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
2f4c0a16 | 3432 | static PyObject * Bitmap_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3433 | PyObject *obj; |
3434 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3435 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3436 | Py_INCREF(obj); | |
3437 | return Py_BuildValue((char *)""); | |
3438 | } | |
2f4c0a16 | 3439 | static PyObject *_wrap_new_Mask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3440 | PyObject *resultobj; |
3441 | wxBitmap *arg1 = 0 ; | |
0ffb2aa6 RD |
3442 | wxColour const &arg2_defvalue = wxNullColour ; |
3443 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3444 | wxMask *result; |
3445 | wxColour temp2 ; | |
3446 | PyObject * obj0 = 0 ; | |
3447 | PyObject * obj1 = 0 ; | |
3448 | char *kwnames[] = { | |
3449 | (char *) "bitmap",(char *) "colour", NULL | |
3450 | }; | |
3451 | ||
0ffb2aa6 | 3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3454 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3455 | SWIG_fail; | |
d14a1e28 | 3456 | if (arg1 == NULL) { |
2f4c0a16 RD |
3457 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3458 | SWIG_fail; | |
d14a1e28 | 3459 | } |
0ffb2aa6 RD |
3460 | if (obj1) { |
3461 | { | |
3462 | arg2 = &temp2; | |
3463 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3464 | } | |
d14a1e28 RD |
3465 | } |
3466 | { | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0ffb2aa6 | 3468 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3469 | |
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
2f4c0a16 | 3473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
3474 | return resultobj; |
3475 | fail: | |
3476 | return NULL; | |
3477 | } | |
3478 | ||
3479 | ||
2f4c0a16 | 3480 | static PyObject * Mask_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3481 | PyObject *obj; |
3482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3483 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3484 | Py_INCREF(obj); | |
3485 | return Py_BuildValue((char *)""); | |
3486 | } | |
2f4c0a16 | 3487 | static PyObject *_wrap_new_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3488 | PyObject *resultobj; |
3489 | wxString *arg1 = 0 ; | |
d896a793 | 3490 | int arg2 ; |
d14a1e28 RD |
3491 | int arg3 = (int) -1 ; |
3492 | int arg4 = (int) -1 ; | |
3493 | wxIcon *result; | |
423f194a | 3494 | bool temp1 = False ; |
d14a1e28 | 3495 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3496 | PyObject * obj1 = 0 ; |
3497 | PyObject * obj2 = 0 ; | |
3498 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3499 | char *kwnames[] = { |
d896a793 | 3500 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3501 | }; |
3502 | ||
8edf1c75 | 3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3504 | { |
3505 | arg1 = wxString_in_helper(obj0); | |
3506 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 3507 | temp1 = True; |
d14a1e28 | 3508 | } |
2f4c0a16 RD |
3509 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3511 | if (obj2) { |
2f4c0a16 RD |
3512 | arg3 = (int) SWIG_AsInt(obj2); |
3513 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3514 | } |
3515 | if (obj3) { | |
2f4c0a16 RD |
3516 | arg4 = (int) SWIG_AsInt(obj3); |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3518 | } |
d14a1e28 RD |
3519 | { |
3520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d896a793 | 3521 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); |
d14a1e28 RD |
3522 | |
3523 | wxPyEndAllowThreads(__tstate); | |
3524 | if (PyErr_Occurred()) SWIG_fail; | |
3525 | } | |
2f4c0a16 | 3526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3527 | { |
3528 | if (temp1) | |
3529 | delete arg1; | |
3530 | } | |
3531 | return resultobj; | |
3532 | fail: | |
3533 | { | |
3534 | if (temp1) | |
3535 | delete arg1; | |
3536 | } | |
3537 | return NULL; | |
3538 | } | |
3539 | ||
3540 | ||
2f4c0a16 | 3541 | static PyObject *_wrap_delete_Icon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3542 | PyObject *resultobj; |
3543 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3544 | PyObject * obj0 = 0 ; | |
3545 | char *kwnames[] = { | |
3546 | (char *) "self", NULL | |
3547 | }; | |
3548 | ||
3549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3552 | { |
3553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3554 | delete arg1; | |
3555 | ||
3556 | wxPyEndAllowThreads(__tstate); | |
3557 | if (PyErr_Occurred()) SWIG_fail; | |
3558 | } | |
3559 | Py_INCREF(Py_None); resultobj = Py_None; | |
3560 | return resultobj; | |
3561 | fail: | |
3562 | return NULL; | |
3563 | } | |
3564 | ||
3565 | ||
2f4c0a16 | 3566 | static PyObject *_wrap_new_EmptyIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3567 | PyObject *resultobj; |
3568 | wxIcon *result; | |
3569 | char *kwnames[] = { | |
3570 | NULL | |
3571 | }; | |
3572 | ||
3573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3574 | { | |
3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3576 | result = (wxIcon *)new wxIcon(); | |
3577 | ||
3578 | wxPyEndAllowThreads(__tstate); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
2f4c0a16 | 3581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3582 | return resultobj; |
3583 | fail: | |
3584 | return NULL; | |
3585 | } | |
3586 | ||
3587 | ||
2f4c0a16 | 3588 | static PyObject *_wrap_new_IconFromLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3589 | PyObject *resultobj; |
3590 | wxIconLocation *arg1 = 0 ; | |
3591 | wxIcon *result; | |
3592 | PyObject * obj0 = 0 ; | |
3593 | char *kwnames[] = { | |
3594 | (char *) "loc", NULL | |
3595 | }; | |
3596 | ||
3597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3600 | SWIG_fail; | |
d14a1e28 | 3601 | if (arg1 == NULL) { |
2f4c0a16 RD |
3602 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3603 | SWIG_fail; | |
d14a1e28 RD |
3604 | } |
3605 | { | |
3606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3607 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3608 | ||
3609 | wxPyEndAllowThreads(__tstate); | |
3610 | if (PyErr_Occurred()) SWIG_fail; | |
3611 | } | |
2f4c0a16 | 3612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3613 | return resultobj; |
3614 | fail: | |
3615 | return NULL; | |
3616 | } | |
3617 | ||
3618 | ||
2f4c0a16 | 3619 | static PyObject *_wrap_new_IconFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3620 | PyObject *resultobj; |
3621 | wxBitmap *arg1 = 0 ; | |
3622 | wxIcon *result; | |
3623 | PyObject * obj0 = 0 ; | |
3624 | char *kwnames[] = { | |
3625 | (char *) "bmp", NULL | |
3626 | }; | |
3627 | ||
3628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3631 | SWIG_fail; | |
d14a1e28 | 3632 | if (arg1 == NULL) { |
2f4c0a16 RD |
3633 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3634 | SWIG_fail; | |
d14a1e28 RD |
3635 | } |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3639 | ||
3640 | wxPyEndAllowThreads(__tstate); | |
3641 | if (PyErr_Occurred()) SWIG_fail; | |
3642 | } | |
2f4c0a16 | 3643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3644 | return resultobj; |
3645 | fail: | |
3646 | return NULL; | |
3647 | } | |
3648 | ||
3649 | ||
2f4c0a16 | 3650 | static PyObject *_wrap_new_IconFromXPMData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3651 | PyObject *resultobj; |
3652 | PyObject *arg1 = (PyObject *) 0 ; | |
3653 | wxIcon *result; | |
3654 | PyObject * obj0 = 0 ; | |
3655 | char *kwnames[] = { | |
3656 | (char *) "listOfStrings", NULL | |
3657 | }; | |
3658 | ||
3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3660 | arg1 = obj0; | |
3661 | { | |
3662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3663 | result = (wxIcon *)new_wxIcon(arg1); | |
3664 | ||
3665 | wxPyEndAllowThreads(__tstate); | |
3666 | if (PyErr_Occurred()) SWIG_fail; | |
3667 | } | |
2f4c0a16 | 3668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3669 | return resultobj; |
3670 | fail: | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
2f4c0a16 | 3675 | static PyObject *_wrap_Icon_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3676 | PyObject *resultobj; |
3677 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3678 | bool result; | |
3679 | PyObject * obj0 = 0 ; | |
3680 | char *kwnames[] = { | |
3681 | (char *) "self", NULL | |
3682 | }; | |
3683 | ||
3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3687 | { |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | result = (bool)(arg1)->Ok(); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
02a34c4c | 3694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3695 | return resultobj; |
3696 | fail: | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
2f4c0a16 | 3701 | static PyObject *_wrap_Icon_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3702 | PyObject *resultobj; |
3703 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3704 | int result; | |
3705 | PyObject * obj0 = 0 ; | |
3706 | char *kwnames[] = { | |
3707 | (char *) "self", NULL | |
3708 | }; | |
3709 | ||
3710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3713 | { |
3714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3715 | result = (int)(arg1)->GetWidth(); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
2f4c0a16 | 3720 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3721 | return resultobj; |
3722 | fail: | |
3723 | return NULL; | |
3724 | } | |
3725 | ||
3726 | ||
2f4c0a16 | 3727 | static PyObject *_wrap_Icon_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3728 | PyObject *resultobj; |
3729 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3730 | int result; | |
3731 | PyObject * obj0 = 0 ; | |
3732 | char *kwnames[] = { | |
3733 | (char *) "self", NULL | |
3734 | }; | |
3735 | ||
3736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3739 | { |
3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3741 | result = (int)(arg1)->GetHeight(); | |
3742 | ||
3743 | wxPyEndAllowThreads(__tstate); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | } | |
2f4c0a16 | 3746 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3747 | return resultobj; |
3748 | fail: | |
3749 | return NULL; | |
3750 | } | |
3751 | ||
3752 | ||
2f4c0a16 | 3753 | static PyObject *_wrap_Icon_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3754 | PyObject *resultobj; |
3755 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3756 | int result; | |
3757 | PyObject * obj0 = 0 ; | |
3758 | char *kwnames[] = { | |
3759 | (char *) "self", NULL | |
3760 | }; | |
3761 | ||
3762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3765 | { |
3766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3767 | result = (int)(arg1)->GetDepth(); | |
3768 | ||
3769 | wxPyEndAllowThreads(__tstate); | |
3770 | if (PyErr_Occurred()) SWIG_fail; | |
3771 | } | |
2f4c0a16 | 3772 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3773 | return resultobj; |
3774 | fail: | |
3775 | return NULL; | |
3776 | } | |
3777 | ||
3778 | ||
2f4c0a16 | 3779 | static PyObject *_wrap_Icon_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3780 | PyObject *resultobj; |
3781 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3782 | int arg2 ; | |
3783 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3785 | char *kwnames[] = { |
3786 | (char *) "self",(char *) "w", NULL | |
3787 | }; | |
3788 | ||
8edf1c75 | 3789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3792 | arg2 = (int) SWIG_AsInt(obj1); | |
3793 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3794 | { |
3795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3796 | (arg1)->SetWidth(arg2); | |
3797 | ||
3798 | wxPyEndAllowThreads(__tstate); | |
3799 | if (PyErr_Occurred()) SWIG_fail; | |
3800 | } | |
3801 | Py_INCREF(Py_None); resultobj = Py_None; | |
3802 | return resultobj; | |
3803 | fail: | |
3804 | return NULL; | |
3805 | } | |
3806 | ||
3807 | ||
2f4c0a16 | 3808 | static PyObject *_wrap_Icon_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3809 | PyObject *resultobj; |
3810 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3811 | int arg2 ; | |
3812 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3814 | char *kwnames[] = { |
3815 | (char *) "self",(char *) "h", NULL | |
3816 | }; | |
3817 | ||
8edf1c75 | 3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3821 | arg2 = (int) SWIG_AsInt(obj1); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3823 | { |
3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3825 | (arg1)->SetHeight(arg2); | |
3826 | ||
3827 | wxPyEndAllowThreads(__tstate); | |
3828 | if (PyErr_Occurred()) SWIG_fail; | |
3829 | } | |
3830 | Py_INCREF(Py_None); resultobj = Py_None; | |
3831 | return resultobj; | |
3832 | fail: | |
3833 | return NULL; | |
3834 | } | |
3835 | ||
3836 | ||
2f4c0a16 | 3837 | static PyObject *_wrap_Icon_SetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3838 | PyObject *resultobj; |
3839 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3840 | int arg2 ; | |
3841 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3842 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3843 | char *kwnames[] = { |
3844 | (char *) "self",(char *) "d", NULL | |
3845 | }; | |
3846 | ||
8edf1c75 | 3847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3850 | arg2 = (int) SWIG_AsInt(obj1); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3852 | { |
3853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3854 | (arg1)->SetDepth(arg2); | |
3855 | ||
3856 | wxPyEndAllowThreads(__tstate); | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | } | |
3859 | Py_INCREF(Py_None); resultobj = Py_None; | |
3860 | return resultobj; | |
3861 | fail: | |
3862 | return NULL; | |
3863 | } | |
3864 | ||
3865 | ||
2f4c0a16 | 3866 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3867 | PyObject *resultobj; |
3868 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3869 | wxBitmap *arg2 = 0 ; | |
3870 | PyObject * obj0 = 0 ; | |
3871 | PyObject * obj1 = 0 ; | |
3872 | char *kwnames[] = { | |
3873 | (char *) "self",(char *) "bmp", NULL | |
3874 | }; | |
3875 | ||
3876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3879 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3880 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3881 | SWIG_fail; | |
d14a1e28 | 3882 | if (arg2 == NULL) { |
2f4c0a16 RD |
3883 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3884 | SWIG_fail; | |
d14a1e28 RD |
3885 | } |
3886 | { | |
3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3888 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3889 | ||
3890 | wxPyEndAllowThreads(__tstate); | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | } | |
3893 | Py_INCREF(Py_None); resultobj = Py_None; | |
3894 | return resultobj; | |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
2f4c0a16 | 3900 | static PyObject * Icon_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
3901 | PyObject *obj; |
3902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3903 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3904 | Py_INCREF(obj); | |
3905 | return Py_BuildValue((char *)""); | |
3906 | } | |
2f4c0a16 | 3907 | static PyObject *_wrap_new_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3908 | PyObject *resultobj; |
3909 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3910 | int arg2 = (int) 0 ; | |
3911 | wxIconLocation *result; | |
dae0faa6 | 3912 | bool temp1 = False ; |
d14a1e28 | 3913 | PyObject * obj0 = 0 ; |
8edf1c75 | 3914 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3915 | char *kwnames[] = { |
3916 | (char *) "filename",(char *) "num", NULL | |
3917 | }; | |
3918 | ||
8edf1c75 | 3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3920 | if (obj0) { |
dae0faa6 RD |
3921 | { |
3922 | arg1 = wxString_in_helper(obj0); | |
3923 | if (arg1 == NULL) SWIG_fail; | |
3924 | temp1 = True; | |
3925 | } | |
d14a1e28 | 3926 | } |
8edf1c75 | 3927 | if (obj1) { |
2f4c0a16 RD |
3928 | arg2 = (int) SWIG_AsInt(obj1); |
3929 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3930 | } |
d14a1e28 RD |
3931 | { |
3932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3933 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3934 | ||
3935 | wxPyEndAllowThreads(__tstate); | |
3936 | if (PyErr_Occurred()) SWIG_fail; | |
3937 | } | |
2f4c0a16 | 3938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
dae0faa6 RD |
3939 | { |
3940 | if (temp1) | |
3941 | delete arg1; | |
3942 | } | |
d14a1e28 RD |
3943 | return resultobj; |
3944 | fail: | |
dae0faa6 RD |
3945 | { |
3946 | if (temp1) | |
3947 | delete arg1; | |
3948 | } | |
d14a1e28 RD |
3949 | return NULL; |
3950 | } | |
3951 | ||
3952 | ||
2f4c0a16 | 3953 | static PyObject *_wrap_delete_IconLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3954 | PyObject *resultobj; |
3955 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3956 | PyObject * obj0 = 0 ; | |
3957 | char *kwnames[] = { | |
3958 | (char *) "self", NULL | |
3959 | }; | |
3960 | ||
3961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3964 | { |
3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3966 | delete arg1; | |
3967 | ||
3968 | wxPyEndAllowThreads(__tstate); | |
3969 | if (PyErr_Occurred()) SWIG_fail; | |
3970 | } | |
3971 | Py_INCREF(Py_None); resultobj = Py_None; | |
3972 | return resultobj; | |
3973 | fail: | |
3974 | return NULL; | |
3975 | } | |
3976 | ||
3977 | ||
2f4c0a16 | 3978 | static PyObject *_wrap_IconLocation_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3979 | PyObject *resultobj; |
3980 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3981 | bool result; | |
3982 | PyObject * obj0 = 0 ; | |
3983 | char *kwnames[] = { | |
3984 | (char *) "self", NULL | |
3985 | }; | |
3986 | ||
3987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3990 | { |
3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3992 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
3993 | ||
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) SWIG_fail; | |
3996 | } | |
02a34c4c | 3997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3998 | return resultobj; |
3999 | fail: | |
4000 | return NULL; | |
4001 | } | |
4002 | ||
4003 | ||
2f4c0a16 | 4004 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4005 | PyObject *resultobj; |
4006 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4007 | wxString *arg2 = 0 ; | |
423f194a | 4008 | bool temp2 = False ; |
d14a1e28 RD |
4009 | PyObject * obj0 = 0 ; |
4010 | PyObject * obj1 = 0 ; | |
4011 | char *kwnames[] = { | |
4012 | (char *) "self",(char *) "filename", NULL | |
4013 | }; | |
4014 | ||
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4018 | { |
4019 | arg2 = wxString_in_helper(obj1); | |
4020 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4021 | temp2 = True; |
d14a1e28 RD |
4022 | } |
4023 | { | |
4024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4025 | (arg1)->SetFileName((wxString const &)*arg2); | |
4026 | ||
4027 | wxPyEndAllowThreads(__tstate); | |
4028 | if (PyErr_Occurred()) SWIG_fail; | |
4029 | } | |
4030 | Py_INCREF(Py_None); resultobj = Py_None; | |
4031 | { | |
4032 | if (temp2) | |
4033 | delete arg2; | |
4034 | } | |
4035 | return resultobj; | |
4036 | fail: | |
4037 | { | |
4038 | if (temp2) | |
4039 | delete arg2; | |
4040 | } | |
4041 | return NULL; | |
4042 | } | |
4043 | ||
4044 | ||
2f4c0a16 | 4045 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4046 | PyObject *resultobj; |
4047 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4048 | wxString *result; | |
4049 | PyObject * obj0 = 0 ; | |
4050 | char *kwnames[] = { | |
4051 | (char *) "self", NULL | |
4052 | }; | |
4053 | ||
4054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4057 | { |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4059 | { | |
4060 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4061 | result = (wxString *) &_result_ref; | |
4062 | } | |
4063 | ||
4064 | wxPyEndAllowThreads(__tstate); | |
4065 | if (PyErr_Occurred()) SWIG_fail; | |
4066 | } | |
0f774bef RD |
4067 | { |
4068 | #if wxUSE_UNICODE | |
4069 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4070 | #else | |
4071 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4072 | #endif | |
4073 | } | |
d14a1e28 RD |
4074 | return resultobj; |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
2f4c0a16 | 4080 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4081 | PyObject *resultobj; |
4082 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4083 | int arg2 ; | |
4084 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4086 | char *kwnames[] = { |
4087 | (char *) "self",(char *) "num", NULL | |
4088 | }; | |
4089 | ||
8edf1c75 | 4090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
4091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4093 | arg2 = (int) SWIG_AsInt(obj1); | |
4094 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4095 | { |
4096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4097 | wxIconLocation_SetIndex(arg1,arg2); | |
4098 | ||
4099 | wxPyEndAllowThreads(__tstate); | |
4100 | if (PyErr_Occurred()) SWIG_fail; | |
4101 | } | |
4102 | Py_INCREF(Py_None); resultobj = Py_None; | |
4103 | return resultobj; | |
4104 | fail: | |
4105 | return NULL; | |
4106 | } | |
4107 | ||
4108 | ||
2f4c0a16 | 4109 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4110 | PyObject *resultobj; |
4111 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4112 | int result; | |
4113 | PyObject * obj0 = 0 ; | |
4114 | char *kwnames[] = { | |
4115 | (char *) "self", NULL | |
4116 | }; | |
4117 | ||
4118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4121 | { |
4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4123 | result = (int)wxIconLocation_GetIndex(arg1); | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
2f4c0a16 | 4128 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4129 | return resultobj; |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
2f4c0a16 | 4135 | static PyObject * IconLocation_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4136 | PyObject *obj; |
4137 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4138 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4139 | Py_INCREF(obj); | |
4140 | return Py_BuildValue((char *)""); | |
4141 | } | |
2f4c0a16 | 4142 | static PyObject *_wrap_new_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4143 | PyObject *resultobj; |
4144 | wxIconBundle *result; | |
4145 | char *kwnames[] = { | |
4146 | NULL | |
4147 | }; | |
4148 | ||
4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4150 | { | |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | result = (wxIconBundle *)new wxIconBundle(); | |
4153 | ||
4154 | wxPyEndAllowThreads(__tstate); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | } | |
2f4c0a16 | 4157 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4158 | return resultobj; |
4159 | fail: | |
4160 | return NULL; | |
4161 | } | |
4162 | ||
4163 | ||
2f4c0a16 | 4164 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4165 | PyObject *resultobj; |
4166 | wxString *arg1 = 0 ; | |
4167 | long arg2 ; | |
4168 | wxIconBundle *result; | |
423f194a | 4169 | bool temp1 = False ; |
d14a1e28 | 4170 | PyObject * obj0 = 0 ; |
8edf1c75 | 4171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4172 | char *kwnames[] = { |
4173 | (char *) "file",(char *) "type", NULL | |
4174 | }; | |
4175 | ||
8edf1c75 | 4176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4177 | { |
4178 | arg1 = wxString_in_helper(obj0); | |
4179 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 4180 | temp1 = True; |
d14a1e28 | 4181 | } |
2f4c0a16 RD |
4182 | arg2 = (long) SWIG_AsLong(obj1); |
4183 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4184 | { |
4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4186 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4187 | ||
4188 | wxPyEndAllowThreads(__tstate); | |
4189 | if (PyErr_Occurred()) SWIG_fail; | |
4190 | } | |
2f4c0a16 | 4191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4192 | { |
4193 | if (temp1) | |
4194 | delete arg1; | |
4195 | } | |
4196 | return resultobj; | |
4197 | fail: | |
4198 | { | |
4199 | if (temp1) | |
4200 | delete arg1; | |
4201 | } | |
4202 | return NULL; | |
4203 | } | |
4204 | ||
4205 | ||
2f4c0a16 | 4206 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4207 | PyObject *resultobj; |
4208 | wxIcon *arg1 = 0 ; | |
4209 | wxIconBundle *result; | |
4210 | PyObject * obj0 = 0 ; | |
4211 | char *kwnames[] = { | |
4212 | (char *) "icon", NULL | |
4213 | }; | |
4214 | ||
4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4217 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4218 | SWIG_fail; | |
d14a1e28 | 4219 | if (arg1 == NULL) { |
2f4c0a16 RD |
4220 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4221 | SWIG_fail; | |
d14a1e28 RD |
4222 | } |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4226 | ||
4227 | wxPyEndAllowThreads(__tstate); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
4229 | } | |
2f4c0a16 | 4230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4231 | return resultobj; |
4232 | fail: | |
4233 | return NULL; | |
4234 | } | |
4235 | ||
4236 | ||
2f4c0a16 | 4237 | static PyObject *_wrap_delete_IconBundle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4238 | PyObject *resultobj; |
4239 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | char *kwnames[] = { | |
4242 | (char *) "self", NULL | |
4243 | }; | |
4244 | ||
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4248 | { |
4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4250 | delete arg1; | |
4251 | ||
4252 | wxPyEndAllowThreads(__tstate); | |
4253 | if (PyErr_Occurred()) SWIG_fail; | |
4254 | } | |
4255 | Py_INCREF(Py_None); resultobj = Py_None; | |
4256 | return resultobj; | |
4257 | fail: | |
4258 | return NULL; | |
4259 | } | |
4260 | ||
4261 | ||
2f4c0a16 | 4262 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4263 | PyObject *resultobj; |
4264 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4265 | wxIcon *arg2 = 0 ; | |
4266 | PyObject * obj0 = 0 ; | |
4267 | PyObject * obj1 = 0 ; | |
4268 | char *kwnames[] = { | |
4269 | (char *) "self",(char *) "icon", NULL | |
4270 | }; | |
4271 | ||
4272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4277 | SWIG_fail; | |
d14a1e28 | 4278 | if (arg2 == NULL) { |
2f4c0a16 RD |
4279 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4280 | SWIG_fail; | |
d14a1e28 RD |
4281 | } |
4282 | { | |
4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4284 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4285 | ||
4286 | wxPyEndAllowThreads(__tstate); | |
4287 | if (PyErr_Occurred()) SWIG_fail; | |
4288 | } | |
4289 | Py_INCREF(Py_None); resultobj = Py_None; | |
4290 | return resultobj; | |
4291 | fail: | |
4292 | return NULL; | |
4293 | } | |
4294 | ||
4295 | ||
2f4c0a16 | 4296 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4297 | PyObject *resultobj; |
4298 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4299 | wxString *arg2 = 0 ; | |
4300 | long arg3 ; | |
423f194a | 4301 | bool temp2 = False ; |
d14a1e28 RD |
4302 | PyObject * obj0 = 0 ; |
4303 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4304 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4305 | char *kwnames[] = { |
4306 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4307 | }; | |
4308 | ||
8edf1c75 | 4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4312 | { |
4313 | arg2 = wxString_in_helper(obj1); | |
4314 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4315 | temp2 = True; |
d14a1e28 | 4316 | } |
2f4c0a16 RD |
4317 | arg3 = (long) SWIG_AsLong(obj2); |
4318 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4319 | { |
4320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4321 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4322 | ||
4323 | wxPyEndAllowThreads(__tstate); | |
4324 | if (PyErr_Occurred()) SWIG_fail; | |
4325 | } | |
4326 | Py_INCREF(Py_None); resultobj = Py_None; | |
4327 | { | |
4328 | if (temp2) | |
4329 | delete arg2; | |
4330 | } | |
4331 | return resultobj; | |
4332 | fail: | |
4333 | { | |
4334 | if (temp2) | |
4335 | delete arg2; | |
4336 | } | |
4337 | return NULL; | |
4338 | } | |
4339 | ||
4340 | ||
2f4c0a16 | 4341 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4342 | PyObject *resultobj; |
4343 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4344 | wxSize *arg2 = 0 ; | |
4345 | wxIcon *result; | |
4346 | wxSize temp2 ; | |
4347 | PyObject * obj0 = 0 ; | |
4348 | PyObject * obj1 = 0 ; | |
4349 | char *kwnames[] = { | |
4350 | (char *) "self",(char *) "size", NULL | |
4351 | }; | |
4352 | ||
4353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4356 | { |
4357 | arg2 = &temp2; | |
4358 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4359 | } | |
4360 | { | |
4361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4362 | { | |
4363 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4364 | result = (wxIcon *) &_result_ref; | |
4365 | } | |
4366 | ||
4367 | wxPyEndAllowThreads(__tstate); | |
4368 | if (PyErr_Occurred()) SWIG_fail; | |
4369 | } | |
2f4c0a16 | 4370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
4371 | return resultobj; |
4372 | fail: | |
4373 | return NULL; | |
4374 | } | |
4375 | ||
4376 | ||
2f4c0a16 | 4377 | static PyObject * IconBundle_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4378 | PyObject *obj; |
4379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4380 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4381 | Py_INCREF(obj); | |
4382 | return Py_BuildValue((char *)""); | |
4383 | } | |
2f4c0a16 | 4384 | static PyObject *_wrap_new_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4385 | PyObject *resultobj; |
4386 | wxString *arg1 = (wxString *) 0 ; | |
4387 | long arg2 ; | |
4388 | int arg3 = (int) 0 ; | |
4389 | int arg4 = (int) 0 ; | |
4390 | wxCursor *result; | |
dae0faa6 | 4391 | bool temp1 = False ; |
d14a1e28 | 4392 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4393 | PyObject * obj1 = 0 ; |
4394 | PyObject * obj2 = 0 ; | |
4395 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4396 | char *kwnames[] = { |
2f4c0a16 | 4397 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
4398 | }; |
4399 | ||
8edf1c75 | 4400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
dae0faa6 RD |
4401 | { |
4402 | arg1 = wxString_in_helper(obj0); | |
4403 | if (arg1 == NULL) SWIG_fail; | |
4404 | temp1 = True; | |
4405 | } | |
2f4c0a16 RD |
4406 | arg2 = (long) SWIG_AsLong(obj1); |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | if (obj2) { | |
4409 | arg3 = (int) SWIG_AsInt(obj2); | |
8edf1c75 RD |
4410 | if (PyErr_Occurred()) SWIG_fail; |
4411 | } | |
8edf1c75 | 4412 | if (obj3) { |
2f4c0a16 RD |
4413 | arg4 = (int) SWIG_AsInt(obj3); |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4415 | } |
d14a1e28 RD |
4416 | { |
4417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4418 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4419 | ||
4420 | wxPyEndAllowThreads(__tstate); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
2f4c0a16 | 4423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
dae0faa6 RD |
4424 | { |
4425 | if (temp1) | |
4426 | delete arg1; | |
4427 | } | |
d14a1e28 RD |
4428 | return resultobj; |
4429 | fail: | |
dae0faa6 RD |
4430 | { |
4431 | if (temp1) | |
4432 | delete arg1; | |
4433 | } | |
d14a1e28 RD |
4434 | return NULL; |
4435 | } | |
4436 | ||
4437 | ||
2f4c0a16 | 4438 | static PyObject *_wrap_delete_Cursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4439 | PyObject *resultobj; |
4440 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4441 | PyObject * obj0 = 0 ; | |
4442 | char *kwnames[] = { | |
4443 | (char *) "self", NULL | |
4444 | }; | |
4445 | ||
4446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4449 | { |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | delete arg1; | |
4452 | ||
4453 | wxPyEndAllowThreads(__tstate); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
4456 | Py_INCREF(Py_None); resultobj = Py_None; | |
4457 | return resultobj; | |
4458 | fail: | |
4459 | return NULL; | |
4460 | } | |
4461 | ||
4462 | ||
2f4c0a16 | 4463 | static PyObject *_wrap_new_StockCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4464 | PyObject *resultobj; |
4465 | int arg1 ; | |
4466 | wxCursor *result; | |
8edf1c75 | 4467 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4468 | char *kwnames[] = { |
4469 | (char *) "id", NULL | |
4470 | }; | |
4471 | ||
8edf1c75 | 4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
4473 | arg1 = (int) SWIG_AsInt(obj0); |
4474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4475 | { |
4476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4477 | result = (wxCursor *)new wxCursor(arg1); | |
4478 | ||
4479 | wxPyEndAllowThreads(__tstate); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
2f4c0a16 | 4482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4483 | return resultobj; |
4484 | fail: | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
2f4c0a16 | 4489 | static PyObject *_wrap_new_CursorFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4490 | PyObject *resultobj; |
4491 | wxImage *arg1 = 0 ; | |
4492 | wxCursor *result; | |
4493 | PyObject * obj0 = 0 ; | |
4494 | char *kwnames[] = { | |
4495 | (char *) "image", NULL | |
4496 | }; | |
4497 | ||
4498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
4500 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4501 | SWIG_fail; | |
d14a1e28 | 4502 | if (arg1 == NULL) { |
2f4c0a16 RD |
4503 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4504 | SWIG_fail; | |
d14a1e28 RD |
4505 | } |
4506 | { | |
4507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4508 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4509 | ||
4510 | wxPyEndAllowThreads(__tstate); | |
4511 | if (PyErr_Occurred()) SWIG_fail; | |
4512 | } | |
2f4c0a16 | 4513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4514 | return resultobj; |
4515 | fail: | |
4516 | return NULL; | |
4517 | } | |
4518 | ||
4519 | ||
2f4c0a16 | 4520 | static PyObject *_wrap_Cursor_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4521 | PyObject *resultobj; |
4522 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4523 | bool result; | |
4524 | PyObject * obj0 = 0 ; | |
4525 | char *kwnames[] = { | |
4526 | (char *) "self", NULL | |
4527 | }; | |
4528 | ||
4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4532 | { |
4533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4534 | result = (bool)(arg1)->Ok(); | |
4535 | ||
4536 | wxPyEndAllowThreads(__tstate); | |
4537 | if (PyErr_Occurred()) SWIG_fail; | |
4538 | } | |
02a34c4c | 4539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4540 | return resultobj; |
4541 | fail: | |
4542 | return NULL; | |
4543 | } | |
4544 | ||
4545 | ||
2f4c0a16 | 4546 | static PyObject * Cursor_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
4547 | PyObject *obj; |
4548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4549 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4550 | Py_INCREF(obj); | |
4551 | return Py_BuildValue((char *)""); | |
4552 | } | |
2f4c0a16 | 4553 | static PyObject *_wrap_new_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 4554 | PyObject *resultobj; |
423f194a RD |
4555 | int arg1 = (int) 0 ; |
4556 | int arg2 = (int) 0 ; | |
4557 | int arg3 = (int) 0 ; | |
4558 | int arg4 = (int) 0 ; | |
d14a1e28 | 4559 | wxRegion *result; |
8edf1c75 RD |
4560 | PyObject * obj0 = 0 ; |
4561 | PyObject * obj1 = 0 ; | |
4562 | PyObject * obj2 = 0 ; | |
4563 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4564 | char *kwnames[] = { |
4565 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4566 | }; | |
4567 | ||
8edf1c75 RD |
4568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4569 | if (obj0) { | |
2f4c0a16 RD |
4570 | arg1 = (int) SWIG_AsInt(obj0); |
4571 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4572 | } |
4573 | if (obj1) { | |
2f4c0a16 RD |
4574 | arg2 = (int) SWIG_AsInt(obj1); |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4576 | } |
4577 | if (obj2) { | |
2f4c0a16 RD |
4578 | arg3 = (int) SWIG_AsInt(obj2); |
4579 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
4580 | } |
4581 | if (obj3) { | |
2f4c0a16 RD |
4582 | arg4 = (int) SWIG_AsInt(obj3); |
4583 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4584 | } |
d14a1e28 RD |
4585 | { |
4586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4587 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4588 | ||
4589 | wxPyEndAllowThreads(__tstate); | |
4590 | if (PyErr_Occurred()) SWIG_fail; | |
4591 | } | |
2f4c0a16 | 4592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4593 | return resultobj; |
4594 | fail: | |
4595 | return NULL; | |
4596 | } | |
4597 | ||
4598 | ||
2f4c0a16 | 4599 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4600 | PyObject *resultobj; |
4601 | wxBitmap *arg1 = 0 ; | |
4602 | wxColour const &arg2_defvalue = wxNullColour ; | |
4603 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4604 | int arg3 = (int) 0 ; | |
4605 | wxRegion *result; | |
4606 | wxColour temp2 ; | |
4607 | PyObject * obj0 = 0 ; | |
4608 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4609 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4610 | char *kwnames[] = { |
4611 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4612 | }; | |
4613 | ||
8edf1c75 | 4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4617 | SWIG_fail; | |
d14a1e28 | 4618 | if (arg1 == NULL) { |
2f4c0a16 RD |
4619 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4620 | SWIG_fail; | |
d14a1e28 RD |
4621 | } |
4622 | if (obj1) { | |
4623 | { | |
4624 | arg2 = &temp2; | |
4625 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4626 | } | |
4627 | } | |
8edf1c75 | 4628 | if (obj2) { |
2f4c0a16 RD |
4629 | arg3 = (int) SWIG_AsInt(obj2); |
4630 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4631 | } |
d14a1e28 RD |
4632 | { |
4633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4634 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4635 | ||
4636 | wxPyEndAllowThreads(__tstate); | |
4637 | if (PyErr_Occurred()) SWIG_fail; | |
4638 | } | |
2f4c0a16 | 4639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4640 | return resultobj; |
4641 | fail: | |
4642 | return NULL; | |
4643 | } | |
4644 | ||
4645 | ||
2f4c0a16 | 4646 | static PyObject *_wrap_new_RegionFromPoints(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4647 | PyObject *resultobj; |
4648 | int arg1 ; | |
4649 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4650 | int arg3 = (int) wxWINDING_RULE ; | |
4651 | wxRegion *result; | |
4652 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4653 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4654 | char *kwnames[] = { |
4655 | (char *) "points",(char *) "fillStyle", NULL | |
4656 | }; | |
4657 | ||
8edf1c75 | 4658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4659 | { |
4660 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4661 | if (arg2 == NULL) SWIG_fail; | |
4662 | } | |
8edf1c75 | 4663 | if (obj1) { |
2f4c0a16 RD |
4664 | arg3 = (int) SWIG_AsInt(obj1); |
4665 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4666 | } |
d14a1e28 RD |
4667 | { |
4668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4669 | result = (wxRegion *)new_wxRegion(arg1,arg2,arg3); | |
4670 | ||
4671 | wxPyEndAllowThreads(__tstate); | |
4672 | if (PyErr_Occurred()) SWIG_fail; | |
4673 | } | |
2f4c0a16 | 4674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4675 | { |
4676 | if (arg2) delete [] arg2; | |
4677 | } | |
4678 | return resultobj; | |
4679 | fail: | |
4680 | { | |
4681 | if (arg2) delete [] arg2; | |
4682 | } | |
4683 | return NULL; | |
4684 | } | |
4685 | ||
4686 | ||
2f4c0a16 | 4687 | static PyObject *_wrap_delete_Region(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4688 | PyObject *resultobj; |
4689 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4690 | PyObject * obj0 = 0 ; | |
4691 | char *kwnames[] = { | |
4692 | (char *) "self", NULL | |
4693 | }; | |
4694 | ||
4695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4698 | { |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | delete arg1; | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) SWIG_fail; | |
4704 | } | |
4705 | Py_INCREF(Py_None); resultobj = Py_None; | |
4706 | return resultobj; | |
4707 | fail: | |
4708 | return NULL; | |
4709 | } | |
4710 | ||
4711 | ||
2f4c0a16 | 4712 | static PyObject *_wrap_Region_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4713 | PyObject *resultobj; |
4714 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4715 | PyObject * obj0 = 0 ; | |
4716 | char *kwnames[] = { | |
4717 | (char *) "self", NULL | |
4718 | }; | |
4719 | ||
4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4723 | { |
4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4725 | (arg1)->Clear(); | |
4726 | ||
4727 | wxPyEndAllowThreads(__tstate); | |
4728 | if (PyErr_Occurred()) SWIG_fail; | |
4729 | } | |
4730 | Py_INCREF(Py_None); resultobj = Py_None; | |
4731 | return resultobj; | |
4732 | fail: | |
4733 | return NULL; | |
4734 | } | |
4735 | ||
4736 | ||
2f4c0a16 | 4737 | static PyObject *_wrap_Region_Contains(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4738 | PyObject *resultobj; |
4739 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4740 | int arg2 ; |
4741 | int arg3 ; | |
d14a1e28 RD |
4742 | int result; |
4743 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4744 | PyObject * obj1 = 0 ; |
4745 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4746 | char *kwnames[] = { |
4747 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4748 | }; | |
4749 | ||
8edf1c75 | 4750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
4751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4753 | arg2 = (int) SWIG_AsInt(obj1); | |
4754 | if (PyErr_Occurred()) SWIG_fail; | |
4755 | arg3 = (int) SWIG_AsInt(obj2); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4757 | { |
4758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4759 | result = (int)(arg1)->Contains(arg2,arg3); | |
4760 | ||
4761 | wxPyEndAllowThreads(__tstate); | |
4762 | if (PyErr_Occurred()) SWIG_fail; | |
4763 | } | |
2f4c0a16 | 4764 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4765 | return resultobj; |
4766 | fail: | |
4767 | return NULL; | |
4768 | } | |
4769 | ||
4770 | ||
2f4c0a16 | 4771 | static PyObject *_wrap_Region_ContainsPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4772 | PyObject *resultobj; |
4773 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4774 | wxPoint *arg2 = 0 ; | |
4775 | int result; | |
4776 | wxPoint temp2 ; | |
4777 | PyObject * obj0 = 0 ; | |
4778 | PyObject * obj1 = 0 ; | |
4779 | char *kwnames[] = { | |
4780 | (char *) "self",(char *) "pt", NULL | |
4781 | }; | |
4782 | ||
4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4786 | { |
4787 | arg2 = &temp2; | |
4788 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4789 | } | |
4790 | { | |
4791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4792 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4793 | ||
4794 | wxPyEndAllowThreads(__tstate); | |
4795 | if (PyErr_Occurred()) SWIG_fail; | |
4796 | } | |
2f4c0a16 | 4797 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4798 | return resultobj; |
4799 | fail: | |
4800 | return NULL; | |
4801 | } | |
4802 | ||
4803 | ||
2f4c0a16 | 4804 | static PyObject *_wrap_Region_ContainsRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4805 | PyObject *resultobj; |
4806 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4807 | wxRect *arg2 = 0 ; | |
4808 | int result; | |
4809 | wxRect temp2 ; | |
4810 | PyObject * obj0 = 0 ; | |
4811 | PyObject * obj1 = 0 ; | |
4812 | char *kwnames[] = { | |
4813 | (char *) "self",(char *) "rect", NULL | |
4814 | }; | |
4815 | ||
4816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4819 | { |
4820 | arg2 = &temp2; | |
4821 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4822 | } | |
4823 | { | |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4825 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4826 | ||
4827 | wxPyEndAllowThreads(__tstate); | |
4828 | if (PyErr_Occurred()) SWIG_fail; | |
4829 | } | |
2f4c0a16 | 4830 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4831 | return resultobj; |
4832 | fail: | |
4833 | return NULL; | |
4834 | } | |
4835 | ||
4836 | ||
2f4c0a16 | 4837 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4838 | PyObject *resultobj; |
4839 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4840 | int arg2 ; |
4841 | int arg3 ; | |
4842 | int arg4 ; | |
4843 | int arg5 ; | |
d14a1e28 RD |
4844 | int result; |
4845 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4846 | PyObject * obj1 = 0 ; |
4847 | PyObject * obj2 = 0 ; | |
4848 | PyObject * obj3 = 0 ; | |
4849 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4850 | char *kwnames[] = { |
4851 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4852 | }; | |
4853 | ||
8edf1c75 | 4854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
4855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4857 | arg2 = (int) SWIG_AsInt(obj1); | |
4858 | if (PyErr_Occurred()) SWIG_fail; | |
4859 | arg3 = (int) SWIG_AsInt(obj2); | |
4860 | if (PyErr_Occurred()) SWIG_fail; | |
4861 | arg4 = (int) SWIG_AsInt(obj3); | |
4862 | if (PyErr_Occurred()) SWIG_fail; | |
4863 | arg5 = (int) SWIG_AsInt(obj4); | |
4864 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4865 | { |
4866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4867 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4868 | ||
4869 | wxPyEndAllowThreads(__tstate); | |
4870 | if (PyErr_Occurred()) SWIG_fail; | |
4871 | } | |
2f4c0a16 | 4872 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4873 | return resultobj; |
4874 | fail: | |
4875 | return NULL; | |
4876 | } | |
4877 | ||
4878 | ||
2f4c0a16 | 4879 | static PyObject *_wrap_Region_GetBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4880 | PyObject *resultobj; |
4881 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4882 | wxRect result; | |
4883 | PyObject * obj0 = 0 ; | |
4884 | char *kwnames[] = { | |
4885 | (char *) "self", NULL | |
4886 | }; | |
4887 | ||
4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4891 | { |
4892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4893 | result = (arg1)->GetBox(); | |
4894 | ||
4895 | wxPyEndAllowThreads(__tstate); | |
4896 | if (PyErr_Occurred()) SWIG_fail; | |
4897 | } | |
4898 | { | |
4899 | wxRect * resultptr; | |
4900 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 4901 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4902 | } |
4903 | return resultobj; | |
4904 | fail: | |
4905 | return NULL; | |
4906 | } | |
4907 | ||
4908 | ||
2f4c0a16 | 4909 | static PyObject *_wrap_Region_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4910 | PyObject *resultobj; |
4911 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
4912 | int arg2 ; |
4913 | int arg3 ; | |
4914 | int arg4 ; | |
4915 | int arg5 ; | |
d14a1e28 RD |
4916 | bool result; |
4917 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4918 | PyObject * obj1 = 0 ; |
4919 | PyObject * obj2 = 0 ; | |
4920 | PyObject * obj3 = 0 ; | |
4921 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4922 | char *kwnames[] = { |
4923 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4924 | }; | |
4925 | ||
8edf1c75 | 4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
4927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4929 | arg2 = (int) SWIG_AsInt(obj1); | |
4930 | if (PyErr_Occurred()) SWIG_fail; | |
4931 | arg3 = (int) SWIG_AsInt(obj2); | |
4932 | if (PyErr_Occurred()) SWIG_fail; | |
4933 | arg4 = (int) SWIG_AsInt(obj3); | |
4934 | if (PyErr_Occurred()) SWIG_fail; | |
4935 | arg5 = (int) SWIG_AsInt(obj4); | |
4936 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4937 | { |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4940 | ||
4941 | wxPyEndAllowThreads(__tstate); | |
4942 | if (PyErr_Occurred()) SWIG_fail; | |
4943 | } | |
02a34c4c | 4944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4945 | return resultobj; |
4946 | fail: | |
4947 | return NULL; | |
4948 | } | |
4949 | ||
4950 | ||
2f4c0a16 | 4951 | static PyObject *_wrap_Region_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4952 | PyObject *resultobj; |
4953 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4954 | wxRect *arg2 = 0 ; | |
4955 | bool result; | |
4956 | wxRect temp2 ; | |
4957 | PyObject * obj0 = 0 ; | |
4958 | PyObject * obj1 = 0 ; | |
4959 | char *kwnames[] = { | |
4960 | (char *) "self",(char *) "rect", NULL | |
4961 | }; | |
4962 | ||
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4966 | { |
4967 | arg2 = &temp2; | |
4968 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4969 | } | |
4970 | { | |
4971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4972 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4973 | ||
4974 | wxPyEndAllowThreads(__tstate); | |
4975 | if (PyErr_Occurred()) SWIG_fail; | |
4976 | } | |
02a34c4c | 4977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4978 | return resultobj; |
4979 | fail: | |
4980 | return NULL; | |
4981 | } | |
4982 | ||
4983 | ||
2f4c0a16 | 4984 | static PyObject *_wrap_Region_IntersectRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4985 | PyObject *resultobj; |
4986 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4987 | wxRegion *arg2 = 0 ; | |
4988 | bool result; | |
4989 | PyObject * obj0 = 0 ; | |
4990 | PyObject * obj1 = 0 ; | |
4991 | char *kwnames[] = { | |
4992 | (char *) "self",(char *) "region", NULL | |
4993 | }; | |
4994 | ||
4995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
4999 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5000 | SWIG_fail; | |
d14a1e28 | 5001 | if (arg2 == NULL) { |
2f4c0a16 RD |
5002 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5003 | SWIG_fail; | |
d14a1e28 RD |
5004 | } |
5005 | { | |
5006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5007 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5008 | ||
5009 | wxPyEndAllowThreads(__tstate); | |
5010 | if (PyErr_Occurred()) SWIG_fail; | |
5011 | } | |
02a34c4c | 5012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5013 | return resultobj; |
5014 | fail: | |
5015 | return NULL; | |
5016 | } | |
5017 | ||
5018 | ||
2f4c0a16 | 5019 | static PyObject *_wrap_Region_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5020 | PyObject *resultobj; |
5021 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5022 | bool result; | |
5023 | PyObject * obj0 = 0 ; | |
5024 | char *kwnames[] = { | |
5025 | (char *) "self", NULL | |
5026 | }; | |
5027 | ||
5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5031 | { |
5032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5033 | result = (bool)(arg1)->IsEmpty(); | |
5034 | ||
5035 | wxPyEndAllowThreads(__tstate); | |
5036 | if (PyErr_Occurred()) SWIG_fail; | |
5037 | } | |
02a34c4c | 5038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5039 | return resultobj; |
5040 | fail: | |
5041 | return NULL; | |
5042 | } | |
5043 | ||
5044 | ||
2f4c0a16 | 5045 | static PyObject *_wrap_Region_Union(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5046 | PyObject *resultobj; |
5047 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5048 | int arg2 ; |
5049 | int arg3 ; | |
5050 | int arg4 ; | |
5051 | int arg5 ; | |
d14a1e28 RD |
5052 | bool result; |
5053 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5054 | PyObject * obj1 = 0 ; |
5055 | PyObject * obj2 = 0 ; | |
5056 | PyObject * obj3 = 0 ; | |
5057 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5058 | char *kwnames[] = { |
5059 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5060 | }; | |
5061 | ||
8edf1c75 | 5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5065 | arg2 = (int) SWIG_AsInt(obj1); | |
5066 | if (PyErr_Occurred()) SWIG_fail; | |
5067 | arg3 = (int) SWIG_AsInt(obj2); | |
5068 | if (PyErr_Occurred()) SWIG_fail; | |
5069 | arg4 = (int) SWIG_AsInt(obj3); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | arg5 = (int) SWIG_AsInt(obj4); | |
5072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5073 | { |
5074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5075 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5076 | ||
5077 | wxPyEndAllowThreads(__tstate); | |
5078 | if (PyErr_Occurred()) SWIG_fail; | |
5079 | } | |
02a34c4c | 5080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5081 | return resultobj; |
5082 | fail: | |
5083 | return NULL; | |
5084 | } | |
5085 | ||
5086 | ||
2f4c0a16 | 5087 | static PyObject *_wrap_Region_UnionRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5088 | PyObject *resultobj; |
5089 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5090 | wxRect *arg2 = 0 ; | |
5091 | bool result; | |
5092 | wxRect temp2 ; | |
5093 | PyObject * obj0 = 0 ; | |
5094 | PyObject * obj1 = 0 ; | |
5095 | char *kwnames[] = { | |
5096 | (char *) "self",(char *) "rect", NULL | |
5097 | }; | |
5098 | ||
5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5102 | { |
5103 | arg2 = &temp2; | |
5104 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5105 | } | |
5106 | { | |
5107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5108 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5109 | ||
5110 | wxPyEndAllowThreads(__tstate); | |
5111 | if (PyErr_Occurred()) SWIG_fail; | |
5112 | } | |
02a34c4c | 5113 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5114 | return resultobj; |
5115 | fail: | |
5116 | return NULL; | |
5117 | } | |
5118 | ||
5119 | ||
2f4c0a16 | 5120 | static PyObject *_wrap_Region_UnionRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5121 | PyObject *resultobj; |
5122 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5123 | wxRegion *arg2 = 0 ; | |
5124 | bool result; | |
5125 | PyObject * obj0 = 0 ; | |
5126 | PyObject * obj1 = 0 ; | |
5127 | char *kwnames[] = { | |
5128 | (char *) "self",(char *) "region", NULL | |
5129 | }; | |
5130 | ||
5131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5134 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5135 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5136 | SWIG_fail; | |
d14a1e28 | 5137 | if (arg2 == NULL) { |
2f4c0a16 RD |
5138 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5139 | SWIG_fail; | |
d14a1e28 RD |
5140 | } |
5141 | { | |
5142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5143 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5144 | ||
5145 | wxPyEndAllowThreads(__tstate); | |
5146 | if (PyErr_Occurred()) SWIG_fail; | |
5147 | } | |
02a34c4c | 5148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5149 | return resultobj; |
5150 | fail: | |
5151 | return NULL; | |
5152 | } | |
5153 | ||
5154 | ||
2f4c0a16 | 5155 | static PyObject *_wrap_Region_Subtract(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5156 | PyObject *resultobj; |
5157 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5158 | int arg2 ; |
5159 | int arg3 ; | |
5160 | int arg4 ; | |
5161 | int arg5 ; | |
d14a1e28 RD |
5162 | bool result; |
5163 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5164 | PyObject * obj1 = 0 ; |
5165 | PyObject * obj2 = 0 ; | |
5166 | PyObject * obj3 = 0 ; | |
5167 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5168 | char *kwnames[] = { |
5169 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5170 | }; | |
5171 | ||
8edf1c75 | 5172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5175 | arg2 = (int) SWIG_AsInt(obj1); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | arg3 = (int) SWIG_AsInt(obj2); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | arg4 = (int) SWIG_AsInt(obj3); | |
5180 | if (PyErr_Occurred()) SWIG_fail; | |
5181 | arg5 = (int) SWIG_AsInt(obj4); | |
5182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5183 | { |
5184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5185 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5186 | ||
5187 | wxPyEndAllowThreads(__tstate); | |
5188 | if (PyErr_Occurred()) SWIG_fail; | |
5189 | } | |
02a34c4c | 5190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5191 | return resultobj; |
5192 | fail: | |
5193 | return NULL; | |
5194 | } | |
5195 | ||
5196 | ||
2f4c0a16 | 5197 | static PyObject *_wrap_Region_SubtractRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5198 | PyObject *resultobj; |
5199 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5200 | wxRect *arg2 = 0 ; | |
5201 | bool result; | |
5202 | wxRect temp2 ; | |
5203 | PyObject * obj0 = 0 ; | |
5204 | PyObject * obj1 = 0 ; | |
5205 | char *kwnames[] = { | |
5206 | (char *) "self",(char *) "rect", NULL | |
5207 | }; | |
5208 | ||
5209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5212 | { |
5213 | arg2 = &temp2; | |
5214 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5215 | } | |
5216 | { | |
5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5218 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5219 | ||
5220 | wxPyEndAllowThreads(__tstate); | |
5221 | if (PyErr_Occurred()) SWIG_fail; | |
5222 | } | |
02a34c4c | 5223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5224 | return resultobj; |
5225 | fail: | |
5226 | return NULL; | |
5227 | } | |
5228 | ||
5229 | ||
2f4c0a16 | 5230 | static PyObject *_wrap_Region_SubtractRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5231 | PyObject *resultobj; |
5232 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5233 | wxRegion *arg2 = 0 ; | |
5234 | bool result; | |
5235 | PyObject * obj0 = 0 ; | |
5236 | PyObject * obj1 = 0 ; | |
5237 | char *kwnames[] = { | |
5238 | (char *) "self",(char *) "region", NULL | |
5239 | }; | |
5240 | ||
5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5245 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5246 | SWIG_fail; | |
d14a1e28 | 5247 | if (arg2 == NULL) { |
2f4c0a16 RD |
5248 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5249 | SWIG_fail; | |
d14a1e28 RD |
5250 | } |
5251 | { | |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5253 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5254 | ||
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
02a34c4c | 5258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5259 | return resultobj; |
5260 | fail: | |
5261 | return NULL; | |
5262 | } | |
5263 | ||
5264 | ||
2f4c0a16 | 5265 | static PyObject *_wrap_Region_Xor(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5266 | PyObject *resultobj; |
5267 | wxRegion *arg1 = (wxRegion *) 0 ; | |
423f194a RD |
5268 | int arg2 ; |
5269 | int arg3 ; | |
5270 | int arg4 ; | |
5271 | int arg5 ; | |
d14a1e28 RD |
5272 | bool result; |
5273 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5274 | PyObject * obj1 = 0 ; |
5275 | PyObject * obj2 = 0 ; | |
5276 | PyObject * obj3 = 0 ; | |
5277 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5278 | char *kwnames[] = { |
5279 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5280 | }; | |
5281 | ||
8edf1c75 | 5282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
5283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5285 | arg2 = (int) SWIG_AsInt(obj1); | |
5286 | if (PyErr_Occurred()) SWIG_fail; | |
5287 | arg3 = (int) SWIG_AsInt(obj2); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | arg4 = (int) SWIG_AsInt(obj3); | |
5290 | if (PyErr_Occurred()) SWIG_fail; | |
5291 | arg5 = (int) SWIG_AsInt(obj4); | |
5292 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5293 | { |
5294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5295 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5296 | ||
5297 | wxPyEndAllowThreads(__tstate); | |
5298 | if (PyErr_Occurred()) SWIG_fail; | |
5299 | } | |
02a34c4c | 5300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5301 | return resultobj; |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
2f4c0a16 | 5307 | static PyObject *_wrap_Region_XorRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5308 | PyObject *resultobj; |
5309 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5310 | wxRect *arg2 = 0 ; | |
5311 | bool result; | |
5312 | wxRect temp2 ; | |
5313 | PyObject * obj0 = 0 ; | |
5314 | PyObject * obj1 = 0 ; | |
5315 | char *kwnames[] = { | |
5316 | (char *) "self",(char *) "rect", NULL | |
5317 | }; | |
5318 | ||
5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5322 | { |
5323 | arg2 = &temp2; | |
5324 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5325 | } | |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5329 | ||
5330 | wxPyEndAllowThreads(__tstate); | |
5331 | if (PyErr_Occurred()) SWIG_fail; | |
5332 | } | |
02a34c4c | 5333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5334 | return resultobj; |
5335 | fail: | |
5336 | return NULL; | |
5337 | } | |
5338 | ||
5339 | ||
2f4c0a16 | 5340 | static PyObject *_wrap_Region_XorRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5341 | PyObject *resultobj; |
5342 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5343 | wxRegion *arg2 = 0 ; | |
5344 | bool result; | |
5345 | PyObject * obj0 = 0 ; | |
5346 | PyObject * obj1 = 0 ; | |
5347 | char *kwnames[] = { | |
5348 | (char *) "self",(char *) "region", NULL | |
5349 | }; | |
5350 | ||
5351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5355 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5356 | SWIG_fail; | |
d14a1e28 | 5357 | if (arg2 == NULL) { |
2f4c0a16 RD |
5358 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5359 | SWIG_fail; | |
d14a1e28 RD |
5360 | } |
5361 | { | |
5362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5363 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5364 | ||
5365 | wxPyEndAllowThreads(__tstate); | |
5366 | if (PyErr_Occurred()) SWIG_fail; | |
5367 | } | |
02a34c4c | 5368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5369 | return resultobj; |
5370 | fail: | |
5371 | return NULL; | |
5372 | } | |
5373 | ||
5374 | ||
2f4c0a16 | 5375 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5376 | PyObject *resultobj; |
5377 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5378 | SwigValueWrapper< wxBitmap > result; | |
5379 | PyObject * obj0 = 0 ; | |
5380 | char *kwnames[] = { | |
5381 | (char *) "self", NULL | |
5382 | }; | |
5383 | ||
5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5387 | { |
5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5389 | result = (arg1)->ConvertToBitmap(); | |
5390 | ||
5391 | wxPyEndAllowThreads(__tstate); | |
5392 | if (PyErr_Occurred()) SWIG_fail; | |
5393 | } | |
5394 | { | |
5395 | wxBitmap * resultptr; | |
5396 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 5397 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5398 | } |
5399 | return resultobj; | |
5400 | fail: | |
5401 | return NULL; | |
5402 | } | |
5403 | ||
5404 | ||
2f4c0a16 | 5405 | static PyObject *_wrap_Region_UnionBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5406 | PyObject *resultobj; |
5407 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5408 | wxBitmap *arg2 = 0 ; | |
5409 | wxColour const &arg3_defvalue = wxNullColour ; | |
5410 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5411 | int arg4 = (int) 0 ; | |
5412 | bool result; | |
5413 | wxColour temp3 ; | |
5414 | PyObject * obj0 = 0 ; | |
5415 | PyObject * obj1 = 0 ; | |
5416 | PyObject * obj2 = 0 ; | |
8edf1c75 | 5417 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5418 | char *kwnames[] = { |
5419 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5420 | }; | |
5421 | ||
8edf1c75 | 5422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5426 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5427 | SWIG_fail; | |
d14a1e28 | 5428 | if (arg2 == NULL) { |
2f4c0a16 RD |
5429 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5430 | SWIG_fail; | |
d14a1e28 RD |
5431 | } |
5432 | if (obj2) { | |
5433 | { | |
5434 | arg3 = &temp3; | |
5435 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5436 | } | |
5437 | } | |
8edf1c75 | 5438 | if (obj3) { |
2f4c0a16 RD |
5439 | arg4 = (int) SWIG_AsInt(obj3); |
5440 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5441 | } |
d14a1e28 RD |
5442 | { |
5443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5444 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5445 | ||
5446 | wxPyEndAllowThreads(__tstate); | |
5447 | if (PyErr_Occurred()) SWIG_fail; | |
5448 | } | |
02a34c4c | 5449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5450 | return resultobj; |
5451 | fail: | |
5452 | return NULL; | |
5453 | } | |
5454 | ||
5455 | ||
2f4c0a16 | 5456 | static PyObject * Region_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5457 | PyObject *obj; |
5458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5459 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5460 | Py_INCREF(obj); | |
5461 | return Py_BuildValue((char *)""); | |
5462 | } | |
2f4c0a16 | 5463 | static PyObject *_wrap_new_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5464 | PyObject *resultobj; |
5465 | wxRegion *arg1 = 0 ; | |
5466 | wxRegionIterator *result; | |
5467 | PyObject * obj0 = 0 ; | |
5468 | char *kwnames[] = { | |
5469 | (char *) "region", NULL | |
5470 | }; | |
5471 | ||
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5474 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5475 | SWIG_fail; | |
d14a1e28 | 5476 | if (arg1 == NULL) { |
2f4c0a16 RD |
5477 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5478 | SWIG_fail; | |
d14a1e28 RD |
5479 | } |
5480 | { | |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5482 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5483 | ||
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
2f4c0a16 | 5487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
5488 | return resultobj; |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
2f4c0a16 | 5494 | static PyObject *_wrap_delete_RegionIterator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5495 | PyObject *resultobj; |
5496 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5497 | PyObject * obj0 = 0 ; | |
5498 | char *kwnames[] = { | |
5499 | (char *) "self", NULL | |
5500 | }; | |
5501 | ||
5502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5505 | { |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | delete arg1; | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | Py_INCREF(Py_None); resultobj = Py_None; | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
2f4c0a16 | 5519 | static PyObject *_wrap_RegionIterator_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5520 | PyObject *resultobj; |
5521 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5522 | int result; |
d14a1e28 RD |
5523 | PyObject * obj0 = 0 ; |
5524 | char *kwnames[] = { | |
5525 | (char *) "self", NULL | |
5526 | }; | |
5527 | ||
5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5531 | { |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5533 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5534 | |
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
5537 | } | |
2f4c0a16 | 5538 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5539 | return resultobj; |
5540 | fail: | |
5541 | return NULL; | |
5542 | } | |
5543 | ||
5544 | ||
2f4c0a16 | 5545 | static PyObject *_wrap_RegionIterator_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5546 | PyObject *resultobj; |
5547 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5548 | int result; |
d14a1e28 RD |
5549 | PyObject * obj0 = 0 ; |
5550 | char *kwnames[] = { | |
5551 | (char *) "self", NULL | |
5552 | }; | |
5553 | ||
5554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5557 | { |
5558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5559 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5560 | |
5561 | wxPyEndAllowThreads(__tstate); | |
5562 | if (PyErr_Occurred()) SWIG_fail; | |
5563 | } | |
2f4c0a16 | 5564 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5565 | return resultobj; |
5566 | fail: | |
5567 | return NULL; | |
5568 | } | |
5569 | ||
5570 | ||
2f4c0a16 | 5571 | static PyObject *_wrap_RegionIterator_GetW(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5572 | PyObject *resultobj; |
5573 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5574 | int result; |
d14a1e28 RD |
5575 | PyObject * obj0 = 0 ; |
5576 | char *kwnames[] = { | |
5577 | (char *) "self", NULL | |
5578 | }; | |
5579 | ||
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5583 | { |
5584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5585 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5586 | |
5587 | wxPyEndAllowThreads(__tstate); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
2f4c0a16 | 5590 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5591 | return resultobj; |
5592 | fail: | |
5593 | return NULL; | |
5594 | } | |
5595 | ||
5596 | ||
2f4c0a16 | 5597 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5598 | PyObject *resultobj; |
5599 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5600 | int result; |
d14a1e28 RD |
5601 | PyObject * obj0 = 0 ; |
5602 | char *kwnames[] = { | |
5603 | (char *) "self", NULL | |
5604 | }; | |
5605 | ||
5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5609 | { |
5610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5611 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5612 | |
5613 | wxPyEndAllowThreads(__tstate); | |
5614 | if (PyErr_Occurred()) SWIG_fail; | |
5615 | } | |
2f4c0a16 | 5616 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5617 | return resultobj; |
5618 | fail: | |
5619 | return NULL; | |
5620 | } | |
5621 | ||
5622 | ||
2f4c0a16 | 5623 | static PyObject *_wrap_RegionIterator_GetH(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5624 | PyObject *resultobj; |
5625 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5626 | int result; |
d14a1e28 RD |
5627 | PyObject * obj0 = 0 ; |
5628 | char *kwnames[] = { | |
5629 | (char *) "self", NULL | |
5630 | }; | |
5631 | ||
5632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5635 | { |
5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5637 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5638 | |
5639 | wxPyEndAllowThreads(__tstate); | |
5640 | if (PyErr_Occurred()) SWIG_fail; | |
5641 | } | |
2f4c0a16 | 5642 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5643 | return resultobj; |
5644 | fail: | |
5645 | return NULL; | |
5646 | } | |
5647 | ||
5648 | ||
2f4c0a16 | 5649 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5650 | PyObject *resultobj; |
5651 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
423f194a | 5652 | int result; |
d14a1e28 RD |
5653 | PyObject * obj0 = 0 ; |
5654 | char *kwnames[] = { | |
5655 | (char *) "self", NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5661 | { |
5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 5663 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5664 | |
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
2f4c0a16 | 5668 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5669 | return resultobj; |
5670 | fail: | |
5671 | return NULL; | |
5672 | } | |
5673 | ||
5674 | ||
2f4c0a16 | 5675 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5676 | PyObject *resultobj; |
5677 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5678 | wxRect result; | |
5679 | PyObject * obj0 = 0 ; | |
5680 | char *kwnames[] = { | |
5681 | (char *) "self", NULL | |
5682 | }; | |
5683 | ||
5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5687 | { |
5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5689 | result = (arg1)->GetRect(); | |
5690 | ||
5691 | wxPyEndAllowThreads(__tstate); | |
5692 | if (PyErr_Occurred()) SWIG_fail; | |
5693 | } | |
5694 | { | |
5695 | wxRect * resultptr; | |
5696 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 5697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5698 | } |
5699 | return resultobj; | |
5700 | fail: | |
5701 | return NULL; | |
5702 | } | |
5703 | ||
5704 | ||
2f4c0a16 | 5705 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5706 | PyObject *resultobj; |
5707 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5708 | bool result; | |
5709 | PyObject * obj0 = 0 ; | |
5710 | char *kwnames[] = { | |
5711 | (char *) "self", NULL | |
5712 | }; | |
5713 | ||
5714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5717 | { |
5718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5719 | result = (bool)(arg1)->HaveRects(); | |
5720 | ||
5721 | wxPyEndAllowThreads(__tstate); | |
5722 | if (PyErr_Occurred()) SWIG_fail; | |
5723 | } | |
02a34c4c | 5724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5725 | return resultobj; |
5726 | fail: | |
5727 | return NULL; | |
5728 | } | |
5729 | ||
5730 | ||
2f4c0a16 | 5731 | static PyObject *_wrap_RegionIterator_Reset(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5732 | PyObject *resultobj; |
5733 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5734 | PyObject * obj0 = 0 ; | |
5735 | char *kwnames[] = { | |
5736 | (char *) "self", NULL | |
5737 | }; | |
5738 | ||
5739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5742 | { |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | (arg1)->Reset(); | |
5745 | ||
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) SWIG_fail; | |
5748 | } | |
5749 | Py_INCREF(Py_None); resultobj = Py_None; | |
5750 | return resultobj; | |
5751 | fail: | |
5752 | return NULL; | |
5753 | } | |
5754 | ||
5755 | ||
2f4c0a16 | 5756 | static PyObject *_wrap_RegionIterator_Next(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5757 | PyObject *resultobj; |
5758 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5759 | PyObject * obj0 = 0 ; | |
5760 | char *kwnames[] = { | |
5761 | (char *) "self", NULL | |
5762 | }; | |
5763 | ||
5764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5767 | { |
5768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5769 | wxRegionIterator_Next(arg1); | |
5770 | ||
5771 | wxPyEndAllowThreads(__tstate); | |
5772 | if (PyErr_Occurred()) SWIG_fail; | |
5773 | } | |
5774 | Py_INCREF(Py_None); resultobj = Py_None; | |
5775 | return resultobj; | |
5776 | fail: | |
5777 | return NULL; | |
5778 | } | |
5779 | ||
5780 | ||
2f4c0a16 | 5781 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5782 | PyObject *resultobj; |
5783 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5784 | bool result; | |
5785 | PyObject * obj0 = 0 ; | |
5786 | char *kwnames[] = { | |
5787 | (char *) "self", NULL | |
5788 | }; | |
5789 | ||
5790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5793 | { |
5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5795 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5796 | ||
5797 | wxPyEndAllowThreads(__tstate); | |
5798 | if (PyErr_Occurred()) SWIG_fail; | |
5799 | } | |
02a34c4c | 5800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5801 | return resultobj; |
5802 | fail: | |
5803 | return NULL; | |
5804 | } | |
5805 | ||
5806 | ||
2f4c0a16 | 5807 | static PyObject * RegionIterator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
5808 | PyObject *obj; |
5809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5810 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5811 | Py_INCREF(obj); | |
5812 | return Py_BuildValue((char *)""); | |
5813 | } | |
2f4c0a16 | 5814 | static PyObject *_wrap_new_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5815 | PyObject *resultobj; |
5816 | wxNativeFontInfo *result; | |
5817 | char *kwnames[] = { | |
5818 | NULL | |
5819 | }; | |
5820 | ||
5821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5822 | { | |
5823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5824 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5825 | ||
5826 | wxPyEndAllowThreads(__tstate); | |
5827 | if (PyErr_Occurred()) SWIG_fail; | |
5828 | } | |
2f4c0a16 | 5829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
5830 | return resultobj; |
5831 | fail: | |
5832 | return NULL; | |
5833 | } | |
5834 | ||
5835 | ||
2f4c0a16 | 5836 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5837 | PyObject *resultobj; |
5838 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5839 | PyObject * obj0 = 0 ; | |
5840 | char *kwnames[] = { | |
5841 | (char *) "self", NULL | |
5842 | }; | |
5843 | ||
5844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5847 | { |
5848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5849 | delete arg1; | |
5850 | ||
5851 | wxPyEndAllowThreads(__tstate); | |
5852 | if (PyErr_Occurred()) SWIG_fail; | |
5853 | } | |
5854 | Py_INCREF(Py_None); resultobj = Py_None; | |
5855 | return resultobj; | |
5856 | fail: | |
5857 | return NULL; | |
5858 | } | |
5859 | ||
5860 | ||
2f4c0a16 | 5861 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5862 | PyObject *resultobj; |
5863 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5864 | PyObject * obj0 = 0 ; | |
5865 | char *kwnames[] = { | |
5866 | (char *) "self", NULL | |
5867 | }; | |
5868 | ||
5869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5872 | { |
5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5874 | (arg1)->Init(); | |
5875 | ||
5876 | wxPyEndAllowThreads(__tstate); | |
5877 | if (PyErr_Occurred()) SWIG_fail; | |
5878 | } | |
5879 | Py_INCREF(Py_None); resultobj = Py_None; | |
5880 | return resultobj; | |
5881 | fail: | |
5882 | return NULL; | |
5883 | } | |
5884 | ||
5885 | ||
2f4c0a16 | 5886 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5887 | PyObject *resultobj; |
5888 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5889 | wxFont *arg2 = 0 ; | |
5890 | PyObject * obj0 = 0 ; | |
5891 | PyObject * obj1 = 0 ; | |
5892 | char *kwnames[] = { | |
5893 | (char *) "self",(char *) "font", NULL | |
5894 | }; | |
5895 | ||
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
5900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5901 | SWIG_fail; | |
d14a1e28 | 5902 | if (arg2 == NULL) { |
2f4c0a16 RD |
5903 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5904 | SWIG_fail; | |
d14a1e28 RD |
5905 | } |
5906 | { | |
5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5908 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5909 | ||
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
5913 | Py_INCREF(Py_None); resultobj = Py_None; | |
5914 | return resultobj; | |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
2f4c0a16 | 5920 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5921 | PyObject *resultobj; |
5922 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5923 | int result; | |
5924 | PyObject * obj0 = 0 ; | |
5925 | char *kwnames[] = { | |
5926 | (char *) "self", NULL | |
5927 | }; | |
5928 | ||
5929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5932 | { |
5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5934 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5935 | ||
5936 | wxPyEndAllowThreads(__tstate); | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
5938 | } | |
2f4c0a16 | 5939 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5940 | return resultobj; |
5941 | fail: | |
5942 | return NULL; | |
5943 | } | |
5944 | ||
5945 | ||
2f4c0a16 | 5946 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5947 | PyObject *resultobj; |
5948 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5949 | int result; | |
5950 | PyObject * obj0 = 0 ; | |
5951 | char *kwnames[] = { | |
5952 | (char *) "self", NULL | |
5953 | }; | |
5954 | ||
5955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5958 | { |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
2f4c0a16 | 5965 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5966 | return resultobj; |
5967 | fail: | |
5968 | return NULL; | |
5969 | } | |
5970 | ||
5971 | ||
2f4c0a16 | 5972 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5973 | PyObject *resultobj; |
5974 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5975 | int result; | |
5976 | PyObject * obj0 = 0 ; | |
5977 | char *kwnames[] = { | |
5978 | (char *) "self", NULL | |
5979 | }; | |
5980 | ||
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5984 | { |
5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5986 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
5987 | ||
5988 | wxPyEndAllowThreads(__tstate); | |
5989 | if (PyErr_Occurred()) SWIG_fail; | |
5990 | } | |
2f4c0a16 | 5991 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5992 | return resultobj; |
5993 | fail: | |
5994 | return NULL; | |
5995 | } | |
5996 | ||
5997 | ||
2f4c0a16 | 5998 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5999 | PyObject *resultobj; |
6000 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6001 | bool result; | |
6002 | PyObject * obj0 = 0 ; | |
6003 | char *kwnames[] = { | |
6004 | (char *) "self", NULL | |
6005 | }; | |
6006 | ||
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6010 | { |
6011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6012 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6013 | ||
6014 | wxPyEndAllowThreads(__tstate); | |
6015 | if (PyErr_Occurred()) SWIG_fail; | |
6016 | } | |
02a34c4c | 6017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6018 | return resultobj; |
6019 | fail: | |
6020 | return NULL; | |
6021 | } | |
6022 | ||
6023 | ||
2f4c0a16 | 6024 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6025 | PyObject *resultobj; |
6026 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6027 | wxString result; | |
6028 | PyObject * obj0 = 0 ; | |
6029 | char *kwnames[] = { | |
6030 | (char *) "self", NULL | |
6031 | }; | |
6032 | ||
6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6036 | { |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | { | |
6044 | #if wxUSE_UNICODE | |
6045 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6046 | #else | |
6047 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6048 | #endif | |
6049 | } | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | return NULL; | |
6053 | } | |
6054 | ||
6055 | ||
2f4c0a16 | 6056 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6057 | PyObject *resultobj; |
6058 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6059 | int result; | |
6060 | PyObject * obj0 = 0 ; | |
6061 | char *kwnames[] = { | |
6062 | (char *) "self", NULL | |
6063 | }; | |
6064 | ||
6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6068 | { |
6069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6070 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6071 | ||
6072 | wxPyEndAllowThreads(__tstate); | |
6073 | if (PyErr_Occurred()) SWIG_fail; | |
6074 | } | |
2f4c0a16 | 6075 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6076 | return resultobj; |
6077 | fail: | |
6078 | return NULL; | |
6079 | } | |
6080 | ||
6081 | ||
2f4c0a16 | 6082 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6083 | PyObject *resultobj; |
6084 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6085 | int result; | |
6086 | PyObject * obj0 = 0 ; | |
6087 | char *kwnames[] = { | |
6088 | (char *) "self", NULL | |
6089 | }; | |
6090 | ||
6091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6094 | { |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
2f4c0a16 | 6101 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6102 | return resultobj; |
6103 | fail: | |
6104 | return NULL; | |
6105 | } | |
6106 | ||
6107 | ||
2f4c0a16 | 6108 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6109 | PyObject *resultobj; |
6110 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6111 | int arg2 ; | |
6112 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6114 | char *kwnames[] = { |
6115 | (char *) "self",(char *) "pointsize", NULL | |
6116 | }; | |
6117 | ||
8edf1c75 | 6118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6121 | arg2 = (int) SWIG_AsInt(obj1); | |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6123 | { |
6124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6125 | (arg1)->SetPointSize(arg2); | |
6126 | ||
6127 | wxPyEndAllowThreads(__tstate); | |
6128 | if (PyErr_Occurred()) SWIG_fail; | |
6129 | } | |
6130 | Py_INCREF(Py_None); resultobj = Py_None; | |
6131 | return resultobj; | |
6132 | fail: | |
6133 | return NULL; | |
6134 | } | |
6135 | ||
6136 | ||
2f4c0a16 | 6137 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6138 | PyObject *resultobj; |
6139 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6140 | int arg2 ; | |
6141 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6143 | char *kwnames[] = { |
6144 | (char *) "self",(char *) "style", NULL | |
6145 | }; | |
6146 | ||
8edf1c75 | 6147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6150 | arg2 = (wxFontStyle) SWIG_AsInt(obj1); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6152 | { |
6153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6154 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6155 | ||
6156 | wxPyEndAllowThreads(__tstate); | |
6157 | if (PyErr_Occurred()) SWIG_fail; | |
6158 | } | |
6159 | Py_INCREF(Py_None); resultobj = Py_None; | |
6160 | return resultobj; | |
6161 | fail: | |
6162 | return NULL; | |
6163 | } | |
6164 | ||
6165 | ||
2f4c0a16 | 6166 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6167 | PyObject *resultobj; |
6168 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6169 | int arg2 ; | |
6170 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6171 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6172 | char *kwnames[] = { |
6173 | (char *) "self",(char *) "weight", NULL | |
6174 | }; | |
6175 | ||
8edf1c75 | 6176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6179 | arg2 = (wxFontWeight) SWIG_AsInt(obj1); | |
6180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6181 | { |
6182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6183 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6184 | ||
6185 | wxPyEndAllowThreads(__tstate); | |
6186 | if (PyErr_Occurred()) SWIG_fail; | |
6187 | } | |
6188 | Py_INCREF(Py_None); resultobj = Py_None; | |
6189 | return resultobj; | |
6190 | fail: | |
6191 | return NULL; | |
6192 | } | |
6193 | ||
6194 | ||
2f4c0a16 | 6195 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6196 | PyObject *resultobj; |
6197 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6198 | bool arg2 ; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | PyObject * obj1 = 0 ; | |
6201 | char *kwnames[] = { | |
6202 | (char *) "self",(char *) "underlined", NULL | |
6203 | }; | |
6204 | ||
6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6208 | arg2 = (bool) SWIG_AsBool(obj1); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6210 | { |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | (arg1)->SetUnderlined(arg2); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | Py_INCREF(Py_None); resultobj = Py_None; | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
2f4c0a16 | 6224 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6225 | PyObject *resultobj; |
6226 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6227 | wxString arg2 ; | |
d14a1e28 RD |
6228 | PyObject * obj0 = 0 ; |
6229 | PyObject * obj1 = 0 ; | |
6230 | char *kwnames[] = { | |
6231 | (char *) "self",(char *) "facename", NULL | |
6232 | }; | |
6233 | ||
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
6237 | { |
6238 | wxString* sptr = wxString_in_helper(obj1); | |
6239 | if (sptr == NULL) SWIG_fail; | |
6240 | arg2 = *sptr; | |
6241 | delete sptr; | |
6242 | } | |
d14a1e28 RD |
6243 | { |
6244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6245 | (arg1)->SetFaceName(arg2); | |
6246 | ||
6247 | wxPyEndAllowThreads(__tstate); | |
6248 | if (PyErr_Occurred()) SWIG_fail; | |
6249 | } | |
6250 | Py_INCREF(Py_None); resultobj = Py_None; | |
6251 | return resultobj; | |
6252 | fail: | |
6253 | return NULL; | |
6254 | } | |
6255 | ||
6256 | ||
2f4c0a16 | 6257 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6258 | PyObject *resultobj; |
6259 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6260 | int arg2 ; | |
6261 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6263 | char *kwnames[] = { |
6264 | (char *) "self",(char *) "family", NULL | |
6265 | }; | |
6266 | ||
8edf1c75 | 6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6270 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
6271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6272 | { |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
6279 | Py_INCREF(Py_None); resultobj = Py_None; | |
6280 | return resultobj; | |
6281 | fail: | |
6282 | return NULL; | |
6283 | } | |
6284 | ||
6285 | ||
2f4c0a16 | 6286 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6287 | PyObject *resultobj; |
6288 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6289 | int arg2 ; | |
6290 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6291 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6292 | char *kwnames[] = { |
6293 | (char *) "self",(char *) "encoding", NULL | |
6294 | }; | |
6295 | ||
8edf1c75 | 6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6299 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6300 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6301 | { |
6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6303 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6304 | ||
6305 | wxPyEndAllowThreads(__tstate); | |
6306 | if (PyErr_Occurred()) SWIG_fail; | |
6307 | } | |
6308 | Py_INCREF(Py_None); resultobj = Py_None; | |
6309 | return resultobj; | |
6310 | fail: | |
6311 | return NULL; | |
6312 | } | |
6313 | ||
6314 | ||
2f4c0a16 | 6315 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6316 | PyObject *resultobj; |
6317 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6318 | wxString *arg2 = 0 ; | |
6319 | bool result; | |
423f194a | 6320 | bool temp2 = False ; |
d14a1e28 RD |
6321 | PyObject * obj0 = 0 ; |
6322 | PyObject * obj1 = 0 ; | |
6323 | char *kwnames[] = { | |
6324 | (char *) "self",(char *) "s", NULL | |
6325 | }; | |
6326 | ||
6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6330 | { |
6331 | arg2 = wxString_in_helper(obj1); | |
6332 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6333 | temp2 = True; |
d14a1e28 RD |
6334 | } |
6335 | { | |
6336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6337 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6338 | ||
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
02a34c4c | 6342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6343 | { |
6344 | if (temp2) | |
6345 | delete arg2; | |
6346 | } | |
6347 | return resultobj; | |
6348 | fail: | |
6349 | { | |
6350 | if (temp2) | |
6351 | delete arg2; | |
6352 | } | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
2f4c0a16 | 6357 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6358 | PyObject *resultobj; |
6359 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6360 | wxString result; | |
6361 | PyObject * obj0 = 0 ; | |
6362 | char *kwnames[] = { | |
6363 | (char *) "self", NULL | |
6364 | }; | |
6365 | ||
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6369 | { |
6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6371 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6372 | ||
6373 | wxPyEndAllowThreads(__tstate); | |
6374 | if (PyErr_Occurred()) SWIG_fail; | |
6375 | } | |
6376 | { | |
6377 | #if wxUSE_UNICODE | |
6378 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6379 | #else | |
6380 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6381 | #endif | |
6382 | } | |
6383 | return resultobj; | |
6384 | fail: | |
6385 | return NULL; | |
6386 | } | |
6387 | ||
6388 | ||
2f4c0a16 | 6389 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6390 | PyObject *resultobj; |
6391 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6392 | wxString result; | |
6393 | PyObject * obj0 = 0 ; | |
6394 | char *kwnames[] = { | |
6395 | (char *) "self", NULL | |
6396 | }; | |
6397 | ||
6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6401 | { |
6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6403 | result = wxNativeFontInfo___str__(arg1); | |
6404 | ||
6405 | wxPyEndAllowThreads(__tstate); | |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
6407 | } | |
6408 | { | |
6409 | #if wxUSE_UNICODE | |
6410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6411 | #else | |
6412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6413 | #endif | |
6414 | } | |
6415 | return resultobj; | |
6416 | fail: | |
6417 | return NULL; | |
6418 | } | |
6419 | ||
6420 | ||
2f4c0a16 | 6421 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6422 | PyObject *resultobj; |
6423 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6424 | wxString *arg2 = 0 ; | |
6425 | bool result; | |
423f194a | 6426 | bool temp2 = False ; |
d14a1e28 RD |
6427 | PyObject * obj0 = 0 ; |
6428 | PyObject * obj1 = 0 ; | |
6429 | char *kwnames[] = { | |
6430 | (char *) "self",(char *) "s", NULL | |
6431 | }; | |
6432 | ||
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6436 | { |
6437 | arg2 = wxString_in_helper(obj1); | |
6438 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6439 | temp2 = True; |
d14a1e28 RD |
6440 | } |
6441 | { | |
6442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6443 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6444 | ||
6445 | wxPyEndAllowThreads(__tstate); | |
6446 | if (PyErr_Occurred()) SWIG_fail; | |
6447 | } | |
02a34c4c | 6448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6449 | { |
6450 | if (temp2) | |
6451 | delete arg2; | |
6452 | } | |
6453 | return resultobj; | |
6454 | fail: | |
6455 | { | |
6456 | if (temp2) | |
6457 | delete arg2; | |
6458 | } | |
6459 | return NULL; | |
6460 | } | |
6461 | ||
6462 | ||
2f4c0a16 | 6463 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6464 | PyObject *resultobj; |
6465 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6466 | wxString result; | |
6467 | PyObject * obj0 = 0 ; | |
6468 | char *kwnames[] = { | |
6469 | (char *) "self", NULL | |
6470 | }; | |
6471 | ||
6472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6475 | { |
6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6477 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6478 | ||
6479 | wxPyEndAllowThreads(__tstate); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | } | |
6482 | { | |
6483 | #if wxUSE_UNICODE | |
6484 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6485 | #else | |
6486 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6487 | #endif | |
6488 | } | |
6489 | return resultobj; | |
6490 | fail: | |
6491 | return NULL; | |
6492 | } | |
6493 | ||
6494 | ||
2f4c0a16 | 6495 | static PyObject * NativeFontInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6496 | PyObject *obj; |
6497 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6498 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6499 | Py_INCREF(obj); | |
6500 | return Py_BuildValue((char *)""); | |
6501 | } | |
2f4c0a16 | 6502 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6503 | PyObject *resultobj; |
6504 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
cbd72d4f | 6505 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 6506 | bool temp2 = False ; |
d14a1e28 RD |
6507 | PyObject * obj0 = 0 ; |
6508 | PyObject * obj1 = 0 ; | |
6509 | char *kwnames[] = { | |
6510 | (char *) "self",(char *) "facename", NULL | |
6511 | }; | |
6512 | ||
6513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
dae0faa6 RD |
6516 | { |
6517 | arg2 = wxString_in_helper(obj1); | |
6518 | if (arg2 == NULL) SWIG_fail; | |
6519 | temp2 = True; | |
6520 | } | |
cbd72d4f | 6521 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6522 | |
6523 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
6524 | { |
6525 | if (temp2) | |
6526 | delete arg2; | |
6527 | } | |
d14a1e28 RD |
6528 | return resultobj; |
6529 | fail: | |
dae0faa6 RD |
6530 | { |
6531 | if (temp2) | |
6532 | delete arg2; | |
6533 | } | |
d14a1e28 RD |
6534 | return NULL; |
6535 | } | |
6536 | ||
6537 | ||
2f4c0a16 | 6538 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6539 | PyObject *resultobj; |
6540 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
cbd72d4f | 6541 | wxString *result; |
d14a1e28 RD |
6542 | PyObject * obj0 = 0 ; |
6543 | char *kwnames[] = { | |
6544 | (char *) "self", NULL | |
6545 | }; | |
6546 | ||
6547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cbd72d4f | 6550 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6551 | |
6552 | { | |
6553 | #if wxUSE_UNICODE | |
cbd72d4f | 6554 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6555 | #else |
cbd72d4f | 6556 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6557 | #endif |
6558 | } | |
6559 | return resultobj; | |
6560 | fail: | |
6561 | return NULL; | |
6562 | } | |
6563 | ||
6564 | ||
2f4c0a16 | 6565 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6566 | PyObject *resultobj; |
6567 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6568 | int arg2 ; | |
6569 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6571 | char *kwnames[] = { |
6572 | (char *) "self",(char *) "encoding", NULL | |
6573 | }; | |
6574 | ||
8edf1c75 | 6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6578 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6580 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6581 | ||
6582 | Py_INCREF(Py_None); resultobj = Py_None; | |
6583 | return resultobj; | |
6584 | fail: | |
6585 | return NULL; | |
6586 | } | |
6587 | ||
6588 | ||
2f4c0a16 | 6589 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6590 | PyObject *resultobj; |
6591 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6592 | int result; | |
6593 | PyObject * obj0 = 0 ; | |
6594 | char *kwnames[] = { | |
6595 | (char *) "self", NULL | |
6596 | }; | |
6597 | ||
6598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6601 | result = (int) ((arg1)->encoding); |
6602 | ||
2f4c0a16 | 6603 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6604 | return resultobj; |
6605 | fail: | |
6606 | return NULL; | |
6607 | } | |
6608 | ||
6609 | ||
2f4c0a16 | 6610 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6611 | PyObject *resultobj; |
6612 | wxNativeEncodingInfo *result; | |
6613 | char *kwnames[] = { | |
6614 | NULL | |
6615 | }; | |
6616 | ||
6617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6618 | { | |
6619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6620 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6621 | ||
6622 | wxPyEndAllowThreads(__tstate); | |
6623 | if (PyErr_Occurred()) SWIG_fail; | |
6624 | } | |
2f4c0a16 | 6625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); |
d14a1e28 RD |
6626 | return resultobj; |
6627 | fail: | |
6628 | return NULL; | |
6629 | } | |
6630 | ||
6631 | ||
2f4c0a16 | 6632 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6633 | PyObject *resultobj; |
6634 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6635 | PyObject * obj0 = 0 ; | |
6636 | char *kwnames[] = { | |
6637 | (char *) "self", NULL | |
6638 | }; | |
6639 | ||
6640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6643 | { |
6644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6645 | delete arg1; | |
6646 | ||
6647 | wxPyEndAllowThreads(__tstate); | |
6648 | if (PyErr_Occurred()) SWIG_fail; | |
6649 | } | |
6650 | Py_INCREF(Py_None); resultobj = Py_None; | |
6651 | return resultobj; | |
6652 | fail: | |
6653 | return NULL; | |
6654 | } | |
6655 | ||
6656 | ||
2f4c0a16 | 6657 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6658 | PyObject *resultobj; |
6659 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6660 | wxString *arg2 = 0 ; | |
6661 | bool result; | |
423f194a | 6662 | bool temp2 = False ; |
d14a1e28 RD |
6663 | PyObject * obj0 = 0 ; |
6664 | PyObject * obj1 = 0 ; | |
6665 | char *kwnames[] = { | |
6666 | (char *) "self",(char *) "s", NULL | |
6667 | }; | |
6668 | ||
6669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6672 | { |
6673 | arg2 = wxString_in_helper(obj1); | |
6674 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6675 | temp2 = True; |
d14a1e28 RD |
6676 | } |
6677 | { | |
6678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6679 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6680 | ||
6681 | wxPyEndAllowThreads(__tstate); | |
6682 | if (PyErr_Occurred()) SWIG_fail; | |
6683 | } | |
02a34c4c | 6684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6685 | { |
6686 | if (temp2) | |
6687 | delete arg2; | |
6688 | } | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | { | |
6692 | if (temp2) | |
6693 | delete arg2; | |
6694 | } | |
6695 | return NULL; | |
6696 | } | |
6697 | ||
6698 | ||
2f4c0a16 | 6699 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6700 | PyObject *resultobj; |
6701 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6702 | wxString result; | |
6703 | PyObject * obj0 = 0 ; | |
6704 | char *kwnames[] = { | |
6705 | (char *) "self", NULL | |
6706 | }; | |
6707 | ||
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6711 | { |
6712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6713 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6714 | ||
6715 | wxPyEndAllowThreads(__tstate); | |
6716 | if (PyErr_Occurred()) SWIG_fail; | |
6717 | } | |
6718 | { | |
6719 | #if wxUSE_UNICODE | |
6720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6721 | #else | |
6722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6723 | #endif | |
6724 | } | |
6725 | return resultobj; | |
6726 | fail: | |
6727 | return NULL; | |
6728 | } | |
6729 | ||
6730 | ||
2f4c0a16 | 6731 | static PyObject * NativeEncodingInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
6732 | PyObject *obj; |
6733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6734 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6735 | Py_INCREF(obj); | |
6736 | return Py_BuildValue((char *)""); | |
6737 | } | |
2f4c0a16 | 6738 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6739 | PyObject *resultobj; |
6740 | int arg1 ; | |
6741 | wxNativeEncodingInfo *result; | |
8edf1c75 | 6742 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6743 | char *kwnames[] = { |
6744 | (char *) "encoding", NULL | |
6745 | }; | |
6746 | ||
8edf1c75 | 6747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
6748 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6750 | { |
6751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6752 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6753 | ||
6754 | wxPyEndAllowThreads(__tstate); | |
6755 | if (PyErr_Occurred()) SWIG_fail; | |
6756 | } | |
2f4c0a16 | 6757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
6758 | return resultobj; |
6759 | fail: | |
6760 | return NULL; | |
6761 | } | |
6762 | ||
6763 | ||
2f4c0a16 | 6764 | static PyObject *_wrap_TestFontEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6765 | PyObject *resultobj; |
6766 | wxNativeEncodingInfo *arg1 = 0 ; | |
6767 | bool result; | |
6768 | PyObject * obj0 = 0 ; | |
6769 | char *kwnames[] = { | |
6770 | (char *) "info", NULL | |
6771 | }; | |
6772 | ||
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6775 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6776 | SWIG_fail; | |
d14a1e28 | 6777 | if (arg1 == NULL) { |
2f4c0a16 RD |
6778 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6779 | SWIG_fail; | |
d14a1e28 RD |
6780 | } |
6781 | { | |
6782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6783 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6784 | ||
6785 | wxPyEndAllowThreads(__tstate); | |
6786 | if (PyErr_Occurred()) SWIG_fail; | |
6787 | } | |
02a34c4c | 6788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6789 | return resultobj; |
6790 | fail: | |
6791 | return NULL; | |
6792 | } | |
6793 | ||
6794 | ||
2f4c0a16 | 6795 | static PyObject *_wrap_new_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6796 | PyObject *resultobj; |
6797 | wxFontMapper *result; | |
6798 | char *kwnames[] = { | |
6799 | NULL | |
6800 | }; | |
6801 | ||
6802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6803 | { | |
6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6805 | result = (wxFontMapper *)new wxFontMapper(); | |
6806 | ||
6807 | wxPyEndAllowThreads(__tstate); | |
6808 | if (PyErr_Occurred()) SWIG_fail; | |
6809 | } | |
2f4c0a16 | 6810 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
6811 | return resultobj; |
6812 | fail: | |
6813 | return NULL; | |
6814 | } | |
6815 | ||
6816 | ||
2f4c0a16 | 6817 | static PyObject *_wrap_delete_FontMapper(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6818 | PyObject *resultobj; |
6819 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6820 | PyObject * obj0 = 0 ; | |
6821 | char *kwnames[] = { | |
6822 | (char *) "self", NULL | |
6823 | }; | |
6824 | ||
6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
6827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6828 | { |
6829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6830 | delete arg1; | |
6831 | ||
6832 | wxPyEndAllowThreads(__tstate); | |
6833 | if (PyErr_Occurred()) SWIG_fail; | |
6834 | } | |
6835 | Py_INCREF(Py_None); resultobj = Py_None; | |
6836 | return resultobj; | |
6837 | fail: | |
6838 | return NULL; | |
6839 | } | |
6840 | ||
6841 | ||
2f4c0a16 | 6842 | static PyObject *_wrap_FontMapper_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6843 | PyObject *resultobj; |
6844 | wxFontMapper *result; | |
6845 | char *kwnames[] = { | |
6846 | NULL | |
6847 | }; | |
6848 | ||
6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6850 | { | |
6851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6852 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6853 | ||
6854 | wxPyEndAllowThreads(__tstate); | |
6855 | if (PyErr_Occurred()) SWIG_fail; | |
6856 | } | |
2f4c0a16 | 6857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
6858 | return resultobj; |
6859 | fail: | |
6860 | return NULL; | |
6861 | } | |
6862 | ||
6863 | ||
2f4c0a16 | 6864 | static PyObject *_wrap_FontMapper_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6865 | PyObject *resultobj; |
6866 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6867 | wxFontMapper *result; | |
6868 | PyObject * obj0 = 0 ; | |
6869 | char *kwnames[] = { | |
6870 | (char *) "mapper", NULL | |
6871 | }; | |
6872 | ||
6873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
6875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6876 | { |
6877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6878 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6879 | ||
6880 | wxPyEndAllowThreads(__tstate); | |
6881 | if (PyErr_Occurred()) SWIG_fail; | |
6882 | } | |
2f4c0a16 | 6883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
6884 | return resultobj; |
6885 | fail: | |
6886 | return NULL; | |
6887 | } | |
6888 | ||
6889 | ||
2f4c0a16 | 6890 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6891 | PyObject *resultobj; |
6892 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6893 | wxString *arg2 = 0 ; | |
423f194a | 6894 | bool arg3 = (bool) True ; |
d14a1e28 | 6895 | int result; |
423f194a | 6896 | bool temp2 = False ; |
d14a1e28 RD |
6897 | PyObject * obj0 = 0 ; |
6898 | PyObject * obj1 = 0 ; | |
6899 | PyObject * obj2 = 0 ; | |
6900 | char *kwnames[] = { | |
6901 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6902 | }; | |
6903 | ||
6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
6905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
6906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6907 | { |
6908 | arg2 = wxString_in_helper(obj1); | |
6909 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6910 | temp2 = True; |
d14a1e28 RD |
6911 | } |
6912 | if (obj2) { | |
2f4c0a16 RD |
6913 | arg3 = (bool) SWIG_AsBool(obj2); |
6914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6915 | } |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
6921 | if (PyErr_Occurred()) SWIG_fail; | |
6922 | } | |
2f4c0a16 | 6923 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6924 | { |
6925 | if (temp2) | |
6926 | delete arg2; | |
6927 | } | |
6928 | return resultobj; | |
6929 | fail: | |
6930 | { | |
6931 | if (temp2) | |
6932 | delete arg2; | |
6933 | } | |
6934 | return NULL; | |
6935 | } | |
6936 | ||
6937 | ||
2f4c0a16 | 6938 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6939 | PyObject *resultobj; |
6940 | size_t result; | |
6941 | char *kwnames[] = { | |
6942 | NULL | |
6943 | }; | |
6944 | ||
6945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
6946 | { | |
6947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6948 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
6949 | ||
6950 | wxPyEndAllowThreads(__tstate); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | } | |
2f4c0a16 | 6953 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6954 | return resultobj; |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
2f4c0a16 | 6960 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6961 | PyObject *resultobj; |
6962 | size_t arg1 ; | |
6963 | int result; | |
6964 | PyObject * obj0 = 0 ; | |
6965 | char *kwnames[] = { | |
6966 | (char *) "n", NULL | |
6967 | }; | |
6968 | ||
6969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6970 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
6971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6972 | { |
6973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6974 | result = (int)wxFontMapper::GetEncoding(arg1); | |
6975 | ||
6976 | wxPyEndAllowThreads(__tstate); | |
6977 | if (PyErr_Occurred()) SWIG_fail; | |
6978 | } | |
2f4c0a16 | 6979 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6980 | return resultobj; |
6981 | fail: | |
6982 | return NULL; | |
6983 | } | |
6984 | ||
6985 | ||
2f4c0a16 | 6986 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
6987 | PyObject *resultobj; |
6988 | int arg1 ; | |
6989 | wxString result; | |
8edf1c75 | 6990 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6991 | char *kwnames[] = { |
6992 | (char *) "encoding", NULL | |
6993 | }; | |
6994 | ||
8edf1c75 | 6995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
6996 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
6997 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6998 | { |
6999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7000 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7001 | ||
7002 | wxPyEndAllowThreads(__tstate); | |
7003 | if (PyErr_Occurred()) SWIG_fail; | |
7004 | } | |
7005 | { | |
7006 | #if wxUSE_UNICODE | |
7007 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7008 | #else | |
7009 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7010 | #endif | |
7011 | } | |
7012 | return resultobj; | |
7013 | fail: | |
7014 | return NULL; | |
7015 | } | |
7016 | ||
7017 | ||
2f4c0a16 | 7018 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7019 | PyObject *resultobj; |
7020 | int arg1 ; | |
7021 | wxString result; | |
8edf1c75 | 7022 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7023 | char *kwnames[] = { |
7024 | (char *) "encoding", NULL | |
7025 | }; | |
7026 | ||
8edf1c75 | 7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
7028 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7029 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7030 | { |
7031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7032 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7033 | ||
7034 | wxPyEndAllowThreads(__tstate); | |
7035 | if (PyErr_Occurred()) SWIG_fail; | |
7036 | } | |
7037 | { | |
7038 | #if wxUSE_UNICODE | |
7039 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7040 | #else | |
7041 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7042 | #endif | |
7043 | } | |
7044 | return resultobj; | |
7045 | fail: | |
7046 | return NULL; | |
7047 | } | |
7048 | ||
7049 | ||
2f4c0a16 | 7050 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7051 | PyObject *resultobj; |
7052 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7053 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7054 | PyObject * obj0 = 0 ; | |
7055 | PyObject * obj1 = 0 ; | |
7056 | char *kwnames[] = { | |
7057 | (char *) "self",(char *) "config", NULL | |
7058 | }; | |
7059 | ||
7060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7065 | { |
7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7067 | (arg1)->SetConfig(arg2); | |
7068 | ||
7069 | wxPyEndAllowThreads(__tstate); | |
7070 | if (PyErr_Occurred()) SWIG_fail; | |
7071 | } | |
7072 | Py_INCREF(Py_None); resultobj = Py_None; | |
7073 | return resultobj; | |
7074 | fail: | |
7075 | return NULL; | |
7076 | } | |
7077 | ||
7078 | ||
2f4c0a16 | 7079 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7080 | PyObject *resultobj; |
7081 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7082 | wxString *arg2 = 0 ; | |
423f194a | 7083 | bool temp2 = False ; |
d14a1e28 RD |
7084 | PyObject * obj0 = 0 ; |
7085 | PyObject * obj1 = 0 ; | |
7086 | char *kwnames[] = { | |
7087 | (char *) "self",(char *) "prefix", NULL | |
7088 | }; | |
7089 | ||
7090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7093 | { |
7094 | arg2 = wxString_in_helper(obj1); | |
7095 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7096 | temp2 = True; |
d14a1e28 RD |
7097 | } |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | Py_INCREF(Py_None); resultobj = Py_None; | |
7106 | { | |
7107 | if (temp2) | |
7108 | delete arg2; | |
7109 | } | |
7110 | return resultobj; | |
7111 | fail: | |
7112 | { | |
7113 | if (temp2) | |
7114 | delete arg2; | |
7115 | } | |
7116 | return NULL; | |
7117 | } | |
7118 | ||
7119 | ||
2f4c0a16 | 7120 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7121 | PyObject *resultobj; |
7122 | wxString result; | |
7123 | char *kwnames[] = { | |
7124 | NULL | |
7125 | }; | |
7126 | ||
7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | result = wxFontMapper::GetDefaultConfigPath(); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | { | |
7136 | #if wxUSE_UNICODE | |
7137 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7138 | #else | |
7139 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7140 | #endif | |
7141 | } | |
7142 | return resultobj; | |
7143 | fail: | |
7144 | return NULL; | |
7145 | } | |
7146 | ||
7147 | ||
2f4c0a16 | 7148 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7149 | PyObject *resultobj; |
7150 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7151 | int arg2 ; | |
7152 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7153 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
423f194a | 7154 | bool arg4 = (bool) True ; |
d14a1e28 | 7155 | PyObject *result; |
423f194a | 7156 | bool temp3 = False ; |
d14a1e28 | 7157 | PyObject * obj0 = 0 ; |
8edf1c75 | 7158 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7159 | PyObject * obj2 = 0 ; |
7160 | PyObject * obj3 = 0 ; | |
7161 | char *kwnames[] = { | |
7162 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7163 | }; | |
7164 | ||
8edf1c75 | 7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
7166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7168 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7170 | if (obj2) { |
7171 | { | |
7172 | arg3 = wxString_in_helper(obj2); | |
7173 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7174 | temp3 = True; |
d14a1e28 RD |
7175 | } |
7176 | } | |
7177 | if (obj3) { | |
2f4c0a16 RD |
7178 | arg4 = (bool) SWIG_AsBool(obj3); |
7179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7180 | } |
7181 | { | |
7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7183 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7184 | ||
7185 | wxPyEndAllowThreads(__tstate); | |
7186 | if (PyErr_Occurred()) SWIG_fail; | |
7187 | } | |
7188 | resultobj = result; | |
7189 | { | |
7190 | if (temp3) | |
7191 | delete arg3; | |
7192 | } | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | { | |
7196 | if (temp3) | |
7197 | delete arg3; | |
7198 | } | |
7199 | return NULL; | |
7200 | } | |
7201 | ||
7202 | ||
2f4c0a16 | 7203 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7204 | PyObject *resultobj; |
7205 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7206 | int arg2 ; | |
7207 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7208 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7209 | bool result; | |
423f194a | 7210 | bool temp3 = False ; |
d14a1e28 | 7211 | PyObject * obj0 = 0 ; |
8edf1c75 | 7212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7213 | PyObject * obj2 = 0 ; |
7214 | char *kwnames[] = { | |
7215 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7216 | }; | |
7217 | ||
8edf1c75 | 7218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7221 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7222 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7223 | if (obj2) { |
7224 | { | |
7225 | arg3 = wxString_in_helper(obj2); | |
7226 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7227 | temp3 = True; |
d14a1e28 RD |
7228 | } |
7229 | } | |
7230 | { | |
7231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7232 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7233 | ||
7234 | wxPyEndAllowThreads(__tstate); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
7236 | } | |
02a34c4c | 7237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7238 | { |
7239 | if (temp3) | |
7240 | delete arg3; | |
7241 | } | |
7242 | return resultobj; | |
7243 | fail: | |
7244 | { | |
7245 | if (temp3) | |
7246 | delete arg3; | |
7247 | } | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
2f4c0a16 | 7252 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7253 | PyObject *resultobj; |
7254 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7255 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | PyObject * obj1 = 0 ; | |
7258 | char *kwnames[] = { | |
7259 | (char *) "self",(char *) "parent", NULL | |
7260 | }; | |
7261 | ||
7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7267 | { |
7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7269 | (arg1)->SetDialogParent(arg2); | |
7270 | ||
7271 | wxPyEndAllowThreads(__tstate); | |
7272 | if (PyErr_Occurred()) SWIG_fail; | |
7273 | } | |
7274 | Py_INCREF(Py_None); resultobj = Py_None; | |
7275 | return resultobj; | |
7276 | fail: | |
7277 | return NULL; | |
7278 | } | |
7279 | ||
7280 | ||
2f4c0a16 | 7281 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7282 | PyObject *resultobj; |
7283 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7284 | wxString *arg2 = 0 ; | |
423f194a | 7285 | bool temp2 = False ; |
d14a1e28 RD |
7286 | PyObject * obj0 = 0 ; |
7287 | PyObject * obj1 = 0 ; | |
7288 | char *kwnames[] = { | |
7289 | (char *) "self",(char *) "title", NULL | |
7290 | }; | |
7291 | ||
7292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7295 | { |
7296 | arg2 = wxString_in_helper(obj1); | |
7297 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7298 | temp2 = True; |
d14a1e28 RD |
7299 | } |
7300 | { | |
7301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7302 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7303 | ||
7304 | wxPyEndAllowThreads(__tstate); | |
7305 | if (PyErr_Occurred()) SWIG_fail; | |
7306 | } | |
7307 | Py_INCREF(Py_None); resultobj = Py_None; | |
7308 | { | |
7309 | if (temp2) | |
7310 | delete arg2; | |
7311 | } | |
7312 | return resultobj; | |
7313 | fail: | |
7314 | { | |
7315 | if (temp2) | |
7316 | delete arg2; | |
7317 | } | |
7318 | return NULL; | |
7319 | } | |
7320 | ||
7321 | ||
2f4c0a16 | 7322 | static PyObject * FontMapper_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
7323 | PyObject *obj; |
7324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7325 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7326 | Py_INCREF(obj); | |
7327 | return Py_BuildValue((char *)""); | |
7328 | } | |
2f4c0a16 | 7329 | static PyObject *_wrap_new_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7330 | PyObject *resultobj; |
7331 | int arg1 ; | |
7332 | int arg2 ; | |
7333 | int arg3 ; | |
7334 | int arg4 ; | |
423f194a | 7335 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7336 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7337 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7338 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7339 | wxFont *result; | |
423f194a | 7340 | bool temp6 = False ; |
8edf1c75 RD |
7341 | PyObject * obj0 = 0 ; |
7342 | PyObject * obj1 = 0 ; | |
7343 | PyObject * obj2 = 0 ; | |
7344 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7345 | PyObject * obj4 = 0 ; |
7346 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7347 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7348 | char *kwnames[] = { |
7349 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7350 | }; | |
7351 | ||
8edf1c75 | 7352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
7353 | arg1 = (int) SWIG_AsInt(obj0); |
7354 | if (PyErr_Occurred()) SWIG_fail; | |
7355 | arg2 = (int) SWIG_AsInt(obj1); | |
7356 | if (PyErr_Occurred()) SWIG_fail; | |
7357 | arg3 = (int) SWIG_AsInt(obj2); | |
7358 | if (PyErr_Occurred()) SWIG_fail; | |
7359 | arg4 = (int) SWIG_AsInt(obj3); | |
7360 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7361 | if (obj4) { |
2f4c0a16 RD |
7362 | arg5 = (bool) SWIG_AsBool(obj4); |
7363 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7364 | } |
7365 | if (obj5) { | |
7366 | { | |
7367 | arg6 = wxString_in_helper(obj5); | |
7368 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 7369 | temp6 = True; |
d14a1e28 RD |
7370 | } |
7371 | } | |
8edf1c75 | 7372 | if (obj6) { |
2f4c0a16 RD |
7373 | arg7 = (wxFontEncoding) SWIG_AsInt(obj6); |
7374 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7375 | } |
d14a1e28 RD |
7376 | { |
7377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7378 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7379 | ||
7380 | wxPyEndAllowThreads(__tstate); | |
7381 | if (PyErr_Occurred()) SWIG_fail; | |
7382 | } | |
2f4c0a16 | 7383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7384 | { |
7385 | if (temp6) | |
7386 | delete arg6; | |
7387 | } | |
7388 | return resultobj; | |
7389 | fail: | |
7390 | { | |
7391 | if (temp6) | |
7392 | delete arg6; | |
7393 | } | |
7394 | return NULL; | |
7395 | } | |
7396 | ||
7397 | ||
2f4c0a16 | 7398 | static PyObject *_wrap_delete_Font(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7399 | PyObject *resultobj; |
7400 | wxFont *arg1 = (wxFont *) 0 ; | |
7401 | PyObject * obj0 = 0 ; | |
7402 | char *kwnames[] = { | |
7403 | (char *) "self", NULL | |
7404 | }; | |
7405 | ||
7406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7409 | { |
7410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7411 | delete arg1; | |
7412 | ||
7413 | wxPyEndAllowThreads(__tstate); | |
7414 | if (PyErr_Occurred()) SWIG_fail; | |
7415 | } | |
7416 | Py_INCREF(Py_None); resultobj = Py_None; | |
7417 | return resultobj; | |
7418 | fail: | |
7419 | return NULL; | |
7420 | } | |
7421 | ||
7422 | ||
2f4c0a16 | 7423 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7424 | PyObject *resultobj; |
7425 | wxNativeFontInfo *arg1 = 0 ; | |
7426 | wxFont *result; | |
7427 | PyObject * obj0 = 0 ; | |
7428 | char *kwnames[] = { | |
7429 | (char *) "info", NULL | |
7430 | }; | |
7431 | ||
7432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7434 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7435 | SWIG_fail; | |
d14a1e28 | 7436 | if (arg1 == NULL) { |
2f4c0a16 RD |
7437 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7438 | SWIG_fail; | |
d14a1e28 RD |
7439 | } |
7440 | { | |
7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7442 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7443 | ||
7444 | wxPyEndAllowThreads(__tstate); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | } | |
2f4c0a16 | 7447 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7448 | return resultobj; |
7449 | fail: | |
7450 | return NULL; | |
7451 | } | |
7452 | ||
7453 | ||
2f4c0a16 | 7454 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7455 | PyObject *resultobj; |
7456 | wxString *arg1 = 0 ; | |
7457 | wxFont *result; | |
423f194a | 7458 | bool temp1 = False ; |
d14a1e28 RD |
7459 | PyObject * obj0 = 0 ; |
7460 | char *kwnames[] = { | |
7461 | (char *) "info", NULL | |
7462 | }; | |
7463 | ||
7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7465 | { | |
7466 | arg1 = wxString_in_helper(obj0); | |
7467 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 7468 | temp1 = True; |
d14a1e28 RD |
7469 | } |
7470 | { | |
7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7472 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7473 | ||
7474 | wxPyEndAllowThreads(__tstate); | |
7475 | if (PyErr_Occurred()) SWIG_fail; | |
7476 | } | |
2f4c0a16 | 7477 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7478 | { |
7479 | if (temp1) | |
7480 | delete arg1; | |
7481 | } | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | { | |
7485 | if (temp1) | |
7486 | delete arg1; | |
7487 | } | |
7488 | return NULL; | |
7489 | } | |
7490 | ||
7491 | ||
2f4c0a16 | 7492 | static PyObject *_wrap_new_Font2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7493 | PyObject *resultobj; |
7494 | int arg1 ; | |
7495 | int arg2 ; | |
7496 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7497 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7498 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7499 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7500 | wxFont *result; | |
423f194a | 7501 | bool temp4 = False ; |
8edf1c75 RD |
7502 | PyObject * obj0 = 0 ; |
7503 | PyObject * obj1 = 0 ; | |
7504 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7505 | PyObject * obj3 = 0 ; |
8edf1c75 | 7506 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7507 | char *kwnames[] = { |
7508 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7509 | }; | |
7510 | ||
8edf1c75 | 7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
7512 | arg1 = (int) SWIG_AsInt(obj0); |
7513 | if (PyErr_Occurred()) SWIG_fail; | |
7514 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
7515 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7516 | if (obj2) { |
2f4c0a16 RD |
7517 | arg3 = (int) SWIG_AsInt(obj2); |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7519 | } |
d14a1e28 RD |
7520 | if (obj3) { |
7521 | { | |
7522 | arg4 = wxString_in_helper(obj3); | |
7523 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7524 | temp4 = True; |
d14a1e28 RD |
7525 | } |
7526 | } | |
8edf1c75 | 7527 | if (obj4) { |
2f4c0a16 RD |
7528 | arg5 = (wxFontEncoding) SWIG_AsInt(obj4); |
7529 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7530 | } |
d14a1e28 RD |
7531 | { |
7532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7533 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7534 | ||
7535 | wxPyEndAllowThreads(__tstate); | |
7536 | if (PyErr_Occurred()) SWIG_fail; | |
7537 | } | |
2f4c0a16 | 7538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7539 | { |
7540 | if (temp4) | |
7541 | delete arg4; | |
7542 | } | |
7543 | return resultobj; | |
7544 | fail: | |
7545 | { | |
7546 | if (temp4) | |
7547 | delete arg4; | |
7548 | } | |
7549 | return NULL; | |
7550 | } | |
7551 | ||
7552 | ||
2f4c0a16 | 7553 | static PyObject *_wrap_Font_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7554 | PyObject *resultobj; |
7555 | wxFont *arg1 = (wxFont *) 0 ; | |
7556 | bool result; | |
7557 | PyObject * obj0 = 0 ; | |
7558 | char *kwnames[] = { | |
7559 | (char *) "self", NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7565 | { |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7567 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7568 | ||
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
02a34c4c | 7572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7573 | return resultobj; |
7574 | fail: | |
7575 | return NULL; | |
7576 | } | |
7577 | ||
7578 | ||
2f4c0a16 | 7579 | static PyObject *_wrap_Font___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7580 | PyObject *resultobj; |
7581 | wxFont *arg1 = (wxFont *) 0 ; | |
38f59159 | 7582 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7583 | bool result; |
7584 | PyObject * obj0 = 0 ; | |
7585 | PyObject * obj1 = 0 ; | |
7586 | char *kwnames[] = { | |
38f59159 | 7587 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7588 | }; |
7589 | ||
7590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7595 | { |
7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 7597 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7598 | |
7599 | wxPyEndAllowThreads(__tstate); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
02a34c4c | 7602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7603 | return resultobj; |
7604 | fail: | |
7605 | return NULL; | |
7606 | } | |
7607 | ||
7608 | ||
2f4c0a16 | 7609 | static PyObject *_wrap_Font___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7610 | PyObject *resultobj; |
7611 | wxFont *arg1 = (wxFont *) 0 ; | |
38f59159 | 7612 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7613 | bool result; |
7614 | PyObject * obj0 = 0 ; | |
7615 | PyObject * obj1 = 0 ; | |
7616 | char *kwnames[] = { | |
38f59159 | 7617 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7618 | }; |
7619 | ||
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7623 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7625 | { |
7626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 7627 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7628 | |
7629 | wxPyEndAllowThreads(__tstate); | |
7630 | if (PyErr_Occurred()) SWIG_fail; | |
7631 | } | |
02a34c4c | 7632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7633 | return resultobj; |
7634 | fail: | |
7635 | return NULL; | |
7636 | } | |
7637 | ||
7638 | ||
2f4c0a16 | 7639 | static PyObject *_wrap_Font_GetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7640 | PyObject *resultobj; |
7641 | wxFont *arg1 = (wxFont *) 0 ; | |
7642 | int result; | |
7643 | PyObject * obj0 = 0 ; | |
7644 | char *kwnames[] = { | |
7645 | (char *) "self", NULL | |
7646 | }; | |
7647 | ||
7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7651 | { |
7652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7653 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7654 | ||
7655 | wxPyEndAllowThreads(__tstate); | |
7656 | if (PyErr_Occurred()) SWIG_fail; | |
7657 | } | |
2f4c0a16 | 7658 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7659 | return resultobj; |
7660 | fail: | |
7661 | return NULL; | |
7662 | } | |
7663 | ||
7664 | ||
2f4c0a16 | 7665 | static PyObject *_wrap_Font_GetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7666 | PyObject *resultobj; |
7667 | wxFont *arg1 = (wxFont *) 0 ; | |
7668 | int result; | |
7669 | PyObject * obj0 = 0 ; | |
7670 | char *kwnames[] = { | |
7671 | (char *) "self", NULL | |
7672 | }; | |
7673 | ||
7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7677 | { |
7678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7679 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7680 | ||
7681 | wxPyEndAllowThreads(__tstate); | |
7682 | if (PyErr_Occurred()) SWIG_fail; | |
7683 | } | |
2f4c0a16 | 7684 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7685 | return resultobj; |
7686 | fail: | |
7687 | return NULL; | |
7688 | } | |
7689 | ||
7690 | ||
2f4c0a16 | 7691 | static PyObject *_wrap_Font_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7692 | PyObject *resultobj; |
7693 | wxFont *arg1 = (wxFont *) 0 ; | |
7694 | int result; | |
7695 | PyObject * obj0 = 0 ; | |
7696 | char *kwnames[] = { | |
7697 | (char *) "self", NULL | |
7698 | }; | |
7699 | ||
7700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7703 | { |
7704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7705 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7706 | ||
7707 | wxPyEndAllowThreads(__tstate); | |
7708 | if (PyErr_Occurred()) SWIG_fail; | |
7709 | } | |
2f4c0a16 | 7710 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7711 | return resultobj; |
7712 | fail: | |
7713 | return NULL; | |
7714 | } | |
7715 | ||
7716 | ||
2f4c0a16 | 7717 | static PyObject *_wrap_Font_GetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7718 | PyObject *resultobj; |
7719 | wxFont *arg1 = (wxFont *) 0 ; | |
7720 | int result; | |
7721 | PyObject * obj0 = 0 ; | |
7722 | char *kwnames[] = { | |
7723 | (char *) "self", NULL | |
7724 | }; | |
7725 | ||
7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7729 | { |
7730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7731 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7732 | ||
7733 | wxPyEndAllowThreads(__tstate); | |
7734 | if (PyErr_Occurred()) SWIG_fail; | |
7735 | } | |
2f4c0a16 | 7736 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7737 | return resultobj; |
7738 | fail: | |
7739 | return NULL; | |
7740 | } | |
7741 | ||
7742 | ||
2f4c0a16 | 7743 | static PyObject *_wrap_Font_GetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7744 | PyObject *resultobj; |
7745 | wxFont *arg1 = (wxFont *) 0 ; | |
7746 | bool result; | |
7747 | PyObject * obj0 = 0 ; | |
7748 | char *kwnames[] = { | |
7749 | (char *) "self", NULL | |
7750 | }; | |
7751 | ||
7752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7755 | { |
7756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7757 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7758 | ||
7759 | wxPyEndAllowThreads(__tstate); | |
7760 | if (PyErr_Occurred()) SWIG_fail; | |
7761 | } | |
02a34c4c | 7762 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7763 | return resultobj; |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
2f4c0a16 | 7769 | static PyObject *_wrap_Font_GetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7770 | PyObject *resultobj; |
7771 | wxFont *arg1 = (wxFont *) 0 ; | |
7772 | wxString result; | |
7773 | PyObject * obj0 = 0 ; | |
7774 | char *kwnames[] = { | |
7775 | (char *) "self", NULL | |
7776 | }; | |
7777 | ||
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7781 | { |
7782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7783 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7784 | ||
7785 | wxPyEndAllowThreads(__tstate); | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
7787 | } | |
7788 | { | |
7789 | #if wxUSE_UNICODE | |
7790 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7791 | #else | |
7792 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7793 | #endif | |
7794 | } | |
7795 | return resultobj; | |
7796 | fail: | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
2f4c0a16 | 7801 | static PyObject *_wrap_Font_GetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7802 | PyObject *resultobj; |
7803 | wxFont *arg1 = (wxFont *) 0 ; | |
7804 | int result; | |
7805 | PyObject * obj0 = 0 ; | |
7806 | char *kwnames[] = { | |
7807 | (char *) "self", NULL | |
7808 | }; | |
7809 | ||
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7813 | { |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
2f4c0a16 | 7820 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7821 | return resultobj; |
7822 | fail: | |
7823 | return NULL; | |
7824 | } | |
7825 | ||
7826 | ||
2f4c0a16 | 7827 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7828 | PyObject *resultobj; |
7829 | wxFont *arg1 = (wxFont *) 0 ; | |
7830 | wxNativeFontInfo *result; | |
7831 | PyObject * obj0 = 0 ; | |
7832 | char *kwnames[] = { | |
7833 | (char *) "self", NULL | |
7834 | }; | |
7835 | ||
7836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7839 | { |
7840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7841 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7842 | ||
7843 | wxPyEndAllowThreads(__tstate); | |
7844 | if (PyErr_Occurred()) SWIG_fail; | |
7845 | } | |
2f4c0a16 | 7846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
7847 | return resultobj; |
7848 | fail: | |
7849 | return NULL; | |
7850 | } | |
7851 | ||
7852 | ||
2f4c0a16 | 7853 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7854 | PyObject *resultobj; |
7855 | wxFont *arg1 = (wxFont *) 0 ; | |
7856 | bool result; | |
7857 | PyObject * obj0 = 0 ; | |
7858 | char *kwnames[] = { | |
7859 | (char *) "self", NULL | |
7860 | }; | |
7861 | ||
7862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7865 | { |
7866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7867 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7868 | ||
7869 | wxPyEndAllowThreads(__tstate); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | } | |
02a34c4c | 7872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7873 | return resultobj; |
7874 | fail: | |
7875 | return NULL; | |
7876 | } | |
7877 | ||
7878 | ||
2f4c0a16 | 7879 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7880 | PyObject *resultobj; |
7881 | wxFont *arg1 = (wxFont *) 0 ; | |
7882 | wxString result; | |
7883 | PyObject * obj0 = 0 ; | |
7884 | char *kwnames[] = { | |
7885 | (char *) "self", NULL | |
7886 | }; | |
7887 | ||
7888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7891 | { |
7892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7893 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
7894 | ||
7895 | wxPyEndAllowThreads(__tstate); | |
7896 | if (PyErr_Occurred()) SWIG_fail; | |
7897 | } | |
7898 | { | |
7899 | #if wxUSE_UNICODE | |
7900 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7901 | #else | |
7902 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7903 | #endif | |
7904 | } | |
7905 | return resultobj; | |
7906 | fail: | |
7907 | return NULL; | |
7908 | } | |
7909 | ||
7910 | ||
2f4c0a16 | 7911 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7912 | PyObject *resultobj; |
7913 | wxFont *arg1 = (wxFont *) 0 ; | |
7914 | wxString result; | |
7915 | PyObject * obj0 = 0 ; | |
7916 | char *kwnames[] = { | |
7917 | (char *) "self", NULL | |
7918 | }; | |
7919 | ||
7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7923 | { |
7924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7925 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
7926 | ||
7927 | wxPyEndAllowThreads(__tstate); | |
7928 | if (PyErr_Occurred()) SWIG_fail; | |
7929 | } | |
7930 | { | |
7931 | #if wxUSE_UNICODE | |
7932 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7933 | #else | |
7934 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7935 | #endif | |
7936 | } | |
7937 | return resultobj; | |
7938 | fail: | |
7939 | return NULL; | |
7940 | } | |
7941 | ||
7942 | ||
2f4c0a16 | 7943 | static PyObject *_wrap_Font_SetPointSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7944 | PyObject *resultobj; |
7945 | wxFont *arg1 = (wxFont *) 0 ; | |
7946 | int arg2 ; | |
7947 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7948 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7949 | char *kwnames[] = { |
7950 | (char *) "self",(char *) "pointSize", NULL | |
7951 | }; | |
7952 | ||
8edf1c75 | 7953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7956 | arg2 = (int) SWIG_AsInt(obj1); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7958 | { |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | (arg1)->SetPointSize(arg2); | |
7961 | ||
7962 | wxPyEndAllowThreads(__tstate); | |
7963 | if (PyErr_Occurred()) SWIG_fail; | |
7964 | } | |
7965 | Py_INCREF(Py_None); resultobj = Py_None; | |
7966 | return resultobj; | |
7967 | fail: | |
7968 | return NULL; | |
7969 | } | |
7970 | ||
7971 | ||
2f4c0a16 | 7972 | static PyObject *_wrap_Font_SetFamily(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7973 | PyObject *resultobj; |
7974 | wxFont *arg1 = (wxFont *) 0 ; | |
7975 | int arg2 ; | |
7976 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7977 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7978 | char *kwnames[] = { |
7979 | (char *) "self",(char *) "family", NULL | |
7980 | }; | |
7981 | ||
8edf1c75 | 7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7985 | arg2 = (int) SWIG_AsInt(obj1); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7987 | { |
7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7989 | (arg1)->SetFamily(arg2); | |
7990 | ||
7991 | wxPyEndAllowThreads(__tstate); | |
7992 | if (PyErr_Occurred()) SWIG_fail; | |
7993 | } | |
7994 | Py_INCREF(Py_None); resultobj = Py_None; | |
7995 | return resultobj; | |
7996 | fail: | |
7997 | return NULL; | |
7998 | } | |
7999 | ||
8000 | ||
2f4c0a16 | 8001 | static PyObject *_wrap_Font_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8002 | PyObject *resultobj; |
8003 | wxFont *arg1 = (wxFont *) 0 ; | |
8004 | int arg2 ; | |
8005 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8007 | char *kwnames[] = { |
8008 | (char *) "self",(char *) "style", NULL | |
8009 | }; | |
8010 | ||
8edf1c75 | 8011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8014 | arg2 = (int) SWIG_AsInt(obj1); | |
8015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8016 | { |
8017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8018 | (arg1)->SetStyle(arg2); | |
8019 | ||
8020 | wxPyEndAllowThreads(__tstate); | |
8021 | if (PyErr_Occurred()) SWIG_fail; | |
8022 | } | |
8023 | Py_INCREF(Py_None); resultobj = Py_None; | |
8024 | return resultobj; | |
8025 | fail: | |
8026 | return NULL; | |
8027 | } | |
8028 | ||
8029 | ||
2f4c0a16 | 8030 | static PyObject *_wrap_Font_SetWeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8031 | PyObject *resultobj; |
8032 | wxFont *arg1 = (wxFont *) 0 ; | |
8033 | int arg2 ; | |
8034 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8035 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8036 | char *kwnames[] = { |
8037 | (char *) "self",(char *) "weight", NULL | |
8038 | }; | |
8039 | ||
8edf1c75 | 8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8043 | arg2 = (int) SWIG_AsInt(obj1); | |
8044 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8045 | { |
8046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8047 | (arg1)->SetWeight(arg2); | |
8048 | ||
8049 | wxPyEndAllowThreads(__tstate); | |
8050 | if (PyErr_Occurred()) SWIG_fail; | |
8051 | } | |
8052 | Py_INCREF(Py_None); resultobj = Py_None; | |
8053 | return resultobj; | |
8054 | fail: | |
8055 | return NULL; | |
8056 | } | |
8057 | ||
8058 | ||
2f4c0a16 | 8059 | static PyObject *_wrap_Font_SetFaceName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8060 | PyObject *resultobj; |
8061 | wxFont *arg1 = (wxFont *) 0 ; | |
8062 | wxString *arg2 = 0 ; | |
423f194a | 8063 | bool temp2 = False ; |
d14a1e28 RD |
8064 | PyObject * obj0 = 0 ; |
8065 | PyObject * obj1 = 0 ; | |
8066 | char *kwnames[] = { | |
8067 | (char *) "self",(char *) "faceName", NULL | |
8068 | }; | |
8069 | ||
8070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8073 | { |
8074 | arg2 = wxString_in_helper(obj1); | |
8075 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8076 | temp2 = True; |
d14a1e28 RD |
8077 | } |
8078 | { | |
8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8080 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8081 | ||
8082 | wxPyEndAllowThreads(__tstate); | |
8083 | if (PyErr_Occurred()) SWIG_fail; | |
8084 | } | |
8085 | Py_INCREF(Py_None); resultobj = Py_None; | |
8086 | { | |
8087 | if (temp2) | |
8088 | delete arg2; | |
8089 | } | |
8090 | return resultobj; | |
8091 | fail: | |
8092 | { | |
8093 | if (temp2) | |
8094 | delete arg2; | |
8095 | } | |
8096 | return NULL; | |
8097 | } | |
8098 | ||
8099 | ||
2f4c0a16 | 8100 | static PyObject *_wrap_Font_SetUnderlined(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8101 | PyObject *resultobj; |
8102 | wxFont *arg1 = (wxFont *) 0 ; | |
8103 | bool arg2 ; | |
8104 | PyObject * obj0 = 0 ; | |
8105 | PyObject * obj1 = 0 ; | |
8106 | char *kwnames[] = { | |
8107 | (char *) "self",(char *) "underlined", NULL | |
8108 | }; | |
8109 | ||
8110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8113 | arg2 = (bool) SWIG_AsBool(obj1); | |
8114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8115 | { |
8116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8117 | (arg1)->SetUnderlined(arg2); | |
8118 | ||
8119 | wxPyEndAllowThreads(__tstate); | |
8120 | if (PyErr_Occurred()) SWIG_fail; | |
8121 | } | |
8122 | Py_INCREF(Py_None); resultobj = Py_None; | |
8123 | return resultobj; | |
8124 | fail: | |
8125 | return NULL; | |
8126 | } | |
8127 | ||
8128 | ||
2f4c0a16 | 8129 | static PyObject *_wrap_Font_SetEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8130 | PyObject *resultobj; |
8131 | wxFont *arg1 = (wxFont *) 0 ; | |
8132 | int arg2 ; | |
8133 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8135 | char *kwnames[] = { |
8136 | (char *) "self",(char *) "encoding", NULL | |
8137 | }; | |
8138 | ||
8edf1c75 | 8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8142 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8144 | { |
8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8146 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8147 | ||
8148 | wxPyEndAllowThreads(__tstate); | |
8149 | if (PyErr_Occurred()) SWIG_fail; | |
8150 | } | |
8151 | Py_INCREF(Py_None); resultobj = Py_None; | |
8152 | return resultobj; | |
8153 | fail: | |
8154 | return NULL; | |
8155 | } | |
8156 | ||
8157 | ||
2f4c0a16 | 8158 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8159 | PyObject *resultobj; |
8160 | wxFont *arg1 = (wxFont *) 0 ; | |
8161 | wxNativeFontInfo *arg2 = 0 ; | |
8162 | PyObject * obj0 = 0 ; | |
8163 | PyObject * obj1 = 0 ; | |
8164 | char *kwnames[] = { | |
8165 | (char *) "self",(char *) "info", NULL | |
8166 | }; | |
8167 | ||
8168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8171 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8172 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8173 | SWIG_fail; | |
d14a1e28 | 8174 | if (arg2 == NULL) { |
2f4c0a16 RD |
8175 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8176 | SWIG_fail; | |
d14a1e28 RD |
8177 | } |
8178 | { | |
8179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8180 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8181 | ||
8182 | wxPyEndAllowThreads(__tstate); | |
8183 | if (PyErr_Occurred()) SWIG_fail; | |
8184 | } | |
8185 | Py_INCREF(Py_None); resultobj = Py_None; | |
8186 | return resultobj; | |
8187 | fail: | |
8188 | return NULL; | |
8189 | } | |
8190 | ||
8191 | ||
2f4c0a16 | 8192 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8193 | PyObject *resultobj; |
8194 | wxFont *arg1 = (wxFont *) 0 ; | |
8195 | wxString *arg2 = 0 ; | |
423f194a | 8196 | bool temp2 = False ; |
d14a1e28 RD |
8197 | PyObject * obj0 = 0 ; |
8198 | PyObject * obj1 = 0 ; | |
8199 | char *kwnames[] = { | |
8200 | (char *) "self",(char *) "info", NULL | |
8201 | }; | |
8202 | ||
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8206 | { |
8207 | arg2 = wxString_in_helper(obj1); | |
8208 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8209 | temp2 = True; |
d14a1e28 RD |
8210 | } |
8211 | { | |
8212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8213 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8214 | ||
8215 | wxPyEndAllowThreads(__tstate); | |
8216 | if (PyErr_Occurred()) SWIG_fail; | |
8217 | } | |
8218 | Py_INCREF(Py_None); resultobj = Py_None; | |
8219 | { | |
8220 | if (temp2) | |
8221 | delete arg2; | |
8222 | } | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | { | |
8226 | if (temp2) | |
8227 | delete arg2; | |
8228 | } | |
8229 | return NULL; | |
8230 | } | |
8231 | ||
8232 | ||
2f4c0a16 | 8233 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8234 | PyObject *resultobj; |
8235 | wxFont *arg1 = (wxFont *) 0 ; | |
8236 | wxString *arg2 = 0 ; | |
423f194a | 8237 | bool temp2 = False ; |
d14a1e28 RD |
8238 | PyObject * obj0 = 0 ; |
8239 | PyObject * obj1 = 0 ; | |
8240 | char *kwnames[] = { | |
8241 | (char *) "self",(char *) "info", NULL | |
8242 | }; | |
8243 | ||
8244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8247 | { |
8248 | arg2 = wxString_in_helper(obj1); | |
8249 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8250 | temp2 = True; |
d14a1e28 RD |
8251 | } |
8252 | { | |
8253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8254 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8255 | ||
8256 | wxPyEndAllowThreads(__tstate); | |
8257 | if (PyErr_Occurred()) SWIG_fail; | |
8258 | } | |
8259 | Py_INCREF(Py_None); resultobj = Py_None; | |
8260 | { | |
8261 | if (temp2) | |
8262 | delete arg2; | |
8263 | } | |
8264 | return resultobj; | |
8265 | fail: | |
8266 | { | |
8267 | if (temp2) | |
8268 | delete arg2; | |
8269 | } | |
8270 | return NULL; | |
8271 | } | |
8272 | ||
8273 | ||
2f4c0a16 | 8274 | static PyObject *_wrap_Font_GetFamilyString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8275 | PyObject *resultobj; |
8276 | wxFont *arg1 = (wxFont *) 0 ; | |
8277 | wxString result; | |
8278 | PyObject * obj0 = 0 ; | |
8279 | char *kwnames[] = { | |
8280 | (char *) "self", NULL | |
8281 | }; | |
8282 | ||
8283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8286 | { |
8287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8288 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8289 | ||
8290 | wxPyEndAllowThreads(__tstate); | |
8291 | if (PyErr_Occurred()) SWIG_fail; | |
8292 | } | |
8293 | { | |
8294 | #if wxUSE_UNICODE | |
8295 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8296 | #else | |
8297 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8298 | #endif | |
8299 | } | |
8300 | return resultobj; | |
8301 | fail: | |
8302 | return NULL; | |
8303 | } | |
8304 | ||
8305 | ||
2f4c0a16 | 8306 | static PyObject *_wrap_Font_GetStyleString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8307 | PyObject *resultobj; |
8308 | wxFont *arg1 = (wxFont *) 0 ; | |
8309 | wxString result; | |
8310 | PyObject * obj0 = 0 ; | |
8311 | char *kwnames[] = { | |
8312 | (char *) "self", NULL | |
8313 | }; | |
8314 | ||
8315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8318 | { |
8319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8320 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8321 | ||
8322 | wxPyEndAllowThreads(__tstate); | |
8323 | if (PyErr_Occurred()) SWIG_fail; | |
8324 | } | |
8325 | { | |
8326 | #if wxUSE_UNICODE | |
8327 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8328 | #else | |
8329 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8330 | #endif | |
8331 | } | |
8332 | return resultobj; | |
8333 | fail: | |
8334 | return NULL; | |
8335 | } | |
8336 | ||
8337 | ||
2f4c0a16 | 8338 | static PyObject *_wrap_Font_GetWeightString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8339 | PyObject *resultobj; |
8340 | wxFont *arg1 = (wxFont *) 0 ; | |
8341 | wxString result; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | char *kwnames[] = { | |
8344 | (char *) "self", NULL | |
8345 | }; | |
8346 | ||
8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8350 | { |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8352 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8353 | ||
8354 | wxPyEndAllowThreads(__tstate); | |
8355 | if (PyErr_Occurred()) SWIG_fail; | |
8356 | } | |
8357 | { | |
8358 | #if wxUSE_UNICODE | |
8359 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8360 | #else | |
8361 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8362 | #endif | |
8363 | } | |
8364 | return resultobj; | |
8365 | fail: | |
8366 | return NULL; | |
8367 | } | |
8368 | ||
8369 | ||
2f4c0a16 | 8370 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8371 | PyObject *resultobj; |
8372 | wxFont *arg1 = (wxFont *) 0 ; | |
423f194a | 8373 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8374 | PyObject * obj0 = 0 ; |
8375 | PyObject * obj1 = 0 ; | |
8376 | char *kwnames[] = { | |
8377 | (char *) "self",(char *) "no", NULL | |
8378 | }; | |
8379 | ||
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8383 | if (obj1) { |
2f4c0a16 RD |
8384 | arg2 = (bool) SWIG_AsBool(obj1); |
8385 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8386 | } |
8387 | { | |
8388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8389 | (arg1)->SetNoAntiAliasing(arg2); | |
8390 | ||
8391 | wxPyEndAllowThreads(__tstate); | |
8392 | if (PyErr_Occurred()) SWIG_fail; | |
8393 | } | |
8394 | Py_INCREF(Py_None); resultobj = Py_None; | |
8395 | return resultobj; | |
8396 | fail: | |
8397 | return NULL; | |
8398 | } | |
8399 | ||
8400 | ||
2f4c0a16 | 8401 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8402 | PyObject *resultobj; |
8403 | wxFont *arg1 = (wxFont *) 0 ; | |
8404 | bool result; | |
8405 | PyObject * obj0 = 0 ; | |
8406 | char *kwnames[] = { | |
8407 | (char *) "self", NULL | |
8408 | }; | |
8409 | ||
8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8413 | { |
8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8415 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8416 | ||
8417 | wxPyEndAllowThreads(__tstate); | |
8418 | if (PyErr_Occurred()) SWIG_fail; | |
8419 | } | |
02a34c4c | 8420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8421 | return resultobj; |
8422 | fail: | |
8423 | return NULL; | |
8424 | } | |
8425 | ||
8426 | ||
2f4c0a16 | 8427 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8428 | PyObject *resultobj; |
8429 | int result; | |
8430 | char *kwnames[] = { | |
8431 | NULL | |
8432 | }; | |
8433 | ||
8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8435 | { | |
8436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8437 | result = (int)wxFont::GetDefaultEncoding(); | |
8438 | ||
8439 | wxPyEndAllowThreads(__tstate); | |
8440 | if (PyErr_Occurred()) SWIG_fail; | |
8441 | } | |
2f4c0a16 | 8442 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8443 | return resultobj; |
8444 | fail: | |
8445 | return NULL; | |
8446 | } | |
8447 | ||
8448 | ||
2f4c0a16 | 8449 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8450 | PyObject *resultobj; |
8451 | int arg1 ; | |
8edf1c75 | 8452 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8453 | char *kwnames[] = { |
8454 | (char *) "encoding", NULL | |
8455 | }; | |
8456 | ||
8edf1c75 | 8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
8458 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
8459 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8460 | { |
8461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8462 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8463 | ||
8464 | wxPyEndAllowThreads(__tstate); | |
8465 | if (PyErr_Occurred()) SWIG_fail; | |
8466 | } | |
8467 | Py_INCREF(Py_None); resultobj = Py_None; | |
8468 | return resultobj; | |
8469 | fail: | |
8470 | return NULL; | |
8471 | } | |
8472 | ||
8473 | ||
2f4c0a16 | 8474 | static PyObject * Font_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8475 | PyObject *obj; |
8476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8477 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8478 | Py_INCREF(obj); | |
8479 | return Py_BuildValue((char *)""); | |
8480 | } | |
2f4c0a16 | 8481 | static PyObject *_wrap_new_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8482 | PyObject *resultobj; |
8483 | wxPyFontEnumerator *result; | |
8484 | char *kwnames[] = { | |
8485 | NULL | |
8486 | }; | |
8487 | ||
8488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8489 | { | |
8490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8491 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8492 | ||
8493 | wxPyEndAllowThreads(__tstate); | |
8494 | if (PyErr_Occurred()) SWIG_fail; | |
8495 | } | |
2f4c0a16 | 8496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
8497 | return resultobj; |
8498 | fail: | |
8499 | return NULL; | |
8500 | } | |
8501 | ||
8502 | ||
2f4c0a16 | 8503 | static PyObject *_wrap_delete_FontEnumerator(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8504 | PyObject *resultobj; |
8505 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8506 | PyObject * obj0 = 0 ; | |
8507 | char *kwnames[] = { | |
8508 | (char *) "self", NULL | |
8509 | }; | |
8510 | ||
8511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8514 | { |
8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8516 | delete arg1; | |
8517 | ||
8518 | wxPyEndAllowThreads(__tstate); | |
8519 | if (PyErr_Occurred()) SWIG_fail; | |
8520 | } | |
8521 | Py_INCREF(Py_None); resultobj = Py_None; | |
8522 | return resultobj; | |
8523 | fail: | |
8524 | return NULL; | |
8525 | } | |
8526 | ||
8527 | ||
2f4c0a16 | 8528 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8529 | PyObject *resultobj; |
8530 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8531 | PyObject *arg2 = (PyObject *) 0 ; | |
8532 | PyObject *arg3 = (PyObject *) 0 ; | |
8533 | bool arg4 ; | |
8534 | PyObject * obj0 = 0 ; | |
8535 | PyObject * obj1 = 0 ; | |
8536 | PyObject * obj2 = 0 ; | |
8537 | PyObject * obj3 = 0 ; | |
8538 | char *kwnames[] = { | |
8539 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8540 | }; | |
8541 | ||
8542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
8543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8545 | arg2 = obj1; |
8546 | arg3 = obj2; | |
2f4c0a16 RD |
8547 | arg4 = (bool) SWIG_AsBool(obj3); |
8548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8549 | { |
8550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8551 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8552 | ||
8553 | wxPyEndAllowThreads(__tstate); | |
8554 | if (PyErr_Occurred()) SWIG_fail; | |
8555 | } | |
8556 | Py_INCREF(Py_None); resultobj = Py_None; | |
8557 | return resultobj; | |
8558 | fail: | |
8559 | return NULL; | |
8560 | } | |
8561 | ||
8562 | ||
2f4c0a16 | 8563 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8564 | PyObject *resultobj; |
8565 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8566 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
423f194a | 8567 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8568 | bool result; |
8569 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8570 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8571 | PyObject * obj2 = 0 ; |
8572 | char *kwnames[] = { | |
8573 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8574 | }; | |
8575 | ||
8edf1c75 | 8576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 8579 | if (obj1) { |
2f4c0a16 RD |
8580 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); |
8581 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8582 | } |
d14a1e28 | 8583 | if (obj2) { |
2f4c0a16 RD |
8584 | arg3 = (bool) SWIG_AsBool(obj2); |
8585 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8586 | } |
8587 | { | |
8588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8589 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8590 | ||
8591 | wxPyEndAllowThreads(__tstate); | |
8592 | if (PyErr_Occurred()) SWIG_fail; | |
8593 | } | |
02a34c4c | 8594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8595 | return resultobj; |
8596 | fail: | |
8597 | return NULL; | |
8598 | } | |
8599 | ||
8600 | ||
2f4c0a16 | 8601 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8602 | PyObject *resultobj; |
8603 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8604 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8605 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8606 | bool result; | |
423f194a | 8607 | bool temp2 = False ; |
d14a1e28 RD |
8608 | PyObject * obj0 = 0 ; |
8609 | PyObject * obj1 = 0 ; | |
8610 | char *kwnames[] = { | |
8611 | (char *) "self",(char *) "facename", NULL | |
8612 | }; | |
8613 | ||
8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8617 | if (obj1) { |
8618 | { | |
8619 | arg2 = wxString_in_helper(obj1); | |
8620 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8621 | temp2 = True; |
d14a1e28 RD |
8622 | } |
8623 | } | |
8624 | { | |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8627 | ||
8628 | wxPyEndAllowThreads(__tstate); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
02a34c4c | 8631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8632 | { |
8633 | if (temp2) | |
8634 | delete arg2; | |
8635 | } | |
8636 | return resultobj; | |
8637 | fail: | |
8638 | { | |
8639 | if (temp2) | |
8640 | delete arg2; | |
8641 | } | |
8642 | return NULL; | |
8643 | } | |
8644 | ||
8645 | ||
2f4c0a16 | 8646 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8647 | PyObject *resultobj; |
8648 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8649 | PyObject *result; | |
8650 | PyObject * obj0 = 0 ; | |
8651 | char *kwnames[] = { | |
8652 | (char *) "self", NULL | |
8653 | }; | |
8654 | ||
8655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8658 | { |
8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8660 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8661 | ||
8662 | wxPyEndAllowThreads(__tstate); | |
8663 | if (PyErr_Occurred()) SWIG_fail; | |
8664 | } | |
8665 | resultobj = result; | |
8666 | return resultobj; | |
8667 | fail: | |
8668 | return NULL; | |
8669 | } | |
8670 | ||
8671 | ||
2f4c0a16 | 8672 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8673 | PyObject *resultobj; |
8674 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8675 | PyObject *result; | |
8676 | PyObject * obj0 = 0 ; | |
8677 | char *kwnames[] = { | |
8678 | (char *) "self", NULL | |
8679 | }; | |
8680 | ||
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8684 | { |
8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8686 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8687 | ||
8688 | wxPyEndAllowThreads(__tstate); | |
8689 | if (PyErr_Occurred()) SWIG_fail; | |
8690 | } | |
8691 | resultobj = result; | |
8692 | return resultobj; | |
8693 | fail: | |
8694 | return NULL; | |
8695 | } | |
8696 | ||
8697 | ||
2f4c0a16 | 8698 | static PyObject * FontEnumerator_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8699 | PyObject *obj; |
8700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8701 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8702 | Py_INCREF(obj); | |
8703 | return Py_BuildValue((char *)""); | |
8704 | } | |
2f4c0a16 | 8705 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8706 | PyObject *resultobj; |
8707 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8708 | int arg2 ; | |
8709 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8710 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8711 | char *kwnames[] = { |
8712 | (char *) "self",(char *) "Language", NULL | |
8713 | }; | |
8714 | ||
8edf1c75 | 8715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8718 | arg2 = (int) SWIG_AsInt(obj1); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8720 | if (arg1) (arg1)->Language = arg2; |
8721 | ||
8722 | Py_INCREF(Py_None); resultobj = Py_None; | |
8723 | return resultobj; | |
8724 | fail: | |
8725 | return NULL; | |
8726 | } | |
8727 | ||
8728 | ||
2f4c0a16 | 8729 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8730 | PyObject *resultobj; |
8731 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8732 | int result; | |
8733 | PyObject * obj0 = 0 ; | |
8734 | char *kwnames[] = { | |
8735 | (char *) "self", NULL | |
8736 | }; | |
8737 | ||
8738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8741 | result = (int) ((arg1)->Language); |
8742 | ||
2f4c0a16 | 8743 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8744 | return resultobj; |
8745 | fail: | |
8746 | return NULL; | |
8747 | } | |
8748 | ||
8749 | ||
2f4c0a16 | 8750 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8751 | PyObject *resultobj; |
8752 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8753 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 8754 | bool temp2 = False ; |
d14a1e28 RD |
8755 | PyObject * obj0 = 0 ; |
8756 | PyObject * obj1 = 0 ; | |
8757 | char *kwnames[] = { | |
8758 | (char *) "self",(char *) "CanonicalName", NULL | |
8759 | }; | |
8760 | ||
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
dae0faa6 RD |
8764 | { |
8765 | arg2 = wxString_in_helper(obj1); | |
8766 | if (arg2 == NULL) SWIG_fail; | |
8767 | temp2 = True; | |
8768 | } | |
cbd72d4f | 8769 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8770 | |
8771 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
8772 | { |
8773 | if (temp2) | |
8774 | delete arg2; | |
8775 | } | |
d14a1e28 RD |
8776 | return resultobj; |
8777 | fail: | |
dae0faa6 RD |
8778 | { |
8779 | if (temp2) | |
8780 | delete arg2; | |
8781 | } | |
d14a1e28 RD |
8782 | return NULL; |
8783 | } | |
8784 | ||
8785 | ||
2f4c0a16 | 8786 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8787 | PyObject *resultobj; |
8788 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8789 | wxString *result; |
d14a1e28 RD |
8790 | PyObject * obj0 = 0 ; |
8791 | char *kwnames[] = { | |
8792 | (char *) "self", NULL | |
8793 | }; | |
8794 | ||
8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cbd72d4f | 8798 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8799 | |
8800 | { | |
8801 | #if wxUSE_UNICODE | |
cbd72d4f | 8802 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8803 | #else |
cbd72d4f | 8804 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8805 | #endif |
8806 | } | |
8807 | return resultobj; | |
8808 | fail: | |
8809 | return NULL; | |
8810 | } | |
8811 | ||
8812 | ||
2f4c0a16 | 8813 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8814 | PyObject *resultobj; |
8815 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8816 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 8817 | bool temp2 = False ; |
d14a1e28 RD |
8818 | PyObject * obj0 = 0 ; |
8819 | PyObject * obj1 = 0 ; | |
8820 | char *kwnames[] = { | |
8821 | (char *) "self",(char *) "Description", NULL | |
8822 | }; | |
8823 | ||
8824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
dae0faa6 RD |
8827 | { |
8828 | arg2 = wxString_in_helper(obj1); | |
8829 | if (arg2 == NULL) SWIG_fail; | |
8830 | temp2 = True; | |
8831 | } | |
cbd72d4f | 8832 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
8833 | |
8834 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
8835 | { |
8836 | if (temp2) | |
8837 | delete arg2; | |
8838 | } | |
d14a1e28 RD |
8839 | return resultobj; |
8840 | fail: | |
dae0faa6 RD |
8841 | { |
8842 | if (temp2) | |
8843 | delete arg2; | |
8844 | } | |
d14a1e28 RD |
8845 | return NULL; |
8846 | } | |
8847 | ||
8848 | ||
2f4c0a16 | 8849 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8850 | PyObject *resultobj; |
8851 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
cbd72d4f | 8852 | wxString *result; |
d14a1e28 RD |
8853 | PyObject * obj0 = 0 ; |
8854 | char *kwnames[] = { | |
8855 | (char *) "self", NULL | |
8856 | }; | |
8857 | ||
8858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
cbd72d4f | 8861 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
8862 | |
8863 | { | |
8864 | #if wxUSE_UNICODE | |
cbd72d4f | 8865 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8866 | #else |
cbd72d4f | 8867 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8868 | #endif |
8869 | } | |
8870 | return resultobj; | |
8871 | fail: | |
8872 | return NULL; | |
8873 | } | |
8874 | ||
8875 | ||
2f4c0a16 | 8876 | static PyObject * LanguageInfo_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
8877 | PyObject *obj; |
8878 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8879 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8880 | Py_INCREF(obj); | |
8881 | return Py_BuildValue((char *)""); | |
8882 | } | |
2f4c0a16 | 8883 | static PyObject *_wrap_new_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8884 | PyObject *resultobj; |
8885 | int arg1 = (int) wxLANGUAGE_DEFAULT ; | |
8886 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
8887 | wxLocale *result; | |
8edf1c75 RD |
8888 | PyObject * obj0 = 0 ; |
8889 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8890 | char *kwnames[] = { |
8891 | (char *) "language",(char *) "flags", NULL | |
8892 | }; | |
8893 | ||
8edf1c75 RD |
8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
8895 | if (obj0) { | |
2f4c0a16 RD |
8896 | arg1 = (int) SWIG_AsInt(obj0); |
8897 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
8898 | } |
8899 | if (obj1) { | |
2f4c0a16 RD |
8900 | arg2 = (int) SWIG_AsInt(obj1); |
8901 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 8902 | } |
d14a1e28 RD |
8903 | { |
8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8905 | result = (wxLocale *)new wxLocale(arg1,arg2); | |
8906 | ||
8907 | wxPyEndAllowThreads(__tstate); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | } | |
2f4c0a16 | 8910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
8911 | return resultobj; |
8912 | fail: | |
8913 | return NULL; | |
8914 | } | |
8915 | ||
8916 | ||
2f4c0a16 | 8917 | static PyObject *_wrap_delete_Locale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8918 | PyObject *resultobj; |
8919 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | char *kwnames[] = { | |
8922 | (char *) "self", NULL | |
8923 | }; | |
8924 | ||
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
8927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8928 | { |
8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8930 | delete arg1; | |
8931 | ||
8932 | wxPyEndAllowThreads(__tstate); | |
8933 | if (PyErr_Occurred()) SWIG_fail; | |
8934 | } | |
8935 | Py_INCREF(Py_None); resultobj = Py_None; | |
8936 | return resultobj; | |
8937 | fail: | |
8938 | return NULL; | |
8939 | } | |
8940 | ||
8941 | ||
2f4c0a16 | 8942 | static PyObject *_wrap_Locale_Init1(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8943 | PyObject *resultobj; |
8944 | wxLocale *arg1 = (wxLocale *) 0 ; | |
8945 | wxString *arg2 = 0 ; | |
8946 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8947 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8948 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8949 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
423f194a RD |
8950 | bool arg5 = (bool) True ; |
8951 | bool arg6 = (bool) False ; | |
d14a1e28 | 8952 | bool result; |
423f194a RD |
8953 | bool temp2 = False ; |
8954 | bool temp3 = False ; | |
8955 | bool temp4 = False ; | |
d14a1e28 RD |
8956 | PyObject * obj0 = 0 ; |
8957 | PyObject * obj1 = 0 ; | |
8958 | PyObject * obj2 = 0 ; | |
8959 | PyObject * obj3 = 0 ; | |
8960 | PyObject * obj4 = 0 ; | |
8961 | PyObject * obj5 = 0 ; | |
8962 | char *kwnames[] = { | |
8963 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
8964 | }; | |
8965 | ||
8966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
2f4c0a16 RD |
8967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
8968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8969 | { |
8970 | arg2 = wxString_in_helper(obj1); | |
8971 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8972 | temp2 = True; |
d14a1e28 RD |
8973 | } |
8974 | if (obj2) { | |
8975 | { | |
8976 | arg3 = wxString_in_helper(obj2); | |
8977 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8978 | temp3 = True; |
d14a1e28 RD |
8979 | } |
8980 | } | |
8981 | if (obj3) { | |
8982 | { | |
8983 | arg4 = wxString_in_helper(obj3); | |
8984 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8985 | temp4 = True; |
d14a1e28 RD |
8986 | } |
8987 | } | |
8988 | if (obj4) { | |
2f4c0a16 RD |
8989 | arg5 = (bool) SWIG_AsBool(obj4); |
8990 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8991 | } |
8992 | if (obj5) { | |
2f4c0a16 RD |
8993 | arg6 = (bool) SWIG_AsBool(obj5); |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8995 | } |
8996 | { | |
8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8998 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
8999 | ||
9000 | wxPyEndAllowThreads(__tstate); | |
9001 | if (PyErr_Occurred()) SWIG_fail; | |
9002 | } | |
02a34c4c | 9003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9004 | { |
9005 | if (temp2) | |
9006 | delete arg2; | |
9007 | } | |
9008 | { | |
9009 | if (temp3) | |
9010 | delete arg3; | |
9011 | } | |
9012 | { | |
9013 | if (temp4) | |
9014 | delete arg4; | |
9015 | } | |
9016 | return resultobj; | |
9017 | fail: | |
9018 | { | |
9019 | if (temp2) | |
9020 | delete arg2; | |
9021 | } | |
9022 | { | |
9023 | if (temp3) | |
9024 | delete arg3; | |
9025 | } | |
9026 | { | |
9027 | if (temp4) | |
9028 | delete arg4; | |
9029 | } | |
9030 | return NULL; | |
9031 | } | |
9032 | ||
9033 | ||
2f4c0a16 | 9034 | static PyObject *_wrap_Locale_Init2(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9035 | PyObject *resultobj; |
9036 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9037 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9038 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9039 | bool result; | |
9040 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9041 | PyObject * obj1 = 0 ; |
9042 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9043 | char *kwnames[] = { |
9044 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9045 | }; | |
9046 | ||
8edf1c75 | 9047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9050 | if (obj1) { |
2f4c0a16 RD |
9051 | arg2 = (int) SWIG_AsInt(obj1); |
9052 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
9053 | } |
9054 | if (obj2) { | |
2f4c0a16 RD |
9055 | arg3 = (int) SWIG_AsInt(obj2); |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9057 | } |
d14a1e28 RD |
9058 | { |
9059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9060 | result = (bool)(arg1)->Init(arg2,arg3); | |
9061 | ||
9062 | wxPyEndAllowThreads(__tstate); | |
9063 | if (PyErr_Occurred()) SWIG_fail; | |
9064 | } | |
02a34c4c | 9065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9066 | return resultobj; |
9067 | fail: | |
9068 | return NULL; | |
9069 | } | |
9070 | ||
9071 | ||
2f4c0a16 | 9072 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9073 | PyObject *resultobj; |
9074 | int result; | |
9075 | char *kwnames[] = { | |
9076 | NULL | |
9077 | }; | |
9078 | ||
9079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9080 | { | |
9081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9082 | result = (int)wxLocale::GetSystemLanguage(); | |
9083 | ||
9084 | wxPyEndAllowThreads(__tstate); | |
9085 | if (PyErr_Occurred()) SWIG_fail; | |
9086 | } | |
2f4c0a16 | 9087 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9088 | return resultobj; |
9089 | fail: | |
9090 | return NULL; | |
9091 | } | |
9092 | ||
9093 | ||
2f4c0a16 | 9094 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9095 | PyObject *resultobj; |
9096 | int result; | |
9097 | char *kwnames[] = { | |
9098 | NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9102 | { | |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | result = (int)wxLocale::GetSystemEncoding(); | |
9105 | ||
9106 | wxPyEndAllowThreads(__tstate); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | } | |
2f4c0a16 | 9109 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9110 | return resultobj; |
9111 | fail: | |
9112 | return NULL; | |
9113 | } | |
9114 | ||
9115 | ||
2f4c0a16 | 9116 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9117 | PyObject *resultobj; |
9118 | wxString result; | |
9119 | char *kwnames[] = { | |
9120 | NULL | |
9121 | }; | |
9122 | ||
9123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9124 | { | |
9125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9126 | result = wxLocale::GetSystemEncodingName(); | |
9127 | ||
9128 | wxPyEndAllowThreads(__tstate); | |
9129 | if (PyErr_Occurred()) SWIG_fail; | |
9130 | } | |
9131 | { | |
9132 | #if wxUSE_UNICODE | |
9133 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9134 | #else | |
9135 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9136 | #endif | |
9137 | } | |
9138 | return resultobj; | |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
2f4c0a16 | 9144 | static PyObject *_wrap_Locale_IsOk(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9145 | PyObject *resultobj; |
9146 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9147 | bool result; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | char *kwnames[] = { | |
9150 | (char *) "self", NULL | |
9151 | }; | |
9152 | ||
9153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9156 | { |
9157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9158 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9159 | ||
9160 | wxPyEndAllowThreads(__tstate); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
9162 | } | |
02a34c4c | 9163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9164 | return resultobj; |
9165 | fail: | |
9166 | return NULL; | |
9167 | } | |
9168 | ||
9169 | ||
2f4c0a16 | 9170 | static PyObject *_wrap_Locale_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9171 | PyObject *resultobj; |
9172 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9173 | wxString result; | |
9174 | PyObject * obj0 = 0 ; | |
9175 | char *kwnames[] = { | |
9176 | (char *) "self", NULL | |
9177 | }; | |
9178 | ||
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9182 | { |
9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9184 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9185 | ||
9186 | wxPyEndAllowThreads(__tstate); | |
9187 | if (PyErr_Occurred()) SWIG_fail; | |
9188 | } | |
9189 | { | |
9190 | #if wxUSE_UNICODE | |
9191 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9192 | #else | |
9193 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9194 | #endif | |
9195 | } | |
9196 | return resultobj; | |
9197 | fail: | |
9198 | return NULL; | |
9199 | } | |
9200 | ||
9201 | ||
2f4c0a16 | 9202 | static PyObject *_wrap_Locale_GetLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9203 | PyObject *resultobj; |
9204 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9205 | int result; | |
9206 | PyObject * obj0 = 0 ; | |
9207 | char *kwnames[] = { | |
9208 | (char *) "self", NULL | |
9209 | }; | |
9210 | ||
9211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9214 | { |
9215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9216 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9217 | ||
9218 | wxPyEndAllowThreads(__tstate); | |
9219 | if (PyErr_Occurred()) SWIG_fail; | |
9220 | } | |
2f4c0a16 | 9221 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9222 | return resultobj; |
9223 | fail: | |
9224 | return NULL; | |
9225 | } | |
9226 | ||
9227 | ||
2f4c0a16 | 9228 | static PyObject *_wrap_Locale_GetSysName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9229 | PyObject *resultobj; |
9230 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9231 | wxString result; | |
9232 | PyObject * obj0 = 0 ; | |
9233 | char *kwnames[] = { | |
9234 | (char *) "self", NULL | |
9235 | }; | |
9236 | ||
9237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9240 | { |
9241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9242 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9243 | ||
9244 | wxPyEndAllowThreads(__tstate); | |
9245 | if (PyErr_Occurred()) SWIG_fail; | |
9246 | } | |
9247 | { | |
9248 | #if wxUSE_UNICODE | |
9249 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9250 | #else | |
9251 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9252 | #endif | |
9253 | } | |
9254 | return resultobj; | |
9255 | fail: | |
9256 | return NULL; | |
9257 | } | |
9258 | ||
9259 | ||
2f4c0a16 | 9260 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9261 | PyObject *resultobj; |
9262 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9263 | wxString result; | |
9264 | PyObject * obj0 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9272 | { |
9273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9274 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9275 | ||
9276 | wxPyEndAllowThreads(__tstate); | |
9277 | if (PyErr_Occurred()) SWIG_fail; | |
9278 | } | |
9279 | { | |
9280 | #if wxUSE_UNICODE | |
9281 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9282 | #else | |
9283 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9284 | #endif | |
9285 | } | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
2f4c0a16 | 9292 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9293 | PyObject *resultobj; |
9294 | wxString *arg1 = 0 ; | |
423f194a | 9295 | bool temp1 = False ; |
d14a1e28 RD |
9296 | PyObject * obj0 = 0 ; |
9297 | char *kwnames[] = { | |
9298 | (char *) "prefix", NULL | |
9299 | }; | |
9300 | ||
9301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9302 | { | |
9303 | arg1 = wxString_in_helper(obj0); | |
9304 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9305 | temp1 = True; |
d14a1e28 RD |
9306 | } |
9307 | { | |
9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9309 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9310 | ||
9311 | wxPyEndAllowThreads(__tstate); | |
9312 | if (PyErr_Occurred()) SWIG_fail; | |
9313 | } | |
9314 | Py_INCREF(Py_None); resultobj = Py_None; | |
9315 | { | |
9316 | if (temp1) | |
9317 | delete arg1; | |
9318 | } | |
9319 | return resultobj; | |
9320 | fail: | |
9321 | { | |
9322 | if (temp1) | |
9323 | delete arg1; | |
9324 | } | |
9325 | return NULL; | |
9326 | } | |
9327 | ||
9328 | ||
2f4c0a16 | 9329 | static PyObject *_wrap_Locale_AddCatalog(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9330 | PyObject *resultobj; |
9331 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9332 | wxString *arg2 = 0 ; | |
9333 | bool result; | |
423f194a | 9334 | bool temp2 = False ; |
d14a1e28 RD |
9335 | PyObject * obj0 = 0 ; |
9336 | PyObject * obj1 = 0 ; | |
9337 | char *kwnames[] = { | |
9338 | (char *) "self",(char *) "szDomain", NULL | |
9339 | }; | |
9340 | ||
9341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9344 | { |
9345 | arg2 = wxString_in_helper(obj1); | |
9346 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9347 | temp2 = True; |
d14a1e28 RD |
9348 | } |
9349 | { | |
9350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9351 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9352 | ||
9353 | wxPyEndAllowThreads(__tstate); | |
9354 | if (PyErr_Occurred()) SWIG_fail; | |
9355 | } | |
02a34c4c | 9356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9357 | { |
9358 | if (temp2) | |
9359 | delete arg2; | |
9360 | } | |
9361 | return resultobj; | |
9362 | fail: | |
9363 | { | |
9364 | if (temp2) | |
9365 | delete arg2; | |
9366 | } | |
9367 | return NULL; | |
9368 | } | |
9369 | ||
9370 | ||
2f4c0a16 | 9371 | static PyObject *_wrap_Locale_IsLoaded(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9372 | PyObject *resultobj; |
9373 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9374 | wxString *arg2 = 0 ; | |
9375 | bool result; | |
423f194a | 9376 | bool temp2 = False ; |
d14a1e28 RD |
9377 | PyObject * obj0 = 0 ; |
9378 | PyObject * obj1 = 0 ; | |
9379 | char *kwnames[] = { | |
9380 | (char *) "self",(char *) "szDomain", NULL | |
9381 | }; | |
9382 | ||
9383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9386 | { |
9387 | arg2 = wxString_in_helper(obj1); | |
9388 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9389 | temp2 = True; |
d14a1e28 RD |
9390 | } |
9391 | { | |
9392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9393 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9394 | ||
9395 | wxPyEndAllowThreads(__tstate); | |
9396 | if (PyErr_Occurred()) SWIG_fail; | |
9397 | } | |
02a34c4c | 9398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9399 | { |
9400 | if (temp2) | |
9401 | delete arg2; | |
9402 | } | |
9403 | return resultobj; | |
9404 | fail: | |
9405 | { | |
9406 | if (temp2) | |
9407 | delete arg2; | |
9408 | } | |
9409 | return NULL; | |
9410 | } | |
9411 | ||
9412 | ||
2f4c0a16 | 9413 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9414 | PyObject *resultobj; |
9415 | int arg1 ; | |
9416 | wxLanguageInfo *result; | |
8edf1c75 | 9417 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9418 | char *kwnames[] = { |
9419 | (char *) "lang", NULL | |
9420 | }; | |
9421 | ||
8edf1c75 | 9422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
9423 | arg1 = (int) SWIG_AsInt(obj0); |
9424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9425 | { |
9426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9427 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9428 | ||
9429 | wxPyEndAllowThreads(__tstate); | |
9430 | if (PyErr_Occurred()) SWIG_fail; | |
9431 | } | |
2f4c0a16 | 9432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
9433 | return resultobj; |
9434 | fail: | |
9435 | return NULL; | |
9436 | } | |
9437 | ||
9438 | ||
2f4c0a16 | 9439 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9440 | PyObject *resultobj; |
9441 | int arg1 ; | |
9442 | wxString result; | |
8edf1c75 | 9443 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9444 | char *kwnames[] = { |
9445 | (char *) "lang", NULL | |
9446 | }; | |
9447 | ||
8edf1c75 | 9448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
9449 | arg1 = (int) SWIG_AsInt(obj0); |
9450 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9451 | { |
9452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9453 | result = wxLocale::GetLanguageName(arg1); | |
9454 | ||
9455 | wxPyEndAllowThreads(__tstate); | |
9456 | if (PyErr_Occurred()) SWIG_fail; | |
9457 | } | |
9458 | { | |
9459 | #if wxUSE_UNICODE | |
9460 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9461 | #else | |
9462 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9463 | #endif | |
9464 | } | |
9465 | return resultobj; | |
9466 | fail: | |
9467 | return NULL; | |
9468 | } | |
9469 | ||
9470 | ||
2f4c0a16 | 9471 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9472 | PyObject *resultobj; |
9473 | wxString *arg1 = 0 ; | |
9474 | wxLanguageInfo *result; | |
423f194a | 9475 | bool temp1 = False ; |
d14a1e28 RD |
9476 | PyObject * obj0 = 0 ; |
9477 | char *kwnames[] = { | |
9478 | (char *) "locale", NULL | |
9479 | }; | |
9480 | ||
9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9482 | { | |
9483 | arg1 = wxString_in_helper(obj0); | |
9484 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9485 | temp1 = True; |
d14a1e28 RD |
9486 | } |
9487 | { | |
9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9489 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9490 | ||
9491 | wxPyEndAllowThreads(__tstate); | |
9492 | if (PyErr_Occurred()) SWIG_fail; | |
9493 | } | |
2f4c0a16 | 9494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
9495 | { |
9496 | if (temp1) | |
9497 | delete arg1; | |
9498 | } | |
9499 | return resultobj; | |
9500 | fail: | |
9501 | { | |
9502 | if (temp1) | |
9503 | delete arg1; | |
9504 | } | |
9505 | return NULL; | |
9506 | } | |
9507 | ||
9508 | ||
2f4c0a16 | 9509 | static PyObject *_wrap_Locale_AddLanguage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9510 | PyObject *resultobj; |
9511 | wxLanguageInfo *arg1 = 0 ; | |
9512 | PyObject * obj0 = 0 ; | |
9513 | char *kwnames[] = { | |
9514 | (char *) "info", NULL | |
9515 | }; | |
9516 | ||
9517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9520 | SWIG_fail; | |
d14a1e28 | 9521 | if (arg1 == NULL) { |
2f4c0a16 RD |
9522 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9523 | SWIG_fail; | |
d14a1e28 RD |
9524 | } |
9525 | { | |
9526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9527 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9528 | ||
9529 | wxPyEndAllowThreads(__tstate); | |
9530 | if (PyErr_Occurred()) SWIG_fail; | |
9531 | } | |
9532 | Py_INCREF(Py_None); resultobj = Py_None; | |
9533 | return resultobj; | |
9534 | fail: | |
9535 | return NULL; | |
9536 | } | |
9537 | ||
9538 | ||
2f4c0a16 | 9539 | static PyObject *_wrap_Locale_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9540 | PyObject *resultobj; |
9541 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9542 | wxString *arg2 = 0 ; | |
9543 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9544 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9545 | wxString result; | |
423f194a RD |
9546 | bool temp2 = False ; |
9547 | bool temp3 = False ; | |
d14a1e28 RD |
9548 | PyObject * obj0 = 0 ; |
9549 | PyObject * obj1 = 0 ; | |
9550 | PyObject * obj2 = 0 ; | |
9551 | char *kwnames[] = { | |
9552 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9553 | }; | |
9554 | ||
9555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
9556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9558 | { |
9559 | arg2 = wxString_in_helper(obj1); | |
9560 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9561 | temp2 = True; |
d14a1e28 RD |
9562 | } |
9563 | if (obj2) { | |
9564 | { | |
9565 | arg3 = wxString_in_helper(obj2); | |
9566 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9567 | temp3 = True; |
d14a1e28 RD |
9568 | } |
9569 | } | |
9570 | { | |
9571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9572 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9573 | ||
9574 | wxPyEndAllowThreads(__tstate); | |
9575 | if (PyErr_Occurred()) SWIG_fail; | |
9576 | } | |
9577 | { | |
9578 | #if wxUSE_UNICODE | |
9579 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9580 | #else | |
9581 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9582 | #endif | |
9583 | } | |
9584 | { | |
9585 | if (temp2) | |
9586 | delete arg2; | |
9587 | } | |
9588 | { | |
9589 | if (temp3) | |
9590 | delete arg3; | |
9591 | } | |
9592 | return resultobj; | |
9593 | fail: | |
9594 | { | |
9595 | if (temp2) | |
9596 | delete arg2; | |
9597 | } | |
9598 | { | |
9599 | if (temp3) | |
9600 | delete arg3; | |
9601 | } | |
9602 | return NULL; | |
9603 | } | |
9604 | ||
9605 | ||
2f4c0a16 | 9606 | static PyObject *_wrap_Locale_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9607 | PyObject *resultobj; |
9608 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9609 | wxString *result; | |
9610 | PyObject * obj0 = 0 ; | |
9611 | char *kwnames[] = { | |
9612 | (char *) "self", NULL | |
9613 | }; | |
9614 | ||
9615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9618 | { |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | { | |
9621 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9622 | result = (wxString *) &_result_ref; | |
9623 | } | |
9624 | ||
9625 | wxPyEndAllowThreads(__tstate); | |
9626 | if (PyErr_Occurred()) SWIG_fail; | |
9627 | } | |
0f774bef RD |
9628 | { |
9629 | #if wxUSE_UNICODE | |
9630 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9631 | #else | |
9632 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9633 | #endif | |
9634 | } | |
d14a1e28 RD |
9635 | return resultobj; |
9636 | fail: | |
9637 | return NULL; | |
9638 | } | |
9639 | ||
9640 | ||
2f4c0a16 | 9641 | static PyObject * Locale_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
9642 | PyObject *obj; |
9643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9644 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9645 | Py_INCREF(obj); | |
9646 | return Py_BuildValue((char *)""); | |
9647 | } | |
2f4c0a16 | 9648 | static PyObject *_wrap_GetLocale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9649 | PyObject *resultobj; |
9650 | wxLocale *result; | |
9651 | char *kwnames[] = { | |
9652 | NULL | |
9653 | }; | |
9654 | ||
9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | result = (wxLocale *)wxGetLocale(); | |
9659 | ||
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
9662 | } | |
2f4c0a16 | 9663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
9664 | return resultobj; |
9665 | fail: | |
9666 | return NULL; | |
9667 | } | |
9668 | ||
9669 | ||
2f4c0a16 | 9670 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
9671 | PyObject *resultobj; |
9672 | wxString *arg1 = 0 ; | |
9673 | wxString result; | |
423f194a | 9674 | bool temp1 = False ; |
d14a1e28 RD |
9675 | PyObject * obj0 = 0 ; |
9676 | ||
9677 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9678 | { | |
9679 | arg1 = wxString_in_helper(obj0); | |
9680 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9681 | temp1 = True; |
d14a1e28 RD |
9682 | } |
9683 | { | |
9684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9685 | result = wxGetTranslation((wxString const &)*arg1); | |
9686 | ||
9687 | wxPyEndAllowThreads(__tstate); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | { | |
9691 | #if wxUSE_UNICODE | |
9692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9693 | #else | |
9694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9695 | #endif | |
9696 | } | |
9697 | { | |
9698 | if (temp1) | |
9699 | delete arg1; | |
9700 | } | |
9701 | return resultobj; | |
9702 | fail: | |
9703 | { | |
9704 | if (temp1) | |
9705 | delete arg1; | |
9706 | } | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
2f4c0a16 | 9711 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
9712 | PyObject *resultobj; |
9713 | wxString *arg1 = 0 ; | |
9714 | wxString *arg2 = 0 ; | |
9715 | size_t arg3 ; | |
9716 | wxString result; | |
423f194a RD |
9717 | bool temp1 = False ; |
9718 | bool temp2 = False ; | |
d14a1e28 RD |
9719 | PyObject * obj0 = 0 ; |
9720 | PyObject * obj1 = 0 ; | |
9721 | PyObject * obj2 = 0 ; | |
9722 | ||
9723 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9724 | { | |
9725 | arg1 = wxString_in_helper(obj0); | |
9726 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 9727 | temp1 = True; |
d14a1e28 RD |
9728 | } |
9729 | { | |
9730 | arg2 = wxString_in_helper(obj1); | |
9731 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9732 | temp2 = True; |
d14a1e28 | 9733 | } |
2f4c0a16 RD |
9734 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9736 | { |
9737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9738 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9739 | ||
9740 | wxPyEndAllowThreads(__tstate); | |
9741 | if (PyErr_Occurred()) SWIG_fail; | |
9742 | } | |
9743 | { | |
9744 | #if wxUSE_UNICODE | |
9745 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9746 | #else | |
9747 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9748 | #endif | |
9749 | } | |
9750 | { | |
9751 | if (temp1) | |
9752 | delete arg1; | |
9753 | } | |
9754 | { | |
9755 | if (temp2) | |
9756 | delete arg2; | |
9757 | } | |
9758 | return resultobj; | |
9759 | fail: | |
9760 | { | |
9761 | if (temp1) | |
9762 | delete arg1; | |
9763 | } | |
9764 | { | |
9765 | if (temp2) | |
9766 | delete arg2; | |
9767 | } | |
9768 | return NULL; | |
9769 | } | |
9770 | ||
9771 | ||
9772 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9773 | int argc; | |
9774 | PyObject *argv[4]; | |
9775 | int ii; | |
9776 | ||
9777 | argc = PyObject_Length(args); | |
9778 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9779 | argv[ii] = PyTuple_GetItem(args,ii); | |
9780 | } | |
9781 | if (argc == 1) { | |
9782 | int _v; | |
9783 | { | |
02a34c4c | 9784 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9785 | } |
9786 | if (_v) { | |
9787 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9788 | } | |
9789 | } | |
9790 | if (argc == 3) { | |
9791 | int _v; | |
9792 | { | |
02a34c4c | 9793 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9794 | } |
9795 | if (_v) { | |
9796 | { | |
02a34c4c | 9797 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
9798 | } |
9799 | if (_v) { | |
2f4c0a16 | 9800 | _v = SWIG_CheckUnsignedLong(argv[2]); |
d14a1e28 RD |
9801 | if (_v) { |
9802 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9803 | } | |
9804 | } | |
9805 | } | |
9806 | } | |
9807 | ||
9808 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9809 | return NULL; | |
9810 | } | |
9811 | ||
9812 | ||
2f4c0a16 | 9813 | static PyObject *_wrap_new_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9814 | PyObject *resultobj; |
9815 | wxEncodingConverter *result; | |
9816 | char *kwnames[] = { | |
9817 | NULL | |
9818 | }; | |
9819 | ||
9820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9821 | { | |
9822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9823 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9824 | ||
9825 | wxPyEndAllowThreads(__tstate); | |
9826 | if (PyErr_Occurred()) SWIG_fail; | |
9827 | } | |
2f4c0a16 | 9828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
9829 | return resultobj; |
9830 | fail: | |
9831 | return NULL; | |
9832 | } | |
9833 | ||
9834 | ||
2f4c0a16 | 9835 | static PyObject *_wrap_delete_EncodingConverter(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9836 | PyObject *resultobj; |
9837 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9838 | PyObject * obj0 = 0 ; | |
9839 | char *kwnames[] = { | |
9840 | (char *) "self", NULL | |
9841 | }; | |
9842 | ||
9843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
9845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9846 | { |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9848 | delete arg1; | |
9849 | ||
9850 | wxPyEndAllowThreads(__tstate); | |
9851 | if (PyErr_Occurred()) SWIG_fail; | |
9852 | } | |
9853 | Py_INCREF(Py_None); resultobj = Py_None; | |
9854 | return resultobj; | |
9855 | fail: | |
9856 | return NULL; | |
9857 | } | |
9858 | ||
9859 | ||
2f4c0a16 | 9860 | static PyObject *_wrap_EncodingConverter_Init(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9861 | PyObject *resultobj; |
9862 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9863 | int arg2 ; | |
9864 | int arg3 ; | |
9865 | int arg4 = (int) wxCONVERT_STRICT ; | |
9866 | bool result; | |
9867 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9868 | PyObject * obj1 = 0 ; |
9869 | PyObject * obj2 = 0 ; | |
9870 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9871 | char *kwnames[] = { |
9872 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9873 | }; | |
9874 | ||
8edf1c75 | 9875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
9877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9878 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
9879 | if (PyErr_Occurred()) SWIG_fail; | |
9880 | arg3 = (wxFontEncoding) SWIG_AsInt(obj2); | |
9881 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9882 | if (obj3) { |
2f4c0a16 RD |
9883 | arg4 = (int) SWIG_AsInt(obj3); |
9884 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9885 | } |
d14a1e28 RD |
9886 | { |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9888 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
9891 | if (PyErr_Occurred()) SWIG_fail; | |
9892 | } | |
02a34c4c | 9893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9894 | return resultobj; |
9895 | fail: | |
9896 | return NULL; | |
9897 | } | |
9898 | ||
9899 | ||
2f4c0a16 | 9900 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9901 | PyObject *resultobj; |
9902 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9903 | wxString *arg2 = 0 ; | |
9904 | wxString result; | |
423f194a | 9905 | bool temp2 = False ; |
d14a1e28 RD |
9906 | PyObject * obj0 = 0 ; |
9907 | PyObject * obj1 = 0 ; | |
9908 | char *kwnames[] = { | |
9909 | (char *) "self",(char *) "input", NULL | |
9910 | }; | |
9911 | ||
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
9914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9915 | { |
9916 | arg2 = wxString_in_helper(obj1); | |
9917 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9918 | temp2 = True; |
d14a1e28 RD |
9919 | } |
9920 | { | |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | result = (arg1)->Convert((wxString const &)*arg2); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
9927 | { | |
9928 | #if wxUSE_UNICODE | |
9929 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9930 | #else | |
9931 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9932 | #endif | |
9933 | } | |
9934 | { | |
9935 | if (temp2) | |
9936 | delete arg2; | |
9937 | } | |
9938 | return resultobj; | |
9939 | fail: | |
9940 | { | |
9941 | if (temp2) | |
9942 | delete arg2; | |
9943 | } | |
9944 | return NULL; | |
9945 | } | |
9946 | ||
9947 | ||
2f4c0a16 | 9948 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9949 | PyObject *resultobj; |
9950 | int arg1 ; | |
9951 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
9952 | wxFontEncodingArray result; | |
8edf1c75 RD |
9953 | PyObject * obj0 = 0 ; |
9954 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9955 | char *kwnames[] = { |
9956 | (char *) "enc",(char *) "platform", NULL | |
9957 | }; | |
9958 | ||
8edf1c75 | 9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9960 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
9961 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9962 | if (obj1) { |
2f4c0a16 RD |
9963 | arg2 = (int) SWIG_AsInt(obj1); |
9964 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9965 | } |
d14a1e28 RD |
9966 | { |
9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9968 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
9969 | ||
9970 | wxPyEndAllowThreads(__tstate); | |
9971 | if (PyErr_Occurred()) SWIG_fail; | |
9972 | } | |
9973 | { | |
9974 | resultobj = PyList_New(0); | |
9975 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
9976 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
9977 | PyList_Append(resultobj, number); | |
9978 | Py_DECREF(number); | |
9979 | } | |
9980 | } | |
9981 | return resultobj; | |
9982 | fail: | |
9983 | return NULL; | |
9984 | } | |
9985 | ||
9986 | ||
2f4c0a16 | 9987 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
9988 | PyObject *resultobj; |
9989 | int arg1 ; | |
9990 | wxFontEncodingArray result; | |
8edf1c75 | 9991 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9992 | char *kwnames[] = { |
9993 | (char *) "enc", NULL | |
9994 | }; | |
9995 | ||
8edf1c75 | 9996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
9997 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
9998 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9999 | { |
10000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10001 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10002 | ||
10003 | wxPyEndAllowThreads(__tstate); | |
10004 | if (PyErr_Occurred()) SWIG_fail; | |
10005 | } | |
10006 | { | |
10007 | resultobj = PyList_New(0); | |
10008 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10009 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10010 | PyList_Append(resultobj, number); | |
10011 | Py_DECREF(number); | |
10012 | } | |
10013 | } | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
2f4c0a16 | 10020 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10021 | PyObject *resultobj; |
10022 | int arg1 ; | |
10023 | int arg2 ; | |
10024 | bool result; | |
8edf1c75 RD |
10025 | PyObject * obj0 = 0 ; |
10026 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10027 | char *kwnames[] = { |
10028 | (char *) "encIn",(char *) "encOut", NULL | |
10029 | }; | |
10030 | ||
8edf1c75 | 10031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10032 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10033 | if (PyErr_Occurred()) SWIG_fail; | |
10034 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10035 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10036 | { |
10037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10038 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10039 | ||
10040 | wxPyEndAllowThreads(__tstate); | |
10041 | if (PyErr_Occurred()) SWIG_fail; | |
10042 | } | |
02a34c4c | 10043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10044 | return resultobj; |
10045 | fail: | |
10046 | return NULL; | |
10047 | } | |
10048 | ||
10049 | ||
2f4c0a16 | 10050 | static PyObject * EncodingConverter_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
10051 | PyObject *obj; |
10052 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10053 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10054 | Py_INCREF(obj); | |
10055 | return Py_BuildValue((char *)""); | |
10056 | } | |
2f4c0a16 | 10057 | static PyObject *_wrap_delete_DC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10058 | PyObject *resultobj; |
10059 | wxDC *arg1 = (wxDC *) 0 ; | |
10060 | PyObject * obj0 = 0 ; | |
10061 | char *kwnames[] = { | |
10062 | (char *) "self", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10068 | { |
10069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10070 | delete arg1; | |
10071 | ||
10072 | wxPyEndAllowThreads(__tstate); | |
10073 | if (PyErr_Occurred()) SWIG_fail; | |
10074 | } | |
10075 | Py_INCREF(Py_None); resultobj = Py_None; | |
10076 | return resultobj; | |
10077 | fail: | |
10078 | return NULL; | |
10079 | } | |
10080 | ||
10081 | ||
2f4c0a16 | 10082 | static PyObject *_wrap_DC_BeginDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10083 | PyObject *resultobj; |
10084 | wxDC *arg1 = (wxDC *) 0 ; | |
10085 | PyObject * obj0 = 0 ; | |
10086 | char *kwnames[] = { | |
10087 | (char *) "self", NULL | |
10088 | }; | |
10089 | ||
10090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10093 | { |
10094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10095 | (arg1)->BeginDrawing(); | |
10096 | ||
10097 | wxPyEndAllowThreads(__tstate); | |
10098 | if (PyErr_Occurred()) SWIG_fail; | |
10099 | } | |
10100 | Py_INCREF(Py_None); resultobj = Py_None; | |
10101 | return resultobj; | |
10102 | fail: | |
10103 | return NULL; | |
10104 | } | |
10105 | ||
10106 | ||
2f4c0a16 | 10107 | static PyObject *_wrap_DC_EndDrawing(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10108 | PyObject *resultobj; |
10109 | wxDC *arg1 = (wxDC *) 0 ; | |
10110 | PyObject * obj0 = 0 ; | |
10111 | char *kwnames[] = { | |
10112 | (char *) "self", NULL | |
10113 | }; | |
10114 | ||
10115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10118 | { |
10119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10120 | (arg1)->EndDrawing(); | |
10121 | ||
10122 | wxPyEndAllowThreads(__tstate); | |
10123 | if (PyErr_Occurred()) SWIG_fail; | |
10124 | } | |
10125 | Py_INCREF(Py_None); resultobj = Py_None; | |
10126 | return resultobj; | |
10127 | fail: | |
10128 | return NULL; | |
10129 | } | |
10130 | ||
10131 | ||
2f4c0a16 | 10132 | static PyObject *_wrap_DC_FloodFillXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10133 | PyObject *resultobj; |
10134 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10135 | int arg2 ; |
10136 | int arg3 ; | |
d14a1e28 RD |
10137 | wxColour *arg4 = 0 ; |
10138 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10139 | bool result; | |
10140 | wxColour temp4 ; | |
10141 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10142 | PyObject * obj1 = 0 ; |
10143 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10144 | PyObject * obj3 = 0 ; |
8edf1c75 | 10145 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10146 | char *kwnames[] = { |
10147 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10148 | }; | |
10149 | ||
8edf1c75 | 10150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10153 | arg2 = (int) SWIG_AsInt(obj1); | |
10154 | if (PyErr_Occurred()) SWIG_fail; | |
10155 | arg3 = (int) SWIG_AsInt(obj2); | |
10156 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10157 | { |
10158 | arg4 = &temp4; | |
10159 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10160 | } | |
8edf1c75 | 10161 | if (obj4) { |
2f4c0a16 RD |
10162 | arg5 = (int) SWIG_AsInt(obj4); |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10164 | } |
d14a1e28 RD |
10165 | { |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10168 | ||
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) SWIG_fail; | |
10171 | } | |
02a34c4c | 10172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10173 | return resultobj; |
10174 | fail: | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
2f4c0a16 | 10179 | static PyObject *_wrap_DC_FloodFill(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10180 | PyObject *resultobj; |
10181 | wxDC *arg1 = (wxDC *) 0 ; | |
10182 | wxPoint *arg2 = 0 ; | |
10183 | wxColour *arg3 = 0 ; | |
10184 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10185 | bool result; | |
10186 | wxPoint temp2 ; | |
10187 | wxColour temp3 ; | |
10188 | PyObject * obj0 = 0 ; | |
10189 | PyObject * obj1 = 0 ; | |
10190 | PyObject * obj2 = 0 ; | |
8edf1c75 | 10191 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10192 | char *kwnames[] = { |
10193 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10194 | }; | |
10195 | ||
8edf1c75 | 10196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
10197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10199 | { |
10200 | arg2 = &temp2; | |
10201 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10202 | } | |
10203 | { | |
10204 | arg3 = &temp3; | |
10205 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10206 | } | |
8edf1c75 | 10207 | if (obj3) { |
2f4c0a16 RD |
10208 | arg4 = (int) SWIG_AsInt(obj3); |
10209 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10210 | } |
d14a1e28 RD |
10211 | { |
10212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10213 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10214 | ||
10215 | wxPyEndAllowThreads(__tstate); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
10217 | } | |
02a34c4c | 10218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10219 | return resultobj; |
10220 | fail: | |
10221 | return NULL; | |
10222 | } | |
10223 | ||
10224 | ||
2f4c0a16 | 10225 | static PyObject *_wrap_DC_GetPixelXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10226 | PyObject *resultobj; |
10227 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10228 | int arg2 ; |
10229 | int arg3 ; | |
d14a1e28 RD |
10230 | wxColour result; |
10231 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10232 | PyObject * obj1 = 0 ; |
10233 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10234 | char *kwnames[] = { |
10235 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10236 | }; | |
10237 | ||
8edf1c75 | 10238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10241 | arg2 = (int) SWIG_AsInt(obj1); | |
10242 | if (PyErr_Occurred()) SWIG_fail; | |
10243 | arg3 = (int) SWIG_AsInt(obj2); | |
10244 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10245 | { |
10246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10247 | result = wxDC_GetPixelXY(arg1,arg2,arg3); | |
10248 | ||
10249 | wxPyEndAllowThreads(__tstate); | |
10250 | if (PyErr_Occurred()) SWIG_fail; | |
10251 | } | |
10252 | { | |
10253 | wxColour * resultptr; | |
10254 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 10255 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10256 | } |
10257 | return resultobj; | |
10258 | fail: | |
10259 | return NULL; | |
10260 | } | |
10261 | ||
10262 | ||
2f4c0a16 | 10263 | static PyObject *_wrap_DC_GetPixel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10264 | PyObject *resultobj; |
10265 | wxDC *arg1 = (wxDC *) 0 ; | |
10266 | wxPoint *arg2 = 0 ; | |
10267 | wxColour result; | |
10268 | wxPoint temp2 ; | |
10269 | PyObject * obj0 = 0 ; | |
10270 | PyObject * obj1 = 0 ; | |
10271 | char *kwnames[] = { | |
10272 | (char *) "self",(char *) "pt", NULL | |
10273 | }; | |
10274 | ||
10275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10278 | { |
10279 | arg2 = &temp2; | |
10280 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10281 | } | |
10282 | { | |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
10289 | { | |
10290 | wxColour * resultptr; | |
10291 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 10292 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10293 | } |
10294 | return resultobj; | |
10295 | fail: | |
10296 | return NULL; | |
10297 | } | |
10298 | ||
10299 | ||
2f4c0a16 | 10300 | static PyObject *_wrap_DC_DrawLineXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10301 | PyObject *resultobj; |
10302 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10303 | int arg2 ; |
10304 | int arg3 ; | |
10305 | int arg4 ; | |
10306 | int arg5 ; | |
d14a1e28 | 10307 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10308 | PyObject * obj1 = 0 ; |
10309 | PyObject * obj2 = 0 ; | |
10310 | PyObject * obj3 = 0 ; | |
10311 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10312 | char *kwnames[] = { |
10313 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10314 | }; | |
10315 | ||
8edf1c75 | 10316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10319 | arg2 = (int) SWIG_AsInt(obj1); | |
10320 | if (PyErr_Occurred()) SWIG_fail; | |
10321 | arg3 = (int) SWIG_AsInt(obj2); | |
10322 | if (PyErr_Occurred()) SWIG_fail; | |
10323 | arg4 = (int) SWIG_AsInt(obj3); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
10325 | arg5 = (int) SWIG_AsInt(obj4); | |
10326 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10327 | { |
10328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10329 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10330 | ||
10331 | wxPyEndAllowThreads(__tstate); | |
10332 | if (PyErr_Occurred()) SWIG_fail; | |
10333 | } | |
10334 | Py_INCREF(Py_None); resultobj = Py_None; | |
10335 | return resultobj; | |
10336 | fail: | |
10337 | return NULL; | |
10338 | } | |
10339 | ||
10340 | ||
2f4c0a16 | 10341 | static PyObject *_wrap_DC_DrawLine(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10342 | PyObject *resultobj; |
10343 | wxDC *arg1 = (wxDC *) 0 ; | |
10344 | wxPoint *arg2 = 0 ; | |
10345 | wxPoint *arg3 = 0 ; | |
10346 | wxPoint temp2 ; | |
10347 | wxPoint temp3 ; | |
10348 | PyObject * obj0 = 0 ; | |
10349 | PyObject * obj1 = 0 ; | |
10350 | PyObject * obj2 = 0 ; | |
10351 | char *kwnames[] = { | |
10352 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10353 | }; | |
10354 | ||
10355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10358 | { |
10359 | arg2 = &temp2; | |
10360 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10361 | } | |
10362 | { | |
10363 | arg3 = &temp3; | |
10364 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10365 | } | |
10366 | { | |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10368 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10369 | ||
10370 | wxPyEndAllowThreads(__tstate); | |
10371 | if (PyErr_Occurred()) SWIG_fail; | |
10372 | } | |
10373 | Py_INCREF(Py_None); resultobj = Py_None; | |
10374 | return resultobj; | |
10375 | fail: | |
10376 | return NULL; | |
10377 | } | |
10378 | ||
10379 | ||
2f4c0a16 | 10380 | static PyObject *_wrap_DC_CrossHairXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10381 | PyObject *resultobj; |
10382 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10383 | int arg2 ; |
10384 | int arg3 ; | |
d14a1e28 | 10385 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10386 | PyObject * obj1 = 0 ; |
10387 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10388 | char *kwnames[] = { |
10389 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10390 | }; | |
10391 | ||
8edf1c75 | 10392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10395 | arg2 = (int) SWIG_AsInt(obj1); | |
10396 | if (PyErr_Occurred()) SWIG_fail; | |
10397 | arg3 = (int) SWIG_AsInt(obj2); | |
10398 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10399 | { |
10400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10401 | (arg1)->CrossHair(arg2,arg3); | |
10402 | ||
10403 | wxPyEndAllowThreads(__tstate); | |
10404 | if (PyErr_Occurred()) SWIG_fail; | |
10405 | } | |
10406 | Py_INCREF(Py_None); resultobj = Py_None; | |
10407 | return resultobj; | |
10408 | fail: | |
10409 | return NULL; | |
10410 | } | |
10411 | ||
10412 | ||
2f4c0a16 | 10413 | static PyObject *_wrap_DC_CrossHair(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10414 | PyObject *resultobj; |
10415 | wxDC *arg1 = (wxDC *) 0 ; | |
10416 | wxPoint *arg2 = 0 ; | |
10417 | wxPoint temp2 ; | |
10418 | PyObject * obj0 = 0 ; | |
10419 | PyObject * obj1 = 0 ; | |
10420 | char *kwnames[] = { | |
10421 | (char *) "self",(char *) "pt", NULL | |
10422 | }; | |
10423 | ||
10424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10427 | { |
10428 | arg2 = &temp2; | |
10429 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10430 | } | |
10431 | { | |
10432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10433 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10434 | ||
10435 | wxPyEndAllowThreads(__tstate); | |
10436 | if (PyErr_Occurred()) SWIG_fail; | |
10437 | } | |
10438 | Py_INCREF(Py_None); resultobj = Py_None; | |
10439 | return resultobj; | |
10440 | fail: | |
10441 | return NULL; | |
10442 | } | |
10443 | ||
10444 | ||
2f4c0a16 | 10445 | static PyObject *_wrap_DC_DrawArcXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10446 | PyObject *resultobj; |
10447 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10448 | int arg2 ; |
10449 | int arg3 ; | |
10450 | int arg4 ; | |
10451 | int arg5 ; | |
10452 | int arg6 ; | |
10453 | int arg7 ; | |
d14a1e28 | 10454 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10455 | PyObject * obj1 = 0 ; |
10456 | PyObject * obj2 = 0 ; | |
10457 | PyObject * obj3 = 0 ; | |
10458 | PyObject * obj4 = 0 ; | |
10459 | PyObject * obj5 = 0 ; | |
10460 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10461 | char *kwnames[] = { |
10462 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10463 | }; | |
10464 | ||
8edf1c75 | 10465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
10466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10468 | arg2 = (int) SWIG_AsInt(obj1); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
10470 | arg3 = (int) SWIG_AsInt(obj2); | |
10471 | if (PyErr_Occurred()) SWIG_fail; | |
10472 | arg4 = (int) SWIG_AsInt(obj3); | |
10473 | if (PyErr_Occurred()) SWIG_fail; | |
10474 | arg5 = (int) SWIG_AsInt(obj4); | |
10475 | if (PyErr_Occurred()) SWIG_fail; | |
10476 | arg6 = (int) SWIG_AsInt(obj5); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | arg7 = (int) SWIG_AsInt(obj6); | |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10480 | { |
10481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10482 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10483 | ||
10484 | wxPyEndAllowThreads(__tstate); | |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
10486 | } | |
10487 | Py_INCREF(Py_None); resultobj = Py_None; | |
10488 | return resultobj; | |
10489 | fail: | |
10490 | return NULL; | |
10491 | } | |
10492 | ||
10493 | ||
2f4c0a16 | 10494 | static PyObject *_wrap_DC_DrawArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10495 | PyObject *resultobj; |
10496 | wxDC *arg1 = (wxDC *) 0 ; | |
10497 | wxPoint *arg2 = 0 ; | |
10498 | wxPoint *arg3 = 0 ; | |
10499 | wxPoint *arg4 = 0 ; | |
10500 | wxPoint temp2 ; | |
10501 | wxPoint temp3 ; | |
10502 | wxPoint temp4 ; | |
10503 | PyObject * obj0 = 0 ; | |
10504 | PyObject * obj1 = 0 ; | |
10505 | PyObject * obj2 = 0 ; | |
10506 | PyObject * obj3 = 0 ; | |
10507 | char *kwnames[] = { | |
10508 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
10512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10514 | { |
10515 | arg2 = &temp2; | |
10516 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10517 | } | |
10518 | { | |
10519 | arg3 = &temp3; | |
10520 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10521 | } | |
10522 | { | |
10523 | arg4 = &temp4; | |
10524 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10525 | } | |
10526 | { | |
10527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10528 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10529 | ||
10530 | wxPyEndAllowThreads(__tstate); | |
10531 | if (PyErr_Occurred()) SWIG_fail; | |
10532 | } | |
10533 | Py_INCREF(Py_None); resultobj = Py_None; | |
10534 | return resultobj; | |
10535 | fail: | |
10536 | return NULL; | |
10537 | } | |
10538 | ||
10539 | ||
2f4c0a16 | 10540 | static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10541 | PyObject *resultobj; |
10542 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10543 | int arg2 ; |
10544 | int arg3 ; | |
10545 | int arg4 ; | |
10546 | int arg5 ; | |
d14a1e28 | 10547 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10548 | PyObject * obj1 = 0 ; |
10549 | PyObject * obj2 = 0 ; | |
10550 | PyObject * obj3 = 0 ; | |
10551 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10552 | char *kwnames[] = { |
10553 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10554 | }; | |
10555 | ||
8edf1c75 | 10556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10559 | arg2 = (int) SWIG_AsInt(obj1); | |
10560 | if (PyErr_Occurred()) SWIG_fail; | |
10561 | arg3 = (int) SWIG_AsInt(obj2); | |
10562 | if (PyErr_Occurred()) SWIG_fail; | |
10563 | arg4 = (int) SWIG_AsInt(obj3); | |
10564 | if (PyErr_Occurred()) SWIG_fail; | |
10565 | arg5 = (int) SWIG_AsInt(obj4); | |
10566 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10567 | { |
10568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10569 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10570 | ||
10571 | wxPyEndAllowThreads(__tstate); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
10574 | Py_INCREF(Py_None); resultobj = Py_None; | |
10575 | return resultobj; | |
10576 | fail: | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
2f4c0a16 | 10581 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10582 | PyObject *resultobj; |
10583 | wxDC *arg1 = (wxDC *) 0 ; | |
10584 | wxRect *arg2 = 0 ; | |
10585 | wxRect temp2 ; | |
10586 | PyObject * obj0 = 0 ; | |
10587 | PyObject * obj1 = 0 ; | |
10588 | char *kwnames[] = { | |
10589 | (char *) "self",(char *) "rect", NULL | |
10590 | }; | |
10591 | ||
10592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10595 | { |
10596 | arg2 = &temp2; | |
10597 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10598 | } | |
10599 | { | |
10600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10601 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10602 | ||
10603 | wxPyEndAllowThreads(__tstate); | |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
10605 | } | |
10606 | Py_INCREF(Py_None); resultobj = Py_None; | |
10607 | return resultobj; | |
10608 | fail: | |
10609 | return NULL; | |
10610 | } | |
10611 | ||
10612 | ||
2f4c0a16 | 10613 | static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10614 | PyObject *resultobj; |
10615 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10616 | int arg2 ; |
10617 | int arg3 ; | |
10618 | int arg4 ; | |
10619 | int arg5 ; | |
d14a1e28 RD |
10620 | double arg6 ; |
10621 | double arg7 ; | |
10622 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10623 | PyObject * obj1 = 0 ; |
10624 | PyObject * obj2 = 0 ; | |
10625 | PyObject * obj3 = 0 ; | |
10626 | PyObject * obj4 = 0 ; | |
10627 | PyObject * obj5 = 0 ; | |
10628 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10629 | char *kwnames[] = { |
10630 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10631 | }; | |
10632 | ||
8edf1c75 | 10633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
10634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10636 | arg2 = (int) SWIG_AsInt(obj1); | |
10637 | if (PyErr_Occurred()) SWIG_fail; | |
10638 | arg3 = (int) SWIG_AsInt(obj2); | |
10639 | if (PyErr_Occurred()) SWIG_fail; | |
10640 | arg4 = (int) SWIG_AsInt(obj3); | |
10641 | if (PyErr_Occurred()) SWIG_fail; | |
10642 | arg5 = (int) SWIG_AsInt(obj4); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
10644 | arg6 = (double) SWIG_AsDouble(obj5); | |
10645 | if (PyErr_Occurred()) SWIG_fail; | |
10646 | arg7 = (double) SWIG_AsDouble(obj6); | |
10647 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10648 | { |
10649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10650 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10651 | ||
10652 | wxPyEndAllowThreads(__tstate); | |
10653 | if (PyErr_Occurred()) SWIG_fail; | |
10654 | } | |
10655 | Py_INCREF(Py_None); resultobj = Py_None; | |
10656 | return resultobj; | |
10657 | fail: | |
10658 | return NULL; | |
10659 | } | |
10660 | ||
d14a1e28 | 10661 | |
2f4c0a16 | 10662 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10663 | PyObject *resultobj; |
10664 | wxDC *arg1 = (wxDC *) 0 ; | |
10665 | wxPoint *arg2 = 0 ; | |
10666 | wxSize *arg3 = 0 ; | |
10667 | double arg4 ; | |
10668 | double arg5 ; | |
10669 | wxPoint temp2 ; | |
10670 | wxSize temp3 ; | |
10671 | PyObject * obj0 = 0 ; | |
10672 | PyObject * obj1 = 0 ; | |
10673 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
10674 | PyObject * obj3 = 0 ; |
10675 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10676 | char *kwnames[] = { |
10677 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10678 | }; | |
10679 | ||
8edf1c75 | 10680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10683 | { |
10684 | arg2 = &temp2; | |
10685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10686 | } | |
10687 | { | |
10688 | arg3 = &temp3; | |
10689 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10690 | } | |
2f4c0a16 RD |
10691 | arg4 = (double) SWIG_AsDouble(obj3); |
10692 | if (PyErr_Occurred()) SWIG_fail; | |
10693 | arg5 = (double) SWIG_AsDouble(obj4); | |
10694 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10695 | { |
10696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10697 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10698 | ||
10699 | wxPyEndAllowThreads(__tstate); | |
10700 | if (PyErr_Occurred()) SWIG_fail; | |
10701 | } | |
10702 | Py_INCREF(Py_None); resultobj = Py_None; | |
10703 | return resultobj; | |
10704 | fail: | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
2f4c0a16 | 10709 | static PyObject *_wrap_DC_DrawPointXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10710 | PyObject *resultobj; |
10711 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10712 | int arg2 ; |
10713 | int arg3 ; | |
d14a1e28 | 10714 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10715 | PyObject * obj1 = 0 ; |
10716 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10717 | char *kwnames[] = { |
10718 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10719 | }; | |
10720 | ||
8edf1c75 | 10721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10724 | arg2 = (int) SWIG_AsInt(obj1); | |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
10726 | arg3 = (int) SWIG_AsInt(obj2); | |
10727 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10728 | { |
10729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10730 | (arg1)->DrawPoint(arg2,arg3); | |
10731 | ||
10732 | wxPyEndAllowThreads(__tstate); | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
10734 | } | |
10735 | Py_INCREF(Py_None); resultobj = Py_None; | |
10736 | return resultobj; | |
10737 | fail: | |
10738 | return NULL; | |
10739 | } | |
10740 | ||
10741 | ||
2f4c0a16 | 10742 | static PyObject *_wrap_DC_DrawPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10743 | PyObject *resultobj; |
10744 | wxDC *arg1 = (wxDC *) 0 ; | |
10745 | wxPoint *arg2 = 0 ; | |
10746 | wxPoint temp2 ; | |
10747 | PyObject * obj0 = 0 ; | |
10748 | PyObject * obj1 = 0 ; | |
10749 | char *kwnames[] = { | |
10750 | (char *) "self",(char *) "pt", NULL | |
10751 | }; | |
10752 | ||
10753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10756 | { |
10757 | arg2 = &temp2; | |
10758 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10759 | } | |
10760 | { | |
10761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10762 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10763 | ||
10764 | wxPyEndAllowThreads(__tstate); | |
10765 | if (PyErr_Occurred()) SWIG_fail; | |
10766 | } | |
10767 | Py_INCREF(Py_None); resultobj = Py_None; | |
10768 | return resultobj; | |
10769 | fail: | |
10770 | return NULL; | |
10771 | } | |
10772 | ||
10773 | ||
2f4c0a16 | 10774 | static PyObject *_wrap_DC_DrawRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10775 | PyObject *resultobj; |
10776 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10777 | int arg2 ; |
10778 | int arg3 ; | |
10779 | int arg4 ; | |
10780 | int arg5 ; | |
d14a1e28 | 10781 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10782 | PyObject * obj1 = 0 ; |
10783 | PyObject * obj2 = 0 ; | |
10784 | PyObject * obj3 = 0 ; | |
10785 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10786 | char *kwnames[] = { |
10787 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10788 | }; | |
10789 | ||
8edf1c75 | 10790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
10791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10793 | arg2 = (int) SWIG_AsInt(obj1); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
10795 | arg3 = (int) SWIG_AsInt(obj2); | |
10796 | if (PyErr_Occurred()) SWIG_fail; | |
10797 | arg4 = (int) SWIG_AsInt(obj3); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | arg5 = (int) SWIG_AsInt(obj4); | |
10800 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10801 | { |
10802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10803 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10804 | ||
10805 | wxPyEndAllowThreads(__tstate); | |
10806 | if (PyErr_Occurred()) SWIG_fail; | |
10807 | } | |
10808 | Py_INCREF(Py_None); resultobj = Py_None; | |
10809 | return resultobj; | |
10810 | fail: | |
10811 | return NULL; | |
10812 | } | |
10813 | ||
10814 | ||
2f4c0a16 | 10815 | static PyObject *_wrap_DC_DrawRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10816 | PyObject *resultobj; |
10817 | wxDC *arg1 = (wxDC *) 0 ; | |
10818 | wxPoint *arg2 = 0 ; | |
10819 | wxSize *arg3 = 0 ; | |
10820 | wxPoint temp2 ; | |
10821 | wxSize temp3 ; | |
10822 | PyObject * obj0 = 0 ; | |
10823 | PyObject * obj1 = 0 ; | |
10824 | PyObject * obj2 = 0 ; | |
10825 | char *kwnames[] = { | |
10826 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
10827 | }; | |
10828 | ||
10829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
10830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10832 | { |
10833 | arg2 = &temp2; | |
10834 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10835 | } | |
10836 | { | |
10837 | arg3 = &temp3; | |
10838 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10839 | } | |
10840 | { | |
10841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10842 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
10843 | ||
10844 | wxPyEndAllowThreads(__tstate); | |
10845 | if (PyErr_Occurred()) SWIG_fail; | |
10846 | } | |
10847 | Py_INCREF(Py_None); resultobj = Py_None; | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
2f4c0a16 | 10854 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10855 | PyObject *resultobj; |
10856 | wxDC *arg1 = (wxDC *) 0 ; | |
10857 | wxRect *arg2 = 0 ; | |
10858 | wxRect temp2 ; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | PyObject * obj1 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "self",(char *) "rect", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10868 | { |
10869 | arg2 = &temp2; | |
10870 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10871 | } | |
10872 | { | |
10873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10874 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
10875 | ||
10876 | wxPyEndAllowThreads(__tstate); | |
10877 | if (PyErr_Occurred()) SWIG_fail; | |
10878 | } | |
10879 | Py_INCREF(Py_None); resultobj = Py_None; | |
10880 | return resultobj; | |
10881 | fail: | |
10882 | return NULL; | |
10883 | } | |
10884 | ||
10885 | ||
2f4c0a16 | 10886 | static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10887 | PyObject *resultobj; |
10888 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
10889 | int arg2 ; |
10890 | int arg3 ; | |
10891 | int arg4 ; | |
10892 | int arg5 ; | |
d14a1e28 RD |
10893 | double arg6 ; |
10894 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10895 | PyObject * obj1 = 0 ; |
10896 | PyObject * obj2 = 0 ; | |
10897 | PyObject * obj3 = 0 ; | |
10898 | PyObject * obj4 = 0 ; | |
10899 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
10900 | char *kwnames[] = { |
10901 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
10902 | }; | |
10903 | ||
8edf1c75 | 10904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
10905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10907 | arg2 = (int) SWIG_AsInt(obj1); | |
10908 | if (PyErr_Occurred()) SWIG_fail; | |
10909 | arg3 = (int) SWIG_AsInt(obj2); | |
10910 | if (PyErr_Occurred()) SWIG_fail; | |
10911 | arg4 = (int) SWIG_AsInt(obj3); | |
10912 | if (PyErr_Occurred()) SWIG_fail; | |
10913 | arg5 = (int) SWIG_AsInt(obj4); | |
10914 | if (PyErr_Occurred()) SWIG_fail; | |
10915 | arg6 = (double) SWIG_AsDouble(obj5); | |
10916 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10917 | { |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | Py_INCREF(Py_None); resultobj = Py_None; | |
10925 | return resultobj; | |
10926 | fail: | |
10927 | return NULL; | |
10928 | } | |
10929 | ||
10930 | ||
2f4c0a16 | 10931 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10932 | PyObject *resultobj; |
10933 | wxDC *arg1 = (wxDC *) 0 ; | |
10934 | wxPoint *arg2 = 0 ; | |
10935 | wxSize *arg3 = 0 ; | |
10936 | double arg4 ; | |
10937 | wxPoint temp2 ; | |
10938 | wxSize temp3 ; | |
10939 | PyObject * obj0 = 0 ; | |
10940 | PyObject * obj1 = 0 ; | |
10941 | PyObject * obj2 = 0 ; | |
8edf1c75 | 10942 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10943 | char *kwnames[] = { |
10944 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
10945 | }; | |
10946 | ||
8edf1c75 | 10947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
10948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10950 | { |
10951 | arg2 = &temp2; | |
10952 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10953 | } | |
10954 | { | |
10955 | arg3 = &temp3; | |
10956 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10957 | } | |
2f4c0a16 RD |
10958 | arg4 = (double) SWIG_AsDouble(obj3); |
10959 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10960 | { |
10961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10962 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
10963 | ||
10964 | wxPyEndAllowThreads(__tstate); | |
10965 | if (PyErr_Occurred()) SWIG_fail; | |
10966 | } | |
10967 | Py_INCREF(Py_None); resultobj = Py_None; | |
10968 | return resultobj; | |
10969 | fail: | |
10970 | return NULL; | |
10971 | } | |
10972 | ||
10973 | ||
2f4c0a16 | 10974 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10975 | PyObject *resultobj; |
10976 | wxDC *arg1 = (wxDC *) 0 ; | |
10977 | wxRect *arg2 = 0 ; | |
10978 | double arg3 ; | |
10979 | wxRect temp2 ; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10982 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10983 | char *kwnames[] = { |
10984 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
10985 | }; | |
10986 | ||
8edf1c75 | 10987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10990 | { |
10991 | arg2 = &temp2; | |
10992 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10993 | } | |
2f4c0a16 RD |
10994 | arg3 = (double) SWIG_AsDouble(obj2); |
10995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10996 | { |
10997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10998 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
10999 | ||
11000 | wxPyEndAllowThreads(__tstate); | |
11001 | if (PyErr_Occurred()) SWIG_fail; | |
11002 | } | |
11003 | Py_INCREF(Py_None); resultobj = Py_None; | |
11004 | return resultobj; | |
11005 | fail: | |
11006 | return NULL; | |
11007 | } | |
11008 | ||
11009 | ||
2f4c0a16 | 11010 | static PyObject *_wrap_DC_DrawCircleXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11011 | PyObject *resultobj; |
11012 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11013 | int arg2 ; |
11014 | int arg3 ; | |
11015 | int arg4 ; | |
d14a1e28 | 11016 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11017 | PyObject * obj1 = 0 ; |
11018 | PyObject * obj2 = 0 ; | |
11019 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11020 | char *kwnames[] = { |
11021 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11022 | }; | |
11023 | ||
8edf1c75 | 11024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11027 | arg2 = (int) SWIG_AsInt(obj1); | |
11028 | if (PyErr_Occurred()) SWIG_fail; | |
11029 | arg3 = (int) SWIG_AsInt(obj2); | |
11030 | if (PyErr_Occurred()) SWIG_fail; | |
11031 | arg4 = (int) SWIG_AsInt(obj3); | |
11032 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11033 | { |
11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11035 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | Py_INCREF(Py_None); resultobj = Py_None; | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
2f4c0a16 | 11047 | static PyObject *_wrap_DC_DrawCircle(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11048 | PyObject *resultobj; |
11049 | wxDC *arg1 = (wxDC *) 0 ; | |
11050 | wxPoint *arg2 = 0 ; | |
423f194a | 11051 | int arg3 ; |
d14a1e28 RD |
11052 | wxPoint temp2 ; |
11053 | PyObject * obj0 = 0 ; | |
11054 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11055 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11056 | char *kwnames[] = { |
11057 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11058 | }; | |
11059 | ||
8edf1c75 | 11060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11063 | { |
11064 | arg2 = &temp2; | |
11065 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11066 | } | |
2f4c0a16 RD |
11067 | arg3 = (int) SWIG_AsInt(obj2); |
11068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11069 | { |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
11074 | if (PyErr_Occurred()) SWIG_fail; | |
11075 | } | |
11076 | Py_INCREF(Py_None); resultobj = Py_None; | |
11077 | return resultobj; | |
11078 | fail: | |
11079 | return NULL; | |
11080 | } | |
11081 | ||
11082 | ||
2f4c0a16 | 11083 | static PyObject *_wrap_DC_DrawEllipseXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11084 | PyObject *resultobj; |
11085 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11086 | int arg2 ; |
11087 | int arg3 ; | |
11088 | int arg4 ; | |
11089 | int arg5 ; | |
d14a1e28 | 11090 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
11091 | PyObject * obj1 = 0 ; |
11092 | PyObject * obj2 = 0 ; | |
11093 | PyObject * obj3 = 0 ; | |
11094 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11095 | char *kwnames[] = { |
11096 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11097 | }; | |
11098 | ||
8edf1c75 | 11099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11102 | arg2 = (int) SWIG_AsInt(obj1); | |
11103 | if (PyErr_Occurred()) SWIG_fail; | |
11104 | arg3 = (int) SWIG_AsInt(obj2); | |
11105 | if (PyErr_Occurred()) SWIG_fail; | |
11106 | arg4 = (int) SWIG_AsInt(obj3); | |
11107 | if (PyErr_Occurred()) SWIG_fail; | |
11108 | arg5 = (int) SWIG_AsInt(obj4); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11110 | { |
11111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11112 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11113 | ||
11114 | wxPyEndAllowThreads(__tstate); | |
11115 | if (PyErr_Occurred()) SWIG_fail; | |
11116 | } | |
11117 | Py_INCREF(Py_None); resultobj = Py_None; | |
11118 | return resultobj; | |
11119 | fail: | |
11120 | return NULL; | |
11121 | } | |
11122 | ||
11123 | ||
2f4c0a16 | 11124 | static PyObject *_wrap_DC_DrawEllipse(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11125 | PyObject *resultobj; |
11126 | wxDC *arg1 = (wxDC *) 0 ; | |
11127 | wxPoint *arg2 = 0 ; | |
11128 | wxSize *arg3 = 0 ; | |
11129 | wxPoint temp2 ; | |
11130 | wxSize temp3 ; | |
11131 | PyObject * obj0 = 0 ; | |
11132 | PyObject * obj1 = 0 ; | |
11133 | PyObject * obj2 = 0 ; | |
11134 | char *kwnames[] = { | |
11135 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11136 | }; | |
11137 | ||
11138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11141 | { |
11142 | arg2 = &temp2; | |
11143 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11144 | } | |
11145 | { | |
11146 | arg3 = &temp3; | |
11147 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11148 | } | |
11149 | { | |
11150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11151 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11152 | ||
11153 | wxPyEndAllowThreads(__tstate); | |
11154 | if (PyErr_Occurred()) SWIG_fail; | |
11155 | } | |
11156 | Py_INCREF(Py_None); resultobj = Py_None; | |
11157 | return resultobj; | |
11158 | fail: | |
11159 | return NULL; | |
11160 | } | |
11161 | ||
11162 | ||
2f4c0a16 | 11163 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11164 | PyObject *resultobj; |
11165 | wxDC *arg1 = (wxDC *) 0 ; | |
11166 | wxRect *arg2 = 0 ; | |
11167 | wxRect temp2 ; | |
11168 | PyObject * obj0 = 0 ; | |
11169 | PyObject * obj1 = 0 ; | |
11170 | char *kwnames[] = { | |
11171 | (char *) "self",(char *) "rect", NULL | |
11172 | }; | |
11173 | ||
11174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11177 | { |
11178 | arg2 = &temp2; | |
11179 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11180 | } | |
11181 | { | |
11182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11183 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
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 | ||
2f4c0a16 | 11195 | static PyObject *_wrap_DC_DrawIconXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11196 | PyObject *resultobj; |
11197 | wxDC *arg1 = (wxDC *) 0 ; | |
11198 | wxIcon *arg2 = 0 ; | |
423f194a RD |
11199 | int arg3 ; |
11200 | int arg4 ; | |
d14a1e28 RD |
11201 | PyObject * obj0 = 0 ; |
11202 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11203 | PyObject * obj2 = 0 ; |
11204 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11205 | char *kwnames[] = { |
11206 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11207 | }; | |
11208 | ||
8edf1c75 | 11209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11213 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11214 | SWIG_fail; | |
d14a1e28 | 11215 | if (arg2 == NULL) { |
2f4c0a16 RD |
11216 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11217 | SWIG_fail; | |
8edf1c75 | 11218 | } |
2f4c0a16 RD |
11219 | arg3 = (int) SWIG_AsInt(obj2); |
11220 | if (PyErr_Occurred()) SWIG_fail; | |
11221 | arg4 = (int) SWIG_AsInt(obj3); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11223 | { |
11224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11225 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11226 | ||
11227 | wxPyEndAllowThreads(__tstate); | |
11228 | if (PyErr_Occurred()) SWIG_fail; | |
11229 | } | |
11230 | Py_INCREF(Py_None); resultobj = Py_None; | |
11231 | return resultobj; | |
11232 | fail: | |
11233 | return NULL; | |
11234 | } | |
11235 | ||
11236 | ||
2f4c0a16 | 11237 | static PyObject *_wrap_DC_DrawIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11238 | PyObject *resultobj; |
11239 | wxDC *arg1 = (wxDC *) 0 ; | |
11240 | wxIcon *arg2 = 0 ; | |
11241 | wxPoint *arg3 = 0 ; | |
11242 | wxPoint temp3 ; | |
11243 | PyObject * obj0 = 0 ; | |
11244 | PyObject * obj1 = 0 ; | |
11245 | PyObject * obj2 = 0 ; | |
11246 | char *kwnames[] = { | |
11247 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11248 | }; | |
11249 | ||
11250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11253 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11254 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11255 | SWIG_fail; | |
d14a1e28 | 11256 | if (arg2 == NULL) { |
2f4c0a16 RD |
11257 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11258 | SWIG_fail; | |
d14a1e28 RD |
11259 | } |
11260 | { | |
11261 | arg3 = &temp3; | |
11262 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11263 | } | |
11264 | { | |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
11271 | Py_INCREF(Py_None); resultobj = Py_None; | |
11272 | return resultobj; | |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
2f4c0a16 | 11278 | static PyObject *_wrap_DC_DrawBitmapXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11279 | PyObject *resultobj; |
11280 | wxDC *arg1 = (wxDC *) 0 ; | |
11281 | wxBitmap *arg2 = 0 ; | |
423f194a RD |
11282 | int arg3 ; |
11283 | int arg4 ; | |
11284 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11285 | PyObject * obj0 = 0 ; |
11286 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11287 | PyObject * obj2 = 0 ; |
11288 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11289 | PyObject * obj4 = 0 ; |
11290 | char *kwnames[] = { | |
11291 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11292 | }; | |
11293 | ||
8edf1c75 | 11294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11298 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11299 | SWIG_fail; | |
d14a1e28 | 11300 | if (arg2 == NULL) { |
2f4c0a16 RD |
11301 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11302 | SWIG_fail; | |
8edf1c75 | 11303 | } |
2f4c0a16 RD |
11304 | arg3 = (int) SWIG_AsInt(obj2); |
11305 | if (PyErr_Occurred()) SWIG_fail; | |
11306 | arg4 = (int) SWIG_AsInt(obj3); | |
11307 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11308 | if (obj4) { |
2f4c0a16 RD |
11309 | arg5 = (bool) SWIG_AsBool(obj4); |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11311 | } |
11312 | { | |
11313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11314 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11315 | ||
11316 | wxPyEndAllowThreads(__tstate); | |
11317 | if (PyErr_Occurred()) SWIG_fail; | |
11318 | } | |
11319 | Py_INCREF(Py_None); resultobj = Py_None; | |
11320 | return resultobj; | |
11321 | fail: | |
11322 | return NULL; | |
11323 | } | |
11324 | ||
11325 | ||
2f4c0a16 | 11326 | static PyObject *_wrap_DC_DrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11327 | PyObject *resultobj; |
11328 | wxDC *arg1 = (wxDC *) 0 ; | |
11329 | wxBitmap *arg2 = 0 ; | |
11330 | wxPoint *arg3 = 0 ; | |
423f194a | 11331 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11332 | wxPoint temp3 ; |
11333 | PyObject * obj0 = 0 ; | |
11334 | PyObject * obj1 = 0 ; | |
11335 | PyObject * obj2 = 0 ; | |
11336 | PyObject * obj3 = 0 ; | |
11337 | char *kwnames[] = { | |
11338 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11339 | }; | |
11340 | ||
11341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
11342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11345 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11346 | SWIG_fail; | |
d14a1e28 | 11347 | if (arg2 == NULL) { |
2f4c0a16 RD |
11348 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11349 | SWIG_fail; | |
d14a1e28 RD |
11350 | } |
11351 | { | |
11352 | arg3 = &temp3; | |
11353 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11354 | } | |
11355 | if (obj3) { | |
2f4c0a16 RD |
11356 | arg4 = (bool) SWIG_AsBool(obj3); |
11357 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11358 | } |
11359 | { | |
11360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11361 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11362 | ||
11363 | wxPyEndAllowThreads(__tstate); | |
11364 | if (PyErr_Occurred()) SWIG_fail; | |
11365 | } | |
11366 | Py_INCREF(Py_None); resultobj = Py_None; | |
11367 | return resultobj; | |
11368 | fail: | |
11369 | return NULL; | |
11370 | } | |
11371 | ||
11372 | ||
2f4c0a16 | 11373 | static PyObject *_wrap_DC_DrawTextXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11374 | PyObject *resultobj; |
11375 | wxDC *arg1 = (wxDC *) 0 ; | |
11376 | wxString *arg2 = 0 ; | |
423f194a RD |
11377 | int arg3 ; |
11378 | int arg4 ; | |
11379 | bool temp2 = False ; | |
d14a1e28 RD |
11380 | PyObject * obj0 = 0 ; |
11381 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11382 | PyObject * obj2 = 0 ; |
11383 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11384 | char *kwnames[] = { |
11385 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11386 | }; | |
11387 | ||
8edf1c75 | 11388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11391 | { |
11392 | arg2 = wxString_in_helper(obj1); | |
11393 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11394 | temp2 = True; |
d14a1e28 | 11395 | } |
2f4c0a16 RD |
11396 | arg3 = (int) SWIG_AsInt(obj2); |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | arg4 = (int) SWIG_AsInt(obj3); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11400 | { |
11401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11402 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11403 | ||
11404 | wxPyEndAllowThreads(__tstate); | |
11405 | if (PyErr_Occurred()) SWIG_fail; | |
11406 | } | |
11407 | Py_INCREF(Py_None); resultobj = Py_None; | |
11408 | { | |
11409 | if (temp2) | |
11410 | delete arg2; | |
11411 | } | |
11412 | return resultobj; | |
11413 | fail: | |
11414 | { | |
11415 | if (temp2) | |
11416 | delete arg2; | |
11417 | } | |
11418 | return NULL; | |
11419 | } | |
11420 | ||
11421 | ||
2f4c0a16 | 11422 | static PyObject *_wrap_DC_DrawText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11423 | PyObject *resultobj; |
11424 | wxDC *arg1 = (wxDC *) 0 ; | |
11425 | wxString *arg2 = 0 ; | |
11426 | wxPoint *arg3 = 0 ; | |
423f194a | 11427 | bool temp2 = False ; |
d14a1e28 RD |
11428 | wxPoint temp3 ; |
11429 | PyObject * obj0 = 0 ; | |
11430 | PyObject * obj1 = 0 ; | |
11431 | PyObject * obj2 = 0 ; | |
11432 | char *kwnames[] = { | |
11433 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11434 | }; | |
11435 | ||
11436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
11437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11439 | { |
11440 | arg2 = wxString_in_helper(obj1); | |
11441 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11442 | temp2 = True; |
d14a1e28 RD |
11443 | } |
11444 | { | |
11445 | arg3 = &temp3; | |
11446 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11447 | } | |
11448 | { | |
11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11450 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11451 | ||
11452 | wxPyEndAllowThreads(__tstate); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | } | |
11455 | Py_INCREF(Py_None); resultobj = Py_None; | |
11456 | { | |
11457 | if (temp2) | |
11458 | delete arg2; | |
11459 | } | |
11460 | return resultobj; | |
11461 | fail: | |
11462 | { | |
11463 | if (temp2) | |
11464 | delete arg2; | |
11465 | } | |
11466 | return NULL; | |
11467 | } | |
11468 | ||
11469 | ||
2f4c0a16 | 11470 | static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11471 | PyObject *resultobj; |
11472 | wxDC *arg1 = (wxDC *) 0 ; | |
11473 | wxString *arg2 = 0 ; | |
423f194a RD |
11474 | int arg3 ; |
11475 | int arg4 ; | |
d14a1e28 | 11476 | double arg5 ; |
423f194a | 11477 | bool temp2 = False ; |
d14a1e28 RD |
11478 | PyObject * obj0 = 0 ; |
11479 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11480 | PyObject * obj2 = 0 ; |
11481 | PyObject * obj3 = 0 ; | |
11482 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11483 | char *kwnames[] = { |
11484 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11485 | }; | |
11486 | ||
8edf1c75 | 11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11490 | { |
11491 | arg2 = wxString_in_helper(obj1); | |
11492 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11493 | temp2 = True; |
d14a1e28 | 11494 | } |
2f4c0a16 RD |
11495 | arg3 = (int) SWIG_AsInt(obj2); |
11496 | if (PyErr_Occurred()) SWIG_fail; | |
11497 | arg4 = (int) SWIG_AsInt(obj3); | |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | arg5 = (double) SWIG_AsDouble(obj4); | |
11500 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11501 | { |
11502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11503 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | Py_INCREF(Py_None); resultobj = Py_None; | |
11509 | { | |
11510 | if (temp2) | |
11511 | delete arg2; | |
11512 | } | |
11513 | return resultobj; | |
11514 | fail: | |
11515 | { | |
11516 | if (temp2) | |
11517 | delete arg2; | |
11518 | } | |
11519 | return NULL; | |
11520 | } | |
11521 | ||
11522 | ||
2f4c0a16 | 11523 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11524 | PyObject *resultobj; |
11525 | wxDC *arg1 = (wxDC *) 0 ; | |
11526 | wxString *arg2 = 0 ; | |
11527 | wxPoint *arg3 = 0 ; | |
11528 | double arg4 ; | |
423f194a | 11529 | bool temp2 = False ; |
d14a1e28 RD |
11530 | wxPoint temp3 ; |
11531 | PyObject * obj0 = 0 ; | |
11532 | PyObject * obj1 = 0 ; | |
11533 | PyObject * obj2 = 0 ; | |
8edf1c75 | 11534 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11535 | char *kwnames[] = { |
11536 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11537 | }; | |
11538 | ||
8edf1c75 | 11539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11542 | { |
11543 | arg2 = wxString_in_helper(obj1); | |
11544 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11545 | temp2 = True; |
d14a1e28 RD |
11546 | } |
11547 | { | |
11548 | arg3 = &temp3; | |
11549 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11550 | } | |
2f4c0a16 RD |
11551 | arg4 = (double) SWIG_AsDouble(obj3); |
11552 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11553 | { |
11554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11555 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11556 | ||
11557 | wxPyEndAllowThreads(__tstate); | |
11558 | if (PyErr_Occurred()) SWIG_fail; | |
11559 | } | |
11560 | Py_INCREF(Py_None); resultobj = Py_None; | |
11561 | { | |
11562 | if (temp2) | |
11563 | delete arg2; | |
11564 | } | |
11565 | return resultobj; | |
11566 | fail: | |
11567 | { | |
11568 | if (temp2) | |
11569 | delete arg2; | |
11570 | } | |
11571 | return NULL; | |
11572 | } | |
11573 | ||
11574 | ||
2f4c0a16 | 11575 | static PyObject *_wrap_DC_BlitXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11576 | PyObject *resultobj; |
11577 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
11578 | int arg2 ; |
11579 | int arg3 ; | |
11580 | int arg4 ; | |
11581 | int arg5 ; | |
d14a1e28 | 11582 | wxDC *arg6 = (wxDC *) 0 ; |
423f194a RD |
11583 | int arg7 ; |
11584 | int arg8 ; | |
d14a1e28 | 11585 | int arg9 = (int) wxCOPY ; |
423f194a RD |
11586 | bool arg10 = (bool) False ; |
11587 | int arg11 = (int) -1 ; | |
11588 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11589 | bool result; |
11590 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11591 | PyObject * obj1 = 0 ; |
11592 | PyObject * obj2 = 0 ; | |
11593 | PyObject * obj3 = 0 ; | |
11594 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11595 | PyObject * obj5 = 0 ; |
8edf1c75 RD |
11596 | PyObject * obj6 = 0 ; |
11597 | PyObject * obj7 = 0 ; | |
11598 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11599 | PyObject * obj9 = 0 ; |
8edf1c75 RD |
11600 | PyObject * obj10 = 0 ; |
11601 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11602 | char *kwnames[] = { |
11603 | (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 | |
11604 | }; | |
11605 | ||
8edf1c75 | 11606 | 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 |
11607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11609 | arg2 = (int) SWIG_AsInt(obj1); | |
11610 | if (PyErr_Occurred()) SWIG_fail; | |
11611 | arg3 = (int) SWIG_AsInt(obj2); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | arg4 = (int) SWIG_AsInt(obj3); | |
11614 | if (PyErr_Occurred()) SWIG_fail; | |
11615 | arg5 = (int) SWIG_AsInt(obj4); | |
11616 | if (PyErr_Occurred()) SWIG_fail; | |
11617 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
11618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11619 | arg7 = (int) SWIG_AsInt(obj6); | |
11620 | if (PyErr_Occurred()) SWIG_fail; | |
11621 | arg8 = (int) SWIG_AsInt(obj7); | |
11622 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11623 | if (obj8) { |
2f4c0a16 RD |
11624 | arg9 = (int) SWIG_AsInt(obj8); |
11625 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11626 | } |
d14a1e28 | 11627 | if (obj9) { |
2f4c0a16 RD |
11628 | arg10 = (bool) SWIG_AsBool(obj9); |
11629 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11630 | } |
11631 | if (obj10) { | |
2f4c0a16 RD |
11632 | arg11 = (int) SWIG_AsInt(obj10); |
11633 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11634 | } |
11635 | if (obj11) { | |
2f4c0a16 RD |
11636 | arg12 = (int) SWIG_AsInt(obj11); |
11637 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11638 | } |
11639 | { | |
11640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11641 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11642 | ||
11643 | wxPyEndAllowThreads(__tstate); | |
11644 | if (PyErr_Occurred()) SWIG_fail; | |
11645 | } | |
02a34c4c | 11646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11647 | return resultobj; |
11648 | fail: | |
11649 | return NULL; | |
11650 | } | |
11651 | ||
11652 | ||
2f4c0a16 | 11653 | static PyObject *_wrap_DC_Blit(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11654 | PyObject *resultobj; |
11655 | wxDC *arg1 = (wxDC *) 0 ; | |
11656 | wxPoint *arg2 = 0 ; | |
11657 | wxSize *arg3 = 0 ; | |
11658 | wxDC *arg4 = (wxDC *) 0 ; | |
11659 | wxPoint *arg5 = 0 ; | |
11660 | int arg6 = (int) wxCOPY ; | |
423f194a | 11661 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11662 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11663 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11664 | bool result; | |
11665 | wxPoint temp2 ; | |
11666 | wxSize temp3 ; | |
11667 | wxPoint temp5 ; | |
11668 | wxPoint temp8 ; | |
11669 | PyObject * obj0 = 0 ; | |
11670 | PyObject * obj1 = 0 ; | |
11671 | PyObject * obj2 = 0 ; | |
11672 | PyObject * obj3 = 0 ; | |
11673 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11674 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11675 | PyObject * obj6 = 0 ; |
11676 | PyObject * obj7 = 0 ; | |
11677 | char *kwnames[] = { | |
11678 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11679 | }; | |
11680 | ||
8edf1c75 | 11681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
11682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11684 | { |
11685 | arg2 = &temp2; | |
11686 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11687 | } | |
11688 | { | |
11689 | arg3 = &temp3; | |
11690 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11691 | } | |
2f4c0a16 RD |
11692 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
11693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11694 | { |
11695 | arg5 = &temp5; | |
11696 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11697 | } | |
8edf1c75 | 11698 | if (obj5) { |
2f4c0a16 RD |
11699 | arg6 = (int) SWIG_AsInt(obj5); |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11701 | } |
d14a1e28 | 11702 | if (obj6) { |
2f4c0a16 RD |
11703 | arg7 = (bool) SWIG_AsBool(obj6); |
11704 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11705 | } |
11706 | if (obj7) { | |
11707 | { | |
11708 | arg8 = &temp8; | |
11709 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11710 | } | |
11711 | } | |
11712 | { | |
11713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11714 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11715 | ||
11716 | wxPyEndAllowThreads(__tstate); | |
11717 | if (PyErr_Occurred()) SWIG_fail; | |
11718 | } | |
02a34c4c | 11719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
11720 | return resultobj; |
11721 | fail: | |
11722 | return NULL; | |
11723 | } | |
11724 | ||
11725 | ||
2f4c0a16 | 11726 | static PyObject *_wrap_DC_DrawLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11727 | PyObject *resultobj; |
11728 | wxDC *arg1 = (wxDC *) 0 ; | |
11729 | int arg2 ; | |
11730 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
11731 | int arg4 = (int) 0 ; |
11732 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11733 | PyObject * obj0 = 0 ; |
11734 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11735 | PyObject * obj2 = 0 ; |
11736 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11737 | char *kwnames[] = { |
11738 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
11739 | }; | |
11740 | ||
8edf1c75 | 11741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11744 | { |
11745 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11746 | if (arg3 == NULL) SWIG_fail; | |
11747 | } | |
8edf1c75 | 11748 | if (obj2) { |
2f4c0a16 RD |
11749 | arg4 = (int) SWIG_AsInt(obj2); |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11751 | } |
11752 | if (obj3) { | |
2f4c0a16 RD |
11753 | arg5 = (int) SWIG_AsInt(obj3); |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11755 | } |
d14a1e28 RD |
11756 | { |
11757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11758 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
11759 | ||
11760 | wxPyEndAllowThreads(__tstate); | |
11761 | if (PyErr_Occurred()) SWIG_fail; | |
11762 | } | |
11763 | Py_INCREF(Py_None); resultobj = Py_None; | |
11764 | { | |
11765 | if (arg3) delete [] arg3; | |
11766 | } | |
11767 | return resultobj; | |
11768 | fail: | |
11769 | { | |
11770 | if (arg3) delete [] arg3; | |
11771 | } | |
11772 | return NULL; | |
11773 | } | |
11774 | ||
11775 | ||
2f4c0a16 | 11776 | static PyObject *_wrap_DC_DrawPolygon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11777 | PyObject *resultobj; |
11778 | wxDC *arg1 = (wxDC *) 0 ; | |
11779 | int arg2 ; | |
11780 | wxPoint *arg3 = (wxPoint *) 0 ; | |
423f194a RD |
11781 | int arg4 = (int) 0 ; |
11782 | int arg5 = (int) 0 ; | |
d14a1e28 RD |
11783 | int arg6 = (int) wxODDEVEN_RULE ; |
11784 | PyObject * obj0 = 0 ; | |
11785 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
11786 | PyObject * obj2 = 0 ; |
11787 | PyObject * obj3 = 0 ; | |
11788 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11789 | char *kwnames[] = { |
11790 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
11791 | }; | |
11792 | ||
8edf1c75 | 11793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11796 | { |
11797 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11798 | if (arg3 == NULL) SWIG_fail; | |
11799 | } | |
8edf1c75 | 11800 | if (obj2) { |
2f4c0a16 RD |
11801 | arg4 = (int) SWIG_AsInt(obj2); |
11802 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11803 | } |
11804 | if (obj3) { | |
2f4c0a16 RD |
11805 | arg5 = (int) SWIG_AsInt(obj3); |
11806 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11807 | } |
11808 | if (obj4) { | |
2f4c0a16 RD |
11809 | arg6 = (int) SWIG_AsInt(obj4); |
11810 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11811 | } |
d14a1e28 RD |
11812 | { |
11813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11814 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
11815 | ||
11816 | wxPyEndAllowThreads(__tstate); | |
11817 | if (PyErr_Occurred()) SWIG_fail; | |
11818 | } | |
11819 | Py_INCREF(Py_None); resultobj = Py_None; | |
11820 | { | |
11821 | if (arg3) delete [] arg3; | |
11822 | } | |
11823 | return resultobj; | |
11824 | fail: | |
11825 | { | |
11826 | if (arg3) delete [] arg3; | |
11827 | } | |
11828 | return NULL; | |
11829 | } | |
11830 | ||
11831 | ||
2f4c0a16 | 11832 | static PyObject *_wrap_DC_DrawLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11833 | PyObject *resultobj; |
11834 | wxDC *arg1 = (wxDC *) 0 ; | |
11835 | wxString *arg2 = 0 ; | |
11836 | wxRect *arg3 = 0 ; | |
11837 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11838 | int arg5 = (int) -1 ; | |
423f194a | 11839 | bool temp2 = False ; |
d14a1e28 RD |
11840 | wxRect temp3 ; |
11841 | PyObject * obj0 = 0 ; | |
11842 | PyObject * obj1 = 0 ; | |
11843 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
11844 | PyObject * obj3 = 0 ; |
11845 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11846 | char *kwnames[] = { |
11847 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11848 | }; | |
11849 | ||
8edf1c75 | 11850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
11851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11853 | { |
11854 | arg2 = wxString_in_helper(obj1); | |
11855 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11856 | temp2 = True; |
d14a1e28 RD |
11857 | } |
11858 | { | |
11859 | arg3 = &temp3; | |
11860 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
11861 | } | |
8edf1c75 | 11862 | if (obj3) { |
2f4c0a16 RD |
11863 | arg4 = (int) SWIG_AsInt(obj3); |
11864 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11865 | } |
11866 | if (obj4) { | |
2f4c0a16 RD |
11867 | arg5 = (int) SWIG_AsInt(obj4); |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11869 | } |
d14a1e28 RD |
11870 | { |
11871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11872 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
11873 | ||
11874 | wxPyEndAllowThreads(__tstate); | |
11875 | if (PyErr_Occurred()) SWIG_fail; | |
11876 | } | |
11877 | Py_INCREF(Py_None); resultobj = Py_None; | |
11878 | { | |
11879 | if (temp2) | |
11880 | delete arg2; | |
11881 | } | |
11882 | return resultobj; | |
11883 | fail: | |
11884 | { | |
11885 | if (temp2) | |
11886 | delete arg2; | |
11887 | } | |
11888 | return NULL; | |
11889 | } | |
11890 | ||
11891 | ||
2f4c0a16 | 11892 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11893 | PyObject *resultobj; |
11894 | wxDC *arg1 = (wxDC *) 0 ; | |
11895 | wxString *arg2 = 0 ; | |
11896 | wxBitmap *arg3 = 0 ; | |
11897 | wxRect *arg4 = 0 ; | |
11898 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
11899 | int arg6 = (int) -1 ; | |
11900 | wxRect result; | |
423f194a | 11901 | bool temp2 = False ; |
d14a1e28 RD |
11902 | wxRect temp4 ; |
11903 | PyObject * obj0 = 0 ; | |
11904 | PyObject * obj1 = 0 ; | |
11905 | PyObject * obj2 = 0 ; | |
11906 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
11907 | PyObject * obj4 = 0 ; |
11908 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11909 | char *kwnames[] = { |
11910 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
11911 | }; | |
11912 | ||
8edf1c75 | 11913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
11914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11916 | { |
11917 | arg2 = wxString_in_helper(obj1); | |
11918 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11919 | temp2 = True; |
d14a1e28 | 11920 | } |
2f4c0a16 RD |
11921 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
11922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11923 | SWIG_fail; | |
d14a1e28 | 11924 | if (arg3 == NULL) { |
2f4c0a16 RD |
11925 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11926 | SWIG_fail; | |
d14a1e28 RD |
11927 | } |
11928 | { | |
11929 | arg4 = &temp4; | |
11930 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
11931 | } | |
8edf1c75 | 11932 | if (obj4) { |
2f4c0a16 RD |
11933 | arg5 = (int) SWIG_AsInt(obj4); |
11934 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11935 | } |
11936 | if (obj5) { | |
2f4c0a16 RD |
11937 | arg6 = (int) SWIG_AsInt(obj5); |
11938 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11939 | } |
d14a1e28 RD |
11940 | { |
11941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11942 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
11943 | ||
11944 | wxPyEndAllowThreads(__tstate); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
11947 | { | |
11948 | wxRect * resultptr; | |
11949 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 11950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
11951 | } |
11952 | { | |
11953 | if (temp2) | |
11954 | delete arg2; | |
11955 | } | |
11956 | return resultobj; | |
11957 | fail: | |
11958 | { | |
11959 | if (temp2) | |
11960 | delete arg2; | |
11961 | } | |
11962 | return NULL; | |
11963 | } | |
11964 | ||
11965 | ||
2f4c0a16 | 11966 | static PyObject *_wrap_DC_DrawSpline(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11967 | PyObject *resultobj; |
11968 | wxDC *arg1 = (wxDC *) 0 ; | |
11969 | int arg2 ; | |
11970 | wxPoint *arg3 = (wxPoint *) 0 ; | |
11971 | PyObject * obj0 = 0 ; | |
11972 | PyObject * obj1 = 0 ; | |
11973 | char *kwnames[] = { | |
11974 | (char *) "self",(char *) "points", NULL | |
11975 | }; | |
11976 | ||
11977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11980 | { |
11981 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
11982 | if (arg3 == NULL) SWIG_fail; | |
11983 | } | |
11984 | { | |
11985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11986 | (arg1)->DrawSpline(arg2,arg3); | |
11987 | ||
11988 | wxPyEndAllowThreads(__tstate); | |
11989 | if (PyErr_Occurred()) SWIG_fail; | |
11990 | } | |
11991 | Py_INCREF(Py_None); resultobj = Py_None; | |
11992 | { | |
11993 | if (arg3) delete [] arg3; | |
11994 | } | |
11995 | return resultobj; | |
11996 | fail: | |
11997 | { | |
11998 | if (arg3) delete [] arg3; | |
11999 | } | |
12000 | return NULL; | |
12001 | } | |
12002 | ||
12003 | ||
2f4c0a16 | 12004 | static PyObject *_wrap_DC_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12005 | PyObject *resultobj; |
12006 | wxDC *arg1 = (wxDC *) 0 ; | |
12007 | PyObject * obj0 = 0 ; | |
12008 | char *kwnames[] = { | |
12009 | (char *) "self", NULL | |
12010 | }; | |
12011 | ||
12012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12015 | { |
12016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12017 | (arg1)->Clear(); | |
12018 | ||
12019 | wxPyEndAllowThreads(__tstate); | |
12020 | if (PyErr_Occurred()) SWIG_fail; | |
12021 | } | |
12022 | Py_INCREF(Py_None); resultobj = Py_None; | |
12023 | return resultobj; | |
12024 | fail: | |
12025 | return NULL; | |
12026 | } | |
12027 | ||
12028 | ||
2f4c0a16 | 12029 | static PyObject *_wrap_DC_StartDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12030 | PyObject *resultobj; |
12031 | wxDC *arg1 = (wxDC *) 0 ; | |
12032 | wxString *arg2 = 0 ; | |
12033 | bool result; | |
423f194a | 12034 | bool temp2 = False ; |
d14a1e28 RD |
12035 | PyObject * obj0 = 0 ; |
12036 | PyObject * obj1 = 0 ; | |
12037 | char *kwnames[] = { | |
12038 | (char *) "self",(char *) "message", NULL | |
12039 | }; | |
12040 | ||
12041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12044 | { |
12045 | arg2 = wxString_in_helper(obj1); | |
12046 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12047 | temp2 = True; |
d14a1e28 RD |
12048 | } |
12049 | { | |
12050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12051 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12052 | ||
12053 | wxPyEndAllowThreads(__tstate); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | } | |
02a34c4c | 12056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12057 | { |
12058 | if (temp2) | |
12059 | delete arg2; | |
12060 | } | |
12061 | return resultobj; | |
12062 | fail: | |
12063 | { | |
12064 | if (temp2) | |
12065 | delete arg2; | |
12066 | } | |
12067 | return NULL; | |
12068 | } | |
12069 | ||
12070 | ||
2f4c0a16 | 12071 | static PyObject *_wrap_DC_EndDoc(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12072 | PyObject *resultobj; |
12073 | wxDC *arg1 = (wxDC *) 0 ; | |
12074 | PyObject * obj0 = 0 ; | |
12075 | char *kwnames[] = { | |
12076 | (char *) "self", NULL | |
12077 | }; | |
12078 | ||
12079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12082 | { |
12083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12084 | (arg1)->EndDoc(); | |
12085 | ||
12086 | wxPyEndAllowThreads(__tstate); | |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | } | |
12089 | Py_INCREF(Py_None); resultobj = Py_None; | |
12090 | return resultobj; | |
12091 | fail: | |
12092 | return NULL; | |
12093 | } | |
12094 | ||
12095 | ||
2f4c0a16 | 12096 | static PyObject *_wrap_DC_StartPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12097 | PyObject *resultobj; |
12098 | wxDC *arg1 = (wxDC *) 0 ; | |
12099 | PyObject * obj0 = 0 ; | |
12100 | char *kwnames[] = { | |
12101 | (char *) "self", NULL | |
12102 | }; | |
12103 | ||
12104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12107 | { |
12108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12109 | (arg1)->StartPage(); | |
12110 | ||
12111 | wxPyEndAllowThreads(__tstate); | |
12112 | if (PyErr_Occurred()) SWIG_fail; | |
12113 | } | |
12114 | Py_INCREF(Py_None); resultobj = Py_None; | |
12115 | return resultobj; | |
12116 | fail: | |
12117 | return NULL; | |
12118 | } | |
12119 | ||
12120 | ||
2f4c0a16 | 12121 | static PyObject *_wrap_DC_EndPage(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12122 | PyObject *resultobj; |
12123 | wxDC *arg1 = (wxDC *) 0 ; | |
12124 | PyObject * obj0 = 0 ; | |
12125 | char *kwnames[] = { | |
12126 | (char *) "self", NULL | |
12127 | }; | |
12128 | ||
12129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12132 | { |
12133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12134 | (arg1)->EndPage(); | |
12135 | ||
12136 | wxPyEndAllowThreads(__tstate); | |
12137 | if (PyErr_Occurred()) SWIG_fail; | |
12138 | } | |
12139 | Py_INCREF(Py_None); resultobj = Py_None; | |
12140 | return resultobj; | |
12141 | fail: | |
12142 | return NULL; | |
12143 | } | |
12144 | ||
12145 | ||
2f4c0a16 | 12146 | static PyObject *_wrap_DC_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12147 | PyObject *resultobj; |
12148 | wxDC *arg1 = (wxDC *) 0 ; | |
12149 | wxFont *arg2 = 0 ; | |
12150 | PyObject * obj0 = 0 ; | |
12151 | PyObject * obj1 = 0 ; | |
12152 | char *kwnames[] = { | |
12153 | (char *) "self",(char *) "font", NULL | |
12154 | }; | |
12155 | ||
12156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12159 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12160 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12161 | SWIG_fail; | |
d14a1e28 | 12162 | if (arg2 == NULL) { |
2f4c0a16 RD |
12163 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12164 | SWIG_fail; | |
d14a1e28 RD |
12165 | } |
12166 | { | |
12167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12168 | (arg1)->SetFont((wxFont const &)*arg2); | |
12169 | ||
12170 | wxPyEndAllowThreads(__tstate); | |
12171 | if (PyErr_Occurred()) SWIG_fail; | |
12172 | } | |
12173 | Py_INCREF(Py_None); resultobj = Py_None; | |
12174 | return resultobj; | |
12175 | fail: | |
12176 | return NULL; | |
12177 | } | |
12178 | ||
12179 | ||
2f4c0a16 | 12180 | static PyObject *_wrap_DC_SetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12181 | PyObject *resultobj; |
12182 | wxDC *arg1 = (wxDC *) 0 ; | |
12183 | wxPen *arg2 = 0 ; | |
12184 | PyObject * obj0 = 0 ; | |
12185 | PyObject * obj1 = 0 ; | |
12186 | char *kwnames[] = { | |
12187 | (char *) "self",(char *) "pen", NULL | |
12188 | }; | |
12189 | ||
12190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12193 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
12194 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12195 | SWIG_fail; | |
d14a1e28 | 12196 | if (arg2 == NULL) { |
2f4c0a16 RD |
12197 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12198 | SWIG_fail; | |
d14a1e28 RD |
12199 | } |
12200 | { | |
12201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12202 | (arg1)->SetPen((wxPen const &)*arg2); | |
12203 | ||
12204 | wxPyEndAllowThreads(__tstate); | |
12205 | if (PyErr_Occurred()) SWIG_fail; | |
12206 | } | |
12207 | Py_INCREF(Py_None); resultobj = Py_None; | |
12208 | return resultobj; | |
12209 | fail: | |
12210 | return NULL; | |
12211 | } | |
12212 | ||
12213 | ||
2f4c0a16 | 12214 | static PyObject *_wrap_DC_SetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12215 | PyObject *resultobj; |
12216 | wxDC *arg1 = (wxDC *) 0 ; | |
12217 | wxBrush *arg2 = 0 ; | |
12218 | PyObject * obj0 = 0 ; | |
12219 | PyObject * obj1 = 0 ; | |
12220 | char *kwnames[] = { | |
12221 | (char *) "self",(char *) "brush", NULL | |
12222 | }; | |
12223 | ||
12224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12228 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12229 | SWIG_fail; | |
d14a1e28 | 12230 | if (arg2 == NULL) { |
2f4c0a16 RD |
12231 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12232 | SWIG_fail; | |
d14a1e28 RD |
12233 | } |
12234 | { | |
12235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12236 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12237 | ||
12238 | wxPyEndAllowThreads(__tstate); | |
12239 | if (PyErr_Occurred()) SWIG_fail; | |
12240 | } | |
12241 | Py_INCREF(Py_None); resultobj = Py_None; | |
12242 | return resultobj; | |
12243 | fail: | |
12244 | return NULL; | |
12245 | } | |
12246 | ||
12247 | ||
2f4c0a16 | 12248 | static PyObject *_wrap_DC_SetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12249 | PyObject *resultobj; |
12250 | wxDC *arg1 = (wxDC *) 0 ; | |
12251 | wxBrush *arg2 = 0 ; | |
12252 | PyObject * obj0 = 0 ; | |
12253 | PyObject * obj1 = 0 ; | |
12254 | char *kwnames[] = { | |
12255 | (char *) "self",(char *) "brush", NULL | |
12256 | }; | |
12257 | ||
12258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12262 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12263 | SWIG_fail; | |
d14a1e28 | 12264 | if (arg2 == NULL) { |
2f4c0a16 RD |
12265 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12266 | SWIG_fail; | |
d14a1e28 RD |
12267 | } |
12268 | { | |
12269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12270 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12271 | ||
12272 | wxPyEndAllowThreads(__tstate); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | } | |
12275 | Py_INCREF(Py_None); resultobj = Py_None; | |
12276 | return resultobj; | |
12277 | fail: | |
12278 | return NULL; | |
12279 | } | |
12280 | ||
12281 | ||
2f4c0a16 | 12282 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12283 | PyObject *resultobj; |
12284 | wxDC *arg1 = (wxDC *) 0 ; | |
12285 | int arg2 ; | |
12286 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12288 | char *kwnames[] = { |
12289 | (char *) "self",(char *) "mode", NULL | |
12290 | }; | |
12291 | ||
8edf1c75 | 12292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12295 | arg2 = (int) SWIG_AsInt(obj1); | |
12296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12297 | { |
12298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12299 | (arg1)->SetBackgroundMode(arg2); | |
12300 | ||
12301 | wxPyEndAllowThreads(__tstate); | |
12302 | if (PyErr_Occurred()) SWIG_fail; | |
12303 | } | |
12304 | Py_INCREF(Py_None); resultobj = Py_None; | |
12305 | return resultobj; | |
12306 | fail: | |
12307 | return NULL; | |
12308 | } | |
12309 | ||
12310 | ||
2f4c0a16 | 12311 | static PyObject *_wrap_DC_SetPalette(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12312 | PyObject *resultobj; |
12313 | wxDC *arg1 = (wxDC *) 0 ; | |
12314 | wxPalette *arg2 = 0 ; | |
12315 | PyObject * obj0 = 0 ; | |
12316 | PyObject * obj1 = 0 ; | |
12317 | char *kwnames[] = { | |
12318 | (char *) "self",(char *) "palette", NULL | |
12319 | }; | |
12320 | ||
12321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
12325 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12326 | SWIG_fail; | |
d14a1e28 | 12327 | if (arg2 == NULL) { |
2f4c0a16 RD |
12328 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12329 | SWIG_fail; | |
d14a1e28 RD |
12330 | } |
12331 | { | |
12332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12333 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12334 | ||
12335 | wxPyEndAllowThreads(__tstate); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | } | |
12338 | Py_INCREF(Py_None); resultobj = Py_None; | |
12339 | return resultobj; | |
12340 | fail: | |
12341 | return NULL; | |
12342 | } | |
12343 | ||
12344 | ||
2f4c0a16 | 12345 | static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12346 | PyObject *resultobj; |
12347 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12348 | int arg2 ; |
12349 | int arg3 ; | |
12350 | int arg4 ; | |
12351 | int arg5 ; | |
d14a1e28 | 12352 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12353 | PyObject * obj1 = 0 ; |
12354 | PyObject * obj2 = 0 ; | |
12355 | PyObject * obj3 = 0 ; | |
12356 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12357 | char *kwnames[] = { |
12358 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12359 | }; | |
12360 | ||
8edf1c75 | 12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
12362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12364 | arg2 = (int) SWIG_AsInt(obj1); | |
12365 | if (PyErr_Occurred()) SWIG_fail; | |
12366 | arg3 = (int) SWIG_AsInt(obj2); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | arg4 = (int) SWIG_AsInt(obj3); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | arg5 = (int) SWIG_AsInt(obj4); | |
12371 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12372 | { |
12373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12374 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12375 | ||
12376 | wxPyEndAllowThreads(__tstate); | |
12377 | if (PyErr_Occurred()) SWIG_fail; | |
12378 | } | |
12379 | Py_INCREF(Py_None); resultobj = Py_None; | |
12380 | return resultobj; | |
12381 | fail: | |
12382 | return NULL; | |
12383 | } | |
12384 | ||
12385 | ||
2f4c0a16 | 12386 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
0f774bef RD |
12387 | PyObject *resultobj; |
12388 | wxDC *arg1 = (wxDC *) 0 ; | |
12389 | wxPoint *arg2 = 0 ; | |
12390 | wxSize *arg3 = 0 ; | |
12391 | wxPoint temp2 ; | |
12392 | wxSize temp3 ; | |
12393 | PyObject * obj0 = 0 ; | |
12394 | PyObject * obj1 = 0 ; | |
12395 | PyObject * obj2 = 0 ; | |
12396 | char *kwnames[] = { | |
12397 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12398 | }; | |
12399 | ||
12400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0f774bef RD |
12403 | { |
12404 | arg2 = &temp2; | |
12405 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12406 | } | |
12407 | { | |
12408 | arg3 = &temp3; | |
12409 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12410 | } | |
12411 | { | |
12412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12413 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12414 | ||
12415 | wxPyEndAllowThreads(__tstate); | |
12416 | if (PyErr_Occurred()) SWIG_fail; | |
12417 | } | |
12418 | Py_INCREF(Py_None); resultobj = Py_None; | |
12419 | return resultobj; | |
12420 | fail: | |
12421 | return NULL; | |
12422 | } | |
12423 | ||
12424 | ||
2f4c0a16 | 12425 | static PyObject *_wrap_DC_SetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12426 | PyObject *resultobj; |
12427 | wxDC *arg1 = (wxDC *) 0 ; | |
12428 | wxRect *arg2 = 0 ; | |
12429 | wxRect temp2 ; | |
12430 | PyObject * obj0 = 0 ; | |
12431 | PyObject * obj1 = 0 ; | |
12432 | char *kwnames[] = { | |
12433 | (char *) "self",(char *) "rect", NULL | |
12434 | }; | |
12435 | ||
12436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12439 | { |
12440 | arg2 = &temp2; | |
12441 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12442 | } | |
12443 | { | |
12444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12445 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12446 | ||
12447 | wxPyEndAllowThreads(__tstate); | |
12448 | if (PyErr_Occurred()) SWIG_fail; | |
12449 | } | |
12450 | Py_INCREF(Py_None); resultobj = Py_None; | |
12451 | return resultobj; | |
12452 | fail: | |
12453 | return NULL; | |
12454 | } | |
12455 | ||
12456 | ||
2f4c0a16 | 12457 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12458 | PyObject *resultobj; |
12459 | wxDC *arg1 = (wxDC *) 0 ; | |
12460 | wxRegion *arg2 = 0 ; | |
12461 | PyObject * obj0 = 0 ; | |
12462 | PyObject * obj1 = 0 ; | |
12463 | char *kwnames[] = { | |
12464 | (char *) "self",(char *) "region", NULL | |
12465 | }; | |
12466 | ||
12467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12472 | SWIG_fail; | |
d14a1e28 | 12473 | if (arg2 == NULL) { |
2f4c0a16 RD |
12474 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12475 | SWIG_fail; | |
d14a1e28 RD |
12476 | } |
12477 | { | |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | Py_INCREF(Py_None); resultobj = Py_None; | |
12485 | return resultobj; | |
12486 | fail: | |
12487 | return NULL; | |
12488 | } | |
12489 | ||
12490 | ||
2f4c0a16 | 12491 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12492 | PyObject *resultobj; |
12493 | wxDC *arg1 = (wxDC *) 0 ; | |
12494 | PyObject * obj0 = 0 ; | |
12495 | char *kwnames[] = { | |
12496 | (char *) "self", NULL | |
12497 | }; | |
12498 | ||
12499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12502 | { |
12503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12504 | (arg1)->DestroyClippingRegion(); | |
12505 | ||
12506 | wxPyEndAllowThreads(__tstate); | |
12507 | if (PyErr_Occurred()) SWIG_fail; | |
12508 | } | |
12509 | Py_INCREF(Py_None); resultobj = Py_None; | |
12510 | return resultobj; | |
12511 | fail: | |
12512 | return NULL; | |
12513 | } | |
12514 | ||
12515 | ||
2f4c0a16 | 12516 | static PyObject *_wrap_DC_GetClippingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12517 | PyObject *resultobj; |
12518 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
12519 | int *arg2 = (int *) 0 ; |
12520 | int *arg3 = (int *) 0 ; | |
12521 | int *arg4 = (int *) 0 ; | |
12522 | int *arg5 = (int *) 0 ; | |
12523 | int temp2 ; | |
12524 | int temp3 ; | |
12525 | int temp4 ; | |
12526 | int temp5 ; | |
d14a1e28 RD |
12527 | PyObject * obj0 = 0 ; |
12528 | char *kwnames[] = { | |
12529 | (char *) "self", NULL | |
12530 | }; | |
12531 | ||
12532 | arg2 = &temp2; | |
12533 | arg3 = &temp3; | |
12534 | arg4 = &temp4; | |
12535 | arg5 = &temp5; | |
12536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12539 | { |
12540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12541 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12542 | ||
12543 | wxPyEndAllowThreads(__tstate); | |
12544 | if (PyErr_Occurred()) SWIG_fail; | |
12545 | } | |
12546 | Py_INCREF(Py_None); resultobj = Py_None; | |
12547 | { | |
12548 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12549 | resultobj = t_output_helper(resultobj,o); | |
12550 | } | |
12551 | { | |
12552 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12553 | resultobj = t_output_helper(resultobj,o); | |
12554 | } | |
12555 | { | |
12556 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12557 | resultobj = t_output_helper(resultobj,o); | |
12558 | } | |
12559 | { | |
12560 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12561 | resultobj = t_output_helper(resultobj,o); | |
12562 | } | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
2f4c0a16 | 12569 | static PyObject *_wrap_DC_GetClippingRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12570 | PyObject *resultobj; |
12571 | wxDC *arg1 = (wxDC *) 0 ; | |
12572 | wxRect result; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12581 | { |
12582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12583 | result = wxDC_GetClippingRect(arg1); | |
12584 | ||
12585 | wxPyEndAllowThreads(__tstate); | |
12586 | if (PyErr_Occurred()) SWIG_fail; | |
12587 | } | |
12588 | { | |
12589 | wxRect * resultptr; | |
12590 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 12591 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12592 | } |
12593 | return resultobj; | |
12594 | fail: | |
12595 | return NULL; | |
12596 | } | |
12597 | ||
12598 | ||
2f4c0a16 | 12599 | static PyObject *_wrap_DC_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12600 | PyObject *resultobj; |
12601 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12602 | int result; |
d14a1e28 RD |
12603 | PyObject * obj0 = 0 ; |
12604 | char *kwnames[] = { | |
12605 | (char *) "self", NULL | |
12606 | }; | |
12607 | ||
12608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12611 | { |
12612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12613 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12614 | |
12615 | wxPyEndAllowThreads(__tstate); | |
12616 | if (PyErr_Occurred()) SWIG_fail; | |
12617 | } | |
2f4c0a16 | 12618 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12619 | return resultobj; |
12620 | fail: | |
12621 | return NULL; | |
12622 | } | |
12623 | ||
12624 | ||
2f4c0a16 | 12625 | static PyObject *_wrap_DC_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12626 | PyObject *resultobj; |
12627 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 12628 | int result; |
d14a1e28 RD |
12629 | PyObject * obj0 = 0 ; |
12630 | char *kwnames[] = { | |
12631 | (char *) "self", NULL | |
12632 | }; | |
12633 | ||
12634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12637 | { |
12638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 12639 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12640 | |
12641 | wxPyEndAllowThreads(__tstate); | |
12642 | if (PyErr_Occurred()) SWIG_fail; | |
12643 | } | |
2f4c0a16 | 12644 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12645 | return resultobj; |
12646 | fail: | |
12647 | return NULL; | |
12648 | } | |
12649 | ||
12650 | ||
2f4c0a16 | 12651 | static PyObject *_wrap_DC_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12652 | PyObject *resultobj; |
12653 | wxDC *arg1 = (wxDC *) 0 ; | |
12654 | wxString *arg2 = 0 ; | |
423f194a RD |
12655 | int *arg3 = (int *) 0 ; |
12656 | int *arg4 = (int *) 0 ; | |
12657 | bool temp2 = False ; | |
12658 | int temp3 ; | |
12659 | int temp4 ; | |
d14a1e28 RD |
12660 | PyObject * obj0 = 0 ; |
12661 | PyObject * obj1 = 0 ; | |
12662 | char *kwnames[] = { | |
12663 | (char *) "self",(char *) "string", NULL | |
12664 | }; | |
12665 | ||
12666 | arg3 = &temp3; | |
12667 | arg4 = &temp4; | |
12668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12671 | { |
12672 | arg2 = wxString_in_helper(obj1); | |
12673 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12674 | temp2 = True; |
d14a1e28 RD |
12675 | } |
12676 | { | |
12677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12678 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12679 | ||
12680 | wxPyEndAllowThreads(__tstate); | |
12681 | if (PyErr_Occurred()) SWIG_fail; | |
12682 | } | |
12683 | Py_INCREF(Py_None); resultobj = Py_None; | |
12684 | { | |
12685 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12686 | resultobj = t_output_helper(resultobj,o); | |
12687 | } | |
12688 | { | |
12689 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12690 | resultobj = t_output_helper(resultobj,o); | |
12691 | } | |
12692 | { | |
12693 | if (temp2) | |
12694 | delete arg2; | |
12695 | } | |
12696 | return resultobj; | |
12697 | fail: | |
12698 | { | |
12699 | if (temp2) | |
12700 | delete arg2; | |
12701 | } | |
12702 | return NULL; | |
12703 | } | |
12704 | ||
12705 | ||
2f4c0a16 | 12706 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12707 | PyObject *resultobj; |
12708 | wxDC *arg1 = (wxDC *) 0 ; | |
12709 | wxString *arg2 = 0 ; | |
423f194a RD |
12710 | int *arg3 = (int *) 0 ; |
12711 | int *arg4 = (int *) 0 ; | |
12712 | int *arg5 = (int *) 0 ; | |
12713 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12714 | wxFont *arg7 = (wxFont *) NULL ; |
423f194a RD |
12715 | bool temp2 = False ; |
12716 | int temp3 ; | |
12717 | int temp4 ; | |
12718 | int temp5 ; | |
12719 | int temp6 ; | |
d14a1e28 RD |
12720 | PyObject * obj0 = 0 ; |
12721 | PyObject * obj1 = 0 ; | |
12722 | PyObject * obj2 = 0 ; | |
12723 | char *kwnames[] = { | |
12724 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12725 | }; | |
12726 | ||
12727 | arg3 = &temp3; | |
12728 | arg4 = &temp4; | |
12729 | arg5 = &temp5; | |
12730 | arg6 = &temp6; | |
12731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12734 | { |
12735 | arg2 = wxString_in_helper(obj1); | |
12736 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12737 | temp2 = True; |
d14a1e28 RD |
12738 | } |
12739 | if (obj2) { | |
2f4c0a16 RD |
12740 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
12741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12742 | } |
12743 | { | |
12744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12745 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12746 | ||
12747 | wxPyEndAllowThreads(__tstate); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
12749 | } | |
12750 | Py_INCREF(Py_None); resultobj = Py_None; | |
12751 | { | |
12752 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12753 | resultobj = t_output_helper(resultobj,o); | |
12754 | } | |
12755 | { | |
12756 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12757 | resultobj = t_output_helper(resultobj,o); | |
12758 | } | |
12759 | { | |
12760 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12761 | resultobj = t_output_helper(resultobj,o); | |
12762 | } | |
12763 | { | |
12764 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12765 | resultobj = t_output_helper(resultobj,o); | |
12766 | } | |
12767 | { | |
12768 | if (temp2) | |
12769 | delete arg2; | |
12770 | } | |
12771 | return resultobj; | |
12772 | fail: | |
12773 | { | |
12774 | if (temp2) | |
12775 | delete arg2; | |
12776 | } | |
12777 | return NULL; | |
12778 | } | |
12779 | ||
12780 | ||
2f4c0a16 | 12781 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12782 | PyObject *resultobj; |
12783 | wxDC *arg1 = (wxDC *) 0 ; | |
12784 | wxString *arg2 = 0 ; | |
423f194a RD |
12785 | int *arg3 = (int *) 0 ; |
12786 | int *arg4 = (int *) 0 ; | |
12787 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12788 | wxFont *arg6 = (wxFont *) NULL ; |
423f194a RD |
12789 | bool temp2 = False ; |
12790 | int temp3 ; | |
12791 | int temp4 ; | |
12792 | int temp5 ; | |
d14a1e28 RD |
12793 | PyObject * obj0 = 0 ; |
12794 | PyObject * obj1 = 0 ; | |
12795 | PyObject * obj2 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12798 | }; | |
12799 | ||
12800 | arg3 = &temp3; | |
12801 | arg4 = &temp4; | |
12802 | arg5 = &temp5; | |
12803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
12804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12806 | { |
12807 | arg2 = wxString_in_helper(obj1); | |
12808 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12809 | temp2 = True; |
d14a1e28 RD |
12810 | } |
12811 | if (obj2) { | |
2f4c0a16 RD |
12812 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, |
12813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12814 | } |
12815 | { | |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12818 | ||
12819 | wxPyEndAllowThreads(__tstate); | |
12820 | if (PyErr_Occurred()) SWIG_fail; | |
12821 | } | |
12822 | Py_INCREF(Py_None); resultobj = Py_None; | |
12823 | { | |
12824 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12825 | resultobj = t_output_helper(resultobj,o); | |
12826 | } | |
12827 | { | |
12828 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12829 | resultobj = t_output_helper(resultobj,o); | |
12830 | } | |
12831 | { | |
12832 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12833 | resultobj = t_output_helper(resultobj,o); | |
12834 | } | |
12835 | { | |
12836 | if (temp2) | |
12837 | delete arg2; | |
12838 | } | |
12839 | return resultobj; | |
12840 | fail: | |
12841 | { | |
12842 | if (temp2) | |
12843 | delete arg2; | |
12844 | } | |
12845 | return NULL; | |
12846 | } | |
12847 | ||
12848 | ||
2f4c0a16 | 12849 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *, PyObject *args, PyObject *kwargs) { |
0ffb2aa6 RD |
12850 | PyObject *resultobj; |
12851 | wxDC *arg1 = (wxDC *) 0 ; | |
12852 | wxString *arg2 = 0 ; | |
12853 | wxArrayInt result; | |
12854 | bool temp2 = False ; | |
12855 | PyObject * obj0 = 0 ; | |
12856 | PyObject * obj1 = 0 ; | |
12857 | char *kwnames[] = { | |
12858 | (char *) "self",(char *) "text", NULL | |
12859 | }; | |
12860 | ||
12861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0ffb2aa6 RD |
12864 | { |
12865 | arg2 = wxString_in_helper(obj1); | |
12866 | if (arg2 == NULL) SWIG_fail; | |
12867 | temp2 = True; | |
12868 | } | |
12869 | { | |
12870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12871 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
12872 | ||
12873 | wxPyEndAllowThreads(__tstate); | |
12874 | if (PyErr_Occurred()) SWIG_fail; | |
12875 | } | |
12876 | { | |
12877 | resultobj = PyList_New(0); | |
12878 | size_t idx; | |
12879 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
12880 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
12881 | PyList_Append(resultobj, val); | |
12882 | Py_DECREF(val); | |
12883 | } | |
12884 | } | |
12885 | { | |
12886 | if (temp2) | |
12887 | delete arg2; | |
12888 | } | |
12889 | return resultobj; | |
12890 | fail: | |
12891 | { | |
12892 | if (temp2) | |
12893 | delete arg2; | |
12894 | } | |
12895 | return NULL; | |
12896 | } | |
12897 | ||
12898 | ||
2f4c0a16 | 12899 | static PyObject *_wrap_DC_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
44127b65 RD |
12900 | PyObject *resultobj; |
12901 | wxDC *arg1 = (wxDC *) 0 ; | |
12902 | wxSize result; | |
12903 | PyObject * obj0 = 0 ; | |
12904 | char *kwnames[] = { | |
12905 | (char *) "self", NULL | |
12906 | }; | |
12907 | ||
12908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44127b65 RD |
12911 | { |
12912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12913 | result = (arg1)->GetSize(); | |
12914 | ||
12915 | wxPyEndAllowThreads(__tstate); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
12918 | { | |
12919 | wxSize * resultptr; | |
12920 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 12921 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
44127b65 RD |
12922 | } |
12923 | return resultobj; | |
12924 | fail: | |
12925 | return NULL; | |
12926 | } | |
12927 | ||
12928 | ||
2f4c0a16 | 12929 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12930 | PyObject *resultobj; |
12931 | wxDC *arg1 = (wxDC *) 0 ; | |
12932 | int *arg2 = (int *) 0 ; | |
12933 | int *arg3 = (int *) 0 ; | |
12934 | int temp2 ; | |
12935 | int temp3 ; | |
12936 | PyObject * obj0 = 0 ; | |
12937 | char *kwnames[] = { | |
12938 | (char *) "self", NULL | |
12939 | }; | |
12940 | ||
12941 | arg2 = &temp2; | |
12942 | arg3 = &temp3; | |
12943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12946 | { |
12947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12948 | (arg1)->GetSize(arg2,arg3); | |
12949 | ||
12950 | wxPyEndAllowThreads(__tstate); | |
12951 | if (PyErr_Occurred()) SWIG_fail; | |
12952 | } | |
12953 | Py_INCREF(Py_None); resultobj = Py_None; | |
12954 | { | |
12955 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12956 | resultobj = t_output_helper(resultobj,o); | |
12957 | } | |
12958 | { | |
12959 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12960 | resultobj = t_output_helper(resultobj,o); | |
12961 | } | |
12962 | return resultobj; | |
12963 | fail: | |
12964 | return NULL; | |
12965 | } | |
12966 | ||
12967 | ||
2f4c0a16 | 12968 | static PyObject *_wrap_DC_GetSizeMM(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12969 | PyObject *resultobj; |
12970 | wxDC *arg1 = (wxDC *) 0 ; | |
12971 | wxSize result; | |
12972 | PyObject * obj0 = 0 ; | |
12973 | char *kwnames[] = { | |
12974 | (char *) "self", NULL | |
12975 | }; | |
12976 | ||
44127b65 | 12977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
12978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12980 | { |
12981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 12982 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
12983 | |
12984 | wxPyEndAllowThreads(__tstate); | |
12985 | if (PyErr_Occurred()) SWIG_fail; | |
12986 | } | |
12987 | { | |
12988 | wxSize * resultptr; | |
12989 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 12990 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
12991 | } |
12992 | return resultobj; | |
12993 | fail: | |
12994 | return NULL; | |
12995 | } | |
12996 | ||
12997 | ||
2f4c0a16 | 12998 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
12999 | PyObject *resultobj; |
13000 | wxDC *arg1 = (wxDC *) 0 ; | |
13001 | int *arg2 = (int *) 0 ; | |
13002 | int *arg3 = (int *) 0 ; | |
13003 | int temp2 ; | |
13004 | int temp3 ; | |
13005 | PyObject * obj0 = 0 ; | |
13006 | char *kwnames[] = { | |
13007 | (char *) "self", NULL | |
13008 | }; | |
13009 | ||
13010 | arg2 = &temp2; | |
13011 | arg3 = &temp3; | |
44127b65 | 13012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
13013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13015 | { |
13016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13017 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13018 | ||
13019 | wxPyEndAllowThreads(__tstate); | |
13020 | if (PyErr_Occurred()) SWIG_fail; | |
13021 | } | |
13022 | Py_INCREF(Py_None); resultobj = Py_None; | |
13023 | { | |
13024 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13025 | resultobj = t_output_helper(resultobj,o); | |
13026 | } | |
13027 | { | |
13028 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13029 | resultobj = t_output_helper(resultobj,o); | |
13030 | } | |
13031 | return resultobj; | |
13032 | fail: | |
13033 | return NULL; | |
13034 | } | |
13035 | ||
13036 | ||
2f4c0a16 | 13037 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13038 | PyObject *resultobj; |
13039 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13040 | int arg2 ; |
13041 | int result; | |
d14a1e28 | 13042 | PyObject * obj0 = 0 ; |
8edf1c75 | 13043 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13044 | char *kwnames[] = { |
13045 | (char *) "self",(char *) "x", NULL | |
13046 | }; | |
13047 | ||
8edf1c75 | 13048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13051 | arg2 = (int) SWIG_AsInt(obj1); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13053 | { |
13054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13055 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13056 | |
13057 | wxPyEndAllowThreads(__tstate); | |
13058 | if (PyErr_Occurred()) SWIG_fail; | |
13059 | } | |
2f4c0a16 | 13060 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13061 | return resultobj; |
13062 | fail: | |
13063 | return NULL; | |
13064 | } | |
13065 | ||
13066 | ||
2f4c0a16 | 13067 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13068 | PyObject *resultobj; |
13069 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13070 | int arg2 ; |
13071 | int result; | |
d14a1e28 | 13072 | PyObject * obj0 = 0 ; |
8edf1c75 | 13073 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13074 | char *kwnames[] = { |
13075 | (char *) "self",(char *) "y", NULL | |
13076 | }; | |
13077 | ||
8edf1c75 | 13078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13081 | arg2 = (int) SWIG_AsInt(obj1); | |
13082 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13083 | { |
13084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13085 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13086 | |
13087 | wxPyEndAllowThreads(__tstate); | |
13088 | if (PyErr_Occurred()) SWIG_fail; | |
13089 | } | |
2f4c0a16 | 13090 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13091 | return resultobj; |
13092 | fail: | |
13093 | return NULL; | |
13094 | } | |
13095 | ||
13096 | ||
2f4c0a16 | 13097 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13098 | PyObject *resultobj; |
13099 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13100 | int arg2 ; |
13101 | int result; | |
d14a1e28 | 13102 | PyObject * obj0 = 0 ; |
8edf1c75 | 13103 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13104 | char *kwnames[] = { |
13105 | (char *) "self",(char *) "x", NULL | |
13106 | }; | |
13107 | ||
8edf1c75 | 13108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13111 | arg2 = (int) SWIG_AsInt(obj1); | |
13112 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13113 | { |
13114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13115 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13116 | |
13117 | wxPyEndAllowThreads(__tstate); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
2f4c0a16 | 13120 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13121 | return resultobj; |
13122 | fail: | |
13123 | return NULL; | |
13124 | } | |
13125 | ||
13126 | ||
2f4c0a16 | 13127 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13128 | PyObject *resultobj; |
13129 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13130 | int arg2 ; |
13131 | int result; | |
d14a1e28 | 13132 | PyObject * obj0 = 0 ; |
8edf1c75 | 13133 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13134 | char *kwnames[] = { |
13135 | (char *) "self",(char *) "y", NULL | |
13136 | }; | |
13137 | ||
8edf1c75 | 13138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13141 | arg2 = (int) SWIG_AsInt(obj1); | |
13142 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13143 | { |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13145 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13146 | |
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
2f4c0a16 | 13150 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13151 | return resultobj; |
13152 | fail: | |
13153 | return NULL; | |
13154 | } | |
13155 | ||
13156 | ||
2f4c0a16 | 13157 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13158 | PyObject *resultobj; |
13159 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13160 | int arg2 ; |
13161 | int result; | |
d14a1e28 | 13162 | PyObject * obj0 = 0 ; |
8edf1c75 | 13163 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13164 | char *kwnames[] = { |
13165 | (char *) "self",(char *) "x", NULL | |
13166 | }; | |
13167 | ||
8edf1c75 | 13168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13171 | arg2 = (int) SWIG_AsInt(obj1); | |
13172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13173 | { |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13175 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13176 | |
13177 | wxPyEndAllowThreads(__tstate); | |
13178 | if (PyErr_Occurred()) SWIG_fail; | |
13179 | } | |
2f4c0a16 | 13180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13181 | return resultobj; |
13182 | fail: | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
2f4c0a16 | 13187 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13188 | PyObject *resultobj; |
13189 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13190 | int arg2 ; |
13191 | int result; | |
d14a1e28 | 13192 | PyObject * obj0 = 0 ; |
8edf1c75 | 13193 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13194 | char *kwnames[] = { |
13195 | (char *) "self",(char *) "y", NULL | |
13196 | }; | |
13197 | ||
8edf1c75 | 13198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13201 | arg2 = (int) SWIG_AsInt(obj1); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13203 | { |
13204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13205 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13206 | |
13207 | wxPyEndAllowThreads(__tstate); | |
13208 | if (PyErr_Occurred()) SWIG_fail; | |
13209 | } | |
2f4c0a16 | 13210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13211 | return resultobj; |
13212 | fail: | |
13213 | return NULL; | |
13214 | } | |
13215 | ||
13216 | ||
2f4c0a16 | 13217 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13218 | PyObject *resultobj; |
13219 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13220 | int arg2 ; |
13221 | int result; | |
d14a1e28 | 13222 | PyObject * obj0 = 0 ; |
8edf1c75 | 13223 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13224 | char *kwnames[] = { |
13225 | (char *) "self",(char *) "x", NULL | |
13226 | }; | |
13227 | ||
8edf1c75 | 13228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13231 | arg2 = (int) SWIG_AsInt(obj1); | |
13232 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13233 | { |
13234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13235 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13236 | |
13237 | wxPyEndAllowThreads(__tstate); | |
13238 | if (PyErr_Occurred()) SWIG_fail; | |
13239 | } | |
2f4c0a16 | 13240 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13241 | return resultobj; |
13242 | fail: | |
13243 | return NULL; | |
13244 | } | |
13245 | ||
13246 | ||
2f4c0a16 | 13247 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13248 | PyObject *resultobj; |
13249 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13250 | int arg2 ; |
13251 | int result; | |
d14a1e28 | 13252 | PyObject * obj0 = 0 ; |
8edf1c75 | 13253 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13254 | char *kwnames[] = { |
13255 | (char *) "self",(char *) "y", NULL | |
13256 | }; | |
13257 | ||
8edf1c75 | 13258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13261 | arg2 = (int) SWIG_AsInt(obj1); | |
13262 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13263 | { |
13264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 13265 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13266 | |
13267 | wxPyEndAllowThreads(__tstate); | |
13268 | if (PyErr_Occurred()) SWIG_fail; | |
13269 | } | |
2f4c0a16 | 13270 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13271 | return resultobj; |
13272 | fail: | |
13273 | return NULL; | |
13274 | } | |
13275 | ||
13276 | ||
2f4c0a16 | 13277 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13278 | PyObject *resultobj; |
13279 | wxDC *arg1 = (wxDC *) 0 ; | |
13280 | bool result; | |
13281 | PyObject * obj0 = 0 ; | |
13282 | char *kwnames[] = { | |
13283 | (char *) "self", NULL | |
13284 | }; | |
13285 | ||
13286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13289 | { |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13292 | ||
13293 | wxPyEndAllowThreads(__tstate); | |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
13295 | } | |
02a34c4c | 13296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13297 | return resultobj; |
13298 | fail: | |
13299 | return NULL; | |
13300 | } | |
13301 | ||
13302 | ||
2f4c0a16 | 13303 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13304 | PyObject *resultobj; |
13305 | wxDC *arg1 = (wxDC *) 0 ; | |
13306 | bool result; | |
13307 | PyObject * obj0 = 0 ; | |
13308 | char *kwnames[] = { | |
13309 | (char *) "self", NULL | |
13310 | }; | |
13311 | ||
13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13315 | { |
13316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13317 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13318 | ||
13319 | wxPyEndAllowThreads(__tstate); | |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
13321 | } | |
02a34c4c | 13322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13323 | return resultobj; |
13324 | fail: | |
13325 | return NULL; | |
13326 | } | |
13327 | ||
13328 | ||
2f4c0a16 | 13329 | static PyObject *_wrap_DC_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13330 | PyObject *resultobj; |
13331 | wxDC *arg1 = (wxDC *) 0 ; | |
13332 | int result; | |
13333 | PyObject * obj0 = 0 ; | |
13334 | char *kwnames[] = { | |
13335 | (char *) "self", NULL | |
13336 | }; | |
13337 | ||
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13341 | { |
13342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13343 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13344 | ||
13345 | wxPyEndAllowThreads(__tstate); | |
13346 | if (PyErr_Occurred()) SWIG_fail; | |
13347 | } | |
2f4c0a16 | 13348 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13349 | return resultobj; |
13350 | fail: | |
13351 | return NULL; | |
13352 | } | |
13353 | ||
13354 | ||
2f4c0a16 | 13355 | static PyObject *_wrap_DC_GetPPI(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13356 | PyObject *resultobj; |
13357 | wxDC *arg1 = (wxDC *) 0 ; | |
13358 | wxSize result; | |
13359 | PyObject * obj0 = 0 ; | |
13360 | char *kwnames[] = { | |
13361 | (char *) "self", NULL | |
13362 | }; | |
13363 | ||
13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13367 | { |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = ((wxDC const *)arg1)->GetPPI(); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | { | |
13375 | wxSize * resultptr; | |
13376 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 13377 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13378 | } |
13379 | return resultobj; | |
13380 | fail: | |
13381 | return NULL; | |
13382 | } | |
13383 | ||
13384 | ||
2f4c0a16 | 13385 | static PyObject *_wrap_DC_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13386 | PyObject *resultobj; |
13387 | wxDC *arg1 = (wxDC *) 0 ; | |
13388 | bool result; | |
13389 | PyObject * obj0 = 0 ; | |
13390 | char *kwnames[] = { | |
13391 | (char *) "self", NULL | |
13392 | }; | |
13393 | ||
13394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13397 | { |
13398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13399 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13400 | ||
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
02a34c4c | 13404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13405 | return resultobj; |
13406 | fail: | |
13407 | return NULL; | |
13408 | } | |
13409 | ||
13410 | ||
2f4c0a16 | 13411 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13412 | PyObject *resultobj; |
13413 | wxDC *arg1 = (wxDC *) 0 ; | |
13414 | int result; | |
13415 | PyObject * obj0 = 0 ; | |
13416 | char *kwnames[] = { | |
13417 | (char *) "self", NULL | |
13418 | }; | |
13419 | ||
13420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13423 | { |
13424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13425 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13426 | ||
13427 | wxPyEndAllowThreads(__tstate); | |
13428 | if (PyErr_Occurred()) SWIG_fail; | |
13429 | } | |
2f4c0a16 | 13430 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13431 | return resultobj; |
13432 | fail: | |
13433 | return NULL; | |
13434 | } | |
13435 | ||
13436 | ||
2f4c0a16 | 13437 | static PyObject *_wrap_DC_GetBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13438 | PyObject *resultobj; |
13439 | wxDC *arg1 = (wxDC *) 0 ; | |
13440 | wxBrush *result; | |
13441 | PyObject * obj0 = 0 ; | |
13442 | char *kwnames[] = { | |
13443 | (char *) "self", NULL | |
13444 | }; | |
13445 | ||
13446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13449 | { |
13450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13451 | { | |
13452 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13453 | result = (wxBrush *) &_result_ref; | |
13454 | } | |
13455 | ||
13456 | wxPyEndAllowThreads(__tstate); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
13458 | } | |
2f4c0a16 | 13459 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
13460 | return resultobj; |
13461 | fail: | |
13462 | return NULL; | |
13463 | } | |
13464 | ||
13465 | ||
2f4c0a16 | 13466 | static PyObject *_wrap_DC_GetBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13467 | PyObject *resultobj; |
13468 | wxDC *arg1 = (wxDC *) 0 ; | |
13469 | wxBrush *result; | |
13470 | PyObject * obj0 = 0 ; | |
13471 | char *kwnames[] = { | |
13472 | (char *) "self", NULL | |
13473 | }; | |
13474 | ||
13475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13478 | { |
13479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13480 | { | |
13481 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13482 | result = (wxBrush *) &_result_ref; | |
13483 | } | |
13484 | ||
13485 | wxPyEndAllowThreads(__tstate); | |
13486 | if (PyErr_Occurred()) SWIG_fail; | |
13487 | } | |
2f4c0a16 | 13488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
13489 | return resultobj; |
13490 | fail: | |
13491 | return NULL; | |
13492 | } | |
13493 | ||
13494 | ||
2f4c0a16 | 13495 | static PyObject *_wrap_DC_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13496 | PyObject *resultobj; |
13497 | wxDC *arg1 = (wxDC *) 0 ; | |
13498 | wxFont *result; | |
13499 | PyObject * obj0 = 0 ; | |
13500 | char *kwnames[] = { | |
13501 | (char *) "self", NULL | |
13502 | }; | |
13503 | ||
13504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13507 | { |
13508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13509 | { | |
13510 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13511 | result = (wxFont *) &_result_ref; | |
13512 | } | |
13513 | ||
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
2f4c0a16 | 13517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
13518 | return resultobj; |
13519 | fail: | |
13520 | return NULL; | |
13521 | } | |
13522 | ||
13523 | ||
2f4c0a16 | 13524 | static PyObject *_wrap_DC_GetPen(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13525 | PyObject *resultobj; |
13526 | wxDC *arg1 = (wxDC *) 0 ; | |
13527 | wxPen *result; | |
13528 | PyObject * obj0 = 0 ; | |
13529 | char *kwnames[] = { | |
13530 | (char *) "self", NULL | |
13531 | }; | |
13532 | ||
13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13536 | { |
13537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13538 | { | |
13539 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13540 | result = (wxPen *) &_result_ref; | |
13541 | } | |
13542 | ||
13543 | wxPyEndAllowThreads(__tstate); | |
13544 | if (PyErr_Occurred()) SWIG_fail; | |
13545 | } | |
2f4c0a16 | 13546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
13547 | return resultobj; |
13548 | fail: | |
13549 | return NULL; | |
13550 | } | |
13551 | ||
13552 | ||
2f4c0a16 | 13553 | static PyObject *_wrap_DC_GetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13554 | PyObject *resultobj; |
13555 | wxDC *arg1 = (wxDC *) 0 ; | |
13556 | wxColour *result; | |
13557 | PyObject * obj0 = 0 ; | |
13558 | char *kwnames[] = { | |
13559 | (char *) "self", NULL | |
13560 | }; | |
13561 | ||
13562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13565 | { |
13566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13567 | { | |
13568 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13569 | result = (wxColour *) &_result_ref; | |
13570 | } | |
13571 | ||
13572 | wxPyEndAllowThreads(__tstate); | |
13573 | if (PyErr_Occurred()) SWIG_fail; | |
13574 | } | |
2f4c0a16 | 13575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
13576 | return resultobj; |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
2f4c0a16 | 13582 | static PyObject *_wrap_DC_GetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13583 | PyObject *resultobj; |
13584 | wxDC *arg1 = (wxDC *) 0 ; | |
13585 | wxColour *result; | |
13586 | PyObject * obj0 = 0 ; | |
13587 | char *kwnames[] = { | |
13588 | (char *) "self", NULL | |
13589 | }; | |
13590 | ||
13591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13596 | { | |
13597 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13598 | result = (wxColour *) &_result_ref; | |
13599 | } | |
13600 | ||
13601 | wxPyEndAllowThreads(__tstate); | |
13602 | if (PyErr_Occurred()) SWIG_fail; | |
13603 | } | |
2f4c0a16 | 13604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
13605 | return resultobj; |
13606 | fail: | |
13607 | return NULL; | |
13608 | } | |
13609 | ||
13610 | ||
2f4c0a16 | 13611 | static PyObject *_wrap_DC_SetTextForeground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13612 | PyObject *resultobj; |
13613 | wxDC *arg1 = (wxDC *) 0 ; | |
13614 | wxColour *arg2 = 0 ; | |
13615 | wxColour temp2 ; | |
13616 | PyObject * obj0 = 0 ; | |
13617 | PyObject * obj1 = 0 ; | |
13618 | char *kwnames[] = { | |
13619 | (char *) "self",(char *) "colour", NULL | |
13620 | }; | |
13621 | ||
13622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13625 | { |
13626 | arg2 = &temp2; | |
13627 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13628 | } | |
13629 | { | |
13630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13631 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13632 | ||
13633 | wxPyEndAllowThreads(__tstate); | |
13634 | if (PyErr_Occurred()) SWIG_fail; | |
13635 | } | |
13636 | Py_INCREF(Py_None); resultobj = Py_None; | |
13637 | return resultobj; | |
13638 | fail: | |
13639 | return NULL; | |
13640 | } | |
13641 | ||
13642 | ||
2f4c0a16 | 13643 | static PyObject *_wrap_DC_SetTextBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13644 | PyObject *resultobj; |
13645 | wxDC *arg1 = (wxDC *) 0 ; | |
13646 | wxColour *arg2 = 0 ; | |
13647 | wxColour temp2 ; | |
13648 | PyObject * obj0 = 0 ; | |
13649 | PyObject * obj1 = 0 ; | |
13650 | char *kwnames[] = { | |
13651 | (char *) "self",(char *) "colour", NULL | |
13652 | }; | |
13653 | ||
13654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13657 | { |
13658 | arg2 = &temp2; | |
13659 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13660 | } | |
13661 | { | |
13662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13663 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13664 | ||
13665 | wxPyEndAllowThreads(__tstate); | |
13666 | if (PyErr_Occurred()) SWIG_fail; | |
13667 | } | |
13668 | Py_INCREF(Py_None); resultobj = Py_None; | |
13669 | return resultobj; | |
13670 | fail: | |
13671 | return NULL; | |
13672 | } | |
13673 | ||
13674 | ||
2f4c0a16 | 13675 | static PyObject *_wrap_DC_GetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13676 | PyObject *resultobj; |
13677 | wxDC *arg1 = (wxDC *) 0 ; | |
13678 | int result; | |
13679 | PyObject * obj0 = 0 ; | |
13680 | char *kwnames[] = { | |
13681 | (char *) "self", NULL | |
13682 | }; | |
13683 | ||
13684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13687 | { |
13688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13689 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13690 | ||
13691 | wxPyEndAllowThreads(__tstate); | |
13692 | if (PyErr_Occurred()) SWIG_fail; | |
13693 | } | |
2f4c0a16 | 13694 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13695 | return resultobj; |
13696 | fail: | |
13697 | return NULL; | |
13698 | } | |
13699 | ||
13700 | ||
2f4c0a16 | 13701 | static PyObject *_wrap_DC_SetMapMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13702 | PyObject *resultobj; |
13703 | wxDC *arg1 = (wxDC *) 0 ; | |
13704 | int arg2 ; | |
13705 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13707 | char *kwnames[] = { |
13708 | (char *) "self",(char *) "mode", NULL | |
13709 | }; | |
13710 | ||
8edf1c75 | 13711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
13712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13714 | arg2 = (int) SWIG_AsInt(obj1); | |
13715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13716 | { |
13717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13718 | (arg1)->SetMapMode(arg2); | |
13719 | ||
13720 | wxPyEndAllowThreads(__tstate); | |
13721 | if (PyErr_Occurred()) SWIG_fail; | |
13722 | } | |
13723 | Py_INCREF(Py_None); resultobj = Py_None; | |
13724 | return resultobj; | |
13725 | fail: | |
13726 | return NULL; | |
13727 | } | |
13728 | ||
13729 | ||
2f4c0a16 | 13730 | static PyObject *_wrap_DC_GetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13731 | PyObject *resultobj; |
13732 | wxDC *arg1 = (wxDC *) 0 ; | |
13733 | double *arg2 = (double *) 0 ; | |
13734 | double *arg3 = (double *) 0 ; | |
13735 | double temp2 ; | |
13736 | double temp3 ; | |
13737 | PyObject * obj0 = 0 ; | |
13738 | char *kwnames[] = { | |
13739 | (char *) "self", NULL | |
13740 | }; | |
13741 | ||
13742 | arg2 = &temp2; | |
13743 | arg3 = &temp3; | |
13744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13747 | { |
13748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13749 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13750 | ||
13751 | wxPyEndAllowThreads(__tstate); | |
13752 | if (PyErr_Occurred()) SWIG_fail; | |
13753 | } | |
13754 | Py_INCREF(Py_None); resultobj = Py_None; | |
13755 | { | |
13756 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13757 | resultobj = t_output_helper(resultobj,o); | |
13758 | } | |
13759 | { | |
13760 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13761 | resultobj = t_output_helper(resultobj,o); | |
13762 | } | |
13763 | return resultobj; | |
13764 | fail: | |
13765 | return NULL; | |
13766 | } | |
13767 | ||
13768 | ||
2f4c0a16 | 13769 | static PyObject *_wrap_DC_SetUserScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13770 | PyObject *resultobj; |
13771 | wxDC *arg1 = (wxDC *) 0 ; | |
13772 | double arg2 ; | |
13773 | double arg3 ; | |
13774 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13775 | PyObject * obj1 = 0 ; |
13776 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13777 | char *kwnames[] = { |
13778 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13779 | }; | |
13780 | ||
8edf1c75 | 13781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13784 | arg2 = (double) SWIG_AsDouble(obj1); | |
13785 | if (PyErr_Occurred()) SWIG_fail; | |
13786 | arg3 = (double) SWIG_AsDouble(obj2); | |
13787 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13788 | { |
13789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13790 | (arg1)->SetUserScale(arg2,arg3); | |
13791 | ||
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
13795 | Py_INCREF(Py_None); resultobj = Py_None; | |
13796 | return resultobj; | |
13797 | fail: | |
13798 | return NULL; | |
13799 | } | |
13800 | ||
13801 | ||
2f4c0a16 | 13802 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13803 | PyObject *resultobj; |
13804 | wxDC *arg1 = (wxDC *) 0 ; | |
13805 | double *arg2 = (double *) 0 ; | |
13806 | double *arg3 = (double *) 0 ; | |
13807 | double temp2 ; | |
13808 | double temp3 ; | |
13809 | PyObject * obj0 = 0 ; | |
13810 | char *kwnames[] = { | |
13811 | (char *) "self", NULL | |
13812 | }; | |
13813 | ||
13814 | arg2 = &temp2; | |
13815 | arg3 = &temp3; | |
13816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13819 | { |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | (arg1)->GetLogicalScale(arg2,arg3); | |
13822 | ||
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | Py_INCREF(Py_None); resultobj = Py_None; | |
13827 | { | |
13828 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13829 | resultobj = t_output_helper(resultobj,o); | |
13830 | } | |
13831 | { | |
13832 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13833 | resultobj = t_output_helper(resultobj,o); | |
13834 | } | |
13835 | return resultobj; | |
13836 | fail: | |
13837 | return NULL; | |
13838 | } | |
13839 | ||
13840 | ||
2f4c0a16 | 13841 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13842 | PyObject *resultobj; |
13843 | wxDC *arg1 = (wxDC *) 0 ; | |
13844 | double arg2 ; | |
13845 | double arg3 ; | |
13846 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
13847 | PyObject * obj1 = 0 ; |
13848 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13849 | char *kwnames[] = { |
13850 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13851 | }; | |
13852 | ||
8edf1c75 | 13853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13856 | arg2 = (double) SWIG_AsDouble(obj1); | |
13857 | if (PyErr_Occurred()) SWIG_fail; | |
13858 | arg3 = (double) SWIG_AsDouble(obj2); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13860 | { |
13861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13862 | (arg1)->SetLogicalScale(arg2,arg3); | |
13863 | ||
13864 | wxPyEndAllowThreads(__tstate); | |
13865 | if (PyErr_Occurred()) SWIG_fail; | |
13866 | } | |
13867 | Py_INCREF(Py_None); resultobj = Py_None; | |
13868 | return resultobj; | |
13869 | fail: | |
13870 | return NULL; | |
13871 | } | |
13872 | ||
13873 | ||
2f4c0a16 | 13874 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13875 | PyObject *resultobj; |
13876 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 13877 | wxPoint result; |
d14a1e28 RD |
13878 | PyObject * obj0 = 0 ; |
13879 | char *kwnames[] = { | |
13880 | (char *) "self", NULL | |
13881 | }; | |
13882 | ||
44127b65 | 13883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
13884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13886 | { |
13887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13888 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
13889 | |
13890 | wxPyEndAllowThreads(__tstate); | |
13891 | if (PyErr_Occurred()) SWIG_fail; | |
13892 | } | |
d14a1e28 | 13893 | { |
44127b65 RD |
13894 | wxPoint * resultptr; |
13895 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 13896 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
13897 | } |
13898 | return resultobj; | |
13899 | fail: | |
13900 | return NULL; | |
13901 | } | |
13902 | ||
13903 | ||
2f4c0a16 | 13904 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13905 | PyObject *resultobj; |
13906 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
13907 | int *arg2 = (int *) 0 ; |
13908 | int *arg3 = (int *) 0 ; | |
13909 | int temp2 ; | |
13910 | int temp3 ; | |
d14a1e28 RD |
13911 | PyObject * obj0 = 0 ; |
13912 | char *kwnames[] = { | |
13913 | (char *) "self", NULL | |
13914 | }; | |
13915 | ||
44127b65 RD |
13916 | arg2 = &temp2; |
13917 | arg3 = &temp3; | |
13918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13921 | { |
13922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13923 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
13924 | |
13925 | wxPyEndAllowThreads(__tstate); | |
13926 | if (PyErr_Occurred()) SWIG_fail; | |
13927 | } | |
44127b65 | 13928 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 13929 | { |
44127b65 RD |
13930 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
13931 | resultobj = t_output_helper(resultobj,o); | |
13932 | } | |
13933 | { | |
13934 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13935 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
13936 | } |
13937 | return resultobj; | |
13938 | fail: | |
13939 | return NULL; | |
13940 | } | |
13941 | ||
13942 | ||
2f4c0a16 | 13943 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13944 | PyObject *resultobj; |
13945 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
13946 | int arg2 ; |
13947 | int arg3 ; | |
d14a1e28 | 13948 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
13949 | PyObject * obj1 = 0 ; |
13950 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13951 | char *kwnames[] = { |
13952 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13953 | }; | |
13954 | ||
8edf1c75 | 13955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13958 | arg2 = (int) SWIG_AsInt(obj1); | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | arg3 = (int) SWIG_AsInt(obj2); | |
13961 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13962 | { |
13963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13964 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
13965 | ||
13966 | wxPyEndAllowThreads(__tstate); | |
13967 | if (PyErr_Occurred()) SWIG_fail; | |
13968 | } | |
13969 | Py_INCREF(Py_None); resultobj = Py_None; | |
13970 | return resultobj; | |
13971 | fail: | |
13972 | return NULL; | |
13973 | } | |
13974 | ||
13975 | ||
2f4c0a16 | 13976 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13977 | PyObject *resultobj; |
13978 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 | 13979 | wxPoint result; |
d14a1e28 RD |
13980 | PyObject * obj0 = 0 ; |
13981 | char *kwnames[] = { | |
13982 | (char *) "self", NULL | |
13983 | }; | |
13984 | ||
44127b65 | 13985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
13986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13988 | { |
13989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 13990 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
13991 | |
13992 | wxPyEndAllowThreads(__tstate); | |
13993 | if (PyErr_Occurred()) SWIG_fail; | |
13994 | } | |
d14a1e28 | 13995 | { |
44127b65 RD |
13996 | wxPoint * resultptr; |
13997 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 13998 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
13999 | } |
14000 | return resultobj; | |
14001 | fail: | |
14002 | return NULL; | |
14003 | } | |
14004 | ||
14005 | ||
2f4c0a16 | 14006 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14007 | PyObject *resultobj; |
14008 | wxDC *arg1 = (wxDC *) 0 ; | |
44127b65 RD |
14009 | int *arg2 = (int *) 0 ; |
14010 | int *arg3 = (int *) 0 ; | |
14011 | int temp2 ; | |
14012 | int temp3 ; | |
d14a1e28 RD |
14013 | PyObject * obj0 = 0 ; |
14014 | char *kwnames[] = { | |
14015 | (char *) "self", NULL | |
14016 | }; | |
14017 | ||
44127b65 RD |
14018 | arg2 = &temp2; |
14019 | arg3 = &temp3; | |
14020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14023 | { |
14024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 14025 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14026 | |
14027 | wxPyEndAllowThreads(__tstate); | |
14028 | if (PyErr_Occurred()) SWIG_fail; | |
14029 | } | |
44127b65 | 14030 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14031 | { |
44127b65 RD |
14032 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14033 | resultobj = t_output_helper(resultobj,o); | |
14034 | } | |
14035 | { | |
14036 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14037 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14038 | } |
14039 | return resultobj; | |
14040 | fail: | |
14041 | return NULL; | |
14042 | } | |
14043 | ||
14044 | ||
2f4c0a16 | 14045 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14046 | PyObject *resultobj; |
14047 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14048 | int arg2 ; |
14049 | int arg3 ; | |
d14a1e28 | 14050 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14051 | PyObject * obj1 = 0 ; |
14052 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14053 | char *kwnames[] = { |
14054 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14055 | }; | |
14056 | ||
8edf1c75 | 14057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14060 | arg2 = (int) SWIG_AsInt(obj1); | |
14061 | if (PyErr_Occurred()) SWIG_fail; | |
14062 | arg3 = (int) SWIG_AsInt(obj2); | |
14063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14064 | { |
14065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14066 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14067 | ||
14068 | wxPyEndAllowThreads(__tstate); | |
14069 | if (PyErr_Occurred()) SWIG_fail; | |
14070 | } | |
14071 | Py_INCREF(Py_None); resultobj = Py_None; | |
14072 | return resultobj; | |
14073 | fail: | |
14074 | return NULL; | |
14075 | } | |
14076 | ||
14077 | ||
2f4c0a16 | 14078 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14079 | PyObject *resultobj; |
14080 | wxDC *arg1 = (wxDC *) 0 ; | |
14081 | bool arg2 ; | |
14082 | bool arg3 ; | |
14083 | PyObject * obj0 = 0 ; | |
14084 | PyObject * obj1 = 0 ; | |
14085 | PyObject * obj2 = 0 ; | |
14086 | char *kwnames[] = { | |
14087 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14088 | }; | |
14089 | ||
14090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14093 | arg2 = (bool) SWIG_AsBool(obj1); | |
14094 | if (PyErr_Occurred()) SWIG_fail; | |
14095 | arg3 = (bool) SWIG_AsBool(obj2); | |
14096 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14097 | { |
14098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14099 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14100 | ||
14101 | wxPyEndAllowThreads(__tstate); | |
14102 | if (PyErr_Occurred()) SWIG_fail; | |
14103 | } | |
14104 | Py_INCREF(Py_None); resultobj = Py_None; | |
14105 | return resultobj; | |
14106 | fail: | |
14107 | return NULL; | |
14108 | } | |
14109 | ||
14110 | ||
2f4c0a16 | 14111 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14112 | PyObject *resultobj; |
14113 | wxDC *arg1 = (wxDC *) 0 ; | |
14114 | int result; | |
14115 | PyObject * obj0 = 0 ; | |
14116 | char *kwnames[] = { | |
14117 | (char *) "self", NULL | |
14118 | }; | |
14119 | ||
14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14123 | { |
14124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14125 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14126 | ||
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
2f4c0a16 | 14130 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14131 | return resultobj; |
14132 | fail: | |
14133 | return NULL; | |
14134 | } | |
14135 | ||
14136 | ||
2f4c0a16 | 14137 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14138 | PyObject *resultobj; |
14139 | wxDC *arg1 = (wxDC *) 0 ; | |
14140 | int arg2 ; | |
14141 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14143 | char *kwnames[] = { |
14144 | (char *) "self",(char *) "function", NULL | |
14145 | }; | |
14146 | ||
8edf1c75 | 14147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14150 | arg2 = (int) SWIG_AsInt(obj1); | |
14151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14152 | { |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | (arg1)->SetLogicalFunction(arg2); | |
14155 | ||
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | Py_INCREF(Py_None); resultobj = Py_None; | |
14160 | return resultobj; | |
14161 | fail: | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
2f4c0a16 | 14166 | static PyObject *_wrap_DC_SetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14167 | PyObject *resultobj; |
14168 | wxDC *arg1 = (wxDC *) 0 ; | |
14169 | bool arg2 ; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | PyObject * obj1 = 0 ; | |
14172 | char *kwnames[] = { | |
14173 | (char *) "self",(char *) "opt", NULL | |
14174 | }; | |
14175 | ||
14176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14179 | arg2 = (bool) SWIG_AsBool(obj1); | |
14180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14181 | { |
14182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14183 | (arg1)->SetOptimization(arg2); | |
14184 | ||
14185 | wxPyEndAllowThreads(__tstate); | |
14186 | if (PyErr_Occurred()) SWIG_fail; | |
14187 | } | |
14188 | Py_INCREF(Py_None); resultobj = Py_None; | |
14189 | return resultobj; | |
14190 | fail: | |
14191 | return NULL; | |
14192 | } | |
14193 | ||
14194 | ||
2f4c0a16 | 14195 | static PyObject *_wrap_DC_GetOptimization(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14196 | PyObject *resultobj; |
14197 | wxDC *arg1 = (wxDC *) 0 ; | |
14198 | bool result; | |
14199 | PyObject * obj0 = 0 ; | |
14200 | char *kwnames[] = { | |
14201 | (char *) "self", NULL | |
14202 | }; | |
14203 | ||
14204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14207 | { |
14208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14209 | result = (bool)(arg1)->GetOptimization(); | |
14210 | ||
14211 | wxPyEndAllowThreads(__tstate); | |
14212 | if (PyErr_Occurred()) SWIG_fail; | |
14213 | } | |
02a34c4c | 14214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14215 | return resultobj; |
14216 | fail: | |
14217 | return NULL; | |
14218 | } | |
14219 | ||
14220 | ||
2f4c0a16 | 14221 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14222 | PyObject *resultobj; |
14223 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a RD |
14224 | int arg2 ; |
14225 | int arg3 ; | |
d14a1e28 | 14226 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
14227 | PyObject * obj1 = 0 ; |
14228 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14229 | char *kwnames[] = { |
14230 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14231 | }; | |
14232 | ||
8edf1c75 | 14233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
14234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14236 | arg2 = (int) SWIG_AsInt(obj1); | |
14237 | if (PyErr_Occurred()) SWIG_fail; | |
14238 | arg3 = (int) SWIG_AsInt(obj2); | |
14239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14240 | { |
14241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14242 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14243 | ||
14244 | wxPyEndAllowThreads(__tstate); | |
14245 | if (PyErr_Occurred()) SWIG_fail; | |
14246 | } | |
14247 | Py_INCREF(Py_None); resultobj = Py_None; | |
14248 | return resultobj; | |
14249 | fail: | |
14250 | return NULL; | |
14251 | } | |
14252 | ||
14253 | ||
2f4c0a16 | 14254 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14255 | PyObject *resultobj; |
14256 | wxDC *arg1 = (wxDC *) 0 ; | |
14257 | PyObject * obj0 = 0 ; | |
14258 | char *kwnames[] = { | |
14259 | (char *) "self", NULL | |
14260 | }; | |
14261 | ||
14262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14265 | { |
14266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14267 | (arg1)->ResetBoundingBox(); | |
14268 | ||
14269 | wxPyEndAllowThreads(__tstate); | |
14270 | if (PyErr_Occurred()) SWIG_fail; | |
14271 | } | |
14272 | Py_INCREF(Py_None); resultobj = Py_None; | |
14273 | return resultobj; | |
14274 | fail: | |
14275 | return NULL; | |
14276 | } | |
14277 | ||
14278 | ||
2f4c0a16 | 14279 | static PyObject *_wrap_DC_MinX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14280 | PyObject *resultobj; |
14281 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14282 | int result; |
d14a1e28 RD |
14283 | PyObject * obj0 = 0 ; |
14284 | char *kwnames[] = { | |
14285 | (char *) "self", NULL | |
14286 | }; | |
14287 | ||
14288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14291 | { |
14292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14293 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14294 | |
14295 | wxPyEndAllowThreads(__tstate); | |
14296 | if (PyErr_Occurred()) SWIG_fail; | |
14297 | } | |
2f4c0a16 | 14298 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14299 | return resultobj; |
14300 | fail: | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
2f4c0a16 | 14305 | static PyObject *_wrap_DC_MaxX(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14306 | PyObject *resultobj; |
14307 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14308 | int result; |
d14a1e28 RD |
14309 | PyObject * obj0 = 0 ; |
14310 | char *kwnames[] = { | |
14311 | (char *) "self", NULL | |
14312 | }; | |
14313 | ||
14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14317 | { |
14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14319 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14320 | |
14321 | wxPyEndAllowThreads(__tstate); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | } | |
2f4c0a16 | 14324 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14325 | return resultobj; |
14326 | fail: | |
14327 | return NULL; | |
14328 | } | |
14329 | ||
14330 | ||
2f4c0a16 | 14331 | static PyObject *_wrap_DC_MinY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14332 | PyObject *resultobj; |
14333 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14334 | int result; |
d14a1e28 RD |
14335 | PyObject * obj0 = 0 ; |
14336 | char *kwnames[] = { | |
14337 | (char *) "self", NULL | |
14338 | }; | |
14339 | ||
14340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14343 | { |
14344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14345 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14346 | |
14347 | wxPyEndAllowThreads(__tstate); | |
14348 | if (PyErr_Occurred()) SWIG_fail; | |
14349 | } | |
2f4c0a16 | 14350 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14351 | return resultobj; |
14352 | fail: | |
14353 | return NULL; | |
14354 | } | |
14355 | ||
14356 | ||
2f4c0a16 | 14357 | static PyObject *_wrap_DC_MaxY(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14358 | PyObject *resultobj; |
14359 | wxDC *arg1 = (wxDC *) 0 ; | |
423f194a | 14360 | int result; |
d14a1e28 RD |
14361 | PyObject * obj0 = 0 ; |
14362 | char *kwnames[] = { | |
14363 | (char *) "self", NULL | |
14364 | }; | |
14365 | ||
14366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14369 | { |
14370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 14371 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14372 | |
14373 | wxPyEndAllowThreads(__tstate); | |
14374 | if (PyErr_Occurred()) SWIG_fail; | |
14375 | } | |
2f4c0a16 | 14376 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14377 | return resultobj; |
14378 | fail: | |
14379 | return NULL; | |
14380 | } | |
14381 | ||
14382 | ||
2f4c0a16 | 14383 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14384 | PyObject *resultobj; |
14385 | wxDC *arg1 = (wxDC *) 0 ; | |
14386 | int *arg2 = (int *) 0 ; | |
14387 | int *arg3 = (int *) 0 ; | |
14388 | int *arg4 = (int *) 0 ; | |
14389 | int *arg5 = (int *) 0 ; | |
14390 | int temp2 ; | |
14391 | int temp3 ; | |
14392 | int temp4 ; | |
14393 | int temp5 ; | |
14394 | PyObject * obj0 = 0 ; | |
14395 | char *kwnames[] = { | |
14396 | (char *) "self", NULL | |
14397 | }; | |
14398 | ||
14399 | arg2 = &temp2; | |
14400 | arg3 = &temp3; | |
14401 | arg4 = &temp4; | |
14402 | arg5 = &temp5; | |
14403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14406 | { |
14407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14408 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14409 | ||
14410 | wxPyEndAllowThreads(__tstate); | |
14411 | if (PyErr_Occurred()) SWIG_fail; | |
14412 | } | |
14413 | Py_INCREF(Py_None); resultobj = Py_None; | |
14414 | { | |
14415 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14416 | resultobj = t_output_helper(resultobj,o); | |
14417 | } | |
14418 | { | |
14419 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14420 | resultobj = t_output_helper(resultobj,o); | |
14421 | } | |
14422 | { | |
14423 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14424 | resultobj = t_output_helper(resultobj,o); | |
14425 | } | |
14426 | { | |
14427 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14428 | resultobj = t_output_helper(resultobj,o); | |
14429 | } | |
14430 | return resultobj; | |
14431 | fail: | |
14432 | return NULL; | |
14433 | } | |
14434 | ||
14435 | ||
2f4c0a16 | 14436 | static PyObject *_wrap_DC__DrawPointList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14437 | PyObject *resultobj; |
14438 | wxDC *arg1 = (wxDC *) 0 ; | |
14439 | PyObject *arg2 = (PyObject *) 0 ; | |
14440 | PyObject *arg3 = (PyObject *) 0 ; | |
14441 | PyObject *arg4 = (PyObject *) 0 ; | |
14442 | PyObject *result; | |
14443 | PyObject * obj0 = 0 ; | |
14444 | PyObject * obj1 = 0 ; | |
14445 | PyObject * obj2 = 0 ; | |
14446 | PyObject * obj3 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
14452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14454 | arg2 = obj1; |
14455 | arg3 = obj2; | |
14456 | arg4 = obj3; | |
14457 | { | |
14458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14459 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14460 | ||
14461 | wxPyEndAllowThreads(__tstate); | |
14462 | if (PyErr_Occurred()) SWIG_fail; | |
14463 | } | |
14464 | resultobj = result; | |
14465 | return resultobj; | |
14466 | fail: | |
14467 | return NULL; | |
14468 | } | |
14469 | ||
14470 | ||
2f4c0a16 | 14471 | static PyObject *_wrap_DC__DrawLineList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14472 | PyObject *resultobj; |
14473 | wxDC *arg1 = (wxDC *) 0 ; | |
14474 | PyObject *arg2 = (PyObject *) 0 ; | |
14475 | PyObject *arg3 = (PyObject *) 0 ; | |
14476 | PyObject *arg4 = (PyObject *) 0 ; | |
14477 | PyObject *result; | |
14478 | PyObject * obj0 = 0 ; | |
14479 | PyObject * obj1 = 0 ; | |
14480 | PyObject * obj2 = 0 ; | |
14481 | PyObject * obj3 = 0 ; | |
14482 | char *kwnames[] = { | |
14483 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14484 | }; | |
14485 | ||
14486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
14487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14489 | arg2 = obj1; |
14490 | arg3 = obj2; | |
14491 | arg4 = obj3; | |
14492 | { | |
14493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14494 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14495 | ||
14496 | wxPyEndAllowThreads(__tstate); | |
14497 | if (PyErr_Occurred()) SWIG_fail; | |
14498 | } | |
14499 | resultobj = result; | |
14500 | return resultobj; | |
14501 | fail: | |
14502 | return NULL; | |
14503 | } | |
14504 | ||
14505 | ||
2f4c0a16 | 14506 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14507 | PyObject *resultobj; |
14508 | wxDC *arg1 = (wxDC *) 0 ; | |
14509 | PyObject *arg2 = (PyObject *) 0 ; | |
14510 | PyObject *arg3 = (PyObject *) 0 ; | |
14511 | PyObject *arg4 = (PyObject *) 0 ; | |
14512 | PyObject *result; | |
14513 | PyObject * obj0 = 0 ; | |
14514 | PyObject * obj1 = 0 ; | |
14515 | PyObject * obj2 = 0 ; | |
14516 | PyObject * obj3 = 0 ; | |
14517 | char *kwnames[] = { | |
14518 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14519 | }; | |
14520 | ||
14521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
14522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14524 | arg2 = obj1; |
14525 | arg3 = obj2; | |
14526 | arg4 = obj3; | |
14527 | { | |
14528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14529 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14530 | ||
14531 | wxPyEndAllowThreads(__tstate); | |
14532 | if (PyErr_Occurred()) SWIG_fail; | |
14533 | } | |
14534 | resultobj = result; | |
14535 | return resultobj; | |
14536 | fail: | |
14537 | return NULL; | |
14538 | } | |
14539 | ||
14540 | ||
2f4c0a16 | 14541 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14542 | PyObject *resultobj; |
14543 | wxDC *arg1 = (wxDC *) 0 ; | |
14544 | PyObject *arg2 = (PyObject *) 0 ; | |
14545 | PyObject *arg3 = (PyObject *) 0 ; | |
14546 | PyObject *arg4 = (PyObject *) 0 ; | |
14547 | PyObject *result; | |
14548 | PyObject * obj0 = 0 ; | |
14549 | PyObject * obj1 = 0 ; | |
14550 | PyObject * obj2 = 0 ; | |
14551 | PyObject * obj3 = 0 ; | |
14552 | char *kwnames[] = { | |
14553 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14554 | }; | |
14555 | ||
14556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
14557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14559 | arg2 = obj1; |
14560 | arg3 = obj2; | |
14561 | arg4 = obj3; | |
14562 | { | |
14563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14564 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14565 | ||
14566 | wxPyEndAllowThreads(__tstate); | |
14567 | if (PyErr_Occurred()) SWIG_fail; | |
14568 | } | |
14569 | resultobj = result; | |
14570 | return resultobj; | |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
2f4c0a16 | 14576 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14577 | PyObject *resultobj; |
14578 | wxDC *arg1 = (wxDC *) 0 ; | |
14579 | PyObject *arg2 = (PyObject *) 0 ; | |
14580 | PyObject *arg3 = (PyObject *) 0 ; | |
14581 | PyObject *arg4 = (PyObject *) 0 ; | |
14582 | PyObject *result; | |
14583 | PyObject * obj0 = 0 ; | |
14584 | PyObject * obj1 = 0 ; | |
14585 | PyObject * obj2 = 0 ; | |
14586 | PyObject * obj3 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
14592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14594 | arg2 = obj1; |
14595 | arg3 = obj2; | |
14596 | arg4 = obj3; | |
14597 | { | |
14598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14599 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14600 | ||
14601 | wxPyEndAllowThreads(__tstate); | |
14602 | if (PyErr_Occurred()) SWIG_fail; | |
14603 | } | |
14604 | resultobj = result; | |
14605 | return resultobj; | |
14606 | fail: | |
14607 | return NULL; | |
14608 | } | |
14609 | ||
14610 | ||
2f4c0a16 | 14611 | static PyObject *_wrap_DC__DrawTextList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14612 | PyObject *resultobj; |
14613 | wxDC *arg1 = (wxDC *) 0 ; | |
14614 | PyObject *arg2 = (PyObject *) 0 ; | |
14615 | PyObject *arg3 = (PyObject *) 0 ; | |
14616 | PyObject *arg4 = (PyObject *) 0 ; | |
14617 | PyObject *arg5 = (PyObject *) 0 ; | |
14618 | PyObject *result; | |
14619 | PyObject * obj0 = 0 ; | |
14620 | PyObject * obj1 = 0 ; | |
14621 | PyObject * obj2 = 0 ; | |
14622 | PyObject * obj3 = 0 ; | |
14623 | PyObject * obj4 = 0 ; | |
14624 | char *kwnames[] = { | |
14625 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14626 | }; | |
14627 | ||
14628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
14629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14631 | arg2 = obj1; |
14632 | arg3 = obj2; | |
14633 | arg4 = obj3; | |
14634 | arg5 = obj4; | |
14635 | { | |
14636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14637 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14638 | ||
14639 | wxPyEndAllowThreads(__tstate); | |
14640 | if (PyErr_Occurred()) SWIG_fail; | |
14641 | } | |
14642 | resultobj = result; | |
14643 | return resultobj; | |
14644 | fail: | |
14645 | return NULL; | |
14646 | } | |
14647 | ||
14648 | ||
2f4c0a16 | 14649 | static PyObject * DC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14650 | PyObject *obj; |
14651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14652 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14653 | Py_INCREF(obj); | |
14654 | return Py_BuildValue((char *)""); | |
14655 | } | |
2f4c0a16 | 14656 | static PyObject *_wrap_new_MemoryDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14657 | PyObject *resultobj; |
14658 | wxMemoryDC *result; | |
14659 | char *kwnames[] = { | |
14660 | NULL | |
14661 | }; | |
14662 | ||
14663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14664 | { | |
14665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14666 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14667 | ||
14668 | wxPyEndAllowThreads(__tstate); | |
14669 | if (PyErr_Occurred()) SWIG_fail; | |
14670 | } | |
2f4c0a16 | 14671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
14672 | return resultobj; |
14673 | fail: | |
14674 | return NULL; | |
14675 | } | |
14676 | ||
14677 | ||
2f4c0a16 | 14678 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14679 | PyObject *resultobj; |
14680 | wxDC *arg1 = (wxDC *) 0 ; | |
14681 | wxMemoryDC *result; | |
14682 | PyObject * obj0 = 0 ; | |
14683 | char *kwnames[] = { | |
14684 | (char *) "oldDC", NULL | |
14685 | }; | |
14686 | ||
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14690 | { |
14691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14692 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14693 | ||
14694 | wxPyEndAllowThreads(__tstate); | |
14695 | if (PyErr_Occurred()) SWIG_fail; | |
14696 | } | |
2f4c0a16 | 14697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
14698 | return resultobj; |
14699 | fail: | |
14700 | return NULL; | |
14701 | } | |
14702 | ||
14703 | ||
2f4c0a16 | 14704 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14705 | PyObject *resultobj; |
14706 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14707 | wxBitmap *arg2 = 0 ; | |
14708 | PyObject * obj0 = 0 ; | |
14709 | PyObject * obj1 = 0 ; | |
14710 | char *kwnames[] = { | |
14711 | (char *) "self",(char *) "bitmap", NULL | |
14712 | }; | |
14713 | ||
14714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, |
14716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
14718 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14719 | SWIG_fail; | |
d14a1e28 | 14720 | if (arg2 == NULL) { |
2f4c0a16 RD |
14721 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14722 | SWIG_fail; | |
d14a1e28 RD |
14723 | } |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14727 | ||
14728 | wxPyEndAllowThreads(__tstate); | |
14729 | if (PyErr_Occurred()) SWIG_fail; | |
14730 | } | |
14731 | Py_INCREF(Py_None); resultobj = Py_None; | |
14732 | return resultobj; | |
14733 | fail: | |
14734 | return NULL; | |
14735 | } | |
14736 | ||
14737 | ||
2f4c0a16 | 14738 | static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14739 | PyObject *obj; |
14740 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14741 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14742 | Py_INCREF(obj); | |
14743 | return Py_BuildValue((char *)""); | |
14744 | } | |
2f4c0a16 | 14745 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) { |
d14a1e28 RD |
14746 | PyObject *resultobj; |
14747 | wxDC *arg1 = (wxDC *) 0 ; | |
14748 | wxBitmap *arg2 = 0 ; | |
14749 | wxBufferedDC *result; | |
14750 | PyObject * obj0 = 0 ; | |
14751 | PyObject * obj1 = 0 ; | |
d14a1e28 | 14752 | |
0ffb2aa6 | 14753 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
14757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14758 | SWIG_fail; | |
d14a1e28 | 14759 | if (arg2 == NULL) { |
2f4c0a16 RD |
14760 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14761 | SWIG_fail; | |
d14a1e28 RD |
14762 | } |
14763 | { | |
14764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14765 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
14766 | ||
14767 | wxPyEndAllowThreads(__tstate); | |
14768 | if (PyErr_Occurred()) SWIG_fail; | |
14769 | } | |
2f4c0a16 | 14770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
14771 | return resultobj; |
14772 | fail: | |
14773 | return NULL; | |
14774 | } | |
14775 | ||
14776 | ||
2f4c0a16 | 14777 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) { |
d14a1e28 RD |
14778 | PyObject *resultobj; |
14779 | wxDC *arg1 = (wxDC *) 0 ; | |
14780 | wxSize *arg2 = 0 ; | |
14781 | wxBufferedDC *result; | |
14782 | wxSize temp2 ; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | PyObject * obj1 = 0 ; | |
0ffb2aa6 | 14785 | |
38f59159 | 14786 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0ffb2aa6 RD |
14789 | { |
14790 | arg2 = &temp2; | |
14791 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14792 | } | |
0ffb2aa6 RD |
14793 | { |
14794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14795 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
0ffb2aa6 RD |
14796 | |
14797 | wxPyEndAllowThreads(__tstate); | |
14798 | if (PyErr_Occurred()) SWIG_fail; | |
14799 | } | |
2f4c0a16 | 14800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
0ffb2aa6 RD |
14801 | return resultobj; |
14802 | fail: | |
14803 | return NULL; | |
14804 | } | |
14805 | ||
14806 | ||
14807 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
14808 | int argc; | |
38f59159 | 14809 | PyObject *argv[3]; |
0ffb2aa6 RD |
14810 | int ii; |
14811 | ||
14812 | argc = PyObject_Length(args); | |
38f59159 | 14813 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
0ffb2aa6 RD |
14814 | argv[ii] = PyTuple_GetItem(args,ii); |
14815 | } | |
14816 | if (argc == 2) { | |
14817 | int _v; | |
14818 | { | |
14819 | void *ptr; | |
2f4c0a16 | 14820 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
0ffb2aa6 RD |
14821 | _v = 0; |
14822 | PyErr_Clear(); | |
14823 | } else { | |
14824 | _v = 1; | |
14825 | } | |
14826 | } | |
14827 | if (_v) { | |
14828 | { | |
14829 | void *ptr; | |
2f4c0a16 | 14830 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { |
0ffb2aa6 RD |
14831 | _v = 0; |
14832 | PyErr_Clear(); | |
14833 | } else { | |
14834 | _v = 1; | |
14835 | } | |
14836 | } | |
14837 | if (_v) { | |
14838 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
14839 | } | |
14840 | } | |
14841 | } | |
38f59159 | 14842 | if (argc == 2) { |
0ffb2aa6 RD |
14843 | int _v; |
14844 | { | |
14845 | void *ptr; | |
2f4c0a16 | 14846 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
0ffb2aa6 RD |
14847 | _v = 0; |
14848 | PyErr_Clear(); | |
14849 | } else { | |
14850 | _v = 1; | |
14851 | } | |
14852 | } | |
14853 | if (_v) { | |
14854 | { | |
14855 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
14856 | } | |
14857 | if (_v) { | |
38f59159 | 14858 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
0ffb2aa6 RD |
14859 | } |
14860 | } | |
14861 | } | |
d14a1e28 | 14862 | |
0ffb2aa6 RD |
14863 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); |
14864 | return NULL; | |
14865 | } | |
14866 | ||
14867 | ||
2f4c0a16 | 14868 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *, PyObject *args) { |
0ffb2aa6 RD |
14869 | PyObject *resultobj; |
14870 | wxDC *arg1 = (wxDC *) 0 ; | |
14871 | wxSize *arg2 = 0 ; | |
0ffb2aa6 RD |
14872 | wxBufferedDC *result; |
14873 | wxSize temp2 ; | |
14874 | PyObject * obj0 = 0 ; | |
14875 | PyObject * obj1 = 0 ; | |
0ffb2aa6 | 14876 | |
38f59159 | 14877 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14880 | { |
14881 | arg2 = &temp2; | |
14882 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14883 | } | |
14884 | { | |
14885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14886 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
14887 | |
14888 | wxPyEndAllowThreads(__tstate); | |
14889 | if (PyErr_Occurred()) SWIG_fail; | |
14890 | } | |
2f4c0a16 | 14891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
14892 | return resultobj; |
14893 | fail: | |
14894 | return NULL; | |
14895 | } | |
14896 | ||
14897 | ||
2f4c0a16 | 14898 | static PyObject *_wrap_delete_BufferedDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14899 | PyObject *resultobj; |
14900 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
14901 | PyObject * obj0 = 0 ; | |
14902 | char *kwnames[] = { | |
14903 | (char *) "self", NULL | |
14904 | }; | |
14905 | ||
38f59159 | 14906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
14907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
14908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14909 | { |
14910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14911 | delete arg1; |
d14a1e28 RD |
14912 | |
14913 | wxPyEndAllowThreads(__tstate); | |
14914 | if (PyErr_Occurred()) SWIG_fail; | |
14915 | } | |
14916 | Py_INCREF(Py_None); resultobj = Py_None; | |
14917 | return resultobj; | |
14918 | fail: | |
14919 | return NULL; | |
14920 | } | |
14921 | ||
14922 | ||
2f4c0a16 | 14923 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 14924 | PyObject *resultobj; |
38f59159 | 14925 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
d14a1e28 | 14926 | PyObject * obj0 = 0 ; |
38f59159 RD |
14927 | char *kwnames[] = { |
14928 | (char *) "self", NULL | |
14929 | }; | |
d14a1e28 | 14930 | |
38f59159 | 14931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
14932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
14933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
0ffb2aa6 RD |
14934 | { |
14935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14936 | (arg1)->UnMask(); |
0ffb2aa6 RD |
14937 | |
14938 | wxPyEndAllowThreads(__tstate); | |
14939 | if (PyErr_Occurred()) SWIG_fail; | |
14940 | } | |
38f59159 | 14941 | Py_INCREF(Py_None); resultobj = Py_None; |
0ffb2aa6 RD |
14942 | return resultobj; |
14943 | fail: | |
14944 | return NULL; | |
14945 | } | |
14946 | ||
14947 | ||
2f4c0a16 | 14948 | static PyObject * BufferedDC_swigregister(PyObject *, PyObject *args) { |
38f59159 RD |
14949 | PyObject *obj; |
14950 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14951 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
14952 | Py_INCREF(obj); | |
14953 | return Py_BuildValue((char *)""); | |
14954 | } | |
2f4c0a16 | 14955 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
0ffb2aa6 RD |
14956 | PyObject *resultobj; |
14957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38f59159 RD |
14958 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
14959 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
0ffb2aa6 RD |
14960 | wxBufferedPaintDC *result; |
14961 | PyObject * obj0 = 0 ; | |
14962 | PyObject * obj1 = 0 ; | |
38f59159 RD |
14963 | char *kwnames[] = { |
14964 | (char *) "window",(char *) "buffer", NULL | |
14965 | }; | |
0ffb2aa6 | 14966 | |
38f59159 | 14967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14970 | if (obj1) { |
2f4c0a16 RD |
14971 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
14972 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14973 | SWIG_fail; | |
38f59159 | 14974 | if (arg2 == NULL) { |
2f4c0a16 RD |
14975 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14976 | SWIG_fail; | |
d14a1e28 RD |
14977 | } |
14978 | } | |
14979 | { | |
14980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38f59159 | 14981 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
14982 | |
14983 | wxPyEndAllowThreads(__tstate); | |
14984 | if (PyErr_Occurred()) SWIG_fail; | |
14985 | } | |
2f4c0a16 | 14986 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
14987 | return resultobj; |
14988 | fail: | |
14989 | return NULL; | |
14990 | } | |
14991 | ||
14992 | ||
2f4c0a16 | 14993 | static PyObject * BufferedPaintDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
14994 | PyObject *obj; |
14995 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14996 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
14997 | Py_INCREF(obj); | |
14998 | return Py_BuildValue((char *)""); | |
14999 | } | |
2f4c0a16 | 15000 | static PyObject *_wrap_new_ScreenDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15001 | PyObject *resultobj; |
15002 | wxScreenDC *result; | |
15003 | char *kwnames[] = { | |
15004 | NULL | |
15005 | }; | |
15006 | ||
15007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | result = (wxScreenDC *)new wxScreenDC(); | |
15011 | ||
15012 | wxPyEndAllowThreads(__tstate); | |
15013 | if (PyErr_Occurred()) SWIG_fail; | |
15014 | } | |
2f4c0a16 | 15015 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
15016 | return resultobj; |
15017 | fail: | |
15018 | return NULL; | |
15019 | } | |
15020 | ||
15021 | ||
2f4c0a16 | 15022 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15023 | PyObject *resultobj; |
15024 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15025 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15026 | bool result; | |
15027 | PyObject * obj0 = 0 ; | |
15028 | PyObject * obj1 = 0 ; | |
15029 | char *kwnames[] = { | |
15030 | (char *) "self",(char *) "window", NULL | |
15031 | }; | |
15032 | ||
15033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15036 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15038 | { |
15039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15040 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15041 | ||
15042 | wxPyEndAllowThreads(__tstate); | |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
02a34c4c | 15045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15046 | return resultobj; |
15047 | fail: | |
15048 | return NULL; | |
15049 | } | |
15050 | ||
15051 | ||
2f4c0a16 | 15052 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15053 | PyObject *resultobj; |
15054 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15055 | wxRect *arg2 = (wxRect *) NULL ; | |
15056 | bool result; | |
15057 | PyObject * obj0 = 0 ; | |
15058 | PyObject * obj1 = 0 ; | |
15059 | char *kwnames[] = { | |
15060 | (char *) "self",(char *) "rect", NULL | |
15061 | }; | |
15062 | ||
15063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15066 | if (obj1) { |
2f4c0a16 RD |
15067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, |
15068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15069 | } |
15070 | { | |
15071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15072 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15073 | ||
15074 | wxPyEndAllowThreads(__tstate); | |
15075 | if (PyErr_Occurred()) SWIG_fail; | |
15076 | } | |
02a34c4c | 15077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15078 | return resultobj; |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
2f4c0a16 | 15084 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15085 | PyObject *resultobj; |
15086 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15087 | bool result; | |
15088 | PyObject * obj0 = 0 ; | |
15089 | char *kwnames[] = { | |
15090 | (char *) "self", NULL | |
15091 | }; | |
15092 | ||
15093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15096 | { |
15097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15098 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15099 | ||
15100 | wxPyEndAllowThreads(__tstate); | |
15101 | if (PyErr_Occurred()) SWIG_fail; | |
15102 | } | |
02a34c4c | 15103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15104 | return resultobj; |
15105 | fail: | |
15106 | return NULL; | |
15107 | } | |
15108 | ||
15109 | ||
2f4c0a16 | 15110 | static PyObject * ScreenDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15111 | PyObject *obj; |
15112 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15113 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15114 | Py_INCREF(obj); | |
15115 | return Py_BuildValue((char *)""); | |
15116 | } | |
2f4c0a16 | 15117 | static PyObject *_wrap_new_ClientDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15118 | PyObject *resultobj; |
15119 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15120 | wxClientDC *result; | |
15121 | PyObject * obj0 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "win", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15129 | { |
15130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15131 | result = (wxClientDC *)new wxClientDC(arg1); | |
15132 | ||
15133 | wxPyEndAllowThreads(__tstate); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
15135 | } | |
2f4c0a16 | 15136 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
15137 | return resultobj; |
15138 | fail: | |
15139 | return NULL; | |
15140 | } | |
15141 | ||
15142 | ||
2f4c0a16 | 15143 | static PyObject * ClientDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15144 | PyObject *obj; |
15145 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15146 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15147 | Py_INCREF(obj); | |
15148 | return Py_BuildValue((char *)""); | |
15149 | } | |
2f4c0a16 | 15150 | static PyObject *_wrap_new_PaintDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15151 | PyObject *resultobj; |
15152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15153 | wxPaintDC *result; | |
15154 | PyObject * obj0 = 0 ; | |
15155 | char *kwnames[] = { | |
15156 | (char *) "win", NULL | |
15157 | }; | |
15158 | ||
15159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15162 | { |
15163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15164 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15165 | ||
15166 | wxPyEndAllowThreads(__tstate); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | } | |
2f4c0a16 | 15169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
15170 | return resultobj; |
15171 | fail: | |
15172 | return NULL; | |
15173 | } | |
15174 | ||
15175 | ||
2f4c0a16 | 15176 | static PyObject * PaintDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15177 | PyObject *obj; |
15178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15179 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15180 | Py_INCREF(obj); | |
15181 | return Py_BuildValue((char *)""); | |
15182 | } | |
2f4c0a16 | 15183 | static PyObject *_wrap_new_WindowDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15184 | PyObject *resultobj; |
15185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15186 | wxWindowDC *result; | |
15187 | PyObject * obj0 = 0 ; | |
15188 | char *kwnames[] = { | |
15189 | (char *) "win", NULL | |
15190 | }; | |
15191 | ||
15192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15195 | { |
15196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15197 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15198 | ||
15199 | wxPyEndAllowThreads(__tstate); | |
15200 | if (PyErr_Occurred()) SWIG_fail; | |
15201 | } | |
2f4c0a16 | 15202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
15203 | return resultobj; |
15204 | fail: | |
15205 | return NULL; | |
15206 | } | |
15207 | ||
15208 | ||
2f4c0a16 | 15209 | static PyObject * WindowDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15210 | PyObject *obj; |
15211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15212 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15213 | Py_INCREF(obj); | |
15214 | return Py_BuildValue((char *)""); | |
15215 | } | |
2f4c0a16 | 15216 | static PyObject *_wrap_new_MirrorDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15217 | PyObject *resultobj; |
15218 | wxDC *arg1 = 0 ; | |
15219 | bool arg2 ; | |
15220 | wxMirrorDC *result; | |
15221 | PyObject * obj0 = 0 ; | |
15222 | PyObject * obj1 = 0 ; | |
15223 | char *kwnames[] = { | |
15224 | (char *) "dc",(char *) "mirror", NULL | |
15225 | }; | |
15226 | ||
15227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15230 | SWIG_fail; | |
d14a1e28 | 15231 | if (arg1 == NULL) { |
2f4c0a16 RD |
15232 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15233 | SWIG_fail; | |
2dbef272 | 15234 | } |
2f4c0a16 RD |
15235 | arg2 = (bool) SWIG_AsBool(obj1); |
15236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15237 | { |
15238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15239 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15240 | ||
15241 | wxPyEndAllowThreads(__tstate); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | } | |
2f4c0a16 | 15244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
d14a1e28 RD |
15245 | return resultobj; |
15246 | fail: | |
15247 | return NULL; | |
15248 | } | |
15249 | ||
15250 | ||
2f4c0a16 | 15251 | static PyObject * MirrorDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15252 | PyObject *obj; |
15253 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15254 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15255 | Py_INCREF(obj); | |
15256 | return Py_BuildValue((char *)""); | |
15257 | } | |
2f4c0a16 | 15258 | static PyObject *_wrap_new_PostScriptDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15259 | PyObject *resultobj; |
15260 | wxPrintData *arg1 = 0 ; | |
15261 | wxPostScriptDC *result; | |
15262 | PyObject * obj0 = 0 ; | |
15263 | char *kwnames[] = { | |
15264 | (char *) "printData", NULL | |
15265 | }; | |
15266 | ||
15267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15269 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15270 | SWIG_fail; | |
d14a1e28 | 15271 | if (arg1 == NULL) { |
2f4c0a16 RD |
15272 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15273 | SWIG_fail; | |
d14a1e28 RD |
15274 | } |
15275 | { | |
15276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15277 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15278 | ||
15279 | wxPyEndAllowThreads(__tstate); | |
15280 | if (PyErr_Occurred()) SWIG_fail; | |
15281 | } | |
2f4c0a16 | 15282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
15283 | return resultobj; |
15284 | fail: | |
15285 | return NULL; | |
15286 | } | |
15287 | ||
15288 | ||
2f4c0a16 | 15289 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15290 | PyObject *resultobj; |
15291 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15292 | wxPrintData *result; | |
15293 | PyObject * obj0 = 0 ; | |
15294 | char *kwnames[] = { | |
15295 | (char *) "self", NULL | |
15296 | }; | |
15297 | ||
15298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
15300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15301 | { |
15302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15303 | { | |
15304 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15305 | result = (wxPrintData *) &_result_ref; | |
15306 | } | |
15307 | ||
15308 | wxPyEndAllowThreads(__tstate); | |
15309 | if (PyErr_Occurred()) SWIG_fail; | |
15310 | } | |
2f4c0a16 | 15311 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
15312 | return resultobj; |
15313 | fail: | |
15314 | return NULL; | |
15315 | } | |
15316 | ||
15317 | ||
2f4c0a16 | 15318 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15319 | PyObject *resultobj; |
15320 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15321 | wxPrintData *arg2 = 0 ; | |
15322 | PyObject * obj0 = 0 ; | |
15323 | PyObject * obj1 = 0 ; | |
15324 | char *kwnames[] = { | |
15325 | (char *) "self",(char *) "data", NULL | |
15326 | }; | |
15327 | ||
15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
15330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
15332 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15333 | SWIG_fail; | |
d14a1e28 | 15334 | if (arg2 == NULL) { |
2f4c0a16 RD |
15335 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15336 | SWIG_fail; | |
d14a1e28 RD |
15337 | } |
15338 | { | |
15339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15340 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15341 | ||
15342 | wxPyEndAllowThreads(__tstate); | |
15343 | if (PyErr_Occurred()) SWIG_fail; | |
15344 | } | |
15345 | Py_INCREF(Py_None); resultobj = Py_None; | |
15346 | return resultobj; | |
15347 | fail: | |
15348 | return NULL; | |
15349 | } | |
15350 | ||
15351 | ||
2f4c0a16 | 15352 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15353 | PyObject *resultobj; |
15354 | int arg1 ; | |
8edf1c75 | 15355 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15356 | char *kwnames[] = { |
15357 | (char *) "ppi", NULL | |
15358 | }; | |
15359 | ||
8edf1c75 | 15360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
15361 | arg1 = (int) SWIG_AsInt(obj0); |
15362 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15363 | { |
15364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15365 | wxPostScriptDC::SetResolution(arg1); | |
15366 | ||
15367 | wxPyEndAllowThreads(__tstate); | |
15368 | if (PyErr_Occurred()) SWIG_fail; | |
15369 | } | |
15370 | Py_INCREF(Py_None); resultobj = Py_None; | |
15371 | return resultobj; | |
15372 | fail: | |
15373 | return NULL; | |
15374 | } | |
15375 | ||
15376 | ||
2f4c0a16 | 15377 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15378 | PyObject *resultobj; |
15379 | int result; | |
15380 | char *kwnames[] = { | |
15381 | NULL | |
15382 | }; | |
15383 | ||
15384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15385 | { | |
15386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15387 | result = (int)wxPostScriptDC::GetResolution(); | |
15388 | ||
15389 | wxPyEndAllowThreads(__tstate); | |
15390 | if (PyErr_Occurred()) SWIG_fail; | |
15391 | } | |
2f4c0a16 | 15392 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15393 | return resultobj; |
15394 | fail: | |
15395 | return NULL; | |
15396 | } | |
15397 | ||
15398 | ||
2f4c0a16 | 15399 | static PyObject * PostScriptDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15400 | PyObject *obj; |
15401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15402 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15403 | Py_INCREF(obj); | |
15404 | return Py_BuildValue((char *)""); | |
15405 | } | |
2f4c0a16 | 15406 | static PyObject *_wrap_new_MetaFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15407 | PyObject *resultobj; |
15408 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15409 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15410 | wxMetaFile *result; | |
423f194a | 15411 | bool temp1 = False ; |
d14a1e28 RD |
15412 | PyObject * obj0 = 0 ; |
15413 | char *kwnames[] = { | |
15414 | (char *) "filename", NULL | |
15415 | }; | |
15416 | ||
15417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15418 | if (obj0) { | |
15419 | { | |
15420 | arg1 = wxString_in_helper(obj0); | |
15421 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15422 | temp1 = True; |
d14a1e28 RD |
15423 | } |
15424 | } | |
15425 | { | |
15426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15427 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15428 | ||
15429 | wxPyEndAllowThreads(__tstate); | |
15430 | if (PyErr_Occurred()) SWIG_fail; | |
15431 | } | |
2f4c0a16 | 15432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); |
d14a1e28 RD |
15433 | { |
15434 | if (temp1) | |
15435 | delete arg1; | |
15436 | } | |
15437 | return resultobj; | |
15438 | fail: | |
15439 | { | |
15440 | if (temp1) | |
15441 | delete arg1; | |
15442 | } | |
15443 | return NULL; | |
15444 | } | |
15445 | ||
15446 | ||
2f4c0a16 | 15447 | static PyObject * MetaFile_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15448 | PyObject *obj; |
15449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15450 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15451 | Py_INCREF(obj); | |
15452 | return Py_BuildValue((char *)""); | |
15453 | } | |
2f4c0a16 | 15454 | static PyObject *_wrap_new_MetaFileDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15455 | PyObject *resultobj; |
15456 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15457 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15458 | int arg2 = (int) 0 ; | |
15459 | int arg3 = (int) 0 ; | |
15460 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15461 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15462 | wxMetaFileDC *result; | |
423f194a RD |
15463 | bool temp1 = False ; |
15464 | bool temp4 = False ; | |
d14a1e28 | 15465 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
15466 | PyObject * obj1 = 0 ; |
15467 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15468 | PyObject * obj3 = 0 ; |
15469 | char *kwnames[] = { | |
15470 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15471 | }; | |
15472 | ||
8edf1c75 | 15473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15474 | if (obj0) { |
15475 | { | |
15476 | arg1 = wxString_in_helper(obj0); | |
15477 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 15478 | temp1 = True; |
d14a1e28 RD |
15479 | } |
15480 | } | |
8edf1c75 | 15481 | if (obj1) { |
2f4c0a16 RD |
15482 | arg2 = (int) SWIG_AsInt(obj1); |
15483 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
15484 | } |
15485 | if (obj2) { | |
2f4c0a16 RD |
15486 | arg3 = (int) SWIG_AsInt(obj2); |
15487 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15488 | } |
d14a1e28 RD |
15489 | if (obj3) { |
15490 | { | |
15491 | arg4 = wxString_in_helper(obj3); | |
15492 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 15493 | temp4 = True; |
d14a1e28 RD |
15494 | } |
15495 | } | |
15496 | { | |
15497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15498 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15499 | ||
15500 | wxPyEndAllowThreads(__tstate); | |
15501 | if (PyErr_Occurred()) SWIG_fail; | |
15502 | } | |
2f4c0a16 | 15503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); |
d14a1e28 RD |
15504 | { |
15505 | if (temp1) | |
15506 | delete arg1; | |
15507 | } | |
15508 | { | |
15509 | if (temp4) | |
15510 | delete arg4; | |
15511 | } | |
15512 | return resultobj; | |
15513 | fail: | |
15514 | { | |
15515 | if (temp1) | |
15516 | delete arg1; | |
15517 | } | |
15518 | { | |
15519 | if (temp4) | |
15520 | delete arg4; | |
15521 | } | |
15522 | return NULL; | |
15523 | } | |
15524 | ||
15525 | ||
2f4c0a16 | 15526 | static PyObject * MetaFileDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15527 | PyObject *obj; |
15528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15529 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15530 | Py_INCREF(obj); | |
15531 | return Py_BuildValue((char *)""); | |
15532 | } | |
2f4c0a16 | 15533 | static PyObject *_wrap_new_PrinterDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15534 | PyObject *resultobj; |
15535 | wxPrintData *arg1 = 0 ; | |
15536 | wxPrinterDC *result; | |
15537 | PyObject * obj0 = 0 ; | |
15538 | char *kwnames[] = { | |
15539 | (char *) "printData", NULL | |
15540 | }; | |
15541 | ||
15542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15544 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15545 | SWIG_fail; | |
d14a1e28 | 15546 | if (arg1 == NULL) { |
2f4c0a16 RD |
15547 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15548 | SWIG_fail; | |
d14a1e28 RD |
15549 | } |
15550 | { | |
15551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15552 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15553 | ||
15554 | wxPyEndAllowThreads(__tstate); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | } | |
2f4c0a16 | 15557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); |
d14a1e28 RD |
15558 | return resultobj; |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
2f4c0a16 | 15564 | static PyObject * PrinterDC_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15565 | PyObject *obj; |
15566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15567 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15568 | Py_INCREF(obj); | |
15569 | return Py_BuildValue((char *)""); | |
15570 | } | |
2f4c0a16 | 15571 | static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15572 | PyObject *resultobj; |
15573 | int arg1 ; | |
15574 | int arg2 ; | |
423f194a | 15575 | int arg3 = (int) True ; |
d14a1e28 RD |
15576 | int arg4 = (int) 1 ; |
15577 | wxImageList *result; | |
8edf1c75 RD |
15578 | PyObject * obj0 = 0 ; |
15579 | PyObject * obj1 = 0 ; | |
15580 | PyObject * obj2 = 0 ; | |
15581 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15582 | char *kwnames[] = { |
15583 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15584 | }; | |
15585 | ||
8edf1c75 | 15586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
15587 | arg1 = (int) SWIG_AsInt(obj0); |
15588 | if (PyErr_Occurred()) SWIG_fail; | |
15589 | arg2 = (int) SWIG_AsInt(obj1); | |
15590 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15591 | if (obj2) { |
2f4c0a16 RD |
15592 | arg3 = (int) SWIG_AsInt(obj2); |
15593 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
15594 | } |
15595 | if (obj3) { | |
2f4c0a16 RD |
15596 | arg4 = (int) SWIG_AsInt(obj3); |
15597 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15598 | } |
d14a1e28 RD |
15599 | { |
15600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15601 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15602 | ||
15603 | wxPyEndAllowThreads(__tstate); | |
15604 | if (PyErr_Occurred()) SWIG_fail; | |
15605 | } | |
15606 | { | |
15607 | resultobj = wxPyMake_wxObject(result); | |
15608 | } | |
15609 | return resultobj; | |
15610 | fail: | |
15611 | return NULL; | |
15612 | } | |
15613 | ||
15614 | ||
2f4c0a16 | 15615 | static PyObject *_wrap_delete_ImageList(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15616 | PyObject *resultobj; |
15617 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15618 | PyObject * obj0 = 0 ; | |
15619 | char *kwnames[] = { | |
15620 | (char *) "self", NULL | |
15621 | }; | |
15622 | ||
15623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15626 | { |
15627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15628 | delete arg1; | |
15629 | ||
15630 | wxPyEndAllowThreads(__tstate); | |
15631 | if (PyErr_Occurred()) SWIG_fail; | |
15632 | } | |
15633 | Py_INCREF(Py_None); resultobj = Py_None; | |
15634 | return resultobj; | |
15635 | fail: | |
15636 | return NULL; | |
15637 | } | |
15638 | ||
15639 | ||
2f4c0a16 | 15640 | static PyObject *_wrap_ImageList_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15641 | PyObject *resultobj; |
15642 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15643 | wxBitmap *arg2 = 0 ; | |
15644 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15645 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15646 | int result; | |
15647 | PyObject * obj0 = 0 ; | |
15648 | PyObject * obj1 = 0 ; | |
15649 | PyObject * obj2 = 0 ; | |
15650 | char *kwnames[] = { | |
15651 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15652 | }; | |
15653 | ||
15654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15658 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15659 | SWIG_fail; | |
d14a1e28 | 15660 | if (arg2 == NULL) { |
2f4c0a16 RD |
15661 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15662 | SWIG_fail; | |
d14a1e28 RD |
15663 | } |
15664 | if (obj2) { | |
2f4c0a16 RD |
15665 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
15666 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15667 | SWIG_fail; | |
d14a1e28 | 15668 | if (arg3 == NULL) { |
2f4c0a16 RD |
15669 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15670 | SWIG_fail; | |
d14a1e28 RD |
15671 | } |
15672 | } | |
15673 | { | |
15674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15675 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15676 | ||
15677 | wxPyEndAllowThreads(__tstate); | |
15678 | if (PyErr_Occurred()) SWIG_fail; | |
15679 | } | |
2f4c0a16 | 15680 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15681 | return resultobj; |
15682 | fail: | |
15683 | return NULL; | |
15684 | } | |
15685 | ||
15686 | ||
2f4c0a16 | 15687 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15688 | PyObject *resultobj; |
15689 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15690 | wxBitmap *arg2 = 0 ; | |
15691 | wxColour *arg3 = 0 ; | |
15692 | int result; | |
15693 | wxColour temp3 ; | |
15694 | PyObject * obj0 = 0 ; | |
15695 | PyObject * obj1 = 0 ; | |
15696 | PyObject * obj2 = 0 ; | |
15697 | char *kwnames[] = { | |
15698 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
15699 | }; | |
15700 | ||
15701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
15702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15706 | SWIG_fail; | |
d14a1e28 | 15707 | if (arg2 == NULL) { |
2f4c0a16 RD |
15708 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15709 | SWIG_fail; | |
d14a1e28 RD |
15710 | } |
15711 | { | |
15712 | arg3 = &temp3; | |
15713 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15714 | } | |
15715 | { | |
15716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15717 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
15718 | ||
15719 | wxPyEndAllowThreads(__tstate); | |
15720 | if (PyErr_Occurred()) SWIG_fail; | |
15721 | } | |
2f4c0a16 | 15722 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15723 | return resultobj; |
15724 | fail: | |
15725 | return NULL; | |
15726 | } | |
15727 | ||
15728 | ||
2f4c0a16 | 15729 | static PyObject *_wrap_ImageList_AddIcon(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15730 | PyObject *resultobj; |
15731 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15732 | wxIcon *arg2 = 0 ; | |
15733 | int result; | |
15734 | PyObject * obj0 = 0 ; | |
15735 | PyObject * obj1 = 0 ; | |
15736 | char *kwnames[] = { | |
15737 | (char *) "self",(char *) "icon", NULL | |
15738 | }; | |
15739 | ||
15740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15743 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
15744 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15745 | SWIG_fail; | |
d14a1e28 | 15746 | if (arg2 == NULL) { |
2f4c0a16 RD |
15747 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15748 | SWIG_fail; | |
d14a1e28 RD |
15749 | } |
15750 | { | |
15751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15752 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
15753 | ||
15754 | wxPyEndAllowThreads(__tstate); | |
15755 | if (PyErr_Occurred()) SWIG_fail; | |
15756 | } | |
2f4c0a16 | 15757 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15758 | return resultobj; |
15759 | fail: | |
15760 | return NULL; | |
15761 | } | |
15762 | ||
15763 | ||
2f4c0a16 | 15764 | static PyObject *_wrap_ImageList_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15765 | PyObject *resultobj; |
15766 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15767 | int arg2 ; | |
15768 | wxBitmap *arg3 = 0 ; | |
15769 | bool result; | |
15770 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15771 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15772 | PyObject * obj2 = 0 ; |
15773 | char *kwnames[] = { | |
15774 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
15775 | }; | |
15776 | ||
8edf1c75 | 15777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
15778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15780 | arg2 = (int) SWIG_AsInt(obj1); | |
15781 | if (PyErr_Occurred()) SWIG_fail; | |
15782 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
15783 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15784 | SWIG_fail; | |
d14a1e28 | 15785 | if (arg3 == NULL) { |
2f4c0a16 RD |
15786 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15787 | SWIG_fail; | |
d14a1e28 RD |
15788 | } |
15789 | { | |
15790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15791 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
15792 | ||
15793 | wxPyEndAllowThreads(__tstate); | |
15794 | if (PyErr_Occurred()) SWIG_fail; | |
15795 | } | |
02a34c4c | 15796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15797 | return resultobj; |
15798 | fail: | |
15799 | return NULL; | |
15800 | } | |
15801 | ||
15802 | ||
2f4c0a16 | 15803 | static PyObject *_wrap_ImageList_Draw(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15804 | PyObject *resultobj; |
15805 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15806 | int arg2 ; | |
15807 | wxDC *arg3 = 0 ; | |
15808 | int arg4 ; | |
15809 | int arg5 ; | |
15810 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
423f194a | 15811 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
15812 | bool result; |
15813 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15814 | PyObject * obj1 = 0 ; |
d14a1e28 | 15815 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
15816 | PyObject * obj3 = 0 ; |
15817 | PyObject * obj4 = 0 ; | |
15818 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15819 | PyObject * obj6 = 0 ; |
15820 | char *kwnames[] = { | |
15821 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
15822 | }; | |
15823 | ||
8edf1c75 | 15824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
15825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15827 | arg2 = (int) SWIG_AsInt(obj1); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
15830 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15831 | SWIG_fail; | |
d14a1e28 | 15832 | if (arg3 == NULL) { |
2f4c0a16 RD |
15833 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15834 | SWIG_fail; | |
8edf1c75 | 15835 | } |
2f4c0a16 RD |
15836 | arg4 = (int) SWIG_AsInt(obj3); |
15837 | if (PyErr_Occurred()) SWIG_fail; | |
15838 | arg5 = (int) SWIG_AsInt(obj4); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15840 | if (obj5) { |
2f4c0a16 RD |
15841 | arg6 = (int) SWIG_AsInt(obj5); |
15842 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 15843 | } |
d14a1e28 | 15844 | if (obj6) { |
2f4c0a16 RD |
15845 | arg7 = (bool const) SWIG_AsBool(obj6); |
15846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15847 | } |
15848 | { | |
15849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15850 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
15851 | ||
15852 | wxPyEndAllowThreads(__tstate); | |
15853 | if (PyErr_Occurred()) SWIG_fail; | |
15854 | } | |
02a34c4c | 15855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15856 | return resultobj; |
15857 | fail: | |
15858 | return NULL; | |
15859 | } | |
15860 | ||
15861 | ||
2f4c0a16 | 15862 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15863 | PyObject *resultobj; |
15864 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15865 | int result; | |
15866 | PyObject * obj0 = 0 ; | |
15867 | char *kwnames[] = { | |
15868 | (char *) "self", NULL | |
15869 | }; | |
15870 | ||
15871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15874 | { |
15875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15876 | result = (int)(arg1)->GetImageCount(); | |
15877 | ||
15878 | wxPyEndAllowThreads(__tstate); | |
15879 | if (PyErr_Occurred()) SWIG_fail; | |
15880 | } | |
2f4c0a16 | 15881 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15882 | return resultobj; |
15883 | fail: | |
15884 | return NULL; | |
15885 | } | |
15886 | ||
15887 | ||
2f4c0a16 | 15888 | static PyObject *_wrap_ImageList_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15889 | PyObject *resultobj; |
15890 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15891 | int arg2 ; | |
15892 | bool result; | |
15893 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15894 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15895 | char *kwnames[] = { |
15896 | (char *) "self",(char *) "index", NULL | |
15897 | }; | |
15898 | ||
8edf1c75 | 15899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15902 | arg2 = (int) SWIG_AsInt(obj1); | |
15903 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15904 | { |
15905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15906 | result = (bool)(arg1)->Remove(arg2); | |
15907 | ||
15908 | wxPyEndAllowThreads(__tstate); | |
15909 | if (PyErr_Occurred()) SWIG_fail; | |
15910 | } | |
02a34c4c | 15911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15912 | return resultobj; |
15913 | fail: | |
15914 | return NULL; | |
15915 | } | |
15916 | ||
15917 | ||
2f4c0a16 | 15918 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15919 | PyObject *resultobj; |
15920 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15921 | bool result; | |
15922 | PyObject * obj0 = 0 ; | |
15923 | char *kwnames[] = { | |
15924 | (char *) "self", NULL | |
15925 | }; | |
15926 | ||
15927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15930 | { |
15931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15932 | result = (bool)(arg1)->RemoveAll(); | |
15933 | ||
15934 | wxPyEndAllowThreads(__tstate); | |
15935 | if (PyErr_Occurred()) SWIG_fail; | |
15936 | } | |
02a34c4c | 15937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15938 | return resultobj; |
15939 | fail: | |
15940 | return NULL; | |
15941 | } | |
15942 | ||
15943 | ||
2f4c0a16 | 15944 | static PyObject *_wrap_ImageList_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15945 | PyObject *resultobj; |
15946 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15947 | int arg2 ; | |
15948 | int *arg3 = 0 ; | |
15949 | int *arg4 = 0 ; | |
15950 | int temp3 ; | |
15951 | int temp4 ; | |
15952 | PyObject * obj0 = 0 ; | |
8edf1c75 | 15953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15954 | char *kwnames[] = { |
15955 | (char *) "self",(char *) "index", NULL | |
15956 | }; | |
15957 | ||
15958 | arg3 = &temp3; | |
15959 | arg4 = &temp4; | |
8edf1c75 | 15960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
15961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15963 | arg2 = (int) SWIG_AsInt(obj1); | |
15964 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15965 | { |
15966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15967 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
15968 | ||
15969 | wxPyEndAllowThreads(__tstate); | |
15970 | if (PyErr_Occurred()) SWIG_fail; | |
15971 | } | |
15972 | Py_INCREF(Py_None); resultobj = Py_None; | |
15973 | { | |
15974 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15975 | resultobj = t_output_helper(resultobj,o); | |
15976 | } | |
15977 | { | |
15978 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15979 | resultobj = t_output_helper(resultobj,o); | |
15980 | } | |
15981 | return resultobj; | |
15982 | fail: | |
15983 | return NULL; | |
15984 | } | |
15985 | ||
15986 | ||
2f4c0a16 | 15987 | static PyObject * ImageList_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
15988 | PyObject *obj; |
15989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15990 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
15991 | Py_INCREF(obj); | |
15992 | return Py_BuildValue((char *)""); | |
15993 | } | |
8edf1c75 RD |
15994 | static int _wrap_NORMAL_FONT_set(PyObject *) { |
15995 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
15996 | return 1; | |
d14a1e28 RD |
15997 | } |
15998 | ||
15999 | ||
8edf1c75 RD |
16000 | static PyObject *_wrap_NORMAL_FONT_get() { |
16001 | PyObject *pyobj; | |
d14a1e28 | 16002 | |
2f4c0a16 | 16003 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 16004 | return pyobj; |
d14a1e28 RD |
16005 | } |
16006 | ||
16007 | ||
8edf1c75 RD |
16008 | static int _wrap_SMALL_FONT_set(PyObject *) { |
16009 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
16010 | return 1; | |
d14a1e28 RD |
16011 | } |
16012 | ||
16013 | ||
8edf1c75 RD |
16014 | static PyObject *_wrap_SMALL_FONT_get() { |
16015 | PyObject *pyobj; | |
d14a1e28 | 16016 | |
2f4c0a16 | 16017 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 16018 | return pyobj; |
d14a1e28 RD |
16019 | } |
16020 | ||
16021 | ||
8edf1c75 RD |
16022 | static int _wrap_ITALIC_FONT_set(PyObject *) { |
16023 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
16024 | return 1; | |
d14a1e28 | 16025 | } |
8edf1c75 RD |
16026 | |
16027 | ||
16028 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16029 | PyObject *pyobj; | |
d14a1e28 | 16030 | |
2f4c0a16 | 16031 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 16032 | return pyobj; |
d14a1e28 RD |
16033 | } |
16034 | ||
16035 | ||
8edf1c75 RD |
16036 | static int _wrap_SWISS_FONT_set(PyObject *) { |
16037 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
16038 | return 1; | |
d14a1e28 RD |
16039 | } |
16040 | ||
16041 | ||
8edf1c75 RD |
16042 | static PyObject *_wrap_SWISS_FONT_get() { |
16043 | PyObject *pyobj; | |
d14a1e28 | 16044 | |
2f4c0a16 | 16045 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
8edf1c75 | 16046 | return pyobj; |
d14a1e28 RD |
16047 | } |
16048 | ||
16049 | ||
8edf1c75 RD |
16050 | static int _wrap_RED_PEN_set(PyObject *) { |
16051 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
16052 | return 1; | |
16053 | } | |
16054 | ||
16055 | ||
16056 | static PyObject *_wrap_RED_PEN_get() { | |
16057 | PyObject *pyobj; | |
d14a1e28 | 16058 | |
2f4c0a16 | 16059 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16060 | return pyobj; |
d14a1e28 RD |
16061 | } |
16062 | ||
16063 | ||
8edf1c75 RD |
16064 | static int _wrap_CYAN_PEN_set(PyObject *) { |
16065 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16066 | return 1; | |
d14a1e28 | 16067 | } |
8edf1c75 RD |
16068 | |
16069 | ||
16070 | static PyObject *_wrap_CYAN_PEN_get() { | |
16071 | PyObject *pyobj; | |
d14a1e28 | 16072 | |
2f4c0a16 | 16073 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16074 | return pyobj; |
d14a1e28 RD |
16075 | } |
16076 | ||
16077 | ||
8edf1c75 RD |
16078 | static int _wrap_GREEN_PEN_set(PyObject *) { |
16079 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16080 | return 1; | |
16081 | } | |
16082 | ||
16083 | ||
16084 | static PyObject *_wrap_GREEN_PEN_get() { | |
16085 | PyObject *pyobj; | |
d14a1e28 | 16086 | |
2f4c0a16 | 16087 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16088 | return pyobj; |
d14a1e28 RD |
16089 | } |
16090 | ||
16091 | ||
8edf1c75 RD |
16092 | static int _wrap_BLACK_PEN_set(PyObject *) { |
16093 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16094 | return 1; | |
16095 | } | |
16096 | ||
16097 | ||
16098 | static PyObject *_wrap_BLACK_PEN_get() { | |
16099 | PyObject *pyobj; | |
d14a1e28 | 16100 | |
2f4c0a16 | 16101 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16102 | return pyobj; |
d14a1e28 RD |
16103 | } |
16104 | ||
16105 | ||
8edf1c75 RD |
16106 | static int _wrap_WHITE_PEN_set(PyObject *) { |
16107 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16108 | return 1; | |
d14a1e28 RD |
16109 | } |
16110 | ||
16111 | ||
8edf1c75 RD |
16112 | static PyObject *_wrap_WHITE_PEN_get() { |
16113 | PyObject *pyobj; | |
d14a1e28 | 16114 | |
2f4c0a16 | 16115 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16116 | return pyobj; |
d14a1e28 RD |
16117 | } |
16118 | ||
16119 | ||
8edf1c75 RD |
16120 | static int _wrap_TRANSPARENT_PEN_set(PyObject *) { |
16121 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16122 | return 1; | |
16123 | } | |
16124 | ||
16125 | ||
16126 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
16127 | PyObject *pyobj; | |
d14a1e28 | 16128 | |
2f4c0a16 | 16129 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16130 | return pyobj; |
d14a1e28 RD |
16131 | } |
16132 | ||
16133 | ||
8edf1c75 RD |
16134 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *) { |
16135 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16136 | return 1; | |
d14a1e28 | 16137 | } |
8edf1c75 RD |
16138 | |
16139 | ||
16140 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
16141 | PyObject *pyobj; | |
d14a1e28 | 16142 | |
2f4c0a16 | 16143 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16144 | return pyobj; |
d14a1e28 RD |
16145 | } |
16146 | ||
16147 | ||
8edf1c75 RD |
16148 | static int _wrap_GREY_PEN_set(PyObject *) { |
16149 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16150 | return 1; | |
d14a1e28 RD |
16151 | } |
16152 | ||
16153 | ||
8edf1c75 RD |
16154 | static PyObject *_wrap_GREY_PEN_get() { |
16155 | PyObject *pyobj; | |
d14a1e28 | 16156 | |
2f4c0a16 | 16157 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16158 | return pyobj; |
d14a1e28 RD |
16159 | } |
16160 | ||
16161 | ||
8edf1c75 RD |
16162 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) { |
16163 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
16164 | return 1; | |
16165 | } | |
16166 | ||
16167 | ||
16168 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
16169 | PyObject *pyobj; | |
d14a1e28 | 16170 | |
2f4c0a16 | 16171 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 | 16172 | return pyobj; |
d14a1e28 RD |
16173 | } |
16174 | ||
16175 | ||
8edf1c75 RD |
16176 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *) { |
16177 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
16178 | return 1; | |
d14a1e28 | 16179 | } |
8edf1c75 RD |
16180 | |
16181 | ||
16182 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
16183 | PyObject *pyobj; | |
16184 | ||
2f4c0a16 | 16185 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
8edf1c75 RD |
16186 | return pyobj; |
16187 | } | |
16188 | ||
16189 | ||
16190 | static int _wrap_BLUE_BRUSH_set(PyObject *) { | |
16191 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16192 | return 1; |
16193 | } | |
16194 | ||
16195 | ||
8edf1c75 | 16196 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16197 | PyObject *pyobj; |
16198 | ||
2f4c0a16 | 16199 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16200 | return pyobj; |
16201 | } | |
16202 | ||
16203 | ||
8edf1c75 RD |
16204 | static int _wrap_GREEN_BRUSH_set(PyObject *) { |
16205 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16206 | return 1; |
16207 | } | |
16208 | ||
16209 | ||
8edf1c75 | 16210 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16211 | PyObject *pyobj; |
16212 | ||
2f4c0a16 | 16213 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16214 | return pyobj; |
16215 | } | |
16216 | ||
16217 | ||
8edf1c75 RD |
16218 | static int _wrap_WHITE_BRUSH_set(PyObject *) { |
16219 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16220 | return 1; |
16221 | } | |
16222 | ||
16223 | ||
8edf1c75 | 16224 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16225 | PyObject *pyobj; |
16226 | ||
2f4c0a16 | 16227 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16228 | return pyobj; |
16229 | } | |
16230 | ||
16231 | ||
8edf1c75 RD |
16232 | static int _wrap_BLACK_BRUSH_set(PyObject *) { |
16233 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16234 | return 1; |
16235 | } | |
16236 | ||
16237 | ||
8edf1c75 | 16238 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16239 | PyObject *pyobj; |
16240 | ||
2f4c0a16 | 16241 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16242 | return pyobj; |
16243 | } | |
16244 | ||
16245 | ||
8edf1c75 RD |
16246 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) { |
16247 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
16248 | return 1; |
16249 | } | |
16250 | ||
16251 | ||
8edf1c75 | 16252 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16253 | PyObject *pyobj; |
16254 | ||
2f4c0a16 | 16255 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16256 | return pyobj; |
16257 | } | |
16258 | ||
16259 | ||
8edf1c75 RD |
16260 | static int _wrap_CYAN_BRUSH_set(PyObject *) { |
16261 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
16262 | return 1; |
16263 | } | |
16264 | ||
16265 | ||
8edf1c75 | 16266 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16267 | PyObject *pyobj; |
16268 | ||
2f4c0a16 | 16269 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16270 | return pyobj; |
16271 | } | |
16272 | ||
16273 | ||
8edf1c75 RD |
16274 | static int _wrap_RED_BRUSH_set(PyObject *) { |
16275 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
16276 | return 1; |
16277 | } | |
16278 | ||
16279 | ||
8edf1c75 | 16280 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16281 | PyObject *pyobj; |
16282 | ||
2f4c0a16 | 16283 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16284 | return pyobj; |
16285 | } | |
16286 | ||
16287 | ||
8edf1c75 RD |
16288 | static int _wrap_GREY_BRUSH_set(PyObject *) { |
16289 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16290 | return 1; |
16291 | } | |
16292 | ||
16293 | ||
8edf1c75 | 16294 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16295 | PyObject *pyobj; |
16296 | ||
2f4c0a16 | 16297 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16298 | return pyobj; |
16299 | } | |
16300 | ||
16301 | ||
8edf1c75 RD |
16302 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) { |
16303 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16304 | return 1; |
16305 | } | |
16306 | ||
16307 | ||
8edf1c75 | 16308 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
16309 | PyObject *pyobj; |
16310 | ||
2f4c0a16 | 16311 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16312 | return pyobj; |
16313 | } | |
16314 | ||
16315 | ||
8edf1c75 RD |
16316 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) { |
16317 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16318 | return 1; |
16319 | } | |
16320 | ||
16321 | ||
8edf1c75 | 16322 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16323 | PyObject *pyobj; |
16324 | ||
2f4c0a16 | 16325 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16326 | return pyobj; |
16327 | } | |
16328 | ||
16329 | ||
8edf1c75 RD |
16330 | static int _wrap_BLACK_set(PyObject *) { |
16331 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16332 | return 1; |
16333 | } | |
16334 | ||
16335 | ||
8edf1c75 | 16336 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16337 | PyObject *pyobj; |
16338 | ||
2f4c0a16 | 16339 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16340 | return pyobj; |
16341 | } | |
16342 | ||
16343 | ||
8edf1c75 RD |
16344 | static int _wrap_WHITE_set(PyObject *) { |
16345 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16346 | return 1; |
16347 | } | |
16348 | ||
16349 | ||
8edf1c75 | 16350 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16351 | PyObject *pyobj; |
16352 | ||
2f4c0a16 | 16353 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16354 | return pyobj; |
16355 | } | |
16356 | ||
16357 | ||
8edf1c75 RD |
16358 | static int _wrap_RED_set(PyObject *) { |
16359 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16360 | return 1; |
16361 | } | |
16362 | ||
16363 | ||
8edf1c75 | 16364 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16365 | PyObject *pyobj; |
16366 | ||
2f4c0a16 | 16367 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16368 | return pyobj; |
16369 | } | |
16370 | ||
16371 | ||
8edf1c75 RD |
16372 | static int _wrap_BLUE_set(PyObject *) { |
16373 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16374 | return 1; |
16375 | } | |
16376 | ||
16377 | ||
8edf1c75 | 16378 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16379 | PyObject *pyobj; |
16380 | ||
2f4c0a16 | 16381 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16382 | return pyobj; |
16383 | } | |
16384 | ||
16385 | ||
8edf1c75 RD |
16386 | static int _wrap_GREEN_set(PyObject *) { |
16387 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16388 | return 1; |
16389 | } | |
16390 | ||
16391 | ||
8edf1c75 | 16392 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16393 | PyObject *pyobj; |
16394 | ||
2f4c0a16 | 16395 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16396 | return pyobj; |
16397 | } | |
16398 | ||
16399 | ||
8edf1c75 RD |
16400 | static int _wrap_CYAN_set(PyObject *) { |
16401 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16402 | return 1; |
16403 | } | |
16404 | ||
16405 | ||
8edf1c75 | 16406 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16407 | PyObject *pyobj; |
16408 | ||
2f4c0a16 | 16409 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16410 | return pyobj; |
16411 | } | |
16412 | ||
16413 | ||
8edf1c75 RD |
16414 | static int _wrap_LIGHT_GREY_set(PyObject *) { |
16415 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16416 | return 1; |
16417 | } | |
16418 | ||
16419 | ||
8edf1c75 | 16420 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16421 | PyObject *pyobj; |
16422 | ||
2f4c0a16 | 16423 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16424 | return pyobj; |
16425 | } | |
16426 | ||
16427 | ||
8edf1c75 RD |
16428 | static int _wrap_STANDARD_CURSOR_set(PyObject *) { |
16429 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16430 | return 1; |
16431 | } | |
16432 | ||
16433 | ||
8edf1c75 | 16434 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16435 | PyObject *pyobj; |
16436 | ||
2f4c0a16 | 16437 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16438 | return pyobj; |
16439 | } | |
16440 | ||
16441 | ||
8edf1c75 RD |
16442 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *) { |
16443 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16444 | return 1; |
16445 | } | |
16446 | ||
16447 | ||
8edf1c75 | 16448 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16449 | PyObject *pyobj; |
16450 | ||
2f4c0a16 | 16451 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16452 | return pyobj; |
16453 | } | |
16454 | ||
16455 | ||
8edf1c75 RD |
16456 | static int _wrap_CROSS_CURSOR_set(PyObject *) { |
16457 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16458 | return 1; |
16459 | } | |
16460 | ||
16461 | ||
8edf1c75 | 16462 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16463 | PyObject *pyobj; |
16464 | ||
2f4c0a16 | 16465 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16466 | return pyobj; |
16467 | } | |
16468 | ||
16469 | ||
8edf1c75 RD |
16470 | static int _wrap_NullBitmap_set(PyObject *) { |
16471 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16472 | return 1; |
16473 | } | |
16474 | ||
16475 | ||
8edf1c75 | 16476 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16477 | PyObject *pyobj; |
16478 | ||
2f4c0a16 | 16479 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16480 | return pyobj; |
16481 | } | |
16482 | ||
16483 | ||
8edf1c75 RD |
16484 | static int _wrap_NullIcon_set(PyObject *) { |
16485 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16486 | return 1; |
16487 | } | |
16488 | ||
16489 | ||
8edf1c75 | 16490 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16491 | PyObject *pyobj; |
16492 | ||
2f4c0a16 | 16493 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16494 | return pyobj; |
16495 | } | |
16496 | ||
16497 | ||
8edf1c75 RD |
16498 | static int _wrap_NullCursor_set(PyObject *) { |
16499 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16500 | return 1; |
16501 | } | |
16502 | ||
16503 | ||
8edf1c75 | 16504 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16505 | PyObject *pyobj; |
16506 | ||
2f4c0a16 | 16507 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16508 | return pyobj; |
16509 | } | |
16510 | ||
16511 | ||
8edf1c75 RD |
16512 | static int _wrap_NullPen_set(PyObject *) { |
16513 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16514 | return 1; |
16515 | } | |
16516 | ||
16517 | ||
8edf1c75 | 16518 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16519 | PyObject *pyobj; |
16520 | ||
2f4c0a16 | 16521 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16522 | return pyobj; |
16523 | } | |
16524 | ||
16525 | ||
8edf1c75 RD |
16526 | static int _wrap_NullBrush_set(PyObject *) { |
16527 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16528 | return 1; |
16529 | } | |
16530 | ||
16531 | ||
8edf1c75 | 16532 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16533 | PyObject *pyobj; |
16534 | ||
2f4c0a16 | 16535 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16536 | return pyobj; |
16537 | } | |
16538 | ||
16539 | ||
8edf1c75 RD |
16540 | static int _wrap_NullPalette_set(PyObject *) { |
16541 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16542 | return 1; |
16543 | } | |
16544 | ||
16545 | ||
8edf1c75 | 16546 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16547 | PyObject *pyobj; |
16548 | ||
2f4c0a16 | 16549 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16550 | return pyobj; |
16551 | } | |
16552 | ||
16553 | ||
8edf1c75 RD |
16554 | static int _wrap_NullFont_set(PyObject *) { |
16555 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16556 | return 1; |
16557 | } | |
16558 | ||
16559 | ||
8edf1c75 | 16560 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16561 | PyObject *pyobj; |
16562 | ||
2f4c0a16 | 16563 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16564 | return pyobj; |
16565 | } | |
16566 | ||
16567 | ||
8edf1c75 RD |
16568 | static int _wrap_NullColour_set(PyObject *) { |
16569 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16570 | return 1; |
16571 | } | |
16572 | ||
16573 | ||
8edf1c75 | 16574 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16575 | PyObject *pyobj; |
16576 | ||
2f4c0a16 | 16577 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16578 | return pyobj; |
16579 | } | |
16580 | ||
16581 | ||
2f4c0a16 | 16582 | static PyObject *_wrap_PenList_AddPen(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16583 | PyObject *resultobj; |
16584 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16585 | wxPen *arg2 = (wxPen *) 0 ; | |
16586 | PyObject * obj0 = 0 ; | |
16587 | PyObject * obj1 = 0 ; | |
16588 | char *kwnames[] = { | |
16589 | (char *) "self",(char *) "pen", NULL | |
16590 | }; | |
16591 | ||
16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
16596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16597 | { |
16598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16599 | (arg1)->AddPen(arg2); | |
16600 | ||
16601 | wxPyEndAllowThreads(__tstate); | |
16602 | if (PyErr_Occurred()) SWIG_fail; | |
16603 | } | |
16604 | Py_INCREF(Py_None); resultobj = Py_None; | |
16605 | return resultobj; | |
16606 | fail: | |
16607 | return NULL; | |
d14a1e28 RD |
16608 | } |
16609 | ||
16610 | ||
2f4c0a16 | 16611 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16612 | PyObject *resultobj; |
16613 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16614 | wxColour *arg2 = 0 ; | |
16615 | int arg3 ; | |
16616 | int arg4 ; | |
16617 | wxPen *result; | |
16618 | wxColour temp2 ; | |
16619 | PyObject * obj0 = 0 ; | |
16620 | PyObject * obj1 = 0 ; | |
16621 | PyObject * obj2 = 0 ; | |
16622 | PyObject * obj3 = 0 ; | |
16623 | char *kwnames[] = { | |
16624 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16625 | }; | |
d14a1e28 | 16626 | |
8edf1c75 | 16627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
16628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16630 | { |
16631 | arg2 = &temp2; | |
16632 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16633 | } | |
2f4c0a16 RD |
16634 | arg3 = (int) SWIG_AsInt(obj2); |
16635 | if (PyErr_Occurred()) SWIG_fail; | |
16636 | arg4 = (int) SWIG_AsInt(obj3); | |
16637 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16638 | { |
16639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16640 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16641 | ||
16642 | wxPyEndAllowThreads(__tstate); | |
16643 | if (PyErr_Occurred()) SWIG_fail; | |
16644 | } | |
2f4c0a16 | 16645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
8edf1c75 RD |
16646 | return resultobj; |
16647 | fail: | |
16648 | return NULL; | |
d14a1e28 RD |
16649 | } |
16650 | ||
16651 | ||
2f4c0a16 | 16652 | static PyObject *_wrap_PenList_RemovePen(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16653 | PyObject *resultobj; |
16654 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16655 | wxPen *arg2 = (wxPen *) 0 ; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | PyObject * obj1 = 0 ; | |
16658 | char *kwnames[] = { | |
16659 | (char *) "self",(char *) "pen", NULL | |
16660 | }; | |
16661 | ||
16662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
16666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16667 | { |
16668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16669 | (arg1)->RemovePen(arg2); | |
16670 | ||
16671 | wxPyEndAllowThreads(__tstate); | |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
16673 | } | |
16674 | Py_INCREF(Py_None); resultobj = Py_None; | |
16675 | return resultobj; | |
16676 | fail: | |
16677 | return NULL; | |
d14a1e28 RD |
16678 | } |
16679 | ||
16680 | ||
2f4c0a16 | 16681 | static PyObject *_wrap_PenList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16682 | PyObject *resultobj; |
16683 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16684 | int result; | |
16685 | PyObject * obj0 = 0 ; | |
16686 | char *kwnames[] = { | |
16687 | (char *) "self", NULL | |
16688 | }; | |
d14a1e28 | 16689 | |
8edf1c75 | 16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
16691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16693 | { |
16694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16695 | result = (int)(arg1)->GetCount(); | |
16696 | ||
16697 | wxPyEndAllowThreads(__tstate); | |
16698 | if (PyErr_Occurred()) SWIG_fail; | |
16699 | } | |
2f4c0a16 | 16700 | resultobj = SWIG_FromInt((int)result); |
8edf1c75 RD |
16701 | return resultobj; |
16702 | fail: | |
16703 | return NULL; | |
d14a1e28 RD |
16704 | } |
16705 | ||
16706 | ||
2f4c0a16 | 16707 | static PyObject * PenList_swigregister(PyObject *, PyObject *args) { |
8edf1c75 RD |
16708 | PyObject *obj; |
16709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16710 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
16711 | Py_INCREF(obj); | |
16712 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16713 | } |
2f4c0a16 | 16714 | static PyObject *_wrap_BrushList_AddBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16715 | PyObject *resultobj; |
16716 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16717 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16718 | PyObject * obj0 = 0 ; | |
16719 | PyObject * obj1 = 0 ; | |
16720 | char *kwnames[] = { | |
16721 | (char *) "self",(char *) "brush", NULL | |
16722 | }; | |
d14a1e28 | 16723 | |
8edf1c75 | 16724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
16728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16729 | { |
16730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16731 | (arg1)->AddBrush(arg2); | |
16732 | ||
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | Py_INCREF(Py_None); resultobj = Py_None; | |
16737 | return resultobj; | |
16738 | fail: | |
16739 | return NULL; | |
d14a1e28 RD |
16740 | } |
16741 | ||
16742 | ||
2f4c0a16 | 16743 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16744 | PyObject *resultobj; |
16745 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16746 | wxColour *arg2 = 0 ; | |
16747 | int arg3 ; | |
16748 | wxBrush *result; | |
16749 | wxColour temp2 ; | |
16750 | PyObject * obj0 = 0 ; | |
16751 | PyObject * obj1 = 0 ; | |
16752 | PyObject * obj2 = 0 ; | |
16753 | char *kwnames[] = { | |
16754 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
16755 | }; | |
16756 | ||
16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16760 | { |
16761 | arg2 = &temp2; | |
16762 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16763 | } | |
2f4c0a16 RD |
16764 | arg3 = (int) SWIG_AsInt(obj2); |
16765 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
16766 | { |
16767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16768 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
16769 | ||
16770 | wxPyEndAllowThreads(__tstate); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
16772 | } | |
2f4c0a16 | 16773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
8edf1c75 RD |
16774 | return resultobj; |
16775 | fail: | |
16776 | return NULL; | |
d14a1e28 RD |
16777 | } |
16778 | ||
16779 | ||
2f4c0a16 | 16780 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16781 | PyObject *resultobj; |
16782 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16783 | wxBrush *arg2 = (wxBrush *) 0 ; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | PyObject * obj1 = 0 ; | |
16786 | char *kwnames[] = { | |
16787 | (char *) "self",(char *) "brush", NULL | |
16788 | }; | |
d14a1e28 | 16789 | |
8edf1c75 | 16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
16794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16795 | { |
16796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16797 | (arg1)->RemoveBrush(arg2); | |
16798 | ||
16799 | wxPyEndAllowThreads(__tstate); | |
16800 | if (PyErr_Occurred()) SWIG_fail; | |
16801 | } | |
16802 | Py_INCREF(Py_None); resultobj = Py_None; | |
16803 | return resultobj; | |
16804 | fail: | |
16805 | return NULL; | |
d14a1e28 RD |
16806 | } |
16807 | ||
16808 | ||
2f4c0a16 | 16809 | static PyObject *_wrap_BrushList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16810 | PyObject *resultobj; |
16811 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
16812 | int result; | |
16813 | PyObject * obj0 = 0 ; | |
16814 | char *kwnames[] = { | |
16815 | (char *) "self", NULL | |
16816 | }; | |
d14a1e28 | 16817 | |
8edf1c75 | 16818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
16819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
16820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16821 | { |
16822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16823 | result = (int)(arg1)->GetCount(); | |
16824 | ||
16825 | wxPyEndAllowThreads(__tstate); | |
16826 | if (PyErr_Occurred()) SWIG_fail; | |
16827 | } | |
2f4c0a16 | 16828 | resultobj = SWIG_FromInt((int)result); |
8edf1c75 RD |
16829 | return resultobj; |
16830 | fail: | |
16831 | return NULL; | |
d14a1e28 RD |
16832 | } |
16833 | ||
16834 | ||
2f4c0a16 | 16835 | static PyObject * BrushList_swigregister(PyObject *, PyObject *args) { |
8edf1c75 RD |
16836 | PyObject *obj; |
16837 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16838 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
16839 | Py_INCREF(obj); | |
16840 | return Py_BuildValue((char *)""); | |
d14a1e28 | 16841 | } |
2f4c0a16 | 16842 | static PyObject *_wrap_new_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16843 | PyObject *resultobj; |
16844 | wxColourDatabase *result; | |
16845 | char *kwnames[] = { | |
16846 | NULL | |
16847 | }; | |
d14a1e28 | 16848 | |
8edf1c75 RD |
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
16850 | { | |
16851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16852 | result = (wxColourDatabase *)new wxColourDatabase(); | |
16853 | ||
16854 | wxPyEndAllowThreads(__tstate); | |
16855 | if (PyErr_Occurred()) SWIG_fail; | |
16856 | } | |
2f4c0a16 | 16857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
8edf1c75 RD |
16858 | return resultobj; |
16859 | fail: | |
16860 | return NULL; | |
d14a1e28 RD |
16861 | } |
16862 | ||
16863 | ||
2f4c0a16 | 16864 | static PyObject *_wrap_delete_ColourDatabase(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16865 | PyObject *resultobj; |
16866 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16867 | PyObject * obj0 = 0 ; | |
16868 | char *kwnames[] = { | |
16869 | (char *) "self", NULL | |
16870 | }; | |
d14a1e28 | 16871 | |
8edf1c75 | 16872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
16873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
16874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16875 | { |
16876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16877 | delete arg1; | |
16878 | ||
16879 | wxPyEndAllowThreads(__tstate); | |
16880 | if (PyErr_Occurred()) SWIG_fail; | |
16881 | } | |
16882 | Py_INCREF(Py_None); resultobj = Py_None; | |
16883 | return resultobj; | |
16884 | fail: | |
16885 | return NULL; | |
d14a1e28 RD |
16886 | } |
16887 | ||
16888 | ||
2f4c0a16 | 16889 | static PyObject *_wrap_ColourDatabase_Find(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16890 | PyObject *resultobj; |
16891 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16892 | wxString *arg2 = 0 ; | |
16893 | wxColour result; | |
16894 | bool temp2 = False ; | |
16895 | PyObject * obj0 = 0 ; | |
16896 | PyObject * obj1 = 0 ; | |
16897 | char *kwnames[] = { | |
16898 | (char *) "self",(char *) "name", NULL | |
16899 | }; | |
d14a1e28 | 16900 | |
8edf1c75 | 16901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
16903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16904 | { |
16905 | arg2 = wxString_in_helper(obj1); | |
16906 | if (arg2 == NULL) SWIG_fail; | |
16907 | temp2 = True; | |
16908 | } | |
16909 | { | |
16910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16911 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
16912 | ||
16913 | wxPyEndAllowThreads(__tstate); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
16916 | { | |
16917 | wxColour * resultptr; | |
16918 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 16919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
8edf1c75 RD |
16920 | } |
16921 | { | |
16922 | if (temp2) | |
16923 | delete arg2; | |
16924 | } | |
16925 | return resultobj; | |
16926 | fail: | |
16927 | { | |
16928 | if (temp2) | |
16929 | delete arg2; | |
16930 | } | |
16931 | return NULL; | |
d14a1e28 RD |
16932 | } |
16933 | ||
16934 | ||
2f4c0a16 | 16935 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16936 | PyObject *resultobj; |
16937 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16938 | wxColour *arg2 = 0 ; | |
16939 | wxString result; | |
16940 | wxColour temp2 ; | |
16941 | PyObject * obj0 = 0 ; | |
16942 | PyObject * obj1 = 0 ; | |
16943 | char *kwnames[] = { | |
16944 | (char *) "self",(char *) "colour", NULL | |
16945 | }; | |
d14a1e28 | 16946 | |
8edf1c75 | 16947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
16949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16950 | { |
16951 | arg2 = &temp2; | |
16952 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16953 | } | |
16954 | { | |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | { | |
16962 | #if wxUSE_UNICODE | |
16963 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16964 | #else | |
16965 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16966 | #endif | |
16967 | } | |
16968 | return resultobj; | |
16969 | fail: | |
16970 | return NULL; | |
d14a1e28 RD |
16971 | } |
16972 | ||
16973 | ||
2f4c0a16 | 16974 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
16975 | PyObject *resultobj; |
16976 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
16977 | wxString *arg2 = 0 ; | |
16978 | wxColour *arg3 = 0 ; | |
16979 | bool temp2 = False ; | |
16980 | wxColour temp3 ; | |
16981 | PyObject * obj0 = 0 ; | |
16982 | PyObject * obj1 = 0 ; | |
16983 | PyObject * obj2 = 0 ; | |
16984 | char *kwnames[] = { | |
16985 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
16986 | }; | |
16987 | ||
16988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
16990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
16991 | { |
16992 | arg2 = wxString_in_helper(obj1); | |
16993 | if (arg2 == NULL) SWIG_fail; | |
16994 | temp2 = True; | |
16995 | } | |
16996 | { | |
16997 | arg3 = &temp3; | |
16998 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16999 | } | |
17000 | { | |
17001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17002 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17003 | ||
17004 | wxPyEndAllowThreads(__tstate); | |
17005 | if (PyErr_Occurred()) SWIG_fail; | |
17006 | } | |
17007 | Py_INCREF(Py_None); resultobj = Py_None; | |
17008 | { | |
17009 | if (temp2) | |
17010 | delete arg2; | |
17011 | } | |
17012 | return resultobj; | |
17013 | fail: | |
17014 | { | |
17015 | if (temp2) | |
17016 | delete arg2; | |
17017 | } | |
17018 | return NULL; | |
d14a1e28 RD |
17019 | } |
17020 | ||
17021 | ||
2f4c0a16 | 17022 | static PyObject *_wrap_ColourDatabase_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
17023 | PyObject *resultobj; |
17024 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17025 | wxString *arg2 = 0 ; | |
17026 | int arg3 ; | |
17027 | int arg4 ; | |
17028 | int arg5 ; | |
17029 | bool temp2 = False ; | |
17030 | PyObject * obj0 = 0 ; | |
17031 | PyObject * obj1 = 0 ; | |
17032 | PyObject * obj2 = 0 ; | |
17033 | PyObject * obj3 = 0 ; | |
17034 | PyObject * obj4 = 0 ; | |
17035 | char *kwnames[] = { | |
17036 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17037 | }; | |
d14a1e28 | 17038 | |
8edf1c75 | 17039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
17040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17042 | { |
17043 | arg2 = wxString_in_helper(obj1); | |
17044 | if (arg2 == NULL) SWIG_fail; | |
17045 | temp2 = True; | |
17046 | } | |
2f4c0a16 RD |
17047 | arg3 = (int) SWIG_AsInt(obj2); |
17048 | if (PyErr_Occurred()) SWIG_fail; | |
17049 | arg4 = (int) SWIG_AsInt(obj3); | |
17050 | if (PyErr_Occurred()) SWIG_fail; | |
17051 | arg5 = (int) SWIG_AsInt(obj4); | |
17052 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17053 | { |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17055 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17056 | ||
17057 | wxPyEndAllowThreads(__tstate); | |
17058 | if (PyErr_Occurred()) SWIG_fail; | |
17059 | } | |
17060 | Py_INCREF(Py_None); resultobj = Py_None; | |
17061 | { | |
17062 | if (temp2) | |
17063 | delete arg2; | |
17064 | } | |
17065 | return resultobj; | |
17066 | fail: | |
17067 | { | |
17068 | if (temp2) | |
17069 | delete arg2; | |
17070 | } | |
17071 | return NULL; | |
d14a1e28 RD |
17072 | } |
17073 | ||
17074 | ||
2f4c0a16 | 17075 | static PyObject * ColourDatabase_swigregister(PyObject *, PyObject *args) { |
8edf1c75 RD |
17076 | PyObject *obj; |
17077 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17078 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17079 | Py_INCREF(obj); | |
17080 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17081 | } |
2f4c0a16 | 17082 | static PyObject *_wrap_FontList_AddFont(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
17083 | PyObject *resultobj; |
17084 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17085 | wxFont *arg2 = (wxFont *) 0 ; | |
17086 | PyObject * obj0 = 0 ; | |
17087 | PyObject * obj1 = 0 ; | |
17088 | char *kwnames[] = { | |
17089 | (char *) "self",(char *) "font", NULL | |
17090 | }; | |
d14a1e28 | 17091 | |
8edf1c75 | 17092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17097 | { |
17098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17099 | (arg1)->AddFont(arg2); | |
17100 | ||
17101 | wxPyEndAllowThreads(__tstate); | |
17102 | if (PyErr_Occurred()) SWIG_fail; | |
17103 | } | |
17104 | Py_INCREF(Py_None); resultobj = Py_None; | |
17105 | return resultobj; | |
17106 | fail: | |
17107 | return NULL; | |
d14a1e28 RD |
17108 | } |
17109 | ||
17110 | ||
2f4c0a16 | 17111 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
17112 | PyObject *resultobj; |
17113 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17114 | int arg2 ; | |
17115 | int arg3 ; | |
17116 | int arg4 ; | |
17117 | int arg5 ; | |
17118 | bool arg6 = (bool) False ; | |
17119 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17120 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17121 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17122 | wxFont *result; | |
17123 | bool temp7 = False ; | |
17124 | PyObject * obj0 = 0 ; | |
17125 | PyObject * obj1 = 0 ; | |
17126 | PyObject * obj2 = 0 ; | |
17127 | PyObject * obj3 = 0 ; | |
17128 | PyObject * obj4 = 0 ; | |
17129 | PyObject * obj5 = 0 ; | |
17130 | PyObject * obj6 = 0 ; | |
17131 | PyObject * obj7 = 0 ; | |
17132 | char *kwnames[] = { | |
17133 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17134 | }; | |
d14a1e28 | 17135 | |
8edf1c75 | 17136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
17137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17139 | arg2 = (int) SWIG_AsInt(obj1); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | arg3 = (int) SWIG_AsInt(obj2); | |
17142 | if (PyErr_Occurred()) SWIG_fail; | |
17143 | arg4 = (int) SWIG_AsInt(obj3); | |
17144 | if (PyErr_Occurred()) SWIG_fail; | |
17145 | arg5 = (int) SWIG_AsInt(obj4); | |
17146 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17147 | if (obj5) { |
2f4c0a16 RD |
17148 | arg6 = (bool) SWIG_AsBool(obj5); |
17149 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17150 | } |
17151 | if (obj6) { | |
17152 | { | |
17153 | arg7 = wxString_in_helper(obj6); | |
17154 | if (arg7 == NULL) SWIG_fail; | |
17155 | temp7 = True; | |
17156 | } | |
17157 | } | |
17158 | if (obj7) { | |
2f4c0a16 RD |
17159 | arg8 = (wxFontEncoding) SWIG_AsInt(obj7); |
17160 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
17161 | } |
17162 | { | |
17163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17164 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17165 | ||
17166 | wxPyEndAllowThreads(__tstate); | |
17167 | if (PyErr_Occurred()) SWIG_fail; | |
17168 | } | |
2f4c0a16 | 17169 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
8edf1c75 RD |
17170 | { |
17171 | if (temp7) | |
17172 | delete arg7; | |
17173 | } | |
17174 | return resultobj; | |
17175 | fail: | |
17176 | { | |
17177 | if (temp7) | |
17178 | delete arg7; | |
17179 | } | |
17180 | return NULL; | |
d14a1e28 RD |
17181 | } |
17182 | ||
17183 | ||
2f4c0a16 | 17184 | static PyObject *_wrap_FontList_RemoveFont(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
17185 | PyObject *resultobj; |
17186 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17187 | wxFont *arg2 = (wxFont *) 0 ; | |
17188 | PyObject * obj0 = 0 ; | |
17189 | PyObject * obj1 = 0 ; | |
17190 | char *kwnames[] = { | |
17191 | (char *) "self",(char *) "font", NULL | |
17192 | }; | |
d14a1e28 | 17193 | |
8edf1c75 | 17194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17197 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17199 | { |
17200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17201 | (arg1)->RemoveFont(arg2); | |
17202 | ||
17203 | wxPyEndAllowThreads(__tstate); | |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
17205 | } | |
17206 | Py_INCREF(Py_None); resultobj = Py_None; | |
17207 | return resultobj; | |
17208 | fail: | |
17209 | return NULL; | |
d14a1e28 RD |
17210 | } |
17211 | ||
17212 | ||
2f4c0a16 | 17213 | static PyObject *_wrap_FontList_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
8edf1c75 RD |
17214 | PyObject *resultobj; |
17215 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17216 | int result; | |
17217 | PyObject * obj0 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "self", NULL | |
17220 | }; | |
d14a1e28 | 17221 | |
8edf1c75 | 17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
17225 | { |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | result = (int)(arg1)->GetCount(); | |
17228 | ||
17229 | wxPyEndAllowThreads(__tstate); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | } | |
2f4c0a16 | 17232 | resultobj = SWIG_FromInt((int)result); |
8edf1c75 RD |
17233 | return resultobj; |
17234 | fail: | |
17235 | return NULL; | |
d14a1e28 RD |
17236 | } |
17237 | ||
17238 | ||
2f4c0a16 | 17239 | static PyObject * FontList_swigregister(PyObject *, PyObject *args) { |
8edf1c75 RD |
17240 | PyObject *obj; |
17241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17242 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17243 | Py_INCREF(obj); | |
17244 | return Py_BuildValue((char *)""); | |
17245 | } | |
17246 | static int _wrap_TheFontList_set(PyObject *) { | |
d14a1e28 RD |
17247 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); |
17248 | return 1; | |
17249 | } | |
17250 | ||
17251 | ||
17252 | static PyObject *_wrap_TheFontList_get() { | |
17253 | PyObject *pyobj; | |
17254 | ||
2f4c0a16 | 17255 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
17256 | return pyobj; |
17257 | } | |
17258 | ||
17259 | ||
8edf1c75 | 17260 | static int _wrap_ThePenList_set(PyObject *) { |
d14a1e28 RD |
17261 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); |
17262 | return 1; | |
17263 | } | |
17264 | ||
17265 | ||
17266 | static PyObject *_wrap_ThePenList_get() { | |
17267 | PyObject *pyobj; | |
17268 | ||
2f4c0a16 | 17269 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
17270 | return pyobj; |
17271 | } | |
17272 | ||
17273 | ||
8edf1c75 | 17274 | static int _wrap_TheBrushList_set(PyObject *) { |
d14a1e28 RD |
17275 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); |
17276 | return 1; | |
17277 | } | |
17278 | ||
17279 | ||
17280 | static PyObject *_wrap_TheBrushList_get() { | |
17281 | PyObject *pyobj; | |
17282 | ||
2f4c0a16 | 17283 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
17284 | return pyobj; |
17285 | } | |
17286 | ||
17287 | ||
8edf1c75 | 17288 | static int _wrap_TheColourDatabase_set(PyObject *) { |
d14a1e28 RD |
17289 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); |
17290 | return 1; | |
17291 | } | |
17292 | ||
17293 | ||
17294 | static PyObject *_wrap_TheColourDatabase_get() { | |
17295 | PyObject *pyobj; | |
17296 | ||
2f4c0a16 | 17297 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
17298 | return pyobj; |
17299 | } | |
17300 | ||
17301 | ||
2f4c0a16 | 17302 | static PyObject *_wrap_new_Effects(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17303 | PyObject *resultobj; |
423f194a | 17304 | wxEffects *result; |
d14a1e28 | 17305 | char *kwnames[] = { |
423f194a | 17306 | NULL |
d14a1e28 RD |
17307 | }; |
17308 | ||
423f194a | 17309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
17310 | { |
17311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17312 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
17313 | |
17314 | wxPyEndAllowThreads(__tstate); | |
17315 | if (PyErr_Occurred()) SWIG_fail; | |
17316 | } | |
2f4c0a16 | 17317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
17318 | return resultobj; |
17319 | fail: | |
17320 | return NULL; | |
17321 | } | |
17322 | ||
17323 | ||
2f4c0a16 | 17324 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17325 | PyObject *resultobj; |
423f194a RD |
17326 | wxEffects *arg1 = (wxEffects *) 0 ; |
17327 | wxColour result; | |
d14a1e28 | 17328 | PyObject * obj0 = 0 ; |
d14a1e28 | 17329 | char *kwnames[] = { |
423f194a | 17330 | (char *) "self", NULL |
d14a1e28 RD |
17331 | }; |
17332 | ||
423f194a | 17333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17336 | { |
17337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17338 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
17339 | |
17340 | wxPyEndAllowThreads(__tstate); | |
17341 | if (PyErr_Occurred()) SWIG_fail; | |
17342 | } | |
423f194a RD |
17343 | { |
17344 | wxColour * resultptr; | |
17345 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 17346 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
423f194a | 17347 | } |
d14a1e28 RD |
17348 | return resultobj; |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
2f4c0a16 | 17354 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17355 | PyObject *resultobj; |
423f194a RD |
17356 | wxEffects *arg1 = (wxEffects *) 0 ; |
17357 | wxColour result; | |
d14a1e28 | 17358 | PyObject * obj0 = 0 ; |
d14a1e28 | 17359 | char *kwnames[] = { |
423f194a | 17360 | (char *) "self", NULL |
d14a1e28 RD |
17361 | }; |
17362 | ||
423f194a | 17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17366 | { |
17367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17368 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17369 | |
17370 | wxPyEndAllowThreads(__tstate); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | } | |
d14a1e28 | 17373 | { |
423f194a RD |
17374 | wxColour * resultptr; |
17375 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 17376 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17377 | } |
17378 | return resultobj; | |
17379 | fail: | |
d14a1e28 RD |
17380 | return NULL; |
17381 | } | |
17382 | ||
17383 | ||
2f4c0a16 | 17384 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17385 | PyObject *resultobj; |
423f194a RD |
17386 | wxEffects *arg1 = (wxEffects *) 0 ; |
17387 | wxColour result; | |
d14a1e28 | 17388 | PyObject * obj0 = 0 ; |
d14a1e28 | 17389 | char *kwnames[] = { |
423f194a | 17390 | (char *) "self", NULL |
d14a1e28 RD |
17391 | }; |
17392 | ||
423f194a | 17393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
2f4c0a16 RD |
17394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17396 | { |
17397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
423f194a | 17398 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17399 | |
17400 | wxPyEndAllowThreads(__tstate); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
17402 | } | |
423f194a RD |
17403 | { |
17404 | wxColour * resultptr; | |
17405 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 17406 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
423f194a | 17407 | } |
d14a1e28 RD |
17408 | return resultobj; |
17409 | fail: | |
17410 | return NULL; | |
17411 | } | |
17412 | ||
17413 | ||
2f4c0a16 | 17414 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17415 | PyObject *resultobj; |
423f194a RD |
17416 | wxEffects *arg1 = (wxEffects *) 0 ; |
17417 | wxColour result; | |
d14a1e28 RD |
17418 | PyObject * obj0 = 0 ; |
17419 | char *kwnames[] = { | |
423f194a | 17420 | (char *) "self", NULL |
d14a1e28 RD |
17421 | }; |
17422 | ||
17423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17426 | { |
17427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17428 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17429 | ||
17430 | wxPyEndAllowThreads(__tstate); | |
17431 | if (PyErr_Occurred()) SWIG_fail; | |
17432 | } | |
17433 | { | |
17434 | wxColour * resultptr; | |
17435 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 17436 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17437 | } |
17438 | return resultobj; | |
17439 | fail: | |
17440 | return NULL; | |
17441 | } | |
17442 | ||
17443 | ||
2f4c0a16 | 17444 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17445 | PyObject *resultobj; |
17446 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17447 | wxColour result; | |
17448 | PyObject * obj0 = 0 ; | |
17449 | char *kwnames[] = { | |
17450 | (char *) "self", NULL | |
17451 | }; | |
17452 | ||
17453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17456 | { |
17457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17458 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17459 | ||
17460 | wxPyEndAllowThreads(__tstate); | |
17461 | if (PyErr_Occurred()) SWIG_fail; | |
17462 | } | |
17463 | { | |
17464 | wxColour * resultptr; | |
17465 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 17466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17467 | } |
17468 | return resultobj; | |
17469 | fail: | |
17470 | return NULL; | |
17471 | } | |
17472 | ||
17473 | ||
2f4c0a16 | 17474 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17475 | PyObject *resultobj; |
17476 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17477 | wxColour *arg2 = 0 ; | |
17478 | wxColour temp2 ; | |
17479 | PyObject * obj0 = 0 ; | |
17480 | PyObject * obj1 = 0 ; | |
17481 | char *kwnames[] = { | |
17482 | (char *) "self",(char *) "c", NULL | |
17483 | }; | |
17484 | ||
17485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17488 | { |
17489 | arg2 = &temp2; | |
17490 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17491 | } | |
17492 | { | |
17493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17494 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17495 | ||
17496 | wxPyEndAllowThreads(__tstate); | |
17497 | if (PyErr_Occurred()) SWIG_fail; | |
17498 | } | |
17499 | Py_INCREF(Py_None); resultobj = Py_None; | |
17500 | return resultobj; | |
17501 | fail: | |
17502 | return NULL; | |
17503 | } | |
17504 | ||
17505 | ||
2f4c0a16 | 17506 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17507 | PyObject *resultobj; |
17508 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17509 | wxColour *arg2 = 0 ; | |
17510 | wxColour temp2 ; | |
17511 | PyObject * obj0 = 0 ; | |
17512 | PyObject * obj1 = 0 ; | |
17513 | char *kwnames[] = { | |
17514 | (char *) "self",(char *) "c", NULL | |
17515 | }; | |
17516 | ||
17517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17520 | { |
17521 | arg2 = &temp2; | |
17522 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17523 | } | |
17524 | { | |
17525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17526 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17527 | ||
17528 | wxPyEndAllowThreads(__tstate); | |
17529 | if (PyErr_Occurred()) SWIG_fail; | |
17530 | } | |
17531 | Py_INCREF(Py_None); resultobj = Py_None; | |
17532 | return resultobj; | |
17533 | fail: | |
17534 | return NULL; | |
17535 | } | |
17536 | ||
17537 | ||
2f4c0a16 | 17538 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17539 | PyObject *resultobj; |
17540 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17541 | wxColour *arg2 = 0 ; | |
17542 | wxColour temp2 ; | |
17543 | PyObject * obj0 = 0 ; | |
17544 | PyObject * obj1 = 0 ; | |
17545 | char *kwnames[] = { | |
17546 | (char *) "self",(char *) "c", NULL | |
17547 | }; | |
17548 | ||
17549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17552 | { |
17553 | arg2 = &temp2; | |
17554 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17555 | } | |
17556 | { | |
17557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17558 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17559 | ||
17560 | wxPyEndAllowThreads(__tstate); | |
17561 | if (PyErr_Occurred()) SWIG_fail; | |
17562 | } | |
17563 | Py_INCREF(Py_None); resultobj = Py_None; | |
17564 | return resultobj; | |
17565 | fail: | |
17566 | return NULL; | |
17567 | } | |
17568 | ||
17569 | ||
2f4c0a16 | 17570 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17571 | PyObject *resultobj; |
17572 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17573 | wxColour *arg2 = 0 ; | |
17574 | wxColour temp2 ; | |
17575 | PyObject * obj0 = 0 ; | |
17576 | PyObject * obj1 = 0 ; | |
17577 | char *kwnames[] = { | |
17578 | (char *) "self",(char *) "c", NULL | |
17579 | }; | |
17580 | ||
17581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17584 | { |
17585 | arg2 = &temp2; | |
17586 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17587 | } | |
17588 | { | |
17589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17590 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17591 | ||
17592 | wxPyEndAllowThreads(__tstate); | |
17593 | if (PyErr_Occurred()) SWIG_fail; | |
17594 | } | |
17595 | Py_INCREF(Py_None); resultobj = Py_None; | |
17596 | return resultobj; | |
17597 | fail: | |
17598 | return NULL; | |
17599 | } | |
17600 | ||
17601 | ||
2f4c0a16 | 17602 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17603 | PyObject *resultobj; |
17604 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17605 | wxColour *arg2 = 0 ; | |
17606 | wxColour temp2 ; | |
17607 | PyObject * obj0 = 0 ; | |
17608 | PyObject * obj1 = 0 ; | |
17609 | char *kwnames[] = { | |
17610 | (char *) "self",(char *) "c", NULL | |
17611 | }; | |
17612 | ||
17613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17616 | { |
17617 | arg2 = &temp2; | |
17618 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17619 | } | |
17620 | { | |
17621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17622 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17623 | ||
17624 | wxPyEndAllowThreads(__tstate); | |
17625 | if (PyErr_Occurred()) SWIG_fail; | |
17626 | } | |
17627 | Py_INCREF(Py_None); resultobj = Py_None; | |
17628 | return resultobj; | |
17629 | fail: | |
17630 | return NULL; | |
17631 | } | |
17632 | ||
17633 | ||
2f4c0a16 | 17634 | static PyObject *_wrap_Effects_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17635 | PyObject *resultobj; |
17636 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17637 | wxColour *arg2 = 0 ; | |
17638 | wxColour *arg3 = 0 ; | |
17639 | wxColour *arg4 = 0 ; | |
17640 | wxColour *arg5 = 0 ; | |
17641 | wxColour *arg6 = 0 ; | |
17642 | wxColour temp2 ; | |
17643 | wxColour temp3 ; | |
17644 | wxColour temp4 ; | |
17645 | wxColour temp5 ; | |
17646 | wxColour temp6 ; | |
17647 | PyObject * obj0 = 0 ; | |
17648 | PyObject * obj1 = 0 ; | |
17649 | PyObject * obj2 = 0 ; | |
17650 | PyObject * obj3 = 0 ; | |
17651 | PyObject * obj4 = 0 ; | |
17652 | PyObject * obj5 = 0 ; | |
17653 | char *kwnames[] = { | |
17654 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17655 | }; | |
17656 | ||
17657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
2f4c0a16 RD |
17658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17660 | { |
17661 | arg2 = &temp2; | |
17662 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17663 | } | |
17664 | { | |
17665 | arg3 = &temp3; | |
17666 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17667 | } | |
17668 | { | |
17669 | arg4 = &temp4; | |
17670 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17671 | } | |
17672 | { | |
17673 | arg5 = &temp5; | |
17674 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17675 | } | |
17676 | { | |
17677 | arg6 = &temp6; | |
17678 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
17679 | } | |
17680 | { | |
17681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17682 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
17683 | ||
17684 | wxPyEndAllowThreads(__tstate); | |
17685 | if (PyErr_Occurred()) SWIG_fail; | |
17686 | } | |
17687 | Py_INCREF(Py_None); resultobj = Py_None; | |
17688 | return resultobj; | |
17689 | fail: | |
17690 | return NULL; | |
17691 | } | |
17692 | ||
17693 | ||
2f4c0a16 | 17694 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17695 | PyObject *resultobj; |
17696 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17697 | wxDC *arg2 = 0 ; | |
17698 | wxRect *arg3 = 0 ; | |
17699 | int arg4 = (int) 1 ; | |
17700 | wxRect temp3 ; | |
17701 | PyObject * obj0 = 0 ; | |
17702 | PyObject * obj1 = 0 ; | |
17703 | PyObject * obj2 = 0 ; | |
8edf1c75 | 17704 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
17705 | char *kwnames[] = { |
17706 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
17707 | }; | |
17708 | ||
8edf1c75 | 17709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
17710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17713 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17714 | SWIG_fail; | |
d14a1e28 | 17715 | if (arg2 == NULL) { |
2f4c0a16 RD |
17716 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17717 | SWIG_fail; | |
d14a1e28 RD |
17718 | } |
17719 | { | |
17720 | arg3 = &temp3; | |
17721 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
17722 | } | |
8edf1c75 | 17723 | if (obj3) { |
2f4c0a16 RD |
17724 | arg4 = (int) SWIG_AsInt(obj3); |
17725 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17726 | } |
d14a1e28 RD |
17727 | { |
17728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17729 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
17730 | ||
17731 | wxPyEndAllowThreads(__tstate); | |
17732 | if (PyErr_Occurred()) SWIG_fail; | |
17733 | } | |
17734 | Py_INCREF(Py_None); resultobj = Py_None; | |
17735 | return resultobj; | |
17736 | fail: | |
17737 | return NULL; | |
17738 | } | |
17739 | ||
17740 | ||
2f4c0a16 | 17741 | static PyObject *_wrap_Effects_TileBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
17742 | PyObject *resultobj; |
17743 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17744 | wxRect *arg2 = 0 ; | |
17745 | wxDC *arg3 = 0 ; | |
17746 | wxBitmap *arg4 = 0 ; | |
17747 | bool result; | |
17748 | wxRect temp2 ; | |
17749 | PyObject * obj0 = 0 ; | |
17750 | PyObject * obj1 = 0 ; | |
17751 | PyObject * obj2 = 0 ; | |
17752 | PyObject * obj3 = 0 ; | |
17753 | char *kwnames[] = { | |
17754 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
17755 | }; | |
17756 | ||
17757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
17758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17760 | { |
17761 | arg2 = &temp2; | |
17762 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17763 | } | |
2f4c0a16 RD |
17764 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, |
17765 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17766 | SWIG_fail; | |
d14a1e28 | 17767 | if (arg3 == NULL) { |
2f4c0a16 RD |
17768 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17769 | SWIG_fail; | |
d14a1e28 | 17770 | } |
2f4c0a16 RD |
17771 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
17772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17773 | SWIG_fail; | |
d14a1e28 | 17774 | if (arg4 == NULL) { |
2f4c0a16 RD |
17775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17776 | SWIG_fail; | |
d14a1e28 RD |
17777 | } |
17778 | { | |
17779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17780 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
17781 | ||
17782 | wxPyEndAllowThreads(__tstate); | |
17783 | if (PyErr_Occurred()) SWIG_fail; | |
17784 | } | |
02a34c4c | 17785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17786 | return resultobj; |
17787 | fail: | |
17788 | return NULL; | |
17789 | } | |
17790 | ||
17791 | ||
2f4c0a16 | 17792 | static PyObject * Effects_swigregister(PyObject *, PyObject *args) { |
d14a1e28 RD |
17793 | PyObject *obj; |
17794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17795 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
17796 | Py_INCREF(obj); | |
17797 | return Py_BuildValue((char *)""); | |
17798 | } | |
17799 | static PyMethodDef SwigMethods[] = { | |
2f4c0a16 RD |
17800 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, |
17801 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17802 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17803 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17804 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17805 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL }, | |
17806 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17807 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17808 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17809 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17810 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17811 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17812 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17813 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17814 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17815 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17816 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17817 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17818 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17819 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17820 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17821 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17822 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL }, | |
17823 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17824 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17825 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17826 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17827 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17828 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL }, | |
17829 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17830 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17831 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17832 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17833 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17834 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17835 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17836 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17837 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17838 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17839 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17840 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17841 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17842 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17843 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17844 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17845 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17846 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL }, | |
17847 | { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17848 | { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17849 | { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17850 | { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS, NULL }, | |
17851 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17852 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17853 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17854 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17855 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17856 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17857 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17858 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17859 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17860 | { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17861 | { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17862 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL }, | |
17863 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17864 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17865 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17866 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17867 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17868 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17869 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17870 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17871 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17872 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17873 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17874 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17875 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17876 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17877 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17878 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17879 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17880 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17881 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17882 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17883 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17884 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17885 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL }, | |
17886 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17887 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL }, | |
17888 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17889 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17890 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17891 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17892 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17893 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17894 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17895 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17896 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17897 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17898 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17899 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17900 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17901 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17902 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL }, | |
17903 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17904 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17905 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17906 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17907 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17908 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17909 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17910 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL }, | |
17911 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17912 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17913 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17914 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17915 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17916 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17917 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17918 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL }, | |
17919 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17920 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17921 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17922 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17923 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17924 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL }, | |
17925 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17926 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17927 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17928 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17929 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17930 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17931 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17932 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17933 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17934 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17935 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17936 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17937 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17938 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17939 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17940 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17941 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17942 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17943 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17944 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17945 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17946 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17947 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17948 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17949 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17950 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL }, | |
17951 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17952 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17953 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17954 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17955 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17956 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17957 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17958 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17959 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17960 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17961 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17962 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17963 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17964 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL }, | |
17965 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17966 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17967 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17968 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17969 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17970 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17971 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17972 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17973 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17974 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17975 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17976 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17977 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17978 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17979 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17980 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17981 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17982 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17983 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17984 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17985 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17986 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17987 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17988 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL }, | |
17989 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17990 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17991 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17992 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17993 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17994 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17995 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17996 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17997 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL }, | |
17998 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
17999 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18000 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18001 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18002 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18003 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18004 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18005 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18006 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18007 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18008 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18009 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18010 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18011 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18012 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18013 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18014 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18015 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18016 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL }, | |
18017 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18018 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18019 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18020 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18021 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18022 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18023 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18024 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18025 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18026 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18027 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18028 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18029 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18030 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18031 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18032 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18033 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18034 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18035 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18036 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18037 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18038 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18039 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18040 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18041 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18042 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18043 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18044 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18045 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18046 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18047 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18048 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18049 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18050 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18051 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18052 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18053 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL }, | |
18054 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18055 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18056 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18057 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18058 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18059 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18060 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18061 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL }, | |
18062 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18063 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18064 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18065 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18066 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18067 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18068 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL }, | |
18069 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18070 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18071 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18072 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18073 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18074 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18075 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18076 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18077 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18078 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18079 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18080 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18081 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18082 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18083 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18084 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18085 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18086 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18087 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18088 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18089 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18090 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL }, | |
18091 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18092 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL }, | |
18093 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18094 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18095 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18096 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18097 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18098 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18099 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18100 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL }, | |
18101 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18102 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18103 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18104 | { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18105 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18106 | { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18107 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18108 | { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18109 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18110 | { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18111 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18112 | { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18113 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18114 | { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18115 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18116 | { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18117 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18118 | { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18119 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18120 | { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18121 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18122 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18123 | { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18124 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18125 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18126 | { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18127 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18128 | { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18129 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18130 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18131 | { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18132 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18133 | { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18134 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18135 | { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18136 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18137 | { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18138 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18139 | { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18140 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18141 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18142 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18143 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18144 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18145 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18146 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18147 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18148 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18149 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18150 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18151 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18152 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18153 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18154 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18155 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18156 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18157 | { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18158 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18159 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18160 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18161 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18162 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18163 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18164 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18165 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18166 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18167 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18168 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18169 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18170 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18171 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18172 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18173 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18174 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18175 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18176 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18177 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18178 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18179 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18180 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18181 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18182 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18183 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18184 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18185 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18186 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18187 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18188 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18189 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18190 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18191 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18192 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18193 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18194 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18195 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18196 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18197 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18198 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18199 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18200 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18201 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18202 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18203 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18204 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18205 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18206 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18207 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18208 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18209 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18210 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18211 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18212 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18213 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18214 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18215 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18216 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18217 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18218 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18219 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18220 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18221 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18222 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18223 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18224 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18225 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18226 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL }, | |
18227 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18228 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18229 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18230 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL }, | |
18231 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL }, | |
18232 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS, NULL }, | |
18233 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18234 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18235 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL }, | |
18236 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18237 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL }, | |
18238 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18239 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18240 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18241 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18242 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL }, | |
18243 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18244 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL }, | |
18245 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18246 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL }, | |
18247 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18248 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL }, | |
18249 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18250 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL }, | |
18251 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18252 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18253 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18254 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18255 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18256 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL }, | |
18257 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18258 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL }, | |
18259 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18260 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL }, | |
18261 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18262 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL }, | |
18263 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18264 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18265 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18266 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18267 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18268 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18269 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18270 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18271 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18272 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18273 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18274 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL }, | |
18275 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18276 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18277 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18278 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18279 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL }, | |
18280 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18281 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18282 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18283 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18284 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL }, | |
18285 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18286 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18287 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18288 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18289 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18290 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18291 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL }, | |
18292 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18293 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18294 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18295 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18296 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL }, | |
18297 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18298 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18299 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18300 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18301 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18302 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18303 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18304 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18305 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18306 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18307 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18308 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18309 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18310 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
18311 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL }, | |
18312 | { NULL, NULL, 0, NULL } | |
d14a1e28 RD |
18313 | }; |
18314 | ||
18315 | ||
18316 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18317 | ||
423f194a RD |
18318 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
18319 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18320 | } | |
18321 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18322 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18323 | } | |
18324 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18325 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18326 | } | |
d14a1e28 RD |
18327 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
18328 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18329 | } | |
18330 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18331 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18332 | } | |
d14a1e28 RD |
18333 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
18334 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18335 | } | |
18336 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18337 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18338 | } | |
18339 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18340 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18341 | } | |
18342 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18343 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18344 | } | |
18345 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18346 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18347 | } | |
18348 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18349 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18350 | } | |
18351 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18352 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18353 | } | |
18354 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18355 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18356 | } | |
18357 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18358 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18359 | } | |
18360 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18361 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18362 | } | |
18363 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18364 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18365 | } | |
18366 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18367 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18368 | } | |
18369 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18370 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18371 | } | |
18372 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18373 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18374 | } | |
18375 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18376 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18377 | } | |
18378 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18379 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18380 | } | |
18381 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18382 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18383 | } | |
18384 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18385 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18386 | } | |
18387 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18388 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18389 | } | |
18390 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18391 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18392 | } | |
18393 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18394 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18395 | } | |
18396 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18397 | return (void *)((wxObject *) ((wxDC *) x)); | |
18398 | } | |
18399 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18400 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18401 | } | |
18402 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18403 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18404 | } | |
18405 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18406 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18407 | } | |
18408 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18409 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18410 | } | |
18411 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18412 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18413 | } | |
18414 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18415 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18416 | } | |
18417 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18418 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18419 | } | |
18420 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18421 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18422 | } | |
18423 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18424 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18425 | } | |
18426 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18427 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18428 | } | |
18429 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18430 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18431 | } | |
18432 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18433 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18434 | } | |
18435 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18436 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18437 | } | |
18438 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18439 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18440 | } | |
18441 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18442 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18443 | } | |
18444 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18445 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18446 | } | |
18447 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18448 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18449 | } | |
18450 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18451 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18452 | } | |
18453 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18454 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18455 | } | |
18456 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18457 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18458 | } | |
18459 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18460 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18461 | } | |
18462 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18463 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18464 | } | |
18465 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18466 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18467 | } | |
18468 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18469 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18470 | } | |
18471 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18472 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18473 | } | |
18474 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18475 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18476 | } | |
18477 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18478 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18479 | } | |
18480 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18481 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18482 | } | |
18483 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18484 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18485 | } | |
18486 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18487 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18488 | } | |
18489 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18490 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18491 | } | |
18492 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18493 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18494 | } | |
18495 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18496 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18497 | } | |
18498 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18499 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18500 | } | |
18501 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18502 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18503 | } | |
18504 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18505 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18506 | } | |
18507 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18508 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18509 | } | |
18510 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18511 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18512 | } | |
18513 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18514 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18515 | } | |
18516 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18517 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18518 | } | |
18519 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18520 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18521 | } | |
18522 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18523 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18524 | } | |
18525 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18526 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18527 | } | |
18528 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18529 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18530 | } | |
41f1cec7 RD |
18531 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18532 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18533 | } | |
d14a1e28 RD |
18534 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18535 | return (void *)((wxObject *) ((wxImage *) x)); | |
18536 | } | |
18537 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18538 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18539 | } | |
d14a1e28 RD |
18540 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18541 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18542 | } | |
18543 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18544 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18545 | } | |
18546 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18547 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18548 | } | |
18549 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18550 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18551 | } | |
18552 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18553 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18554 | } | |
18555 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18556 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18557 | } | |
18558 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18559 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18560 | } | |
18561 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18562 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18563 | } | |
18564 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18565 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18566 | } | |
18567 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18568 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18569 | } | |
18570 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18571 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18572 | } | |
18573 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18574 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18575 | } | |
18576 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18577 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18578 | } | |
18579 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18580 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18581 | } | |
18582 | static void *_p_wxPyPenTo_p_wxObject(void *x) { | |
18583 | return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x)); | |
18584 | } | |
18585 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
18586 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18587 | } | |
18588 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18589 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18590 | } | |
18591 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18592 | return (void *)((wxObject *) ((wxMask *) x)); | |
18593 | } | |
18594 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18595 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18596 | } | |
18597 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18598 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18599 | } | |
18600 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18601 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18602 | } | |
18603 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18604 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18605 | } | |
18606 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18607 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18608 | } | |
18609 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18610 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18611 | } | |
18612 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18613 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18614 | } | |
18615 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18616 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18617 | } | |
18618 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18619 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18620 | } | |
18621 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18622 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18623 | } | |
18624 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18625 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18626 | } | |
18627 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18628 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18629 | } | |
18630 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18631 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18632 | } | |
18633 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18634 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18635 | } | |
18636 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18637 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18638 | } | |
18639 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18640 | return (void *)((wxObject *) ((wxColour *) x)); | |
18641 | } | |
18642 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18643 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18644 | } | |
18645 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18646 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18647 | } | |
18648 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18649 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18650 | } | |
423f194a RD |
18651 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18652 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18653 | } |
423f194a RD |
18654 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18655 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18656 | } |
423f194a RD |
18657 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18658 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18659 | } | |
18660 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18661 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18662 | } | |
18663 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18664 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18665 | } | |
18666 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18667 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18668 | } | |
18669 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18670 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18671 | } | |
18672 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
18673 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18674 | } | |
18675 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
18676 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
18677 | } | |
18678 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
18679 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
18680 | } | |
18681 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
18682 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
18683 | } | |
18684 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
18685 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
18686 | } | |
18687 | static void *_p_wxPyPenTo_p_wxGDIObject(void *x) { | |
18688 | return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x)); | |
18689 | } | |
18690 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { | |
18691 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
18692 | } | |
18693 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
18694 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
18695 | } | |
18696 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
18697 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
18698 | } | |
18699 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
18700 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
18701 | } | |
18702 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
18703 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
18704 | } | |
18705 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
18706 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
18707 | } | |
18708 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
18709 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
18710 | } | |
18711 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
18712 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
18713 | } | |
18714 | static void *_p_wxPyPenTo_p_wxPen(void *x) { | |
18715 | return (void *)((wxPen *) ((wxPyPen *) x)); | |
d14a1e28 | 18716 | } |
2f4c0a16 RD |
18717 | 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}}; |
18718 | 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}}; | |
18719 | 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}}; | |
18720 | 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}}; | |
18721 | 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}}; | |
18722 | 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}}; | |
18723 | 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}}; | |
18724 | 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}}; | |
18725 | 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}}; | |
18726 | 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}}; | |
18727 | 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}}; | |
18728 | 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}}; | |
18729 | 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}}; | |
18730 | 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}}; | |
18731 | 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}}; | |
18732 | 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}}; | |
18733 | 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}}; | |
18734 | 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}}; | |
18735 | 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}}; | |
18736 | 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}}; | |
18737 | 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}}; | |
18738 | 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}}; | |
18739 | 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}}; | |
18740 | 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}}; | |
18741 | 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}}; | |
18742 | 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}}; | |
18743 | 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}}; | |
18744 | 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}}; | |
18745 | 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}}; | |
18746 | 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}}; | |
18747 | 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}}; | |
18748 | 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}}; | |
18749 | 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}}; | |
18750 | 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}}; | |
18751 | 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}}; | |
18752 | 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}}; | |
18753 | 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}}; | |
18754 | 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}}; | |
18755 | 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}}; | |
18756 | 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}}; | |
18757 | 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}}; | |
18758 | 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}}; | |
18759 | 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}}; | |
18760 | 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}}; | |
18761 | 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}}; | |
18762 | 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}}; | |
18763 | 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}}; | |
18764 | 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}}; | |
18765 | 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}}; | |
18766 | 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}}; | |
18767 | 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}}; | |
18768 | 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}}; | |
18769 | 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}}; | |
18770 | 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}}; | |
18771 | 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}}; | |
18772 | 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 |
18773 | |
18774 | static swig_type_info *swig_types_initial[] = { | |
18775 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
18776 | _swigt__p_wxBrush, |
18777 | _swigt__p_wxColour, | |
d14a1e28 RD |
18778 | _swigt__p_wxDC, |
18779 | _swigt__p_wxMirrorDC, | |
18780 | _swigt__p_byte, | |
18781 | _swigt__p_wxPyFontEnumerator, | |
8edf1c75 | 18782 | _swigt__p_char, |
d14a1e28 RD |
18783 | _swigt__p_wxIconLocation, |
18784 | _swigt__p_wxImage, | |
18785 | _swigt__p_wxMetaFileDC, | |
18786 | _swigt__p_wxMask, | |
18787 | _swigt__p_wxFont, | |
18788 | _swigt__p_wxWindow, | |
18789 | _swigt__p_wxSize, | |
18790 | _swigt__p_double, | |
18791 | _swigt__p_wxMemoryDC, | |
18792 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
18793 | _swigt__p_wxEffects, |
18794 | _swigt__p_wxNativeEncodingInfo, | |
18795 | _swigt__p_wxPalette, | |
18796 | _swigt__p_wxBitmap, | |
18797 | _swigt__p_wxObject, | |
18798 | _swigt__p_wxRegionIterator, | |
18799 | _swigt__p_wxRect, | |
18800 | _swigt__p_wxString, | |
18801 | _swigt__p_wxPrinterDC, | |
18802 | _swigt__p_wxIconBundle, | |
18803 | _swigt__p_wxPoint, | |
18804 | _swigt__p_wxDash, | |
18805 | _swigt__p_wxScreenDC, | |
18806 | _swigt__p_wxCursor, | |
18807 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
18808 | _swigt__p_wxBufferedDC, |
18809 | _swigt__p_wxImageList, | |
18810 | _swigt__p_unsigned_char, | |
18811 | _swigt__p_wxGDIObject, | |
d14a1e28 | 18812 | _swigt__p_wxIcon, |
8edf1c75 | 18813 | _swigt__p_wxLocale, |
d14a1e28 RD |
18814 | _swigt__p_wxRegion, |
18815 | _swigt__p_wxLanguageInfo, | |
18816 | _swigt__p_wxConfigBase, | |
18817 | _swigt__p_wxWindowDC, | |
18818 | _swigt__p_wxPrintData, | |
18819 | _swigt__p_wxBrushList, | |
18820 | _swigt__p_wxFontList, | |
18821 | _swigt__p_wxPen, | |
18822 | _swigt__p_wxBufferedPaintDC, | |
18823 | _swigt__p_wxPaintDC, | |
18824 | _swigt__p_wxPenList, | |
d14a1e28 RD |
18825 | _swigt__p_wxPyPen, |
18826 | _swigt__p_int, | |
18827 | _swigt__p_wxMetaFile, | |
18828 | _swigt__p_wxNativeFontInfo, | |
18829 | _swigt__p_wxEncodingConverter, | |
18830 | _swigt__p_wxColourDatabase, | |
18831 | 0 | |
18832 | }; | |
18833 | ||
18834 | ||
18835 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
18836 | ||
18837 | static swig_const_info swig_const_table[] = { | |
2f4c0a16 | 18838 | {0, 0, 0, 0.0, 0, 0}}; |
d14a1e28 RD |
18839 | |
18840 | #ifdef __cplusplus | |
18841 | } | |
18842 | #endif | |
18843 | ||
18844 | #ifdef __cplusplus | |
18845 | extern "C" | |
18846 | #endif | |
18847 | SWIGEXPORT(void) SWIG_init(void) { | |
18848 | static PyObject *SWIG_globals = 0; | |
18849 | static int typeinit = 0; | |
18850 | PyObject *m, *d; | |
18851 | int i; | |
18852 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
18853 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
18854 | d = PyModule_GetDict(m); | |
18855 | ||
18856 | if (!typeinit) { | |
18857 | for (i = 0; swig_types_initial[i]; i++) { | |
18858 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
18859 | } | |
18860 | typeinit = 1; | |
18861 | } | |
18862 | SWIG_InstallConstants(d,swig_const_table); | |
18863 | ||
2f4c0a16 RD |
18864 | PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); |
18865 | PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); | |
18866 | PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); | |
18867 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
18868 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
18869 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); | |
18870 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
18871 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); | |
18872 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); | |
18873 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
18874 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); | |
18875 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
18876 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); | |
18877 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); | |
18878 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); | |
18879 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); | |
18880 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
18881 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
18882 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); | |
18883 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); | |
18884 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); | |
18885 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); | |
18886 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); | |
18887 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); | |
18888 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); | |
18889 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
18890 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
18891 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
18892 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
18893 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); | |
18894 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); | |
18895 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); | |
18896 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
18897 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
18898 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
18899 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
18900 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
18901 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
18902 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
18903 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
18904 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
18905 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
18906 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
18907 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
18908 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
18909 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
18910 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
18911 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
18912 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); | |
18913 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
18914 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
18915 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); | |
18916 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); | |
18917 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); | |
18918 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); | |
18919 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); | |
18920 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); | |
18921 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); | |
18922 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); | |
18923 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); | |
18924 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); | |
18925 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); | |
18926 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); | |
18927 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); | |
18928 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); | |
18929 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); | |
18930 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); | |
18931 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); | |
18932 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); | |
18933 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
18934 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); | |
18935 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); | |
18936 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); | |
18937 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); | |
18938 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); | |
18939 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); | |
18940 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); | |
18941 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); | |
18942 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
18943 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
18944 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
18945 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); | |
18946 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
18947 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); | |
18948 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
18949 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
18950 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
18951 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
18952 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); | |
18953 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
18954 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
18955 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
18956 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
18957 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
18958 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
18959 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
18960 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); | |
18961 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); | |
18962 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
18963 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
18964 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
18965 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
18966 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
18967 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
18968 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
18969 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
18970 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
18971 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
18972 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
18973 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
18974 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
18975 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
18976 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
18977 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
18978 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
18979 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
18980 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
18981 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); | |
18982 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); | |
18983 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); | |
18984 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); | |
18985 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); | |
18986 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); | |
18987 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); | |
18988 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); | |
18989 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
18990 | |
18991 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
18992 | ||
2f4c0a16 RD |
18993 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); |
18994 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
18995 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
18996 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); | |
18997 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
18998 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
18999 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); | |
19000 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); | |
19001 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19002 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19003 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19004 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19005 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19006 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19007 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19008 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19009 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19010 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
19011 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
19012 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19013 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19014 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19015 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19016 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
19017 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19018 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
19019 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
19020 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); | |
19021 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); | |
19022 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19023 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
19024 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); | |
19025 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); | |
19026 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
19027 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); | |
19028 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); | |
19029 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); | |
19030 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); | |
19031 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); | |
19032 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
19033 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); | |
19034 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
19035 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); | |
19036 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); | |
19037 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19038 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19039 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19040 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
19041 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19042 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19043 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); | |
19044 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); | |
19045 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); | |
19046 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); | |
19047 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); | |
19048 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19049 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); | |
19050 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
19051 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
19052 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19053 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19054 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19055 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19056 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19057 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19058 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19059 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19060 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19061 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19062 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19063 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19064 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19065 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
19066 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
19067 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); | |
19068 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); | |
19069 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); | |
19070 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); | |
19071 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); | |
19072 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19073 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19074 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19075 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
19076 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
19077 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); | |
19078 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); | |
19079 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
19080 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); | |
19081 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19082 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19083 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19084 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19085 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19086 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); | |
19087 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19088 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); | |
19089 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19090 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); | |
19091 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); | |
19092 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); | |
19093 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19094 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19095 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19096 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19097 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19098 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19099 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19100 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); | |
19101 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19102 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19103 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19104 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19105 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); | |
19106 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19107 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19108 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19109 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19110 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19111 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19112 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19113 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); | |
19114 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); | |
19115 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); | |
19116 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19117 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); | |
19118 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19119 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); | |
19120 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19121 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19122 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19123 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); | |
19124 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19125 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19126 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19127 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); | |
19128 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19129 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); | |
19130 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); | |
19131 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19132 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19133 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); | |
19134 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); | |
19135 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19136 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19137 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19138 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19139 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); | |
19140 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); | |
19141 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); | |
19142 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); | |
19143 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19144 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19145 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19146 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19147 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19148 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19149 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19150 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19151 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19152 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); | |
19153 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19154 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19155 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19156 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19157 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19158 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19159 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19160 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19161 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); | |
19162 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); | |
19163 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19164 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); | |
19165 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19166 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19167 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); | |
19168 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); | |
19169 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19170 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19171 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19172 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19173 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19174 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19175 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19176 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19177 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19178 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19179 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19180 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19181 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19182 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19183 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19184 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19185 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19186 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19187 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19188 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19189 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19190 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19191 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19192 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19193 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19194 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); | |
19195 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); | |
19196 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); | |
19197 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); | |
19198 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); | |
19199 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19200 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19201 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); | |
19202 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); | |
19203 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); | |
19204 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19205 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); | |
19206 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19207 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19208 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); | |
19209 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19210 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19211 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); | |
19212 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19213 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19214 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19215 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19216 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); | |
19217 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); | |
19218 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); | |
19219 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19220 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); | |
19221 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19222 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); | |
19223 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19224 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19225 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); | |
19226 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19227 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); | |
19228 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19229 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19230 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19231 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19232 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); | |
19233 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19234 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); | |
19235 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); | |
19236 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); | |
19237 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); | |
19238 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); | |
19239 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
19240 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19241 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19242 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19243 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19244 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19245 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19246 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19247 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19248 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19249 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19250 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19251 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19252 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19253 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19254 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19255 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19256 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19257 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19258 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19259 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19260 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19261 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19262 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19263 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19264 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19265 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19266 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19267 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19268 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19269 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19270 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19271 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19272 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19273 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19274 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19275 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19276 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19277 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19278 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19279 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19280 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19281 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19282 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19283 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19284 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19285 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19286 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19287 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19288 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19289 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19290 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19291 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19292 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
44127b65 RD |
19293 | |
19294 | // Work around a chicken/egg problem in drawlist.cpp | |
19295 | wxPyDrawList_SetAPIPtr(); | |
19296 | ||
d14a1e28 RD |
19297 | } |
19298 |