]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 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 | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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) | |
a41e16b6 | 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 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 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 | ||
9d1d5697 | 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] | |
e811c8ce 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] | |
994141e6 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] | |
b2df227b RD |
221 | #define SWIGTYPE_p_wxSize swig_types[12] |
222 | #define SWIGTYPE_p_wxFont swig_types[13] | |
223 | #define SWIGTYPE_p_wxWindow swig_types[14] | |
994141e6 RD |
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] | |
e811c8ce | 246 | #define SWIGTYPE_p_wxIcon swig_types[37] |
994141e6 RD |
247 | #define SWIGTYPE_p_wxLocale swig_types[38] |
248 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
66c033b4 RD |
249 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] |
250 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
994141e6 RD |
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] | |
66c033b4 RD |
259 | #define SWIGTYPE_p_int swig_types[50] |
260 | #define SWIGTYPE_p_wxMetaFile swig_types[51] | |
261 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[52] | |
262 | #define SWIGTYPE_p_wxEncodingConverter swig_types[53] | |
263 | #define SWIGTYPE_p_wxColourDatabase swig_types[54] | |
264 | static swig_type_info *swig_types[56]; | |
d14a1e28 RD |
265 | |
266 | /* -------- TYPES TABLE (END) -------- */ | |
267 | ||
268 | ||
269 | /*----------------------------------------------- | |
54f9ee45 | 270 | @(target):= _gdi_.so |
d14a1e28 | 271 | ------------------------------------------------*/ |
54f9ee45 | 272 | #define SWIG_init init_gdi_ |
d14a1e28 | 273 | |
54f9ee45 | 274 | #define SWIG_name "_gdi_" |
d14a1e28 | 275 | |
15afbcd0 | 276 | /* Auxiliar swig macros */ |
994141e6 | 277 | |
994141e6 | 278 | #ifdef __cplusplus |
15afbcd0 | 279 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 280 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
281 | #define swig_new_array(type, size) (new type[(size)]) |
282 | #define swig_delete_array(cptr) delete[] cptr | |
283 | #define swig_const_cast(type,a) const_cast<type>(a) | |
284 | #define swig_static_cast(type,a) static_cast<type>(a) | |
285 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 286 | |
994141e6 | 287 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 288 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 289 | #else |
15afbcd0 | 290 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
291 | #endif |
292 | ||
15afbcd0 RD |
293 | #else /* C case */ |
294 | ||
295 | #define SWIGSTATICINLINE(a) static a | |
296 | #define SWIGSTATIC(a) static a | |
297 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
298 | #define swig_delete_array(cptr) free((char*)cptr) | |
299 | #define swig_const_cast(type,a) (type)(a) | |
300 | #define swig_static_cast(type,a) (type)(a) | |
301 | #define swig_reinterpret_cast(type,a) (type)(a) | |
302 | #define swig_numeric_cast(type,a) (type)(a) | |
303 | ||
304 | #endif /* __cplusplus */ | |
994141e6 RD |
305 | |
306 | ||
15afbcd0 RD |
307 | #define SWIG_FromSignedChar PyInt_FromLong |
308 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
309 | #define SWIG_FromShort PyInt_FromLong | |
310 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
311 | #define SWIG_FromInt PyInt_FromLong | |
312 | #define SWIG_FromLong PyInt_FromLong | |
313 | #define SWIG_FromFloat PyFloat_FromDouble | |
314 | #define SWIG_FromDouble PyFloat_FromDouble | |
315 | #define SWIG_FromFloat PyFloat_FromDouble | |
316 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
317 | |
318 | ||
d14a1e28 RD |
319 | #include "wx/wxPython/wxPython.h" |
320 | #include "wx/wxPython/pyclasses.h" | |
321 | ||
d14a1e28 | 322 | |
b2dc1044 | 323 | static const wxString wxPyEmptyString(wxEmptyString); |
994141e6 | 324 | |
15afbcd0 RD |
325 | SWIGSTATICINLINE(bool) |
326 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
327 | { |
328 | return PyObject_IsTrue(obj) ? true : false; | |
329 | } | |
330 | ||
331 | ||
15afbcd0 RD |
332 | SWIGSTATICINLINE(int) |
333 | SWIG_CheckBool(PyObject* obj) | |
334 | { | |
335 | SWIG_AsBool(obj); | |
336 | if (PyErr_Occurred()) { | |
337 | PyErr_Clear(); | |
338 | return 0; | |
339 | } else { | |
340 | return 1; | |
341 | } | |
342 | } | |
343 | ||
344 | ||
345 | #include <limits.h> | |
346 | ||
347 | ||
348 | SWIGSTATICINLINE(unsigned long) | |
349 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
350 | unsigned long max_value) | |
351 | { | |
352 | if (!PyErr_Occurred()) { | |
353 | if (value > max_value) { | |
354 | PyObject *err = | |
355 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
356 | value, type, max_value); | |
357 | PyErr_SetObject(PyExc_OverflowError, err); | |
358 | Py_DECREF(err); | |
359 | } | |
360 | } | |
361 | return value; | |
362 | } | |
363 | ||
364 | ||
69223c70 RD |
365 | SWIGSTATICINLINE(long) |
366 | SWIG_AsLong(PyObject * obj) | |
367 | { | |
368 | if (PyNumber_Check(obj)) | |
369 | return PyInt_AsLong(obj); | |
370 | else { | |
371 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
372 | obj->ob_type->tp_name); | |
373 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
374 | Py_DECREF(errmsg); | |
375 | return 0; | |
376 | } | |
377 | } | |
378 | ||
379 | ||
15afbcd0 RD |
380 | SWIGSTATICINLINE(unsigned long) |
381 | SWIG_AsUnsignedLong(PyObject * obj) | |
382 | { | |
383 | if (PyLong_Check(obj)) { | |
384 | return PyLong_AsUnsignedLong(obj); | |
385 | } else { | |
69223c70 | 386 | long i = SWIG_AsLong(obj); |
15afbcd0 | 387 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 388 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
389 | } |
390 | return i; | |
391 | } | |
392 | } | |
393 | ||
394 | ||
395 | SWIGSTATICINLINE(unsigned char) | |
396 | SWIG_AsUnsignedChar(PyObject *obj) | |
994141e6 | 397 | { |
15afbcd0 RD |
398 | return swig_numeric_cast(unsigned char, |
399 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
400 | "unsigned char", UCHAR_MAX)); | |
401 | } | |
402 | ||
403 | ||
404 | SWIGSTATICINLINE(int) | |
405 | SWIG_CheckUnsignedChar(PyObject* obj) | |
406 | { | |
407 | SWIG_AsUnsignedChar(obj); | |
408 | if (PyErr_Occurred()) { | |
409 | PyErr_Clear(); | |
410 | return 0; | |
411 | } else { | |
412 | return 1; | |
413 | } | |
414 | } | |
415 | ||
416 | ||
417 | SWIGSTATICINLINE(int) | |
418 | SWIG_CheckUnsignedLong(PyObject* obj) | |
419 | { | |
420 | SWIG_AsUnsignedLong(obj); | |
421 | if (PyErr_Occurred()) { | |
422 | PyErr_Clear(); | |
423 | return 0; | |
424 | } else { | |
425 | return 1; | |
426 | } | |
994141e6 RD |
427 | } |
428 | ||
d14a1e28 RD |
429 | PyObject *wxColour_Get(wxColour *self){ |
430 | PyObject* rv = PyTuple_New(3); | |
431 | int red = -1; | |
432 | int green = -1; | |
433 | int blue = -1; | |
434 | if (self->Ok()) { | |
435 | red = self->Red(); | |
436 | green = self->Green(); | |
437 | blue = self->Blue(); | |
438 | } | |
439 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
440 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
441 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
442 | return rv; | |
443 | } | |
b88bce5f RD |
444 | unsigned long wxColour_GetRGB(wxColour *self){ |
445 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
446 | } | |
447 | ||
15afbcd0 RD |
448 | SWIGSTATICINLINE(PyObject* ) |
449 | SWIG_FromUnsignedLong(unsigned long value) | |
450 | { | |
451 | return (value > LONG_MAX) ? | |
452 | PyLong_FromUnsignedLong(value) | |
453 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
454 | } | |
455 | ||
456 | ||
457 | SWIGSTATICINLINE(long) | |
458 | SWIG_CheckLongInRange(long value, const char* type, | |
459 | long min_value, long max_value) | |
460 | { | |
461 | if (!PyErr_Occurred()) { | |
462 | if (value < min_value) { | |
463 | PyObject *err = | |
464 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
465 | value, type, min_value); | |
466 | ||
467 | PyErr_SetObject(PyExc_OverflowError, err); | |
468 | Py_DECREF(err); | |
469 | } else if (value > max_value) { | |
470 | PyObject *err = | |
471 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
472 | value, type, max_value); | |
473 | PyErr_SetObject(PyExc_OverflowError, err); | |
474 | Py_DECREF(err); | |
475 | } | |
476 | } | |
477 | return value; | |
478 | } | |
479 | ||
480 | ||
15afbcd0 RD |
481 | #if INT_MAX != LONG_MAX |
482 | SWIGSTATICINLINE(int) | |
483 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 484 | { |
15afbcd0 RD |
485 | return swig_numeric_cast(int, |
486 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
487 | "int", INT_MIN, INT_MAX)); | |
488 | } | |
489 | #else | |
490 | #define SWIG_AsInt SWIG_AsLong | |
491 | #endif | |
492 | ||
493 | ||
494 | SWIGSTATICINLINE(int) | |
495 | SWIG_CheckInt(PyObject* obj) | |
496 | { | |
497 | SWIG_AsInt(obj); | |
498 | if (PyErr_Occurred()) { | |
499 | PyErr_Clear(); | |
500 | return 0; | |
501 | } else { | |
502 | return 1; | |
503 | } | |
994141e6 RD |
504 | } |
505 | ||
506 | ||
d14a1e28 RD |
507 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
508 | PyObject* o2; | |
509 | PyObject* o3; | |
510 | ||
511 | if (!target) { | |
512 | target = o; | |
513 | } else if (target == Py_None) { | |
514 | Py_DECREF(Py_None); | |
515 | target = o; | |
516 | } else { | |
517 | if (!PyTuple_Check(target)) { | |
518 | o2 = target; | |
519 | target = PyTuple_New(1); | |
520 | PyTuple_SetItem(target, 0, o2); | |
521 | } | |
522 | o3 = PyTuple_New(1); | |
523 | PyTuple_SetItem(o3, 0, o); | |
524 | ||
525 | o2 = target; | |
526 | target = PySequence_Concat(o2, o3); | |
527 | Py_DECREF(o2); | |
528 | Py_DECREF(o3); | |
529 | } | |
530 | return target; | |
531 | } | |
532 | ||
533 | PyObject *wxPen_GetDashes(wxPen *self){ | |
534 | wxDash* dashes; | |
535 | int count = self->GetDashes(&dashes); | |
4f89f6a3 | 536 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 537 | PyObject* retval = PyList_New(0); |
1a10c483 RD |
538 | for (int x=0; x<count; x++) { |
539 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
540 | PyList_Append(retval, pyint); | |
541 | Py_DECREF(pyint); | |
542 | } | |
4f89f6a3 | 543 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
544 | return retval; |
545 | } | |
66c033b4 RD |
546 | void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
547 | bool blocked = wxPyBeginBlockThreads(); | |
548 | int size = PyList_Size(pyDashes); | |
549 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
550 | ||
551 | // black magic warning! The array of wxDashes needs to exist as | |
552 | // long as the pen does because wxPen does not copy the array. So | |
553 | // stick a copy in a Python string object and attach it to _self, | |
554 | // and then call SetDashes with a pointer to that array. Then | |
555 | // when the Python pen object is destroyed the array will be | |
556 | // cleaned up too. | |
557 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
558 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
559 | ||
560 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
561 | delete [] dashes; | |
562 | Py_DECREF(strDashes); | |
563 | wxPyEndBlockThreads(blocked); | |
564 | } | |
22faec7d RD |
565 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; } |
566 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 | 567 | |
d14a1e28 RD |
568 | #include <wx/image.h> |
569 | ||
570 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
571 | char** cArray = NULL; | |
572 | int count; | |
573 | ||
574 | if (!PyList_Check(listOfStrings)) { | |
575 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
576 | return NULL; | |
577 | } | |
578 | count = PyList_Size(listOfStrings); | |
579 | cArray = new char*[count]; | |
580 | ||
581 | for(int x=0; x<count; x++) { | |
582 | // TODO: Need some validation and error checking here | |
583 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
584 | } | |
585 | return cArray; | |
586 | } | |
587 | ||
588 | ||
589 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
590 | char** cArray = NULL; | |
591 | wxBitmap* bmp; | |
592 | ||
593 | cArray = ConvertListOfStrings(listOfStrings); | |
594 | if (! cArray) | |
595 | return NULL; | |
596 | bmp = new wxBitmap(cArray); | |
597 | delete [] cArray; | |
598 | return bmp; | |
599 | } | |
600 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
601 | char* buf; | |
602 | int length; | |
603 | PyString_AsStringAndSize(bits, &buf, &length); | |
604 | return new wxBitmap(buf, width, height, depth); | |
605 | } | |
b2df227b RD |
606 | wxSize wxBitmap_GetSize(wxBitmap *self){ |
607 | wxSize size(self->GetWidth(), self->GetHeight()); | |
608 | return size; | |
609 | } | |
d14a1e28 RD |
610 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
611 | wxMask *mask = new wxMask(*self, colour); | |
612 | self->SetMask(mask); | |
613 | } | |
b2df227b RD |
614 | void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
615 | self->SetWidth(size.x); | |
616 | self->SetHeight(size.y); | |
617 | } | |
4276dc52 RD |
618 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; } |
619 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; } | |
0482c494 RD |
620 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ |
621 | if ( !colour.Ok() ) | |
622 | return new wxMask(bitmap, *wxBLACK); | |
623 | else | |
624 | return new wxMask(bitmap, colour); | |
625 | } | |
d14a1e28 RD |
626 | |
627 | #include <wx/iconbndl.h> | |
628 | ||
629 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
630 | wxIcon* icon = new wxIcon(); | |
631 | icon->CopyFromBitmap(bmp); | |
632 | return icon; | |
633 | } | |
634 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
635 | char** cArray = NULL; | |
636 | wxIcon* icon; | |
637 | ||
638 | cArray = ConvertListOfStrings(listOfStrings); | |
639 | if (! cArray) | |
640 | return NULL; | |
641 | icon = new wxIcon(cArray); | |
642 | delete [] cArray; | |
643 | return icon; | |
644 | } | |
645 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
646 | ||
647 | ||
648 | ||
649 | return new wxIconLocation(*filename); | |
650 | ||
651 | } | |
652 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
653 | ||
654 | ||
655 | ||
656 | // do nothing | |
657 | ||
658 | } | |
659 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
660 | ||
661 | ||
662 | ||
663 | return -1; | |
664 | ||
665 | } | |
994141e6 | 666 | |
15afbcd0 RD |
667 | SWIGSTATICINLINE(int) |
668 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 669 | { |
15afbcd0 RD |
670 | SWIG_AsLong(obj); |
671 | if (PyErr_Occurred()) { | |
672 | PyErr_Clear(); | |
673 | return 0; | |
674 | } else { | |
675 | return 1; | |
676 | } | |
994141e6 RD |
677 | } |
678 | ||
15afbcd0 RD |
679 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ |
680 | #ifdef __WXGTK__ | |
e811c8ce | 681 | wxCHECK_MSG(False, NULL, |
15afbcd0 RD |
682 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); |
683 | #else | |
684 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
685 | #endif | |
d14a1e28 RD |
686 | } |
687 | ||
688 | ||
689 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
690 | (*self) ++; | |
691 | } | |
692 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
693 | return self->operator bool(); | |
694 | } | |
695 | ||
696 | #include <wx/fontutil.h> | |
697 | #include <wx/fontmap.h> | |
698 | #include <wx/fontenum.h> | |
699 | ||
700 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
701 | return self->ToString(); | |
702 | } | |
703 | ||
704 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
705 | static wxNativeEncodingInfo info; | |
706 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
707 | return &info; | |
708 | else | |
709 | return NULL; | |
710 | } | |
711 | ||
712 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
713 | wxFontEncoding alt_enc; | |
714 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
715 | return PyInt_FromLong(alt_enc); | |
716 | else { | |
717 | Py_INCREF(Py_None); | |
718 | return Py_None; | |
719 | } | |
720 | } | |
721 | wxFont *new_wxFont(wxString const &info){ | |
722 | wxNativeFontInfo nfi; | |
723 | nfi.FromString(info); | |
724 | return new wxFont(nfi); | |
725 | } | |
726 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
727 | return wxFont::New(pointSize, family, flags, face, encoding); | |
728 | } | |
22faec7d RD |
729 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } |
730 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
731 | |
732 | class wxPyFontEnumerator : public wxFontEnumerator { | |
733 | public: | |
734 | wxPyFontEnumerator() {} | |
735 | ~wxPyFontEnumerator() {} | |
736 | ||
737 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
738 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
739 | ||
740 | PYPRIVATE; | |
741 | }; | |
742 | ||
743 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
744 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
745 | ||
746 | ||
747 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
748 | wxArrayString* arr = self->GetEncodings(); | |
749 | return wxArrayString2PyList_helper(*arr); | |
750 | } | |
751 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
752 | wxArrayString* arr = self->GetFacenames(); | |
753 | return wxArrayString2PyList_helper(*arr); | |
754 | } | |
755 | ||
756 | ||
41e2b43e RD |
757 | wxLocale *new_wxLocale(int language,int flags){ |
758 | if (language == -1) | |
759 | return new wxLocale(); | |
760 | else | |
761 | return new wxLocale(language, flags); | |
762 | } | |
d14a1e28 RD |
763 | |
764 | #include "wx/wxPython/pydrawxxx.h" | |
765 | ||
03e37cd5 | 766 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d14a1e28 RD |
767 | wxColour col; |
768 | self->GetPixel(x, y, &col); | |
769 | return col; | |
770 | } | |
03e37cd5 | 771 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d14a1e28 RD |
772 | wxColour col; |
773 | self->GetPixel(pt, &col); | |
774 | return col; | |
775 | } | |
994141e6 | 776 | |
15afbcd0 RD |
777 | SWIGSTATICINLINE(double) |
778 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 779 | { |
69223c70 RD |
780 | if (PyNumber_Check(obj)) |
781 | return PyFloat_AsDouble(obj); | |
782 | else { | |
783 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
784 | obj->ob_type->tp_name); | |
785 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
786 | Py_DECREF(errmsg); | |
787 | return 0; | |
788 | } | |
15afbcd0 RD |
789 | } |
790 | ||
791 | ||
792 | SWIGSTATICINLINE(int) | |
793 | SWIG_CheckDouble(PyObject* obj) | |
794 | { | |
795 | SWIG_AsDouble(obj); | |
796 | if (PyErr_Occurred()) { | |
797 | PyErr_Clear(); | |
798 | return 0; | |
799 | } else { | |
800 | return 1; | |
801 | } | |
994141e6 RD |
802 | } |
803 | ||
d14a1e28 RD |
804 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ |
805 | wxRect rv; | |
806 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
807 | return rv; | |
808 | } | |
809 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
810 | wxRect rect; | |
811 | self->GetClippingBox(rect); | |
812 | return rect; | |
813 | } | |
db914595 RD |
814 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
815 | wxArrayInt widths; | |
816 | self->GetPartialTextExtents(text, widths); | |
817 | return widths; | |
818 | } | |
03e37cd5 RD |
819 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
820 | self->SetLogicalOrigin(point.x, point.y); | |
821 | } | |
822 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
823 | self->SetDeviceOrigin(point.x, point.y); | |
824 | } | |
825 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
826 | self->CalcBoundingBox(point.x, point.y); | |
827 | } | |
d14a1e28 RD |
828 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
829 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
830 | } | |
831 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
832 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
833 | } | |
834 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
835 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
836 | } | |
837 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
838 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
839 | } | |
840 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
841 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
842 | } | |
843 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
844 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
845 | } | |
846 | ||
847 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
848 | *x1 = dc->MinX(); | |
849 | *y1 = dc->MinY(); | |
850 | *x2 = dc->MaxX(); | |
851 | *y2 = dc->MaxY(); | |
852 | } | |
853 | ||
854 | ||
b88bce5f | 855 | #include <wx/dcbuffer.h> |
b88bce5f | 856 | |
b88bce5f | 857 | |
d14a1e28 RD |
858 | #include <wx/dcps.h> |
859 | ||
860 | ||
861 | class wxMetaFile : public wxObject { | |
862 | public: | |
863 | wxMetaFile(const wxString&) | |
39f61e25 | 864 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
865 | }; |
866 | ||
867 | class wxMetaFileDC : public wxClientDC { | |
868 | public: | |
869 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
39f61e25 | 870 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
871 | }; |
872 | ||
873 | ||
874 | ||
875 | class wxPrinterDC : public wxClientDC { | |
876 | public: | |
877 | wxPrinterDC(const wxPrintData&) | |
39f61e25 | 878 | { wxPyRaiseNotImplemented(); } |
33b885b9 | 879 | |
d14a1e28 | 880 | // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int) |
39f61e25 | 881 | // { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
882 | }; |
883 | ||
884 | ||
885 | ||
886 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
887 | self->AddColour(name, wxColour(red, green, blue)); | |
888 | } | |
889 | ||
d14a1e28 RD |
890 | #include <wx/effects.h> |
891 | ||
892 | #ifdef __cplusplus | |
893 | extern "C" { | |
894 | #endif | |
895 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
896 | PyObject *resultobj; | |
897 | wxGDIObject *result; | |
898 | char *kwnames[] = { | |
899 | NULL | |
900 | }; | |
901 | ||
902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
903 | { | |
904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
905 | result = (wxGDIObject *)new wxGDIObject(); | |
906 | ||
907 | wxPyEndAllowThreads(__tstate); | |
908 | if (PyErr_Occurred()) SWIG_fail; | |
909 | } | |
15afbcd0 | 910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); |
d14a1e28 RD |
911 | return resultobj; |
912 | fail: | |
913 | return NULL; | |
914 | } | |
915 | ||
916 | ||
917 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
918 | PyObject *resultobj; | |
919 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
920 | PyObject * obj0 = 0 ; | |
921 | char *kwnames[] = { | |
922 | (char *) "self", NULL | |
923 | }; | |
924 | ||
925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
928 | { |
929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
930 | delete arg1; | |
931 | ||
932 | wxPyEndAllowThreads(__tstate); | |
933 | if (PyErr_Occurred()) SWIG_fail; | |
934 | } | |
935 | Py_INCREF(Py_None); resultobj = Py_None; | |
936 | return resultobj; | |
937 | fail: | |
938 | return NULL; | |
939 | } | |
940 | ||
941 | ||
942 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
943 | PyObject *resultobj; | |
944 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
945 | bool result; | |
946 | PyObject * obj0 = 0 ; | |
947 | char *kwnames[] = { | |
948 | (char *) "self", NULL | |
949 | }; | |
950 | ||
951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
954 | { |
955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
956 | result = (bool)(arg1)->GetVisible(); | |
957 | ||
958 | wxPyEndAllowThreads(__tstate); | |
959 | if (PyErr_Occurred()) SWIG_fail; | |
960 | } | |
4f89f6a3 RD |
961 | { |
962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
963 | } | |
d14a1e28 RD |
964 | return resultobj; |
965 | fail: | |
966 | return NULL; | |
967 | } | |
968 | ||
969 | ||
970 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
971 | PyObject *resultobj; | |
972 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
973 | bool arg2 ; | |
974 | PyObject * obj0 = 0 ; | |
975 | PyObject * obj1 = 0 ; | |
976 | char *kwnames[] = { | |
977 | (char *) "self",(char *) "visible", NULL | |
978 | }; | |
979 | ||
980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
983 | arg2 = (bool) SWIG_AsBool(obj1); | |
984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
985 | { |
986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
987 | (arg1)->SetVisible(arg2); | |
988 | ||
989 | wxPyEndAllowThreads(__tstate); | |
990 | if (PyErr_Occurred()) SWIG_fail; | |
991 | } | |
992 | Py_INCREF(Py_None); resultobj = Py_None; | |
993 | return resultobj; | |
994 | fail: | |
995 | return NULL; | |
996 | } | |
997 | ||
998 | ||
999 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1000 | PyObject *resultobj; | |
1001 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1002 | bool result; | |
1003 | PyObject * obj0 = 0 ; | |
1004 | char *kwnames[] = { | |
1005 | (char *) "self", NULL | |
1006 | }; | |
1007 | ||
1008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, |
1010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1011 | { |
1012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1013 | result = (bool)(arg1)->IsNull(); | |
1014 | ||
1015 | wxPyEndAllowThreads(__tstate); | |
1016 | if (PyErr_Occurred()) SWIG_fail; | |
1017 | } | |
4f89f6a3 RD |
1018 | { |
1019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1020 | } | |
d14a1e28 RD |
1021 | return resultobj; |
1022 | fail: | |
1023 | return NULL; | |
1024 | } | |
1025 | ||
1026 | ||
1027 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
1028 | PyObject *obj; | |
1029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1030 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1031 | Py_INCREF(obj); | |
1032 | return Py_BuildValue((char *)""); | |
1033 | } | |
1034 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1035 | PyObject *resultobj; | |
41e2b43e RD |
1036 | byte arg1 = (byte) 0 ; |
1037 | byte arg2 = (byte) 0 ; | |
1038 | byte arg3 = (byte) 0 ; | |
d14a1e28 RD |
1039 | wxColour *result; |
1040 | PyObject * obj0 = 0 ; | |
1041 | PyObject * obj1 = 0 ; | |
1042 | PyObject * obj2 = 0 ; | |
1043 | char *kwnames[] = { | |
1044 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1045 | }; | |
1046 | ||
1047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1048 | if (obj0) { | |
41e2b43e | 1049 | arg1 = (byte) SWIG_AsUnsignedChar(obj0); |
15afbcd0 | 1050 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1051 | } |
1052 | if (obj1) { | |
41e2b43e | 1053 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
15afbcd0 | 1054 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1055 | } |
1056 | if (obj2) { | |
41e2b43e | 1057 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
15afbcd0 | 1058 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1059 | } |
1060 | { | |
1061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1062 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1063 | ||
1064 | wxPyEndAllowThreads(__tstate); | |
1065 | if (PyErr_Occurred()) SWIG_fail; | |
1066 | } | |
15afbcd0 | 1067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1068 | return resultobj; |
1069 | fail: | |
1070 | return NULL; | |
1071 | } | |
1072 | ||
1073 | ||
d14a1e28 RD |
1074 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1075 | PyObject *resultobj; | |
1076 | wxString *arg1 = 0 ; | |
1077 | wxColour *result; | |
e811c8ce | 1078 | bool temp1 = False ; |
d14a1e28 RD |
1079 | PyObject * obj0 = 0 ; |
1080 | char *kwnames[] = { | |
1081 | (char *) "colorName", NULL | |
1082 | }; | |
1083 | ||
1084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1085 | { | |
1086 | arg1 = wxString_in_helper(obj0); | |
1087 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 1088 | temp1 = True; |
d14a1e28 RD |
1089 | } |
1090 | { | |
1091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1092 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1093 | ||
1094 | wxPyEndAllowThreads(__tstate); | |
1095 | if (PyErr_Occurred()) SWIG_fail; | |
1096 | } | |
15afbcd0 | 1097 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1098 | { |
1099 | if (temp1) | |
1100 | delete arg1; | |
1101 | } | |
1102 | return resultobj; | |
1103 | fail: | |
1104 | { | |
1105 | if (temp1) | |
1106 | delete arg1; | |
1107 | } | |
1108 | return NULL; | |
1109 | } | |
1110 | ||
1111 | ||
1112 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1113 | PyObject *resultobj; | |
1114 | unsigned long arg1 ; | |
1115 | wxColour *result; | |
1116 | PyObject * obj0 = 0 ; | |
1117 | char *kwnames[] = { | |
1118 | (char *) "colRGB", NULL | |
1119 | }; | |
1120 | ||
1121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1122 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); |
1123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1124 | { |
1125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1126 | result = (wxColour *)new wxColour(arg1); | |
1127 | ||
1128 | wxPyEndAllowThreads(__tstate); | |
1129 | if (PyErr_Occurred()) SWIG_fail; | |
1130 | } | |
15afbcd0 | 1131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1132 | return resultobj; |
1133 | fail: | |
1134 | return NULL; | |
1135 | } | |
1136 | ||
1137 | ||
b88bce5f RD |
1138 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { |
1139 | PyObject *resultobj; | |
1140 | wxColour *arg1 = (wxColour *) 0 ; | |
1141 | PyObject * obj0 = 0 ; | |
1142 | char *kwnames[] = { | |
1143 | (char *) "self", NULL | |
1144 | }; | |
1145 | ||
1146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1149 | { |
1150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1151 | delete arg1; | |
1152 | ||
1153 | wxPyEndAllowThreads(__tstate); | |
1154 | if (PyErr_Occurred()) SWIG_fail; | |
1155 | } | |
1156 | Py_INCREF(Py_None); resultobj = Py_None; | |
1157 | return resultobj; | |
1158 | fail: | |
1159 | return NULL; | |
1160 | } | |
1161 | ||
1162 | ||
d14a1e28 RD |
1163 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
1164 | PyObject *resultobj; | |
1165 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e | 1166 | byte result; |
d14a1e28 RD |
1167 | PyObject * obj0 = 0 ; |
1168 | char *kwnames[] = { | |
1169 | (char *) "self", NULL | |
1170 | }; | |
1171 | ||
1172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1175 | { |
1176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 1177 | result = (byte)(arg1)->Red(); |
d14a1e28 RD |
1178 | |
1179 | wxPyEndAllowThreads(__tstate); | |
1180 | if (PyErr_Occurred()) SWIG_fail; | |
1181 | } | |
15afbcd0 | 1182 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1183 | return resultobj; |
1184 | fail: | |
1185 | return NULL; | |
1186 | } | |
1187 | ||
1188 | ||
1189 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1190 | PyObject *resultobj; | |
1191 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e | 1192 | byte result; |
d14a1e28 RD |
1193 | PyObject * obj0 = 0 ; |
1194 | char *kwnames[] = { | |
1195 | (char *) "self", NULL | |
1196 | }; | |
1197 | ||
1198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1201 | { |
1202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 1203 | result = (byte)(arg1)->Green(); |
d14a1e28 RD |
1204 | |
1205 | wxPyEndAllowThreads(__tstate); | |
1206 | if (PyErr_Occurred()) SWIG_fail; | |
1207 | } | |
15afbcd0 | 1208 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1209 | return resultobj; |
1210 | fail: | |
1211 | return NULL; | |
1212 | } | |
1213 | ||
1214 | ||
1215 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1216 | PyObject *resultobj; | |
1217 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e | 1218 | byte result; |
d14a1e28 RD |
1219 | PyObject * obj0 = 0 ; |
1220 | char *kwnames[] = { | |
1221 | (char *) "self", NULL | |
1222 | }; | |
1223 | ||
1224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1227 | { |
1228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 1229 | result = (byte)(arg1)->Blue(); |
d14a1e28 RD |
1230 | |
1231 | wxPyEndAllowThreads(__tstate); | |
1232 | if (PyErr_Occurred()) SWIG_fail; | |
1233 | } | |
15afbcd0 | 1234 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
1235 | return resultobj; |
1236 | fail: | |
1237 | return NULL; | |
1238 | } | |
1239 | ||
1240 | ||
1241 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1242 | PyObject *resultobj; | |
1243 | wxColour *arg1 = (wxColour *) 0 ; | |
1244 | bool result; | |
1245 | PyObject * obj0 = 0 ; | |
1246 | char *kwnames[] = { | |
1247 | (char *) "self", NULL | |
1248 | }; | |
1249 | ||
1250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1253 | { |
1254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1255 | result = (bool)(arg1)->Ok(); | |
1256 | ||
1257 | wxPyEndAllowThreads(__tstate); | |
1258 | if (PyErr_Occurred()) SWIG_fail; | |
1259 | } | |
4f89f6a3 RD |
1260 | { |
1261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1262 | } | |
d14a1e28 RD |
1263 | return resultobj; |
1264 | fail: | |
1265 | return NULL; | |
1266 | } | |
1267 | ||
1268 | ||
1269 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1270 | PyObject *resultobj; | |
1271 | wxColour *arg1 = (wxColour *) 0 ; | |
41e2b43e RD |
1272 | byte arg2 ; |
1273 | byte arg3 ; | |
1274 | byte arg4 ; | |
d14a1e28 RD |
1275 | PyObject * obj0 = 0 ; |
1276 | PyObject * obj1 = 0 ; | |
1277 | PyObject * obj2 = 0 ; | |
1278 | PyObject * obj3 = 0 ; | |
1279 | char *kwnames[] = { | |
1280 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1281 | }; | |
1282 | ||
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
41e2b43e | 1286 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
15afbcd0 | 1287 | if (PyErr_Occurred()) SWIG_fail; |
41e2b43e | 1288 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
15afbcd0 | 1289 | if (PyErr_Occurred()) SWIG_fail; |
41e2b43e | 1290 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); |
15afbcd0 | 1291 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
1292 | { |
1293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1294 | (arg1)->Set(arg2,arg3,arg4); | |
1295 | ||
1296 | wxPyEndAllowThreads(__tstate); | |
1297 | if (PyErr_Occurred()) SWIG_fail; | |
1298 | } | |
1299 | Py_INCREF(Py_None); resultobj = Py_None; | |
1300 | return resultobj; | |
1301 | fail: | |
1302 | return NULL; | |
1303 | } | |
1304 | ||
1305 | ||
c9c7117a | 1306 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1307 | PyObject *resultobj; |
1308 | wxColour *arg1 = (wxColour *) 0 ; | |
1309 | unsigned long arg2 ; | |
1310 | PyObject * obj0 = 0 ; | |
1311 | PyObject * obj1 = 0 ; | |
1312 | char *kwnames[] = { | |
1313 | (char *) "self",(char *) "colRGB", NULL | |
1314 | }; | |
1315 | ||
c9c7117a | 1316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1319 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
1320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1321 | { |
1322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1323 | (arg1)->Set(arg2); | |
1324 | ||
1325 | wxPyEndAllowThreads(__tstate); | |
1326 | if (PyErr_Occurred()) SWIG_fail; | |
1327 | } | |
1328 | Py_INCREF(Py_None); resultobj = Py_None; | |
1329 | return resultobj; | |
1330 | fail: | |
1331 | return NULL; | |
1332 | } | |
1333 | ||
1334 | ||
b88bce5f RD |
1335 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1336 | PyObject *resultobj; | |
1337 | wxColour *arg1 = (wxColour *) 0 ; | |
1338 | wxString *arg2 = 0 ; | |
1339 | bool temp2 = False ; | |
1340 | PyObject * obj0 = 0 ; | |
1341 | PyObject * obj1 = 0 ; | |
1342 | char *kwnames[] = { | |
1343 | (char *) "self",(char *) "colourName", NULL | |
1344 | }; | |
1345 | ||
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1349 | { |
1350 | arg2 = wxString_in_helper(obj1); | |
1351 | if (arg2 == NULL) SWIG_fail; | |
1352 | temp2 = True; | |
1353 | } | |
1354 | { | |
1355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1356 | (arg1)->InitFromName((wxString const &)*arg2); | |
1357 | ||
1358 | wxPyEndAllowThreads(__tstate); | |
1359 | if (PyErr_Occurred()) SWIG_fail; | |
1360 | } | |
1361 | Py_INCREF(Py_None); resultobj = Py_None; | |
1362 | { | |
1363 | if (temp2) | |
1364 | delete arg2; | |
1365 | } | |
1366 | return resultobj; | |
1367 | fail: | |
1368 | { | |
1369 | if (temp2) | |
1370 | delete arg2; | |
1371 | } | |
1372 | return NULL; | |
1373 | } | |
1374 | ||
1375 | ||
1376 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1377 | PyObject *resultobj; | |
1378 | wxColour *arg1 = (wxColour *) 0 ; | |
1379 | long result; | |
1380 | PyObject * obj0 = 0 ; | |
1381 | char *kwnames[] = { | |
1382 | (char *) "self", NULL | |
1383 | }; | |
1384 | ||
1385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b88bce5f RD |
1388 | { |
1389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1390 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1391 | ||
1392 | wxPyEndAllowThreads(__tstate); | |
1393 | if (PyErr_Occurred()) SWIG_fail; | |
1394 | } | |
15afbcd0 | 1395 | resultobj = SWIG_FromLong((long)result); |
b88bce5f RD |
1396 | return resultobj; |
1397 | fail: | |
1398 | return NULL; | |
1399 | } | |
1400 | ||
1401 | ||
d14a1e28 RD |
1402 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
1403 | PyObject *resultobj; | |
1404 | wxColour *arg1 = (wxColour *) 0 ; | |
1405 | wxColour *arg2 = 0 ; | |
1406 | bool result; | |
1407 | wxColour temp2 ; | |
1408 | PyObject * obj0 = 0 ; | |
1409 | PyObject * obj1 = 0 ; | |
1410 | char *kwnames[] = { | |
1411 | (char *) "self",(char *) "colour", NULL | |
1412 | }; | |
1413 | ||
1414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1417 | { |
1418 | arg2 = &temp2; | |
1419 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1420 | } | |
1421 | { | |
1422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1423 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1424 | ||
1425 | wxPyEndAllowThreads(__tstate); | |
1426 | if (PyErr_Occurred()) SWIG_fail; | |
1427 | } | |
4f89f6a3 RD |
1428 | { |
1429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1430 | } | |
d14a1e28 RD |
1431 | return resultobj; |
1432 | fail: | |
1433 | return NULL; | |
1434 | } | |
1435 | ||
1436 | ||
1437 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1438 | PyObject *resultobj; | |
1439 | wxColour *arg1 = (wxColour *) 0 ; | |
1440 | wxColour *arg2 = 0 ; | |
1441 | bool result; | |
1442 | wxColour temp2 ; | |
1443 | PyObject * obj0 = 0 ; | |
1444 | PyObject * obj1 = 0 ; | |
1445 | char *kwnames[] = { | |
1446 | (char *) "self",(char *) "colour", NULL | |
1447 | }; | |
1448 | ||
1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1452 | { |
1453 | arg2 = &temp2; | |
1454 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1455 | } | |
1456 | { | |
1457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1458 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1459 | ||
1460 | wxPyEndAllowThreads(__tstate); | |
1461 | if (PyErr_Occurred()) SWIG_fail; | |
1462 | } | |
4f89f6a3 RD |
1463 | { |
1464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1465 | } | |
d14a1e28 RD |
1466 | return resultobj; |
1467 | fail: | |
1468 | return NULL; | |
1469 | } | |
1470 | ||
1471 | ||
b88bce5f | 1472 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
c9c7117a RD |
1473 | PyObject *resultobj; |
1474 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1475 | PyObject *result; |
c9c7117a | 1476 | PyObject * obj0 = 0 ; |
c9c7117a | 1477 | char *kwnames[] = { |
b88bce5f | 1478 | (char *) "self", NULL |
c9c7117a RD |
1479 | }; |
1480 | ||
b88bce5f | 1481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
1484 | { |
1485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1486 | result = (PyObject *)wxColour_Get(arg1); |
c9c7117a RD |
1487 | |
1488 | wxPyEndAllowThreads(__tstate); | |
1489 | if (PyErr_Occurred()) SWIG_fail; | |
1490 | } | |
b88bce5f | 1491 | resultobj = result; |
c9c7117a RD |
1492 | return resultobj; |
1493 | fail: | |
c9c7117a RD |
1494 | return NULL; |
1495 | } | |
1496 | ||
1497 | ||
b88bce5f | 1498 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
1499 | PyObject *resultobj; |
1500 | wxColour *arg1 = (wxColour *) 0 ; | |
b88bce5f | 1501 | unsigned long result; |
d14a1e28 RD |
1502 | PyObject * obj0 = 0 ; |
1503 | char *kwnames[] = { | |
1504 | (char *) "self", NULL | |
1505 | }; | |
1506 | ||
b88bce5f | 1507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
1508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, |
1509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1510 | { |
1511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b88bce5f | 1512 | result = (unsigned long)wxColour_GetRGB(arg1); |
d14a1e28 RD |
1513 | |
1514 | wxPyEndAllowThreads(__tstate); | |
1515 | if (PyErr_Occurred()) SWIG_fail; | |
1516 | } | |
15afbcd0 | 1517 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
1518 | return resultobj; |
1519 | fail: | |
1520 | return NULL; | |
1521 | } | |
1522 | ||
1523 | ||
1524 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1525 | PyObject *obj; | |
1526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1527 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1528 | Py_INCREF(obj); | |
1529 | return Py_BuildValue((char *)""); | |
1530 | } | |
1531 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1532 | PyObject *resultobj; | |
1533 | int arg1 ; | |
1534 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1535 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1536 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1537 | wxPalette *result; | |
994141e6 | 1538 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
1539 | PyObject * obj1 = 0 ; |
1540 | PyObject * obj2 = 0 ; | |
1541 | PyObject * obj3 = 0 ; | |
1542 | char *kwnames[] = { | |
1543 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1544 | }; | |
1545 | ||
994141e6 | 1546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
1547 | arg1 = (int) SWIG_AsInt(obj0); |
1548 | if (PyErr_Occurred()) SWIG_fail; | |
1549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1551 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1553 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1555 | { |
1556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1557 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1558 | ||
1559 | wxPyEndAllowThreads(__tstate); | |
1560 | if (PyErr_Occurred()) SWIG_fail; | |
1561 | } | |
15afbcd0 | 1562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); |
d14a1e28 RD |
1563 | return resultobj; |
1564 | fail: | |
1565 | return NULL; | |
1566 | } | |
1567 | ||
1568 | ||
1569 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1570 | PyObject *resultobj; | |
1571 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1572 | PyObject * obj0 = 0 ; | |
1573 | char *kwnames[] = { | |
1574 | (char *) "self", NULL | |
1575 | }; | |
1576 | ||
1577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1580 | { |
1581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1582 | delete arg1; | |
1583 | ||
1584 | wxPyEndAllowThreads(__tstate); | |
1585 | if (PyErr_Occurred()) SWIG_fail; | |
1586 | } | |
1587 | Py_INCREF(Py_None); resultobj = Py_None; | |
1588 | return resultobj; | |
1589 | fail: | |
1590 | return NULL; | |
1591 | } | |
1592 | ||
1593 | ||
1594 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject *resultobj; | |
1596 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1597 | byte arg2 ; | |
1598 | byte arg3 ; | |
1599 | byte arg4 ; | |
1600 | int result; | |
1601 | PyObject * obj0 = 0 ; | |
1602 | PyObject * obj1 = 0 ; | |
1603 | PyObject * obj2 = 0 ; | |
1604 | PyObject * obj3 = 0 ; | |
1605 | char *kwnames[] = { | |
1606 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1607 | }; | |
1608 | ||
1609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
1610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1612 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
1613 | if (PyErr_Occurred()) SWIG_fail; | |
1614 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
1615 | if (PyErr_Occurred()) SWIG_fail; | |
1616 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
1617 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1618 | { |
1619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1620 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1621 | ||
1622 | wxPyEndAllowThreads(__tstate); | |
1623 | if (PyErr_Occurred()) SWIG_fail; | |
1624 | } | |
15afbcd0 | 1625 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1626 | return resultobj; |
1627 | fail: | |
1628 | return NULL; | |
1629 | } | |
1630 | ||
1631 | ||
1632 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1633 | PyObject *resultobj; | |
1634 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1635 | int arg2 ; | |
1636 | byte *arg3 = (byte *) 0 ; | |
1637 | byte *arg4 = (byte *) 0 ; | |
1638 | byte *arg5 = (byte *) 0 ; | |
1639 | bool result; | |
1640 | byte temp3 ; | |
1641 | byte temp4 ; | |
1642 | byte temp5 ; | |
1643 | PyObject * obj0 = 0 ; | |
994141e6 | 1644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1645 | char *kwnames[] = { |
1646 | (char *) "self",(char *) "pixel", NULL | |
1647 | }; | |
1648 | ||
1649 | arg3 = &temp3; | |
1650 | arg4 = &temp4; | |
1651 | arg5 = &temp5; | |
994141e6 | 1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1655 | arg2 = (int) SWIG_AsInt(obj1); | |
1656 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1657 | { |
1658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1659 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1660 | ||
1661 | wxPyEndAllowThreads(__tstate); | |
1662 | if (PyErr_Occurred()) SWIG_fail; | |
1663 | } | |
4f89f6a3 RD |
1664 | { |
1665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1666 | } | |
d14a1e28 RD |
1667 | { |
1668 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1669 | resultobj = t_output_helper(resultobj,o); | |
1670 | } | |
1671 | { | |
1672 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1673 | resultobj = t_output_helper(resultobj,o); | |
1674 | } | |
1675 | { | |
1676 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1677 | resultobj = t_output_helper(resultobj,o); | |
1678 | } | |
1679 | return resultobj; | |
1680 | fail: | |
1681 | return NULL; | |
1682 | } | |
1683 | ||
1684 | ||
1685 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject *resultobj; | |
1687 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1688 | bool result; | |
1689 | PyObject * obj0 = 0 ; | |
1690 | char *kwnames[] = { | |
1691 | (char *) "self", NULL | |
1692 | }; | |
1693 | ||
1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, |
1696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1697 | { |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | result = (bool)(arg1)->Ok(); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
4f89f6a3 RD |
1704 | { |
1705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1706 | } | |
d14a1e28 RD |
1707 | return resultobj; |
1708 | fail: | |
1709 | return NULL; | |
1710 | } | |
1711 | ||
1712 | ||
1713 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1714 | PyObject *obj; | |
1715 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1716 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1717 | Py_INCREF(obj); | |
1718 | return Py_BuildValue((char *)""); | |
1719 | } | |
1720 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1721 | PyObject *resultobj; | |
1722 | wxColour *arg1 = 0 ; | |
1723 | int arg2 = (int) 1 ; | |
1724 | int arg3 = (int) wxSOLID ; | |
1725 | wxPen *result; | |
1726 | wxColour temp1 ; | |
1727 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1728 | PyObject * obj1 = 0 ; |
1729 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1730 | char *kwnames[] = { |
1731 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1732 | }; | |
1733 | ||
994141e6 | 1734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
1735 | { |
1736 | arg1 = &temp1; | |
1737 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1738 | } | |
994141e6 | 1739 | if (obj1) { |
15afbcd0 RD |
1740 | arg2 = (int) SWIG_AsInt(obj1); |
1741 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
1742 | } |
1743 | if (obj2) { | |
15afbcd0 RD |
1744 | arg3 = (int) SWIG_AsInt(obj2); |
1745 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1746 | } |
d14a1e28 RD |
1747 | { |
1748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1749 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1750 | ||
1751 | wxPyEndAllowThreads(__tstate); | |
1752 | if (PyErr_Occurred()) SWIG_fail; | |
1753 | } | |
15afbcd0 | 1754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); |
d14a1e28 RD |
1755 | return resultobj; |
1756 | fail: | |
1757 | return NULL; | |
1758 | } | |
1759 | ||
1760 | ||
1761 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1762 | PyObject *resultobj; | |
1763 | wxPen *arg1 = (wxPen *) 0 ; | |
1764 | PyObject * obj0 = 0 ; | |
1765 | char *kwnames[] = { | |
1766 | (char *) "self", NULL | |
1767 | }; | |
1768 | ||
1769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1772 | { |
1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1774 | delete arg1; | |
1775 | ||
1776 | wxPyEndAllowThreads(__tstate); | |
1777 | if (PyErr_Occurred()) SWIG_fail; | |
1778 | } | |
1779 | Py_INCREF(Py_None); resultobj = Py_None; | |
1780 | return resultobj; | |
1781 | fail: | |
1782 | return NULL; | |
1783 | } | |
1784 | ||
1785 | ||
1786 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1787 | PyObject *resultobj; | |
1788 | wxPen *arg1 = (wxPen *) 0 ; | |
1789 | int result; | |
1790 | PyObject * obj0 = 0 ; | |
1791 | char *kwnames[] = { | |
1792 | (char *) "self", NULL | |
1793 | }; | |
1794 | ||
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1798 | { |
1799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1800 | result = (int)(arg1)->GetCap(); | |
1801 | ||
1802 | wxPyEndAllowThreads(__tstate); | |
1803 | if (PyErr_Occurred()) SWIG_fail; | |
1804 | } | |
15afbcd0 | 1805 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1806 | return resultobj; |
1807 | fail: | |
1808 | return NULL; | |
1809 | } | |
1810 | ||
1811 | ||
1812 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1813 | PyObject *resultobj; | |
1814 | wxPen *arg1 = (wxPen *) 0 ; | |
1815 | wxColour result; | |
1816 | PyObject * obj0 = 0 ; | |
1817 | char *kwnames[] = { | |
1818 | (char *) "self", NULL | |
1819 | }; | |
1820 | ||
1821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1824 | { |
1825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1826 | result = (arg1)->GetColour(); | |
1827 | ||
1828 | wxPyEndAllowThreads(__tstate); | |
1829 | if (PyErr_Occurred()) SWIG_fail; | |
1830 | } | |
1831 | { | |
1832 | wxColour * resultptr; | |
1833 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 1834 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
1835 | } |
1836 | return resultobj; | |
1837 | fail: | |
1838 | return NULL; | |
1839 | } | |
1840 | ||
1841 | ||
1842 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1843 | PyObject *resultobj; | |
1844 | wxPen *arg1 = (wxPen *) 0 ; | |
1845 | int result; | |
1846 | PyObject * obj0 = 0 ; | |
1847 | char *kwnames[] = { | |
1848 | (char *) "self", NULL | |
1849 | }; | |
1850 | ||
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1854 | { |
1855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1856 | result = (int)(arg1)->GetJoin(); | |
1857 | ||
1858 | wxPyEndAllowThreads(__tstate); | |
1859 | if (PyErr_Occurred()) SWIG_fail; | |
1860 | } | |
15afbcd0 | 1861 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1862 | return resultobj; |
1863 | fail: | |
1864 | return NULL; | |
1865 | } | |
1866 | ||
1867 | ||
1868 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject *resultobj; | |
1870 | wxPen *arg1 = (wxPen *) 0 ; | |
1871 | int result; | |
1872 | PyObject * obj0 = 0 ; | |
1873 | char *kwnames[] = { | |
1874 | (char *) "self", NULL | |
1875 | }; | |
1876 | ||
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1880 | { |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | result = (int)(arg1)->GetStyle(); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) SWIG_fail; | |
1886 | } | |
15afbcd0 | 1887 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1888 | return resultobj; |
1889 | fail: | |
1890 | return NULL; | |
1891 | } | |
1892 | ||
1893 | ||
1894 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1895 | PyObject *resultobj; | |
1896 | wxPen *arg1 = (wxPen *) 0 ; | |
1897 | int result; | |
1898 | PyObject * obj0 = 0 ; | |
1899 | char *kwnames[] = { | |
1900 | (char *) "self", NULL | |
1901 | }; | |
1902 | ||
1903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1906 | { |
1907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1908 | result = (int)(arg1)->GetWidth(); | |
1909 | ||
1910 | wxPyEndAllowThreads(__tstate); | |
1911 | if (PyErr_Occurred()) SWIG_fail; | |
1912 | } | |
15afbcd0 | 1913 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1914 | return resultobj; |
1915 | fail: | |
1916 | return NULL; | |
1917 | } | |
1918 | ||
1919 | ||
1920 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1921 | PyObject *resultobj; | |
1922 | wxPen *arg1 = (wxPen *) 0 ; | |
1923 | bool result; | |
1924 | PyObject * obj0 = 0 ; | |
1925 | char *kwnames[] = { | |
1926 | (char *) "self", NULL | |
1927 | }; | |
1928 | ||
1929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1932 | { |
1933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1934 | result = (bool)(arg1)->Ok(); | |
1935 | ||
1936 | wxPyEndAllowThreads(__tstate); | |
1937 | if (PyErr_Occurred()) SWIG_fail; | |
1938 | } | |
4f89f6a3 RD |
1939 | { |
1940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1941 | } | |
d14a1e28 RD |
1942 | return resultobj; |
1943 | fail: | |
1944 | return NULL; | |
1945 | } | |
1946 | ||
1947 | ||
1948 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1949 | PyObject *resultobj; | |
1950 | wxPen *arg1 = (wxPen *) 0 ; | |
1951 | int arg2 ; | |
1952 | PyObject * obj0 = 0 ; | |
994141e6 | 1953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1954 | char *kwnames[] = { |
1955 | (char *) "self",(char *) "cap_style", NULL | |
1956 | }; | |
1957 | ||
994141e6 | 1958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1961 | arg2 = (int) SWIG_AsInt(obj1); | |
1962 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1963 | { |
1964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1965 | (arg1)->SetCap(arg2); | |
1966 | ||
1967 | wxPyEndAllowThreads(__tstate); | |
1968 | if (PyErr_Occurred()) SWIG_fail; | |
1969 | } | |
1970 | Py_INCREF(Py_None); resultobj = Py_None; | |
1971 | return resultobj; | |
1972 | fail: | |
1973 | return NULL; | |
1974 | } | |
1975 | ||
1976 | ||
1977 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1978 | PyObject *resultobj; | |
1979 | wxPen *arg1 = (wxPen *) 0 ; | |
1980 | wxColour *arg2 = 0 ; | |
1981 | wxColour temp2 ; | |
1982 | PyObject * obj0 = 0 ; | |
1983 | PyObject * obj1 = 0 ; | |
1984 | char *kwnames[] = { | |
1985 | (char *) "self",(char *) "colour", NULL | |
1986 | }; | |
1987 | ||
1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
1990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1991 | { |
1992 | arg2 = &temp2; | |
1993 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1994 | } | |
1995 | { | |
1996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1997 | (arg1)->SetColour(*arg2); | |
1998 | ||
1999 | wxPyEndAllowThreads(__tstate); | |
2000 | if (PyErr_Occurred()) SWIG_fail; | |
2001 | } | |
2002 | Py_INCREF(Py_None); resultobj = Py_None; | |
2003 | return resultobj; | |
2004 | fail: | |
2005 | return NULL; | |
2006 | } | |
2007 | ||
2008 | ||
2009 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2010 | PyObject *resultobj; | |
2011 | wxPen *arg1 = (wxPen *) 0 ; | |
2012 | int arg2 ; | |
2013 | PyObject * obj0 = 0 ; | |
994141e6 | 2014 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2015 | char *kwnames[] = { |
2016 | (char *) "self",(char *) "join_style", NULL | |
2017 | }; | |
2018 | ||
994141e6 | 2019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2022 | arg2 = (int) SWIG_AsInt(obj1); | |
2023 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2024 | { |
2025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2026 | (arg1)->SetJoin(arg2); | |
2027 | ||
2028 | wxPyEndAllowThreads(__tstate); | |
2029 | if (PyErr_Occurred()) SWIG_fail; | |
2030 | } | |
2031 | Py_INCREF(Py_None); resultobj = Py_None; | |
2032 | return resultobj; | |
2033 | fail: | |
2034 | return NULL; | |
2035 | } | |
2036 | ||
2037 | ||
2038 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2039 | PyObject *resultobj; | |
2040 | wxPen *arg1 = (wxPen *) 0 ; | |
2041 | int arg2 ; | |
2042 | PyObject * obj0 = 0 ; | |
994141e6 | 2043 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2044 | char *kwnames[] = { |
2045 | (char *) "self",(char *) "style", NULL | |
2046 | }; | |
2047 | ||
994141e6 | 2048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2051 | arg2 = (int) SWIG_AsInt(obj1); | |
2052 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2053 | { |
2054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2055 | (arg1)->SetStyle(arg2); | |
2056 | ||
2057 | wxPyEndAllowThreads(__tstate); | |
2058 | if (PyErr_Occurred()) SWIG_fail; | |
2059 | } | |
2060 | Py_INCREF(Py_None); resultobj = Py_None; | |
2061 | return resultobj; | |
2062 | fail: | |
2063 | return NULL; | |
2064 | } | |
2065 | ||
2066 | ||
2067 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2068 | PyObject *resultobj; | |
2069 | wxPen *arg1 = (wxPen *) 0 ; | |
2070 | int arg2 ; | |
2071 | PyObject * obj0 = 0 ; | |
994141e6 | 2072 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2073 | char *kwnames[] = { |
2074 | (char *) "self",(char *) "width", NULL | |
2075 | }; | |
2076 | ||
994141e6 | 2077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2080 | arg2 = (int) SWIG_AsInt(obj1); | |
2081 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2082 | { |
2083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2084 | (arg1)->SetWidth(arg2); | |
2085 | ||
2086 | wxPyEndAllowThreads(__tstate); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | } | |
2089 | Py_INCREF(Py_None); resultobj = Py_None; | |
2090 | return resultobj; | |
2091 | fail: | |
2092 | return NULL; | |
2093 | } | |
2094 | ||
2095 | ||
2096 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2097 | PyObject *resultobj; | |
2098 | wxPen *arg1 = (wxPen *) 0 ; | |
2099 | int arg2 ; | |
2100 | wxDash *arg3 = (wxDash *) 0 ; | |
2101 | PyObject * obj0 = 0 ; | |
2102 | PyObject * obj1 = 0 ; | |
2103 | char *kwnames[] = { | |
2104 | (char *) "self",(char *) "dashes", NULL | |
2105 | }; | |
2106 | ||
2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2110 | { |
2111 | arg2 = PyList_Size(obj1); | |
2112 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2113 | if (arg3 == NULL) SWIG_fail; | |
2114 | } | |
2115 | { | |
2116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2117 | (arg1)->SetDashes(arg2,arg3); | |
2118 | ||
2119 | wxPyEndAllowThreads(__tstate); | |
2120 | if (PyErr_Occurred()) SWIG_fail; | |
2121 | } | |
2122 | Py_INCREF(Py_None); resultobj = Py_None; | |
2123 | { | |
2124 | if (arg3) delete [] arg3; | |
2125 | } | |
2126 | return resultobj; | |
2127 | fail: | |
2128 | { | |
2129 | if (arg3) delete [] arg3; | |
2130 | } | |
2131 | return NULL; | |
2132 | } | |
2133 | ||
2134 | ||
2135 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2136 | PyObject *resultobj; | |
2137 | wxPen *arg1 = (wxPen *) 0 ; | |
2138 | PyObject *result; | |
2139 | PyObject * obj0 = 0 ; | |
2140 | char *kwnames[] = { | |
2141 | (char *) "self", NULL | |
2142 | }; | |
2143 | ||
2144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2147 | { |
2148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2149 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2150 | ||
2151 | wxPyEndAllowThreads(__tstate); | |
2152 | if (PyErr_Occurred()) SWIG_fail; | |
2153 | } | |
2154 | resultobj = result; | |
2155 | return resultobj; | |
2156 | fail: | |
2157 | return NULL; | |
2158 | } | |
2159 | ||
2160 | ||
66c033b4 | 2161 | static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
22faec7d RD |
2162 | PyObject *resultobj; |
2163 | wxPen *arg1 = (wxPen *) 0 ; | |
66c033b4 RD |
2164 | PyObject *arg2 = (PyObject *) 0 ; |
2165 | PyObject *arg3 = (PyObject *) 0 ; | |
22faec7d RD |
2166 | PyObject * obj0 = 0 ; |
2167 | PyObject * obj1 = 0 ; | |
66c033b4 | 2168 | PyObject * obj2 = 0 ; |
22faec7d | 2169 | char *kwnames[] = { |
66c033b4 | 2170 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
22faec7d RD |
2171 | }; |
2172 | ||
66c033b4 | 2173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
66c033b4 RD |
2176 | arg2 = obj1; |
2177 | arg3 = obj2; | |
3adfb63b RD |
2178 | { |
2179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2180 | wxPen__SetDashes(arg1,arg2,arg3); |
3adfb63b RD |
2181 | |
2182 | wxPyEndAllowThreads(__tstate); | |
2183 | if (PyErr_Occurred()) SWIG_fail; | |
2184 | } | |
66c033b4 | 2185 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
2186 | return resultobj; |
2187 | fail: | |
2188 | return NULL; | |
2189 | } | |
2190 | ||
2191 | ||
c9c7117a RD |
2192 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
2193 | PyObject *resultobj; | |
2194 | wxPen *arg1 = (wxPen *) 0 ; | |
2195 | int result; | |
2196 | PyObject * obj0 = 0 ; | |
2197 | char *kwnames[] = { | |
2198 | (char *) "self", NULL | |
2199 | }; | |
2200 | ||
2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
2204 | { |
2205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2206 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2207 | ||
2208 | wxPyEndAllowThreads(__tstate); | |
2209 | if (PyErr_Occurred()) SWIG_fail; | |
2210 | } | |
15afbcd0 | 2211 | resultobj = SWIG_FromInt((int)result); |
c9c7117a RD |
2212 | return resultobj; |
2213 | fail: | |
2214 | return NULL; | |
2215 | } | |
2216 | ||
2217 | ||
66c033b4 | 2218 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2219 | PyObject *resultobj; |
66c033b4 RD |
2220 | wxPen *arg1 = (wxPen *) 0 ; |
2221 | wxPen *arg2 = (wxPen *) 0 ; | |
2222 | bool result; | |
d14a1e28 | 2223 | PyObject * obj0 = 0 ; |
994141e6 | 2224 | PyObject * obj1 = 0 ; |
d14a1e28 | 2225 | char *kwnames[] = { |
66c033b4 | 2226 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
2227 | }; |
2228 | ||
66c033b4 RD |
2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
2230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2234 | { |
2235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2236 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
2237 | |
2238 | wxPyEndAllowThreads(__tstate); | |
2239 | if (PyErr_Occurred()) SWIG_fail; | |
2240 | } | |
d14a1e28 | 2241 | { |
66c033b4 | 2242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 | 2243 | } |
d14a1e28 RD |
2244 | return resultobj; |
2245 | fail: | |
2246 | return NULL; | |
2247 | } | |
2248 | ||
2249 | ||
66c033b4 | 2250 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 2251 | PyObject *resultobj; |
66c033b4 RD |
2252 | wxPen *arg1 = (wxPen *) 0 ; |
2253 | wxPen *arg2 = (wxPen *) 0 ; | |
2254 | bool result; | |
d14a1e28 RD |
2255 | PyObject * obj0 = 0 ; |
2256 | PyObject * obj1 = 0 ; | |
2257 | char *kwnames[] = { | |
66c033b4 | 2258 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
2259 | }; |
2260 | ||
66c033b4 RD |
2261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
15afbcd0 | 2265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
2266 | { |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 2268 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d14a1e28 RD |
2269 | |
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | } | |
d14a1e28 | 2273 | { |
66c033b4 | 2274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2275 | } |
2276 | return resultobj; | |
2277 | fail: | |
d14a1e28 RD |
2278 | return NULL; |
2279 | } | |
2280 | ||
2281 | ||
66c033b4 | 2282 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
d14a1e28 RD |
2283 | PyObject *obj; |
2284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
66c033b4 | 2285 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d14a1e28 RD |
2286 | Py_INCREF(obj); |
2287 | return Py_BuildValue((char *)""); | |
2288 | } | |
2289 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2290 | PyObject *resultobj; | |
2291 | wxColour *arg1 = 0 ; | |
2292 | int arg2 = (int) wxSOLID ; | |
2293 | wxBrush *result; | |
2294 | wxColour temp1 ; | |
2295 | PyObject * obj0 = 0 ; | |
994141e6 | 2296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2297 | char *kwnames[] = { |
2298 | (char *) "colour",(char *) "style", NULL | |
2299 | }; | |
2300 | ||
994141e6 | 2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2302 | { |
2303 | arg1 = &temp1; | |
2304 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2305 | } | |
994141e6 | 2306 | if (obj1) { |
15afbcd0 RD |
2307 | arg2 = (int) SWIG_AsInt(obj1); |
2308 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2309 | } |
d14a1e28 RD |
2310 | { |
2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2312 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2313 | ||
2314 | wxPyEndAllowThreads(__tstate); | |
2315 | if (PyErr_Occurred()) SWIG_fail; | |
2316 | } | |
15afbcd0 | 2317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); |
d14a1e28 RD |
2318 | return resultobj; |
2319 | fail: | |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
2324 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2325 | PyObject *resultobj; | |
2326 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2327 | PyObject * obj0 = 0 ; | |
2328 | char *kwnames[] = { | |
2329 | (char *) "self", NULL | |
2330 | }; | |
2331 | ||
2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2335 | { |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | delete arg1; | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) SWIG_fail; | |
2341 | } | |
2342 | Py_INCREF(Py_None); resultobj = Py_None; | |
2343 | return resultobj; | |
2344 | fail: | |
2345 | return NULL; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2350 | PyObject *resultobj; | |
2351 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2352 | wxColour *arg2 = 0 ; | |
2353 | wxColour temp2 ; | |
2354 | PyObject * obj0 = 0 ; | |
2355 | PyObject * obj1 = 0 ; | |
2356 | char *kwnames[] = { | |
2357 | (char *) "self",(char *) "col", NULL | |
2358 | }; | |
2359 | ||
2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2363 | { |
2364 | arg2 = &temp2; | |
2365 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2366 | } | |
2367 | { | |
2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2369 | (arg1)->SetColour((wxColour const &)*arg2); | |
2370 | ||
2371 | wxPyEndAllowThreads(__tstate); | |
2372 | if (PyErr_Occurred()) SWIG_fail; | |
2373 | } | |
2374 | Py_INCREF(Py_None); resultobj = Py_None; | |
2375 | return resultobj; | |
2376 | fail: | |
2377 | return NULL; | |
2378 | } | |
2379 | ||
2380 | ||
2381 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2382 | PyObject *resultobj; | |
2383 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2384 | int arg2 ; | |
2385 | PyObject * obj0 = 0 ; | |
994141e6 | 2386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2387 | char *kwnames[] = { |
2388 | (char *) "self",(char *) "style", NULL | |
2389 | }; | |
2390 | ||
994141e6 | 2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2394 | arg2 = (int) SWIG_AsInt(obj1); | |
2395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2396 | { |
2397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2398 | (arg1)->SetStyle(arg2); | |
2399 | ||
2400 | wxPyEndAllowThreads(__tstate); | |
2401 | if (PyErr_Occurred()) SWIG_fail; | |
2402 | } | |
2403 | Py_INCREF(Py_None); resultobj = Py_None; | |
2404 | return resultobj; | |
2405 | fail: | |
2406 | return NULL; | |
2407 | } | |
2408 | ||
2409 | ||
2410 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2411 | PyObject *resultobj; | |
2412 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2413 | wxBitmap *arg2 = 0 ; | |
2414 | PyObject * obj0 = 0 ; | |
2415 | PyObject * obj1 = 0 ; | |
2416 | char *kwnames[] = { | |
2417 | (char *) "self",(char *) "stipple", NULL | |
2418 | }; | |
2419 | ||
2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2424 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2425 | SWIG_fail; | |
d14a1e28 | 2426 | if (arg2 == NULL) { |
15afbcd0 RD |
2427 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2428 | SWIG_fail; | |
d14a1e28 RD |
2429 | } |
2430 | { | |
2431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2432 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2433 | ||
2434 | wxPyEndAllowThreads(__tstate); | |
2435 | if (PyErr_Occurred()) SWIG_fail; | |
2436 | } | |
2437 | Py_INCREF(Py_None); resultobj = Py_None; | |
2438 | return resultobj; | |
2439 | fail: | |
2440 | return NULL; | |
2441 | } | |
2442 | ||
2443 | ||
2444 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2445 | PyObject *resultobj; | |
2446 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2447 | wxColour result; | |
2448 | PyObject * obj0 = 0 ; | |
2449 | char *kwnames[] = { | |
2450 | (char *) "self", NULL | |
2451 | }; | |
2452 | ||
2453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2456 | { |
2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2458 | result = ((wxBrush const *)arg1)->GetColour(); | |
2459 | ||
2460 | wxPyEndAllowThreads(__tstate); | |
2461 | if (PyErr_Occurred()) SWIG_fail; | |
2462 | } | |
2463 | { | |
2464 | wxColour * resultptr; | |
2465 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 2466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
2467 | } |
2468 | return resultobj; | |
2469 | fail: | |
2470 | return NULL; | |
2471 | } | |
2472 | ||
2473 | ||
2474 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2475 | PyObject *resultobj; | |
2476 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2477 | int result; | |
2478 | PyObject * obj0 = 0 ; | |
2479 | char *kwnames[] = { | |
2480 | (char *) "self", NULL | |
2481 | }; | |
2482 | ||
2483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2486 | { |
2487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2488 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2489 | ||
2490 | wxPyEndAllowThreads(__tstate); | |
2491 | if (PyErr_Occurred()) SWIG_fail; | |
2492 | } | |
15afbcd0 | 2493 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2494 | return resultobj; |
2495 | fail: | |
2496 | return NULL; | |
2497 | } | |
2498 | ||
2499 | ||
2500 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2501 | PyObject *resultobj; | |
2502 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2503 | wxBitmap *result; | |
2504 | PyObject * obj0 = 0 ; | |
2505 | char *kwnames[] = { | |
2506 | (char *) "self", NULL | |
2507 | }; | |
2508 | ||
2509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2512 | { |
2513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2514 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2515 | ||
2516 | wxPyEndAllowThreads(__tstate); | |
2517 | if (PyErr_Occurred()) SWIG_fail; | |
2518 | } | |
15afbcd0 | 2519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
2520 | return resultobj; |
2521 | fail: | |
2522 | return NULL; | |
2523 | } | |
2524 | ||
2525 | ||
2526 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2527 | PyObject *resultobj; | |
2528 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2529 | bool result; | |
2530 | PyObject * obj0 = 0 ; | |
2531 | char *kwnames[] = { | |
2532 | (char *) "self", NULL | |
2533 | }; | |
2534 | ||
2535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, |
2537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2538 | { |
2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2540 | result = (bool)(arg1)->Ok(); | |
2541 | ||
2542 | wxPyEndAllowThreads(__tstate); | |
2543 | if (PyErr_Occurred()) SWIG_fail; | |
2544 | } | |
4f89f6a3 RD |
2545 | { |
2546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2547 | } | |
d14a1e28 RD |
2548 | return resultobj; |
2549 | fail: | |
2550 | return NULL; | |
2551 | } | |
2552 | ||
2553 | ||
2554 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2555 | PyObject *obj; | |
2556 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2557 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2558 | Py_INCREF(obj); | |
2559 | return Py_BuildValue((char *)""); | |
2560 | } | |
2561 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2562 | PyObject *resultobj; | |
2563 | wxString *arg1 = 0 ; | |
2564 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2565 | wxBitmap *result; | |
e811c8ce | 2566 | bool temp1 = False ; |
d14a1e28 | 2567 | PyObject * obj0 = 0 ; |
994141e6 | 2568 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2569 | char *kwnames[] = { |
2570 | (char *) "name",(char *) "type", NULL | |
2571 | }; | |
2572 | ||
994141e6 | 2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
2574 | { |
2575 | arg1 = wxString_in_helper(obj0); | |
2576 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 2577 | temp1 = True; |
d14a1e28 | 2578 | } |
994141e6 | 2579 | if (obj1) { |
15afbcd0 RD |
2580 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
2581 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2582 | } |
d14a1e28 RD |
2583 | { |
2584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2585 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2586 | ||
2587 | wxPyEndAllowThreads(__tstate); | |
2588 | if (PyErr_Occurred()) SWIG_fail; | |
2589 | } | |
15afbcd0 | 2590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2591 | { |
2592 | if (temp1) | |
2593 | delete arg1; | |
2594 | } | |
2595 | return resultobj; | |
2596 | fail: | |
2597 | { | |
2598 | if (temp1) | |
2599 | delete arg1; | |
2600 | } | |
2601 | return NULL; | |
2602 | } | |
2603 | ||
2604 | ||
2605 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject *resultobj; | |
2607 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2608 | PyObject * obj0 = 0 ; | |
2609 | char *kwnames[] = { | |
2610 | (char *) "self", NULL | |
2611 | }; | |
2612 | ||
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2616 | { |
2617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2618 | delete arg1; | |
2619 | ||
2620 | wxPyEndAllowThreads(__tstate); | |
2621 | if (PyErr_Occurred()) SWIG_fail; | |
2622 | } | |
2623 | Py_INCREF(Py_None); resultobj = Py_None; | |
2624 | return resultobj; | |
2625 | fail: | |
2626 | return NULL; | |
2627 | } | |
2628 | ||
2629 | ||
66c033b4 RD |
2630 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
2631 | PyObject *resultobj; | |
2632 | int arg1 ; | |
2633 | int arg2 ; | |
2634 | int arg3 = (int) -1 ; | |
2635 | wxBitmap *result; | |
2636 | PyObject * obj0 = 0 ; | |
2637 | PyObject * obj1 = 0 ; | |
2638 | PyObject * obj2 = 0 ; | |
2639 | char *kwnames[] = { | |
2640 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2641 | }; | |
2642 | ||
2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2644 | arg1 = (int) SWIG_AsInt(obj0); | |
2645 | if (PyErr_Occurred()) SWIG_fail; | |
2646 | arg2 = (int) SWIG_AsInt(obj1); | |
2647 | if (PyErr_Occurred()) SWIG_fail; | |
2648 | if (obj2) { | |
2649 | arg3 = (int) SWIG_AsInt(obj2); | |
2650 | if (PyErr_Occurred()) SWIG_fail; | |
2651 | } | |
2652 | { | |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2654 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2655 | ||
2656 | wxPyEndAllowThreads(__tstate); | |
2657 | if (PyErr_Occurred()) SWIG_fail; | |
2658 | } | |
2659 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2660 | return resultobj; | |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
d14a1e28 RD |
2666 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
2667 | PyObject *resultobj; | |
2668 | wxIcon *arg1 = 0 ; | |
2669 | wxBitmap *result; | |
2670 | PyObject * obj0 = 0 ; | |
2671 | char *kwnames[] = { | |
2672 | (char *) "icon", NULL | |
2673 | }; | |
2674 | ||
2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
2677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2678 | SWIG_fail; | |
d14a1e28 | 2679 | if (arg1 == NULL) { |
15afbcd0 RD |
2680 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2681 | SWIG_fail; | |
d14a1e28 RD |
2682 | } |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
15afbcd0 | 2690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2691 | return resultobj; |
2692 | fail: | |
2693 | return NULL; | |
2694 | } | |
2695 | ||
2696 | ||
2697 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2698 | PyObject *resultobj; | |
2699 | wxImage *arg1 = 0 ; | |
2700 | int arg2 = (int) -1 ; | |
2701 | wxBitmap *result; | |
2702 | PyObject * obj0 = 0 ; | |
994141e6 | 2703 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2704 | char *kwnames[] = { |
2705 | (char *) "image",(char *) "depth", NULL | |
2706 | }; | |
2707 | ||
994141e6 | 2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
2710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2711 | SWIG_fail; | |
d14a1e28 | 2712 | if (arg1 == NULL) { |
15afbcd0 RD |
2713 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2714 | SWIG_fail; | |
d14a1e28 | 2715 | } |
994141e6 | 2716 | if (obj1) { |
15afbcd0 RD |
2717 | arg2 = (int) SWIG_AsInt(obj1); |
2718 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2719 | } |
d14a1e28 RD |
2720 | { |
2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2722 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2723 | ||
2724 | wxPyEndAllowThreads(__tstate); | |
2725 | if (PyErr_Occurred()) SWIG_fail; | |
2726 | } | |
15afbcd0 | 2727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2728 | return resultobj; |
2729 | fail: | |
2730 | return NULL; | |
2731 | } | |
2732 | ||
2733 | ||
2734 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2735 | PyObject *resultobj; | |
2736 | PyObject *arg1 = (PyObject *) 0 ; | |
2737 | wxBitmap *result; | |
2738 | PyObject * obj0 = 0 ; | |
2739 | char *kwnames[] = { | |
2740 | (char *) "listOfStrings", NULL | |
2741 | }; | |
2742 | ||
2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2744 | arg1 = obj0; | |
2745 | { | |
2746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2747 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2748 | ||
2749 | wxPyEndAllowThreads(__tstate); | |
2750 | if (PyErr_Occurred()) SWIG_fail; | |
2751 | } | |
15afbcd0 | 2752 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2753 | return resultobj; |
2754 | fail: | |
2755 | return NULL; | |
2756 | } | |
2757 | ||
2758 | ||
2759 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2760 | PyObject *resultobj; | |
2761 | PyObject *arg1 = (PyObject *) 0 ; | |
2762 | int arg2 ; | |
2763 | int arg3 ; | |
2764 | int arg4 = (int) 1 ; | |
2765 | wxBitmap *result; | |
2766 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2767 | PyObject * obj1 = 0 ; |
2768 | PyObject * obj2 = 0 ; | |
2769 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
2770 | char *kwnames[] = { |
2771 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2772 | }; | |
2773 | ||
994141e6 | 2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 2775 | arg1 = obj0; |
15afbcd0 RD |
2776 | arg2 = (int) SWIG_AsInt(obj1); |
2777 | if (PyErr_Occurred()) SWIG_fail; | |
2778 | arg3 = (int) SWIG_AsInt(obj2); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2780 | if (obj3) { |
15afbcd0 RD |
2781 | arg4 = (int) SWIG_AsInt(obj3); |
2782 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2783 | } |
d14a1e28 RD |
2784 | { |
2785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2786 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2787 | ||
2788 | wxPyEndAllowThreads(__tstate); | |
2789 | if (PyErr_Occurred()) SWIG_fail; | |
2790 | } | |
15afbcd0 | 2791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
2792 | return resultobj; |
2793 | fail: | |
2794 | return NULL; | |
2795 | } | |
2796 | ||
2797 | ||
2798 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject *resultobj; | |
2800 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2801 | bool result; | |
2802 | PyObject * obj0 = 0 ; | |
2803 | char *kwnames[] = { | |
2804 | (char *) "self", NULL | |
2805 | }; | |
2806 | ||
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2810 | { |
2811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2812 | result = (bool)(arg1)->Ok(); | |
2813 | ||
2814 | wxPyEndAllowThreads(__tstate); | |
2815 | if (PyErr_Occurred()) SWIG_fail; | |
2816 | } | |
4f89f6a3 RD |
2817 | { |
2818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2819 | } | |
d14a1e28 RD |
2820 | return resultobj; |
2821 | fail: | |
2822 | return NULL; | |
2823 | } | |
2824 | ||
2825 | ||
2826 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2827 | PyObject *resultobj; | |
2828 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2829 | int result; | |
2830 | PyObject * obj0 = 0 ; | |
2831 | char *kwnames[] = { | |
2832 | (char *) "self", NULL | |
2833 | }; | |
2834 | ||
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2838 | { |
2839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2840 | result = (int)(arg1)->GetWidth(); | |
2841 | ||
2842 | wxPyEndAllowThreads(__tstate); | |
2843 | if (PyErr_Occurred()) SWIG_fail; | |
2844 | } | |
15afbcd0 | 2845 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2846 | return resultobj; |
2847 | fail: | |
2848 | return NULL; | |
2849 | } | |
2850 | ||
2851 | ||
2852 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2853 | PyObject *resultobj; | |
2854 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2855 | int result; | |
2856 | PyObject * obj0 = 0 ; | |
2857 | char *kwnames[] = { | |
2858 | (char *) "self", NULL | |
2859 | }; | |
2860 | ||
2861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2864 | { |
2865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2866 | result = (int)(arg1)->GetHeight(); | |
2867 | ||
2868 | wxPyEndAllowThreads(__tstate); | |
2869 | if (PyErr_Occurred()) SWIG_fail; | |
2870 | } | |
15afbcd0 | 2871 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2872 | return resultobj; |
2873 | fail: | |
2874 | return NULL; | |
2875 | } | |
2876 | ||
2877 | ||
2878 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2879 | PyObject *resultobj; | |
2880 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2881 | int result; | |
2882 | PyObject * obj0 = 0 ; | |
2883 | char *kwnames[] = { | |
2884 | (char *) "self", NULL | |
2885 | }; | |
2886 | ||
2887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2890 | { |
2891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2892 | result = (int)(arg1)->GetDepth(); | |
2893 | ||
2894 | wxPyEndAllowThreads(__tstate); | |
2895 | if (PyErr_Occurred()) SWIG_fail; | |
2896 | } | |
15afbcd0 | 2897 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2898 | return resultobj; |
2899 | fail: | |
2900 | return NULL; | |
2901 | } | |
2902 | ||
2903 | ||
b2df227b RD |
2904 | static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
2905 | PyObject *resultobj; | |
2906 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2907 | wxSize result; | |
2908 | PyObject * obj0 = 0 ; | |
2909 | char *kwnames[] = { | |
2910 | (char *) "self", NULL | |
2911 | }; | |
2912 | ||
2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
2914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2916 | { | |
2917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2918 | result = wxBitmap_GetSize(arg1); | |
2919 | ||
2920 | wxPyEndAllowThreads(__tstate); | |
2921 | if (PyErr_Occurred()) SWIG_fail; | |
2922 | } | |
2923 | { | |
2924 | wxSize * resultptr; | |
2925 | resultptr = new wxSize((wxSize &) result); | |
2926 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2927 | } | |
2928 | return resultobj; | |
2929 | fail: | |
2930 | return NULL; | |
2931 | } | |
2932 | ||
2933 | ||
d14a1e28 RD |
2934 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2935 | PyObject *resultobj; | |
2936 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2937 | SwigValueWrapper< wxImage > result; | |
2938 | PyObject * obj0 = 0 ; | |
2939 | char *kwnames[] = { | |
2940 | (char *) "self", NULL | |
2941 | }; | |
2942 | ||
2943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2946 | { |
2947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2948 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2949 | ||
2950 | wxPyEndAllowThreads(__tstate); | |
2951 | if (PyErr_Occurred()) SWIG_fail; | |
2952 | } | |
2953 | { | |
2954 | wxImage * resultptr; | |
2955 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 2956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
2957 | } |
2958 | return resultobj; | |
2959 | fail: | |
2960 | return NULL; | |
2961 | } | |
2962 | ||
2963 | ||
2964 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2965 | PyObject *resultobj; | |
2966 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2967 | wxMask *result; | |
2968 | PyObject * obj0 = 0 ; | |
2969 | char *kwnames[] = { | |
2970 | (char *) "self", NULL | |
2971 | }; | |
2972 | ||
2973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
2975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2976 | { |
2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2978 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
2979 | ||
2980 | wxPyEndAllowThreads(__tstate); | |
2981 | if (PyErr_Occurred()) SWIG_fail; | |
2982 | } | |
15afbcd0 | 2983 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); |
d14a1e28 RD |
2984 | return resultobj; |
2985 | fail: | |
2986 | return NULL; | |
2987 | } | |
2988 | ||
2989 | ||
2990 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2991 | PyObject *resultobj; | |
2992 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2993 | wxMask *arg2 = (wxMask *) 0 ; | |
2994 | PyObject * obj0 = 0 ; | |
2995 | PyObject * obj1 = 0 ; | |
2996 | char *kwnames[] = { | |
2997 | (char *) "self",(char *) "mask", NULL | |
2998 | }; | |
2999 | ||
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3005 | { |
3006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3007 | (arg1)->SetMask(arg2); | |
3008 | ||
3009 | wxPyEndAllowThreads(__tstate); | |
3010 | if (PyErr_Occurred()) SWIG_fail; | |
3011 | } | |
3012 | Py_INCREF(Py_None); resultobj = Py_None; | |
3013 | return resultobj; | |
3014 | fail: | |
3015 | return NULL; | |
3016 | } | |
3017 | ||
3018 | ||
3019 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3020 | PyObject *resultobj; | |
3021 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3022 | wxColour *arg2 = 0 ; | |
3023 | wxColour temp2 ; | |
3024 | PyObject * obj0 = 0 ; | |
3025 | PyObject * obj1 = 0 ; | |
3026 | char *kwnames[] = { | |
3027 | (char *) "self",(char *) "colour", NULL | |
3028 | }; | |
3029 | ||
3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3033 | { |
3034 | arg2 = &temp2; | |
3035 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3036 | } | |
3037 | { | |
3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3039 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3040 | ||
3041 | wxPyEndAllowThreads(__tstate); | |
3042 | if (PyErr_Occurred()) SWIG_fail; | |
3043 | } | |
3044 | Py_INCREF(Py_None); resultobj = Py_None; | |
3045 | return resultobj; | |
3046 | fail: | |
3047 | return NULL; | |
3048 | } | |
3049 | ||
3050 | ||
3051 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject *resultobj; | |
3053 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3054 | wxRect *arg2 = 0 ; | |
3055 | SwigValueWrapper< wxBitmap > result; | |
3056 | wxRect temp2 ; | |
3057 | PyObject * obj0 = 0 ; | |
3058 | PyObject * obj1 = 0 ; | |
3059 | char *kwnames[] = { | |
3060 | (char *) "self",(char *) "rect", NULL | |
3061 | }; | |
3062 | ||
3063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3066 | { |
3067 | arg2 = &temp2; | |
3068 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3069 | } | |
3070 | { | |
3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3072 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3073 | ||
3074 | wxPyEndAllowThreads(__tstate); | |
3075 | if (PyErr_Occurred()) SWIG_fail; | |
3076 | } | |
3077 | { | |
3078 | wxBitmap * resultptr; | |
3079 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 3080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
3081 | } |
3082 | return resultobj; | |
3083 | fail: | |
3084 | return NULL; | |
3085 | } | |
3086 | ||
3087 | ||
3088 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3089 | PyObject *resultobj; | |
3090 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3091 | wxString *arg2 = 0 ; | |
3092 | int arg3 ; | |
66c033b4 | 3093 | wxPalette *arg4 = (wxPalette *) NULL ; |
d14a1e28 | 3094 | bool result; |
e811c8ce | 3095 | bool temp2 = False ; |
d14a1e28 RD |
3096 | PyObject * obj0 = 0 ; |
3097 | PyObject * obj1 = 0 ; | |
994141e6 | 3098 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3099 | PyObject * obj3 = 0 ; |
3100 | char *kwnames[] = { | |
3101 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3102 | }; | |
3103 | ||
994141e6 | 3104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3107 | { |
3108 | arg2 = wxString_in_helper(obj1); | |
3109 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3110 | temp2 = True; |
d14a1e28 | 3111 | } |
15afbcd0 RD |
3112 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 3114 | if (obj3) { |
15afbcd0 RD |
3115 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, |
3116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3117 | } |
3118 | { | |
3119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3120 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3121 | ||
3122 | wxPyEndAllowThreads(__tstate); | |
3123 | if (PyErr_Occurred()) SWIG_fail; | |
3124 | } | |
4f89f6a3 RD |
3125 | { |
3126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3127 | } | |
d14a1e28 RD |
3128 | { |
3129 | if (temp2) | |
3130 | delete arg2; | |
3131 | } | |
3132 | return resultobj; | |
3133 | fail: | |
3134 | { | |
3135 | if (temp2) | |
3136 | delete arg2; | |
3137 | } | |
3138 | return NULL; | |
3139 | } | |
3140 | ||
3141 | ||
3142 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject *resultobj; | |
3144 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3145 | wxString *arg2 = 0 ; | |
3146 | int arg3 ; | |
3147 | bool result; | |
e811c8ce | 3148 | bool temp2 = False ; |
d14a1e28 RD |
3149 | PyObject * obj0 = 0 ; |
3150 | PyObject * obj1 = 0 ; | |
994141e6 | 3151 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3152 | char *kwnames[] = { |
3153 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3154 | }; | |
3155 | ||
994141e6 | 3156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3159 | { |
3160 | arg2 = wxString_in_helper(obj1); | |
3161 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3162 | temp2 = True; |
d14a1e28 | 3163 | } |
15afbcd0 RD |
3164 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3165 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3166 | { |
3167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3168 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3169 | ||
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
4f89f6a3 RD |
3173 | { |
3174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3175 | } | |
d14a1e28 RD |
3176 | { |
3177 | if (temp2) | |
3178 | delete arg2; | |
3179 | } | |
3180 | return resultobj; | |
3181 | fail: | |
3182 | { | |
3183 | if (temp2) | |
3184 | delete arg2; | |
3185 | } | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
3190 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3191 | PyObject *resultobj; | |
3192 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3193 | wxIcon *arg2 = 0 ; | |
3194 | bool result; | |
3195 | PyObject * obj0 = 0 ; | |
3196 | PyObject * obj1 = 0 ; | |
3197 | char *kwnames[] = { | |
3198 | (char *) "self",(char *) "icon", NULL | |
3199 | }; | |
3200 | ||
3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3205 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3206 | SWIG_fail; | |
d14a1e28 | 3207 | if (arg2 == NULL) { |
15afbcd0 RD |
3208 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3209 | SWIG_fail; | |
d14a1e28 RD |
3210 | } |
3211 | { | |
3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3213 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3214 | ||
3215 | wxPyEndAllowThreads(__tstate); | |
3216 | if (PyErr_Occurred()) SWIG_fail; | |
3217 | } | |
4f89f6a3 RD |
3218 | { |
3219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3220 | } | |
d14a1e28 RD |
3221 | return resultobj; |
3222 | fail: | |
3223 | return NULL; | |
3224 | } | |
3225 | ||
3226 | ||
3227 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3228 | PyObject *resultobj; | |
3229 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3230 | int arg2 ; | |
3231 | PyObject * obj0 = 0 ; | |
994141e6 | 3232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3233 | char *kwnames[] = { |
3234 | (char *) "self",(char *) "height", NULL | |
3235 | }; | |
3236 | ||
994141e6 | 3237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3240 | arg2 = (int) SWIG_AsInt(obj1); | |
3241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3242 | { |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | (arg1)->SetHeight(arg2); | |
3245 | ||
3246 | wxPyEndAllowThreads(__tstate); | |
3247 | if (PyErr_Occurred()) SWIG_fail; | |
3248 | } | |
3249 | Py_INCREF(Py_None); resultobj = Py_None; | |
3250 | return resultobj; | |
3251 | fail: | |
3252 | return NULL; | |
3253 | } | |
3254 | ||
3255 | ||
3256 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3257 | PyObject *resultobj; | |
3258 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3259 | int arg2 ; | |
3260 | PyObject * obj0 = 0 ; | |
994141e6 | 3261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3262 | char *kwnames[] = { |
3263 | (char *) "self",(char *) "width", NULL | |
3264 | }; | |
3265 | ||
994141e6 | 3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3269 | arg2 = (int) SWIG_AsInt(obj1); | |
3270 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3271 | { |
3272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3273 | (arg1)->SetWidth(arg2); | |
3274 | ||
3275 | wxPyEndAllowThreads(__tstate); | |
3276 | if (PyErr_Occurred()) SWIG_fail; | |
3277 | } | |
3278 | Py_INCREF(Py_None); resultobj = Py_None; | |
3279 | return resultobj; | |
3280 | fail: | |
3281 | return NULL; | |
3282 | } | |
3283 | ||
3284 | ||
3285 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3286 | PyObject *resultobj; | |
3287 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3288 | int arg2 ; | |
3289 | PyObject * obj0 = 0 ; | |
994141e6 | 3290 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3291 | char *kwnames[] = { |
3292 | (char *) "self",(char *) "depth", NULL | |
3293 | }; | |
3294 | ||
994141e6 | 3295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3298 | arg2 = (int) SWIG_AsInt(obj1); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3300 | { |
3301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3302 | (arg1)->SetDepth(arg2); | |
3303 | ||
3304 | wxPyEndAllowThreads(__tstate); | |
3305 | if (PyErr_Occurred()) SWIG_fail; | |
3306 | } | |
3307 | Py_INCREF(Py_None); resultobj = Py_None; | |
3308 | return resultobj; | |
3309 | fail: | |
3310 | return NULL; | |
3311 | } | |
3312 | ||
3313 | ||
b2df227b RD |
3314 | static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
3315 | PyObject *resultobj; | |
3316 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3317 | wxSize *arg2 = 0 ; | |
3318 | wxSize temp2 ; | |
3319 | PyObject * obj0 = 0 ; | |
3320 | PyObject * obj1 = 0 ; | |
3321 | char *kwnames[] = { | |
3322 | (char *) "self",(char *) "size", NULL | |
3323 | }; | |
3324 | ||
3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3328 | { | |
3329 | arg2 = &temp2; | |
3330 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3331 | } | |
3332 | { | |
3333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3334 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3335 | ||
3336 | wxPyEndAllowThreads(__tstate); | |
3337 | if (PyErr_Occurred()) SWIG_fail; | |
3338 | } | |
3339 | Py_INCREF(Py_None); resultobj = Py_None; | |
3340 | return resultobj; | |
3341 | fail: | |
3342 | return NULL; | |
3343 | } | |
3344 | ||
3345 | ||
4276dc52 RD |
3346 | static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
3347 | PyObject *resultobj; | |
3348 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3349 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3350 | bool result; | |
3351 | PyObject * obj0 = 0 ; | |
3352 | PyObject * obj1 = 0 ; | |
3353 | char *kwnames[] = { | |
3354 | (char *) "self",(char *) "other", NULL | |
3355 | }; | |
3356 | ||
3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3360 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3362 | { | |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3364 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3365 | ||
3366 | wxPyEndAllowThreads(__tstate); | |
3367 | if (PyErr_Occurred()) SWIG_fail; | |
3368 | } | |
4f89f6a3 RD |
3369 | { |
3370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3371 | } | |
4276dc52 RD |
3372 | return resultobj; |
3373 | fail: | |
3374 | return NULL; | |
3375 | } | |
3376 | ||
3377 | ||
3378 | static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3379 | PyObject *resultobj; | |
3380 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3381 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3382 | bool result; | |
3383 | PyObject * obj0 = 0 ; | |
3384 | PyObject * obj1 = 0 ; | |
3385 | char *kwnames[] = { | |
3386 | (char *) "self",(char *) "other", NULL | |
3387 | }; | |
3388 | ||
3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3394 | { | |
3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3396 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3397 | ||
3398 | wxPyEndAllowThreads(__tstate); | |
3399 | if (PyErr_Occurred()) SWIG_fail; | |
3400 | } | |
4f89f6a3 RD |
3401 | { |
3402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3403 | } | |
4276dc52 RD |
3404 | return resultobj; |
3405 | fail: | |
3406 | return NULL; | |
3407 | } | |
3408 | ||
3409 | ||
d14a1e28 RD |
3410 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { |
3411 | PyObject *obj; | |
3412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3413 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3414 | Py_INCREF(obj); | |
3415 | return Py_BuildValue((char *)""); | |
3416 | } | |
3417 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3418 | PyObject *resultobj; | |
3419 | wxBitmap *arg1 = 0 ; | |
0482c494 RD |
3420 | wxColour const &arg2_defvalue = wxNullColour ; |
3421 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
d14a1e28 RD |
3422 | wxMask *result; |
3423 | wxColour temp2 ; | |
3424 | PyObject * obj0 = 0 ; | |
3425 | PyObject * obj1 = 0 ; | |
3426 | char *kwnames[] = { | |
3427 | (char *) "bitmap",(char *) "colour", NULL | |
3428 | }; | |
3429 | ||
0482c494 | 3430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3433 | SWIG_fail; | |
d14a1e28 | 3434 | if (arg1 == NULL) { |
15afbcd0 RD |
3435 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3436 | SWIG_fail; | |
d14a1e28 | 3437 | } |
0482c494 RD |
3438 | if (obj1) { |
3439 | { | |
3440 | arg2 = &temp2; | |
3441 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3442 | } | |
d14a1e28 RD |
3443 | } |
3444 | { | |
3445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
0482c494 | 3446 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); |
d14a1e28 RD |
3447 | |
3448 | wxPyEndAllowThreads(__tstate); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
15afbcd0 | 3451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); |
d14a1e28 RD |
3452 | return resultobj; |
3453 | fail: | |
3454 | return NULL; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3459 | PyObject *obj; | |
3460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3461 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3462 | Py_INCREF(obj); | |
3463 | return Py_BuildValue((char *)""); | |
3464 | } | |
3465 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3466 | PyObject *resultobj; | |
3467 | wxString *arg1 = 0 ; | |
f87da722 | 3468 | int arg2 ; |
d14a1e28 RD |
3469 | int arg3 = (int) -1 ; |
3470 | int arg4 = (int) -1 ; | |
3471 | wxIcon *result; | |
e811c8ce | 3472 | bool temp1 = False ; |
d14a1e28 | 3473 | PyObject * obj0 = 0 ; |
994141e6 RD |
3474 | PyObject * obj1 = 0 ; |
3475 | PyObject * obj2 = 0 ; | |
3476 | PyObject * obj3 = 0 ; | |
d14a1e28 | 3477 | char *kwnames[] = { |
f87da722 | 3478 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL |
d14a1e28 RD |
3479 | }; |
3480 | ||
994141e6 | 3481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
3482 | { |
3483 | arg1 = wxString_in_helper(obj0); | |
3484 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 3485 | temp1 = True; |
d14a1e28 | 3486 | } |
15afbcd0 RD |
3487 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); |
3488 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3489 | if (obj2) { |
15afbcd0 RD |
3490 | arg3 = (int) SWIG_AsInt(obj2); |
3491 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3492 | } |
3493 | if (obj3) { | |
15afbcd0 RD |
3494 | arg4 = (int) SWIG_AsInt(obj3); |
3495 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3496 | } |
3497 | { | |
3498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3499 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3500 | ||
3501 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
3502 | if (PyErr_Occurred()) SWIG_fail; |
3503 | } | |
15afbcd0 | 3504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3505 | { |
3506 | if (temp1) | |
3507 | delete arg1; | |
3508 | } | |
3509 | return resultobj; | |
3510 | fail: | |
3511 | { | |
3512 | if (temp1) | |
3513 | delete arg1; | |
3514 | } | |
3515 | return NULL; | |
3516 | } | |
3517 | ||
3518 | ||
3519 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3520 | PyObject *resultobj; | |
3521 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3522 | PyObject * obj0 = 0 ; | |
3523 | char *kwnames[] = { | |
3524 | (char *) "self", NULL | |
3525 | }; | |
3526 | ||
3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3530 | { |
3531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3532 | delete arg1; | |
3533 | ||
3534 | wxPyEndAllowThreads(__tstate); | |
3535 | if (PyErr_Occurred()) SWIG_fail; | |
3536 | } | |
3537 | Py_INCREF(Py_None); resultobj = Py_None; | |
3538 | return resultobj; | |
3539 | fail: | |
3540 | return NULL; | |
3541 | } | |
3542 | ||
3543 | ||
3544 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3545 | PyObject *resultobj; | |
3546 | wxIcon *result; | |
3547 | char *kwnames[] = { | |
3548 | NULL | |
3549 | }; | |
3550 | ||
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3552 | { | |
3553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3554 | result = (wxIcon *)new wxIcon(); | |
3555 | ||
3556 | wxPyEndAllowThreads(__tstate); | |
3557 | if (PyErr_Occurred()) SWIG_fail; | |
3558 | } | |
15afbcd0 | 3559 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3560 | return resultobj; |
3561 | fail: | |
3562 | return NULL; | |
3563 | } | |
3564 | ||
3565 | ||
3566 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3567 | PyObject *resultobj; | |
3568 | wxIconLocation *arg1 = 0 ; | |
3569 | wxIcon *result; | |
3570 | PyObject * obj0 = 0 ; | |
3571 | char *kwnames[] = { | |
3572 | (char *) "loc", NULL | |
3573 | }; | |
3574 | ||
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3577 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3578 | SWIG_fail; | |
d14a1e28 | 3579 | if (arg1 == NULL) { |
15afbcd0 RD |
3580 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3581 | SWIG_fail; | |
d14a1e28 RD |
3582 | } |
3583 | { | |
3584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3585 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3586 | ||
3587 | wxPyEndAllowThreads(__tstate); | |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
3589 | } | |
15afbcd0 | 3590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3591 | return resultobj; |
3592 | fail: | |
3593 | return NULL; | |
3594 | } | |
3595 | ||
3596 | ||
3597 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3598 | PyObject *resultobj; | |
3599 | wxBitmap *arg1 = 0 ; | |
3600 | wxIcon *result; | |
3601 | PyObject * obj0 = 0 ; | |
3602 | char *kwnames[] = { | |
3603 | (char *) "bmp", NULL | |
3604 | }; | |
3605 | ||
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
3608 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3609 | SWIG_fail; | |
d14a1e28 | 3610 | if (arg1 == NULL) { |
15afbcd0 RD |
3611 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3612 | SWIG_fail; | |
d14a1e28 RD |
3613 | } |
3614 | { | |
3615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3616 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3617 | ||
3618 | wxPyEndAllowThreads(__tstate); | |
3619 | if (PyErr_Occurred()) SWIG_fail; | |
3620 | } | |
15afbcd0 | 3621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3622 | return resultobj; |
3623 | fail: | |
3624 | return NULL; | |
3625 | } | |
3626 | ||
3627 | ||
3628 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3629 | PyObject *resultobj; | |
3630 | PyObject *arg1 = (PyObject *) 0 ; | |
3631 | wxIcon *result; | |
3632 | PyObject * obj0 = 0 ; | |
3633 | char *kwnames[] = { | |
3634 | (char *) "listOfStrings", NULL | |
3635 | }; | |
3636 | ||
3637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3638 | arg1 = obj0; | |
3639 | { | |
3640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3641 | result = (wxIcon *)new_wxIcon(arg1); | |
3642 | ||
3643 | wxPyEndAllowThreads(__tstate); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | } | |
15afbcd0 | 3646 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); |
d14a1e28 RD |
3647 | return resultobj; |
3648 | fail: | |
3649 | return NULL; | |
3650 | } | |
3651 | ||
3652 | ||
3653 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3654 | PyObject *resultobj; | |
3655 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3656 | wxString *arg2 = 0 ; | |
f87da722 | 3657 | int arg3 ; |
d14a1e28 | 3658 | bool result; |
e811c8ce | 3659 | bool temp2 = False ; |
d14a1e28 RD |
3660 | PyObject * obj0 = 0 ; |
3661 | PyObject * obj1 = 0 ; | |
994141e6 | 3662 | PyObject * obj2 = 0 ; |
d14a1e28 | 3663 | char *kwnames[] = { |
f87da722 | 3664 | (char *) "self",(char *) "name",(char *) "type", NULL |
d14a1e28 RD |
3665 | }; |
3666 | ||
994141e6 | 3667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3670 | { |
3671 | arg2 = wxString_in_helper(obj1); | |
3672 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3673 | temp2 = True; |
d14a1e28 | 3674 | } |
15afbcd0 RD |
3675 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); |
3676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3677 | { |
3678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f87da722 | 3679 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); |
d14a1e28 RD |
3680 | |
3681 | wxPyEndAllowThreads(__tstate); | |
3682 | if (PyErr_Occurred()) SWIG_fail; | |
3683 | } | |
4f89f6a3 RD |
3684 | { |
3685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3686 | } | |
d14a1e28 RD |
3687 | { |
3688 | if (temp2) | |
3689 | delete arg2; | |
3690 | } | |
3691 | return resultobj; | |
3692 | fail: | |
3693 | { | |
3694 | if (temp2) | |
3695 | delete arg2; | |
3696 | } | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
3701 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3702 | PyObject *resultobj; | |
3703 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3704 | bool result; | |
3705 | PyObject * obj0 = 0 ; | |
3706 | char *kwnames[] = { | |
3707 | (char *) "self", NULL | |
3708 | }; | |
3709 | ||
3710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 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 = (bool)(arg1)->Ok(); | |
3716 | ||
3717 | wxPyEndAllowThreads(__tstate); | |
3718 | if (PyErr_Occurred()) SWIG_fail; | |
3719 | } | |
4f89f6a3 RD |
3720 | { |
3721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3722 | } | |
d14a1e28 RD |
3723 | return resultobj; |
3724 | fail: | |
3725 | return NULL; | |
3726 | } | |
3727 | ||
3728 | ||
3729 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3730 | PyObject *resultobj; | |
3731 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3732 | int result; | |
3733 | PyObject * obj0 = 0 ; | |
3734 | char *kwnames[] = { | |
3735 | (char *) "self", NULL | |
3736 | }; | |
3737 | ||
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3741 | { |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | result = (int)(arg1)->GetWidth(); | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
15afbcd0 | 3748 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3749 | return resultobj; |
3750 | fail: | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
3755 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3756 | PyObject *resultobj; | |
3757 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3758 | int result; | |
3759 | PyObject * obj0 = 0 ; | |
3760 | char *kwnames[] = { | |
3761 | (char *) "self", NULL | |
3762 | }; | |
3763 | ||
3764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3767 | { |
3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3769 | result = (int)(arg1)->GetHeight(); | |
3770 | ||
3771 | wxPyEndAllowThreads(__tstate); | |
3772 | if (PyErr_Occurred()) SWIG_fail; | |
3773 | } | |
15afbcd0 | 3774 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3775 | return resultobj; |
3776 | fail: | |
3777 | return NULL; | |
3778 | } | |
3779 | ||
3780 | ||
3781 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3782 | PyObject *resultobj; | |
3783 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3784 | int result; | |
3785 | PyObject * obj0 = 0 ; | |
3786 | char *kwnames[] = { | |
3787 | (char *) "self", NULL | |
3788 | }; | |
3789 | ||
3790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3793 | { |
3794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3795 | result = (int)(arg1)->GetDepth(); | |
3796 | ||
3797 | wxPyEndAllowThreads(__tstate); | |
3798 | if (PyErr_Occurred()) SWIG_fail; | |
3799 | } | |
15afbcd0 | 3800 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3801 | return resultobj; |
3802 | fail: | |
3803 | return NULL; | |
3804 | } | |
3805 | ||
3806 | ||
3807 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3808 | PyObject *resultobj; | |
3809 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3810 | int arg2 ; | |
3811 | PyObject * obj0 = 0 ; | |
994141e6 | 3812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3813 | char *kwnames[] = { |
3814 | (char *) "self",(char *) "w", NULL | |
3815 | }; | |
3816 | ||
994141e6 | 3817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3820 | arg2 = (int) SWIG_AsInt(obj1); | |
3821 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3822 | { |
3823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3824 | (arg1)->SetWidth(arg2); | |
3825 | ||
3826 | wxPyEndAllowThreads(__tstate); | |
3827 | if (PyErr_Occurred()) SWIG_fail; | |
3828 | } | |
3829 | Py_INCREF(Py_None); resultobj = Py_None; | |
3830 | return resultobj; | |
3831 | fail: | |
3832 | return NULL; | |
3833 | } | |
3834 | ||
3835 | ||
3836 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3837 | PyObject *resultobj; | |
3838 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3839 | int arg2 ; | |
3840 | PyObject * obj0 = 0 ; | |
994141e6 | 3841 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3842 | char *kwnames[] = { |
3843 | (char *) "self",(char *) "h", NULL | |
3844 | }; | |
3845 | ||
994141e6 | 3846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3849 | arg2 = (int) SWIG_AsInt(obj1); | |
3850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3851 | { |
3852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3853 | (arg1)->SetHeight(arg2); | |
3854 | ||
3855 | wxPyEndAllowThreads(__tstate); | |
3856 | if (PyErr_Occurred()) SWIG_fail; | |
3857 | } | |
3858 | Py_INCREF(Py_None); resultobj = Py_None; | |
3859 | return resultobj; | |
3860 | fail: | |
3861 | return NULL; | |
3862 | } | |
3863 | ||
3864 | ||
3865 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3866 | PyObject *resultobj; | |
3867 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3868 | int arg2 ; | |
3869 | PyObject * obj0 = 0 ; | |
994141e6 | 3870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3871 | char *kwnames[] = { |
3872 | (char *) "self",(char *) "d", NULL | |
3873 | }; | |
3874 | ||
994141e6 | 3875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3878 | arg2 = (int) SWIG_AsInt(obj1); | |
3879 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3880 | { |
3881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3882 | (arg1)->SetDepth(arg2); | |
3883 | ||
3884 | wxPyEndAllowThreads(__tstate); | |
3885 | if (PyErr_Occurred()) SWIG_fail; | |
3886 | } | |
3887 | Py_INCREF(Py_None); resultobj = Py_None; | |
3888 | return resultobj; | |
3889 | fail: | |
3890 | return NULL; | |
3891 | } | |
3892 | ||
3893 | ||
3894 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3895 | PyObject *resultobj; | |
3896 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3897 | wxBitmap *arg2 = 0 ; | |
3898 | PyObject * obj0 = 0 ; | |
3899 | PyObject * obj1 = 0 ; | |
3900 | char *kwnames[] = { | |
3901 | (char *) "self",(char *) "bmp", NULL | |
3902 | }; | |
3903 | ||
3904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
3906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3908 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3909 | SWIG_fail; | |
d14a1e28 | 3910 | if (arg2 == NULL) { |
15afbcd0 RD |
3911 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3912 | SWIG_fail; | |
d14a1e28 RD |
3913 | } |
3914 | { | |
3915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3916 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3917 | ||
3918 | wxPyEndAllowThreads(__tstate); | |
3919 | if (PyErr_Occurred()) SWIG_fail; | |
3920 | } | |
3921 | Py_INCREF(Py_None); resultobj = Py_None; | |
3922 | return resultobj; | |
3923 | fail: | |
3924 | return NULL; | |
3925 | } | |
3926 | ||
3927 | ||
3928 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3929 | PyObject *obj; | |
3930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3931 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3932 | Py_INCREF(obj); | |
3933 | return Py_BuildValue((char *)""); | |
3934 | } | |
3935 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3936 | PyObject *resultobj; | |
3937 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3938 | int arg2 = (int) 0 ; | |
3939 | wxIconLocation *result; | |
7eae615b | 3940 | bool temp1 = False ; |
d14a1e28 | 3941 | PyObject * obj0 = 0 ; |
994141e6 | 3942 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3943 | char *kwnames[] = { |
3944 | (char *) "filename",(char *) "num", NULL | |
3945 | }; | |
3946 | ||
994141e6 | 3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3948 | if (obj0) { |
7eae615b RD |
3949 | { |
3950 | arg1 = wxString_in_helper(obj0); | |
3951 | if (arg1 == NULL) SWIG_fail; | |
3952 | temp1 = True; | |
3953 | } | |
d14a1e28 | 3954 | } |
994141e6 | 3955 | if (obj1) { |
15afbcd0 RD |
3956 | arg2 = (int) SWIG_AsInt(obj1); |
3957 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3958 | } |
d14a1e28 RD |
3959 | { |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3961 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3962 | ||
3963 | wxPyEndAllowThreads(__tstate); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | } | |
15afbcd0 | 3966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); |
7eae615b RD |
3967 | { |
3968 | if (temp1) | |
3969 | delete arg1; | |
3970 | } | |
d14a1e28 RD |
3971 | return resultobj; |
3972 | fail: | |
7eae615b RD |
3973 | { |
3974 | if (temp1) | |
3975 | delete arg1; | |
3976 | } | |
d14a1e28 RD |
3977 | return NULL; |
3978 | } | |
3979 | ||
3980 | ||
3981 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3982 | PyObject *resultobj; | |
3983 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3984 | PyObject * obj0 = 0 ; | |
3985 | char *kwnames[] = { | |
3986 | (char *) "self", NULL | |
3987 | }; | |
3988 | ||
3989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
3991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3992 | { |
3993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3994 | delete arg1; | |
3995 | ||
3996 | wxPyEndAllowThreads(__tstate); | |
3997 | if (PyErr_Occurred()) SWIG_fail; | |
3998 | } | |
3999 | Py_INCREF(Py_None); resultobj = Py_None; | |
4000 | return resultobj; | |
4001 | fail: | |
4002 | return NULL; | |
4003 | } | |
4004 | ||
4005 | ||
4006 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4007 | PyObject *resultobj; | |
4008 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4009 | bool result; | |
4010 | PyObject * obj0 = 0 ; | |
4011 | char *kwnames[] = { | |
4012 | (char *) "self", NULL | |
4013 | }; | |
4014 | ||
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4018 | { |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4021 | ||
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4f89f6a3 RD |
4025 | { |
4026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4027 | } | |
d14a1e28 RD |
4028 | return resultobj; |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
4034 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4035 | PyObject *resultobj; | |
4036 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4037 | wxString *arg2 = 0 ; | |
e811c8ce | 4038 | bool temp2 = False ; |
d14a1e28 RD |
4039 | PyObject * obj0 = 0 ; |
4040 | PyObject * obj1 = 0 ; | |
4041 | char *kwnames[] = { | |
4042 | (char *) "self",(char *) "filename", NULL | |
4043 | }; | |
4044 | ||
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4048 | { |
4049 | arg2 = wxString_in_helper(obj1); | |
4050 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4051 | temp2 = True; |
d14a1e28 RD |
4052 | } |
4053 | { | |
4054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4055 | (arg1)->SetFileName((wxString const &)*arg2); | |
4056 | ||
4057 | wxPyEndAllowThreads(__tstate); | |
4058 | if (PyErr_Occurred()) SWIG_fail; | |
4059 | } | |
4060 | Py_INCREF(Py_None); resultobj = Py_None; | |
4061 | { | |
4062 | if (temp2) | |
4063 | delete arg2; | |
4064 | } | |
4065 | return resultobj; | |
4066 | fail: | |
4067 | { | |
4068 | if (temp2) | |
4069 | delete arg2; | |
4070 | } | |
4071 | return NULL; | |
4072 | } | |
4073 | ||
4074 | ||
4075 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4076 | PyObject *resultobj; | |
4077 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4078 | wxString *result; | |
4079 | PyObject * obj0 = 0 ; | |
4080 | char *kwnames[] = { | |
4081 | (char *) "self", NULL | |
4082 | }; | |
4083 | ||
4084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4087 | { |
4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4089 | { | |
4090 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4091 | result = (wxString *) &_result_ref; | |
4092 | } | |
4093 | ||
4094 | wxPyEndAllowThreads(__tstate); | |
4095 | if (PyErr_Occurred()) SWIG_fail; | |
4096 | } | |
cc6dd355 RD |
4097 | { |
4098 | #if wxUSE_UNICODE | |
4099 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4100 | #else | |
4101 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4102 | #endif | |
4103 | } | |
d14a1e28 RD |
4104 | return resultobj; |
4105 | fail: | |
4106 | return NULL; | |
4107 | } | |
4108 | ||
4109 | ||
4110 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4111 | PyObject *resultobj; | |
4112 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4113 | int arg2 ; | |
4114 | PyObject * obj0 = 0 ; | |
994141e6 | 4115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4116 | char *kwnames[] = { |
4117 | (char *) "self",(char *) "num", NULL | |
4118 | }; | |
4119 | ||
994141e6 | 4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4123 | arg2 = (int) SWIG_AsInt(obj1); | |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4125 | { |
4126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4127 | wxIconLocation_SetIndex(arg1,arg2); | |
4128 | ||
4129 | wxPyEndAllowThreads(__tstate); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | } | |
4132 | Py_INCREF(Py_None); resultobj = Py_None; | |
4133 | return resultobj; | |
4134 | fail: | |
4135 | return NULL; | |
4136 | } | |
4137 | ||
4138 | ||
4139 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4140 | PyObject *resultobj; | |
4141 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4142 | int result; | |
4143 | PyObject * obj0 = 0 ; | |
4144 | char *kwnames[] = { | |
4145 | (char *) "self", NULL | |
4146 | }; | |
4147 | ||
4148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, |
4150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4151 | { |
4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4153 | result = (int)wxIconLocation_GetIndex(arg1); | |
4154 | ||
4155 | wxPyEndAllowThreads(__tstate); | |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | } | |
15afbcd0 | 4158 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4159 | return resultobj; |
4160 | fail: | |
4161 | return NULL; | |
4162 | } | |
4163 | ||
4164 | ||
4165 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
4166 | PyObject *obj; | |
4167 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4168 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4169 | Py_INCREF(obj); | |
4170 | return Py_BuildValue((char *)""); | |
4171 | } | |
4172 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4173 | PyObject *resultobj; | |
4174 | wxIconBundle *result; | |
4175 | char *kwnames[] = { | |
4176 | NULL | |
4177 | }; | |
4178 | ||
4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4180 | { | |
4181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4182 | result = (wxIconBundle *)new wxIconBundle(); | |
4183 | ||
4184 | wxPyEndAllowThreads(__tstate); | |
4185 | if (PyErr_Occurred()) SWIG_fail; | |
4186 | } | |
15afbcd0 | 4187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4188 | return resultobj; |
4189 | fail: | |
4190 | return NULL; | |
4191 | } | |
4192 | ||
4193 | ||
4194 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4195 | PyObject *resultobj; | |
4196 | wxString *arg1 = 0 ; | |
4197 | long arg2 ; | |
4198 | wxIconBundle *result; | |
e811c8ce | 4199 | bool temp1 = False ; |
d14a1e28 | 4200 | PyObject * obj0 = 0 ; |
994141e6 | 4201 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4202 | char *kwnames[] = { |
4203 | (char *) "file",(char *) "type", NULL | |
4204 | }; | |
4205 | ||
994141e6 | 4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4207 | { |
4208 | arg1 = wxString_in_helper(obj0); | |
4209 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 4210 | temp1 = True; |
d14a1e28 | 4211 | } |
15afbcd0 RD |
4212 | arg2 = (long) SWIG_AsLong(obj1); |
4213 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4214 | { |
4215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4216 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4217 | ||
4218 | wxPyEndAllowThreads(__tstate); | |
4219 | if (PyErr_Occurred()) SWIG_fail; | |
4220 | } | |
15afbcd0 | 4221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4222 | { |
4223 | if (temp1) | |
4224 | delete arg1; | |
4225 | } | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | { | |
4229 | if (temp1) | |
4230 | delete arg1; | |
4231 | } | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4237 | PyObject *resultobj; | |
4238 | wxIcon *arg1 = 0 ; | |
4239 | wxIconBundle *result; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | char *kwnames[] = { | |
4242 | (char *) "icon", NULL | |
4243 | }; | |
4244 | ||
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
4247 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4248 | SWIG_fail; | |
d14a1e28 | 4249 | if (arg1 == NULL) { |
15afbcd0 RD |
4250 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4251 | SWIG_fail; | |
d14a1e28 RD |
4252 | } |
4253 | { | |
4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4255 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4256 | ||
4257 | wxPyEndAllowThreads(__tstate); | |
4258 | if (PyErr_Occurred()) SWIG_fail; | |
4259 | } | |
15afbcd0 | 4260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); |
d14a1e28 RD |
4261 | return resultobj; |
4262 | fail: | |
4263 | return NULL; | |
4264 | } | |
4265 | ||
4266 | ||
4267 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4268 | PyObject *resultobj; | |
4269 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4270 | PyObject * obj0 = 0 ; | |
4271 | char *kwnames[] = { | |
4272 | (char *) "self", NULL | |
4273 | }; | |
4274 | ||
4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4278 | { |
4279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4280 | delete arg1; | |
4281 | ||
4282 | wxPyEndAllowThreads(__tstate); | |
4283 | if (PyErr_Occurred()) SWIG_fail; | |
4284 | } | |
4285 | Py_INCREF(Py_None); resultobj = Py_None; | |
4286 | return resultobj; | |
4287 | fail: | |
4288 | return NULL; | |
4289 | } | |
4290 | ||
4291 | ||
4292 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4293 | PyObject *resultobj; | |
4294 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4295 | wxIcon *arg2 = 0 ; | |
4296 | PyObject * obj0 = 0 ; | |
4297 | PyObject * obj1 = 0 ; | |
4298 | char *kwnames[] = { | |
4299 | (char *) "self",(char *) "icon", NULL | |
4300 | }; | |
4301 | ||
4302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4305 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4306 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4307 | SWIG_fail; | |
d14a1e28 | 4308 | if (arg2 == NULL) { |
15afbcd0 RD |
4309 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4310 | SWIG_fail; | |
d14a1e28 RD |
4311 | } |
4312 | { | |
4313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4314 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4315 | ||
4316 | wxPyEndAllowThreads(__tstate); | |
4317 | if (PyErr_Occurred()) SWIG_fail; | |
4318 | } | |
4319 | Py_INCREF(Py_None); resultobj = Py_None; | |
4320 | return resultobj; | |
4321 | fail: | |
4322 | return NULL; | |
4323 | } | |
4324 | ||
4325 | ||
4326 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject *resultobj; | |
4328 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4329 | wxString *arg2 = 0 ; | |
4330 | long arg3 ; | |
e811c8ce | 4331 | bool temp2 = False ; |
d14a1e28 RD |
4332 | PyObject * obj0 = 0 ; |
4333 | PyObject * obj1 = 0 ; | |
994141e6 | 4334 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4335 | char *kwnames[] = { |
4336 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4337 | }; | |
4338 | ||
994141e6 | 4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4342 | { |
4343 | arg2 = wxString_in_helper(obj1); | |
4344 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4345 | temp2 = True; |
d14a1e28 | 4346 | } |
15afbcd0 RD |
4347 | arg3 = (long) SWIG_AsLong(obj2); |
4348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4349 | { |
4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4351 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4352 | ||
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
4356 | Py_INCREF(Py_None); resultobj = Py_None; | |
4357 | { | |
4358 | if (temp2) | |
4359 | delete arg2; | |
4360 | } | |
4361 | return resultobj; | |
4362 | fail: | |
4363 | { | |
4364 | if (temp2) | |
4365 | delete arg2; | |
4366 | } | |
4367 | return NULL; | |
4368 | } | |
4369 | ||
4370 | ||
4371 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4372 | PyObject *resultobj; | |
4373 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4374 | wxSize *arg2 = 0 ; | |
4375 | wxIcon *result; | |
4376 | wxSize temp2 ; | |
4377 | PyObject * obj0 = 0 ; | |
4378 | PyObject * obj1 = 0 ; | |
4379 | char *kwnames[] = { | |
4380 | (char *) "self",(char *) "size", NULL | |
4381 | }; | |
4382 | ||
4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, |
4385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4386 | { |
4387 | arg2 = &temp2; | |
4388 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4389 | } | |
4390 | { | |
4391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4392 | { | |
4393 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4394 | result = (wxIcon *) &_result_ref; | |
4395 | } | |
4396 | ||
4397 | wxPyEndAllowThreads(__tstate); | |
4398 | if (PyErr_Occurred()) SWIG_fail; | |
4399 | } | |
4276dc52 RD |
4400 | { |
4401 | wxIcon* resultptr = new wxIcon(*result); | |
4402 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4403 | } | |
d14a1e28 RD |
4404 | return resultobj; |
4405 | fail: | |
4406 | return NULL; | |
4407 | } | |
4408 | ||
4409 | ||
4410 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4411 | PyObject *obj; | |
4412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4413 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4414 | Py_INCREF(obj); | |
4415 | return Py_BuildValue((char *)""); | |
4416 | } | |
4417 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4418 | PyObject *resultobj; | |
4419 | wxString *arg1 = (wxString *) 0 ; | |
4420 | long arg2 ; | |
4421 | int arg3 = (int) 0 ; | |
4422 | int arg4 = (int) 0 ; | |
4423 | wxCursor *result; | |
7eae615b | 4424 | bool temp1 = False ; |
d14a1e28 | 4425 | PyObject * obj0 = 0 ; |
994141e6 RD |
4426 | PyObject * obj1 = 0 ; |
4427 | PyObject * obj2 = 0 ; | |
4428 | PyObject * obj3 = 0 ; | |
d14a1e28 | 4429 | char *kwnames[] = { |
15afbcd0 | 4430 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL |
d14a1e28 RD |
4431 | }; |
4432 | ||
994141e6 | 4433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7eae615b RD |
4434 | { |
4435 | arg1 = wxString_in_helper(obj0); | |
4436 | if (arg1 == NULL) SWIG_fail; | |
4437 | temp1 = True; | |
4438 | } | |
15afbcd0 RD |
4439 | arg2 = (long) SWIG_AsLong(obj1); |
4440 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4441 | if (obj2) { |
15afbcd0 RD |
4442 | arg3 = (int) SWIG_AsInt(obj2); |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4444 | } |
4445 | if (obj3) { | |
15afbcd0 RD |
4446 | arg4 = (int) SWIG_AsInt(obj3); |
4447 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4448 | } |
d14a1e28 RD |
4449 | { |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4452 | ||
4453 | wxPyEndAllowThreads(__tstate); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
15afbcd0 | 4456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
7eae615b RD |
4457 | { |
4458 | if (temp1) | |
4459 | delete arg1; | |
4460 | } | |
d14a1e28 RD |
4461 | return resultobj; |
4462 | fail: | |
7eae615b RD |
4463 | { |
4464 | if (temp1) | |
4465 | delete arg1; | |
4466 | } | |
d14a1e28 RD |
4467 | return NULL; |
4468 | } | |
4469 | ||
4470 | ||
4471 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4472 | PyObject *resultobj; | |
4473 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4474 | PyObject * obj0 = 0 ; | |
4475 | char *kwnames[] = { | |
4476 | (char *) "self", NULL | |
4477 | }; | |
4478 | ||
4479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4482 | { |
4483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4484 | delete arg1; | |
4485 | ||
4486 | wxPyEndAllowThreads(__tstate); | |
4487 | if (PyErr_Occurred()) SWIG_fail; | |
4488 | } | |
4489 | Py_INCREF(Py_None); resultobj = Py_None; | |
4490 | return resultobj; | |
4491 | fail: | |
4492 | return NULL; | |
4493 | } | |
4494 | ||
4495 | ||
4496 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4497 | PyObject *resultobj; | |
4498 | int arg1 ; | |
4499 | wxCursor *result; | |
994141e6 | 4500 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
4501 | char *kwnames[] = { |
4502 | (char *) "id", NULL | |
4503 | }; | |
4504 | ||
994141e6 | 4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4506 | arg1 = (int) SWIG_AsInt(obj0); |
4507 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4508 | { |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | result = (wxCursor *)new wxCursor(arg1); | |
4511 | ||
4512 | wxPyEndAllowThreads(__tstate); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
15afbcd0 | 4515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4516 | return resultobj; |
4517 | fail: | |
4518 | return NULL; | |
4519 | } | |
4520 | ||
4521 | ||
4522 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject *resultobj; | |
4524 | wxImage *arg1 = 0 ; | |
4525 | wxCursor *result; | |
4526 | PyObject * obj0 = 0 ; | |
4527 | char *kwnames[] = { | |
4528 | (char *) "image", NULL | |
4529 | }; | |
4530 | ||
4531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
4533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4534 | SWIG_fail; | |
d14a1e28 | 4535 | if (arg1 == NULL) { |
15afbcd0 RD |
4536 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4537 | SWIG_fail; | |
d14a1e28 RD |
4538 | } |
4539 | { | |
4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4541 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4542 | ||
4543 | wxPyEndAllowThreads(__tstate); | |
4544 | if (PyErr_Occurred()) SWIG_fail; | |
4545 | } | |
15afbcd0 | 4546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); |
d14a1e28 RD |
4547 | return resultobj; |
4548 | fail: | |
4549 | return NULL; | |
4550 | } | |
4551 | ||
4552 | ||
15afbcd0 | 4553 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4554 | PyObject *resultobj; |
4555 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4556 | bool result; | |
4557 | PyObject * obj0 = 0 ; | |
4558 | char *kwnames[] = { | |
4559 | (char *) "self", NULL | |
4560 | }; | |
4561 | ||
4562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, |
4564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4565 | { |
4566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4567 | result = (bool)(arg1)->Ok(); | |
4568 | ||
4569 | wxPyEndAllowThreads(__tstate); | |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
4571 | } | |
4f89f6a3 RD |
4572 | { |
4573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4574 | } | |
d14a1e28 RD |
4575 | return resultobj; |
4576 | fail: | |
4577 | return NULL; | |
4578 | } | |
4579 | ||
4580 | ||
4581 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4582 | PyObject *obj; | |
4583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4584 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4585 | Py_INCREF(obj); | |
4586 | return Py_BuildValue((char *)""); | |
4587 | } | |
4588 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4589 | PyObject *resultobj; | |
e811c8ce RD |
4590 | int arg1 = (int) 0 ; |
4591 | int arg2 = (int) 0 ; | |
4592 | int arg3 = (int) 0 ; | |
4593 | int arg4 = (int) 0 ; | |
d14a1e28 | 4594 | wxRegion *result; |
994141e6 RD |
4595 | PyObject * obj0 = 0 ; |
4596 | PyObject * obj1 = 0 ; | |
4597 | PyObject * obj2 = 0 ; | |
4598 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4599 | char *kwnames[] = { |
4600 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4601 | }; | |
4602 | ||
994141e6 RD |
4603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
4604 | if (obj0) { | |
15afbcd0 RD |
4605 | arg1 = (int) SWIG_AsInt(obj0); |
4606 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4607 | } |
4608 | if (obj1) { | |
15afbcd0 RD |
4609 | arg2 = (int) SWIG_AsInt(obj1); |
4610 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4611 | } |
4612 | if (obj2) { | |
15afbcd0 RD |
4613 | arg3 = (int) SWIG_AsInt(obj2); |
4614 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4615 | } |
4616 | if (obj3) { | |
15afbcd0 RD |
4617 | arg4 = (int) SWIG_AsInt(obj3); |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4619 | } |
d14a1e28 RD |
4620 | { |
4621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4622 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4623 | ||
4624 | wxPyEndAllowThreads(__tstate); | |
4625 | if (PyErr_Occurred()) SWIG_fail; | |
4626 | } | |
15afbcd0 | 4627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4628 | return resultobj; |
4629 | fail: | |
4630 | return NULL; | |
4631 | } | |
4632 | ||
4633 | ||
4634 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4635 | PyObject *resultobj; | |
4636 | wxBitmap *arg1 = 0 ; | |
4637 | wxColour const &arg2_defvalue = wxNullColour ; | |
4638 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4639 | int arg3 = (int) 0 ; | |
4640 | wxRegion *result; | |
4641 | wxColour temp2 ; | |
4642 | PyObject * obj0 = 0 ; | |
4643 | PyObject * obj1 = 0 ; | |
994141e6 | 4644 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4645 | char *kwnames[] = { |
4646 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4647 | }; | |
4648 | ||
994141e6 | 4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4651 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4652 | SWIG_fail; | |
d14a1e28 | 4653 | if (arg1 == NULL) { |
15afbcd0 RD |
4654 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4655 | SWIG_fail; | |
d14a1e28 RD |
4656 | } |
4657 | if (obj1) { | |
4658 | { | |
4659 | arg2 = &temp2; | |
4660 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4661 | } | |
4662 | } | |
994141e6 | 4663 | if (obj2) { |
15afbcd0 RD |
4664 | arg3 = (int) SWIG_AsInt(obj2); |
4665 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4666 | } |
d14a1e28 RD |
4667 | { |
4668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4669 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4670 | ||
4671 | wxPyEndAllowThreads(__tstate); | |
4672 | if (PyErr_Occurred()) SWIG_fail; | |
4673 | } | |
15afbcd0 | 4674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4675 | return resultobj; |
4676 | fail: | |
4677 | return NULL; | |
4678 | } | |
4679 | ||
4680 | ||
4681 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4682 | PyObject *resultobj; | |
4683 | int arg1 ; | |
4684 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4685 | int arg3 = (int) wxWINDING_RULE ; | |
4686 | wxRegion *result; | |
4687 | PyObject * obj0 = 0 ; | |
994141e6 | 4688 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4689 | char *kwnames[] = { |
4690 | (char *) "points",(char *) "fillStyle", NULL | |
4691 | }; | |
4692 | ||
994141e6 | 4693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
4694 | { |
4695 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4696 | if (arg2 == NULL) SWIG_fail; | |
4697 | } | |
994141e6 | 4698 | if (obj1) { |
15afbcd0 RD |
4699 | arg3 = (int) SWIG_AsInt(obj1); |
4700 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4701 | } |
d14a1e28 RD |
4702 | { |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4704 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
4705 | ||
4706 | wxPyEndAllowThreads(__tstate); | |
4707 | if (PyErr_Occurred()) SWIG_fail; | |
4708 | } | |
15afbcd0 | 4709 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); |
d14a1e28 RD |
4710 | { |
4711 | if (arg2) delete [] arg2; | |
4712 | } | |
4713 | return resultobj; | |
4714 | fail: | |
4715 | { | |
4716 | if (arg2) delete [] arg2; | |
4717 | } | |
4718 | return NULL; | |
4719 | } | |
4720 | ||
4721 | ||
4722 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4723 | PyObject *resultobj; | |
4724 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4725 | PyObject * obj0 = 0 ; | |
4726 | char *kwnames[] = { | |
4727 | (char *) "self", NULL | |
4728 | }; | |
4729 | ||
4730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4733 | { |
4734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4735 | delete arg1; | |
4736 | ||
4737 | wxPyEndAllowThreads(__tstate); | |
4738 | if (PyErr_Occurred()) SWIG_fail; | |
4739 | } | |
4740 | Py_INCREF(Py_None); resultobj = Py_None; | |
4741 | return resultobj; | |
4742 | fail: | |
4743 | return NULL; | |
4744 | } | |
4745 | ||
4746 | ||
4747 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4748 | PyObject *resultobj; | |
4749 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4750 | PyObject * obj0 = 0 ; | |
4751 | char *kwnames[] = { | |
4752 | (char *) "self", NULL | |
4753 | }; | |
4754 | ||
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4758 | { |
4759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4760 | (arg1)->Clear(); | |
4761 | ||
4762 | wxPyEndAllowThreads(__tstate); | |
4763 | if (PyErr_Occurred()) SWIG_fail; | |
4764 | } | |
4765 | Py_INCREF(Py_None); resultobj = Py_None; | |
4766 | return resultobj; | |
4767 | fail: | |
4768 | return NULL; | |
4769 | } | |
4770 | ||
4771 | ||
4772 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4773 | PyObject *resultobj; | |
4774 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4775 | int arg2 ; |
4776 | int arg3 ; | |
d14a1e28 RD |
4777 | bool result; |
4778 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4779 | PyObject * obj1 = 0 ; |
4780 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4781 | char *kwnames[] = { |
4782 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4783 | }; | |
4784 | ||
994141e6 | 4785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4788 | arg2 = (int) SWIG_AsInt(obj1); | |
4789 | if (PyErr_Occurred()) SWIG_fail; | |
4790 | arg3 = (int) SWIG_AsInt(obj2); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4792 | { |
4793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4794 | result = (bool)(arg1)->Offset(arg2,arg3); | |
4795 | ||
4796 | wxPyEndAllowThreads(__tstate); | |
4797 | if (PyErr_Occurred()) SWIG_fail; | |
4798 | } | |
4f89f6a3 RD |
4799 | { |
4800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4801 | } | |
d14a1e28 RD |
4802 | return resultobj; |
4803 | fail: | |
4804 | return NULL; | |
4805 | } | |
4806 | ||
4807 | ||
4808 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4809 | PyObject *resultobj; | |
4810 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4811 | int arg2 ; |
4812 | int arg3 ; | |
d14a1e28 RD |
4813 | int result; |
4814 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4815 | PyObject * obj1 = 0 ; |
4816 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4817 | char *kwnames[] = { |
4818 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4819 | }; | |
4820 | ||
994141e6 | 4821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4824 | arg2 = (int) SWIG_AsInt(obj1); | |
4825 | if (PyErr_Occurred()) SWIG_fail; | |
4826 | arg3 = (int) SWIG_AsInt(obj2); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4828 | { |
4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4830 | result = (int)(arg1)->Contains(arg2,arg3); | |
4831 | ||
4832 | wxPyEndAllowThreads(__tstate); | |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
4834 | } | |
15afbcd0 | 4835 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4836 | return resultobj; |
4837 | fail: | |
4838 | return NULL; | |
4839 | } | |
4840 | ||
4841 | ||
4842 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4843 | PyObject *resultobj; | |
4844 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4845 | wxPoint *arg2 = 0 ; | |
4846 | int result; | |
4847 | wxPoint temp2 ; | |
4848 | PyObject * obj0 = 0 ; | |
4849 | PyObject * obj1 = 0 ; | |
4850 | char *kwnames[] = { | |
4851 | (char *) "self",(char *) "pt", NULL | |
4852 | }; | |
4853 | ||
4854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4857 | { |
4858 | arg2 = &temp2; | |
4859 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4860 | } | |
4861 | { | |
4862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4863 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4864 | ||
4865 | wxPyEndAllowThreads(__tstate); | |
4866 | if (PyErr_Occurred()) SWIG_fail; | |
4867 | } | |
15afbcd0 | 4868 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4869 | return resultobj; |
4870 | fail: | |
4871 | return NULL; | |
4872 | } | |
4873 | ||
4874 | ||
4875 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4876 | PyObject *resultobj; | |
4877 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4878 | wxRect *arg2 = 0 ; | |
4879 | int result; | |
4880 | wxRect temp2 ; | |
4881 | PyObject * obj0 = 0 ; | |
4882 | PyObject * obj1 = 0 ; | |
4883 | char *kwnames[] = { | |
4884 | (char *) "self",(char *) "rect", NULL | |
4885 | }; | |
4886 | ||
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4890 | { |
4891 | arg2 = &temp2; | |
4892 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4893 | } | |
4894 | { | |
4895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4896 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4897 | ||
4898 | wxPyEndAllowThreads(__tstate); | |
4899 | if (PyErr_Occurred()) SWIG_fail; | |
4900 | } | |
15afbcd0 | 4901 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4902 | return resultobj; |
4903 | fail: | |
4904 | return NULL; | |
4905 | } | |
4906 | ||
4907 | ||
4908 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4909 | PyObject *resultobj; | |
4910 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4911 | int arg2 ; |
4912 | int arg3 ; | |
4913 | int arg4 ; | |
4914 | int arg5 ; | |
d14a1e28 RD |
4915 | int result; |
4916 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4917 | PyObject * obj1 = 0 ; |
4918 | PyObject * obj2 = 0 ; | |
4919 | PyObject * obj3 = 0 ; | |
4920 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4921 | char *kwnames[] = { |
4922 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4923 | }; | |
4924 | ||
994141e6 | 4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
4926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4928 | arg2 = (int) SWIG_AsInt(obj1); | |
4929 | if (PyErr_Occurred()) SWIG_fail; | |
4930 | arg3 = (int) SWIG_AsInt(obj2); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | arg4 = (int) SWIG_AsInt(obj3); | |
4933 | if (PyErr_Occurred()) SWIG_fail; | |
4934 | arg5 = (int) SWIG_AsInt(obj4); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4936 | { |
4937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4938 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4939 | ||
4940 | wxPyEndAllowThreads(__tstate); | |
4941 | if (PyErr_Occurred()) SWIG_fail; | |
4942 | } | |
15afbcd0 | 4943 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4944 | return resultobj; |
4945 | fail: | |
4946 | return NULL; | |
4947 | } | |
4948 | ||
4949 | ||
4950 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4951 | PyObject *resultobj; | |
4952 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4953 | wxRect result; | |
4954 | PyObject * obj0 = 0 ; | |
4955 | char *kwnames[] = { | |
4956 | (char *) "self", NULL | |
4957 | }; | |
4958 | ||
4959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4962 | { |
4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4964 | result = (arg1)->GetBox(); | |
4965 | ||
4966 | wxPyEndAllowThreads(__tstate); | |
4967 | if (PyErr_Occurred()) SWIG_fail; | |
4968 | } | |
4969 | { | |
4970 | wxRect * resultptr; | |
4971 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4973 | } |
4974 | return resultobj; | |
4975 | fail: | |
4976 | return NULL; | |
4977 | } | |
4978 | ||
4979 | ||
4980 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject *resultobj; | |
4982 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
4983 | int arg2 ; |
4984 | int arg3 ; | |
4985 | int arg4 ; | |
4986 | int arg5 ; | |
d14a1e28 RD |
4987 | bool result; |
4988 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4989 | PyObject * obj1 = 0 ; |
4990 | PyObject * obj2 = 0 ; | |
4991 | PyObject * obj3 = 0 ; | |
4992 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4993 | char *kwnames[] = { |
4994 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4995 | }; | |
4996 | ||
994141e6 | 4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
4998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
4999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5000 | arg2 = (int) SWIG_AsInt(obj1); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | arg3 = (int) SWIG_AsInt(obj2); | |
5003 | if (PyErr_Occurred()) SWIG_fail; | |
5004 | arg4 = (int) SWIG_AsInt(obj3); | |
5005 | if (PyErr_Occurred()) SWIG_fail; | |
5006 | arg5 = (int) SWIG_AsInt(obj4); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5008 | { |
5009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5010 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5011 | ||
5012 | wxPyEndAllowThreads(__tstate); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
4f89f6a3 RD |
5015 | { |
5016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5017 | } | |
d14a1e28 RD |
5018 | return resultobj; |
5019 | fail: | |
5020 | return NULL; | |
5021 | } | |
5022 | ||
5023 | ||
5024 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5025 | PyObject *resultobj; | |
5026 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5027 | wxRect *arg2 = 0 ; | |
5028 | bool result; | |
5029 | wxRect temp2 ; | |
5030 | PyObject * obj0 = 0 ; | |
5031 | PyObject * obj1 = 0 ; | |
5032 | char *kwnames[] = { | |
5033 | (char *) "self",(char *) "rect", NULL | |
5034 | }; | |
5035 | ||
5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5039 | { |
5040 | arg2 = &temp2; | |
5041 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5042 | } | |
5043 | { | |
5044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5045 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5046 | ||
5047 | wxPyEndAllowThreads(__tstate); | |
5048 | if (PyErr_Occurred()) SWIG_fail; | |
5049 | } | |
4f89f6a3 RD |
5050 | { |
5051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5052 | } | |
d14a1e28 RD |
5053 | return resultobj; |
5054 | fail: | |
5055 | return NULL; | |
5056 | } | |
5057 | ||
5058 | ||
5059 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5060 | PyObject *resultobj; | |
5061 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5062 | wxRegion *arg2 = 0 ; | |
5063 | bool result; | |
5064 | PyObject * obj0 = 0 ; | |
5065 | PyObject * obj1 = 0 ; | |
5066 | char *kwnames[] = { | |
5067 | (char *) "self",(char *) "region", NULL | |
5068 | }; | |
5069 | ||
5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5074 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5075 | SWIG_fail; | |
d14a1e28 | 5076 | if (arg2 == NULL) { |
15afbcd0 RD |
5077 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5078 | SWIG_fail; | |
d14a1e28 RD |
5079 | } |
5080 | { | |
5081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5082 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5083 | ||
5084 | wxPyEndAllowThreads(__tstate); | |
5085 | if (PyErr_Occurred()) SWIG_fail; | |
5086 | } | |
4f89f6a3 RD |
5087 | { |
5088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5089 | } | |
d14a1e28 RD |
5090 | return resultobj; |
5091 | fail: | |
5092 | return NULL; | |
5093 | } | |
5094 | ||
5095 | ||
5096 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5097 | PyObject *resultobj; | |
5098 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5099 | bool result; | |
5100 | PyObject * obj0 = 0 ; | |
5101 | char *kwnames[] = { | |
5102 | (char *) "self", NULL | |
5103 | }; | |
5104 | ||
5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5108 | { |
5109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5110 | result = (bool)(arg1)->IsEmpty(); | |
5111 | ||
5112 | wxPyEndAllowThreads(__tstate); | |
5113 | if (PyErr_Occurred()) SWIG_fail; | |
5114 | } | |
4f89f6a3 RD |
5115 | { |
5116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5117 | } | |
d14a1e28 RD |
5118 | return resultobj; |
5119 | fail: | |
5120 | return NULL; | |
5121 | } | |
5122 | ||
5123 | ||
5124 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5125 | PyObject *resultobj; | |
5126 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5127 | int arg2 ; |
5128 | int arg3 ; | |
5129 | int arg4 ; | |
5130 | int arg5 ; | |
d14a1e28 RD |
5131 | bool result; |
5132 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5133 | PyObject * obj1 = 0 ; |
5134 | PyObject * obj2 = 0 ; | |
5135 | PyObject * obj3 = 0 ; | |
5136 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5137 | char *kwnames[] = { |
5138 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5139 | }; | |
5140 | ||
994141e6 | 5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5144 | arg2 = (int) SWIG_AsInt(obj1); | |
5145 | if (PyErr_Occurred()) SWIG_fail; | |
5146 | arg3 = (int) SWIG_AsInt(obj2); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | arg4 = (int) SWIG_AsInt(obj3); | |
5149 | if (PyErr_Occurred()) SWIG_fail; | |
5150 | arg5 = (int) SWIG_AsInt(obj4); | |
5151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5152 | { |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5155 | ||
5156 | wxPyEndAllowThreads(__tstate); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
4f89f6a3 RD |
5159 | { |
5160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5161 | } | |
d14a1e28 RD |
5162 | return resultobj; |
5163 | fail: | |
5164 | return NULL; | |
5165 | } | |
5166 | ||
5167 | ||
5168 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5169 | PyObject *resultobj; | |
5170 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5171 | wxRect *arg2 = 0 ; | |
5172 | bool result; | |
5173 | wxRect temp2 ; | |
5174 | PyObject * obj0 = 0 ; | |
5175 | PyObject * obj1 = 0 ; | |
5176 | char *kwnames[] = { | |
5177 | (char *) "self",(char *) "rect", NULL | |
5178 | }; | |
5179 | ||
5180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5183 | { |
5184 | arg2 = &temp2; | |
5185 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5186 | } | |
5187 | { | |
5188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5189 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5190 | ||
5191 | wxPyEndAllowThreads(__tstate); | |
5192 | if (PyErr_Occurred()) SWIG_fail; | |
5193 | } | |
4f89f6a3 RD |
5194 | { |
5195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5196 | } | |
d14a1e28 RD |
5197 | return resultobj; |
5198 | fail: | |
5199 | return NULL; | |
5200 | } | |
5201 | ||
5202 | ||
5203 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5204 | PyObject *resultobj; | |
5205 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5206 | wxRegion *arg2 = 0 ; | |
5207 | bool result; | |
5208 | PyObject * obj0 = 0 ; | |
5209 | PyObject * obj1 = 0 ; | |
5210 | char *kwnames[] = { | |
5211 | (char *) "self",(char *) "region", NULL | |
5212 | }; | |
5213 | ||
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5217 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5219 | SWIG_fail; | |
d14a1e28 | 5220 | if (arg2 == NULL) { |
15afbcd0 RD |
5221 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5222 | SWIG_fail; | |
d14a1e28 RD |
5223 | } |
5224 | { | |
5225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5226 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5227 | ||
5228 | wxPyEndAllowThreads(__tstate); | |
5229 | if (PyErr_Occurred()) SWIG_fail; | |
5230 | } | |
4f89f6a3 RD |
5231 | { |
5232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5233 | } | |
d14a1e28 RD |
5234 | return resultobj; |
5235 | fail: | |
5236 | return NULL; | |
5237 | } | |
5238 | ||
5239 | ||
5240 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5241 | PyObject *resultobj; | |
5242 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5243 | int arg2 ; |
5244 | int arg3 ; | |
5245 | int arg4 ; | |
5246 | int arg5 ; | |
d14a1e28 RD |
5247 | bool result; |
5248 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5249 | PyObject * obj1 = 0 ; |
5250 | PyObject * obj2 = 0 ; | |
5251 | PyObject * obj3 = 0 ; | |
5252 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5253 | char *kwnames[] = { |
5254 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5255 | }; | |
5256 | ||
994141e6 | 5257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5260 | arg2 = (int) SWIG_AsInt(obj1); | |
5261 | if (PyErr_Occurred()) SWIG_fail; | |
5262 | arg3 = (int) SWIG_AsInt(obj2); | |
5263 | if (PyErr_Occurred()) SWIG_fail; | |
5264 | arg4 = (int) SWIG_AsInt(obj3); | |
5265 | if (PyErr_Occurred()) SWIG_fail; | |
5266 | arg5 = (int) SWIG_AsInt(obj4); | |
5267 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5268 | { |
5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5270 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5271 | ||
5272 | wxPyEndAllowThreads(__tstate); | |
5273 | if (PyErr_Occurred()) SWIG_fail; | |
5274 | } | |
4f89f6a3 RD |
5275 | { |
5276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5277 | } | |
d14a1e28 RD |
5278 | return resultobj; |
5279 | fail: | |
5280 | return NULL; | |
5281 | } | |
5282 | ||
5283 | ||
5284 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5285 | PyObject *resultobj; | |
5286 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5287 | wxRect *arg2 = 0 ; | |
5288 | bool result; | |
5289 | wxRect temp2 ; | |
5290 | PyObject * obj0 = 0 ; | |
5291 | PyObject * obj1 = 0 ; | |
5292 | char *kwnames[] = { | |
5293 | (char *) "self",(char *) "rect", NULL | |
5294 | }; | |
5295 | ||
5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5299 | { |
5300 | arg2 = &temp2; | |
5301 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5302 | } | |
5303 | { | |
5304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5305 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5306 | ||
5307 | wxPyEndAllowThreads(__tstate); | |
5308 | if (PyErr_Occurred()) SWIG_fail; | |
5309 | } | |
4f89f6a3 RD |
5310 | { |
5311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5312 | } | |
d14a1e28 RD |
5313 | return resultobj; |
5314 | fail: | |
5315 | return NULL; | |
5316 | } | |
5317 | ||
5318 | ||
5319 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5320 | PyObject *resultobj; | |
5321 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5322 | wxRegion *arg2 = 0 ; | |
5323 | bool result; | |
5324 | PyObject * obj0 = 0 ; | |
5325 | PyObject * obj1 = 0 ; | |
5326 | char *kwnames[] = { | |
5327 | (char *) "self",(char *) "region", NULL | |
5328 | }; | |
5329 | ||
5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5334 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5335 | SWIG_fail; | |
d14a1e28 | 5336 | if (arg2 == NULL) { |
15afbcd0 RD |
5337 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5338 | SWIG_fail; | |
d14a1e28 RD |
5339 | } |
5340 | { | |
5341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5342 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5343 | ||
5344 | wxPyEndAllowThreads(__tstate); | |
5345 | if (PyErr_Occurred()) SWIG_fail; | |
5346 | } | |
4f89f6a3 RD |
5347 | { |
5348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5349 | } | |
d14a1e28 RD |
5350 | return resultobj; |
5351 | fail: | |
5352 | return NULL; | |
5353 | } | |
5354 | ||
5355 | ||
5356 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5357 | PyObject *resultobj; | |
5358 | wxRegion *arg1 = (wxRegion *) 0 ; | |
e811c8ce RD |
5359 | int arg2 ; |
5360 | int arg3 ; | |
5361 | int arg4 ; | |
5362 | int arg5 ; | |
d14a1e28 RD |
5363 | bool result; |
5364 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5365 | PyObject * obj1 = 0 ; |
5366 | PyObject * obj2 = 0 ; | |
5367 | PyObject * obj3 = 0 ; | |
5368 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
5369 | char *kwnames[] = { |
5370 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5371 | }; | |
5372 | ||
994141e6 | 5373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
5374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5376 | arg2 = (int) SWIG_AsInt(obj1); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
5378 | arg3 = (int) SWIG_AsInt(obj2); | |
5379 | if (PyErr_Occurred()) SWIG_fail; | |
5380 | arg4 = (int) SWIG_AsInt(obj3); | |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | arg5 = (int) SWIG_AsInt(obj4); | |
5383 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5384 | { |
5385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5386 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5387 | ||
5388 | wxPyEndAllowThreads(__tstate); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
4f89f6a3 RD |
5391 | { |
5392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5393 | } | |
d14a1e28 RD |
5394 | return resultobj; |
5395 | fail: | |
5396 | return NULL; | |
5397 | } | |
5398 | ||
5399 | ||
5400 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5401 | PyObject *resultobj; | |
5402 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5403 | wxRect *arg2 = 0 ; | |
5404 | bool result; | |
5405 | wxRect temp2 ; | |
5406 | PyObject * obj0 = 0 ; | |
5407 | PyObject * obj1 = 0 ; | |
5408 | char *kwnames[] = { | |
5409 | (char *) "self",(char *) "rect", NULL | |
5410 | }; | |
5411 | ||
5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5415 | { |
5416 | arg2 = &temp2; | |
5417 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5418 | } | |
5419 | { | |
5420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5421 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5422 | ||
5423 | wxPyEndAllowThreads(__tstate); | |
5424 | if (PyErr_Occurred()) SWIG_fail; | |
5425 | } | |
4f89f6a3 RD |
5426 | { |
5427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5428 | } | |
d14a1e28 RD |
5429 | return resultobj; |
5430 | fail: | |
5431 | return NULL; | |
5432 | } | |
5433 | ||
5434 | ||
5435 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5436 | PyObject *resultobj; | |
5437 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5438 | wxRegion *arg2 = 0 ; | |
5439 | bool result; | |
5440 | PyObject * obj0 = 0 ; | |
5441 | PyObject * obj1 = 0 ; | |
5442 | char *kwnames[] = { | |
5443 | (char *) "self",(char *) "region", NULL | |
5444 | }; | |
5445 | ||
5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5451 | SWIG_fail; | |
d14a1e28 | 5452 | if (arg2 == NULL) { |
15afbcd0 RD |
5453 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5454 | SWIG_fail; | |
d14a1e28 RD |
5455 | } |
5456 | { | |
5457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5458 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5459 | ||
5460 | wxPyEndAllowThreads(__tstate); | |
5461 | if (PyErr_Occurred()) SWIG_fail; | |
5462 | } | |
4f89f6a3 RD |
5463 | { |
5464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5465 | } | |
d14a1e28 RD |
5466 | return resultobj; |
5467 | fail: | |
5468 | return NULL; | |
5469 | } | |
5470 | ||
5471 | ||
5472 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5473 | PyObject *resultobj; | |
5474 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5475 | SwigValueWrapper< wxBitmap > result; | |
5476 | PyObject * obj0 = 0 ; | |
5477 | char *kwnames[] = { | |
5478 | (char *) "self", NULL | |
5479 | }; | |
5480 | ||
5481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5484 | { |
5485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5486 | result = (arg1)->ConvertToBitmap(); | |
5487 | ||
5488 | wxPyEndAllowThreads(__tstate); | |
5489 | if (PyErr_Occurred()) SWIG_fail; | |
5490 | } | |
5491 | { | |
5492 | wxBitmap * resultptr; | |
5493 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5494 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5495 | } |
5496 | return resultobj; | |
5497 | fail: | |
5498 | return NULL; | |
5499 | } | |
5500 | ||
5501 | ||
5502 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5503 | PyObject *resultobj; | |
5504 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5505 | wxBitmap *arg2 = 0 ; | |
5506 | wxColour const &arg3_defvalue = wxNullColour ; | |
5507 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5508 | int arg4 = (int) 0 ; | |
5509 | bool result; | |
5510 | wxColour temp3 ; | |
5511 | PyObject * obj0 = 0 ; | |
5512 | PyObject * obj1 = 0 ; | |
5513 | PyObject * obj2 = 0 ; | |
994141e6 | 5514 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5515 | char *kwnames[] = { |
5516 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5517 | }; | |
5518 | ||
994141e6 | 5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5524 | SWIG_fail; | |
d14a1e28 | 5525 | if (arg2 == NULL) { |
15afbcd0 RD |
5526 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5527 | SWIG_fail; | |
d14a1e28 RD |
5528 | } |
5529 | if (obj2) { | |
5530 | { | |
5531 | arg3 = &temp3; | |
5532 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5533 | } | |
5534 | } | |
994141e6 | 5535 | if (obj3) { |
15afbcd0 RD |
5536 | arg4 = (int) SWIG_AsInt(obj3); |
5537 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5538 | } |
d14a1e28 RD |
5539 | { |
5540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5541 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5542 | ||
5543 | wxPyEndAllowThreads(__tstate); | |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
5545 | } | |
4f89f6a3 RD |
5546 | { |
5547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5548 | } | |
d14a1e28 RD |
5549 | return resultobj; |
5550 | fail: | |
5551 | return NULL; | |
5552 | } | |
5553 | ||
5554 | ||
5555 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5556 | PyObject *obj; | |
5557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5558 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5559 | Py_INCREF(obj); | |
5560 | return Py_BuildValue((char *)""); | |
5561 | } | |
5562 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5563 | PyObject *resultobj; | |
5564 | wxRegion *arg1 = 0 ; | |
5565 | wxRegionIterator *result; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | char *kwnames[] = { | |
5568 | (char *) "region", NULL | |
5569 | }; | |
5570 | ||
5571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
5573 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5574 | SWIG_fail; | |
d14a1e28 | 5575 | if (arg1 == NULL) { |
15afbcd0 RD |
5576 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5577 | SWIG_fail; | |
d14a1e28 RD |
5578 | } |
5579 | { | |
5580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5581 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5582 | ||
5583 | wxPyEndAllowThreads(__tstate); | |
5584 | if (PyErr_Occurred()) SWIG_fail; | |
5585 | } | |
15afbcd0 | 5586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); |
d14a1e28 RD |
5587 | return resultobj; |
5588 | fail: | |
5589 | return NULL; | |
5590 | } | |
5591 | ||
5592 | ||
5593 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5594 | PyObject *resultobj; | |
5595 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5596 | PyObject * obj0 = 0 ; | |
5597 | char *kwnames[] = { | |
5598 | (char *) "self", NULL | |
5599 | }; | |
5600 | ||
5601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5604 | { |
5605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5606 | delete arg1; | |
5607 | ||
5608 | wxPyEndAllowThreads(__tstate); | |
5609 | if (PyErr_Occurred()) SWIG_fail; | |
5610 | } | |
5611 | Py_INCREF(Py_None); resultobj = Py_None; | |
5612 | return resultobj; | |
5613 | fail: | |
5614 | return NULL; | |
5615 | } | |
5616 | ||
5617 | ||
5618 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5619 | PyObject *resultobj; | |
5620 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5621 | int result; |
d14a1e28 RD |
5622 | PyObject * obj0 = 0 ; |
5623 | char *kwnames[] = { | |
5624 | (char *) "self", NULL | |
5625 | }; | |
5626 | ||
5627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5630 | { |
5631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5632 | result = (int)(arg1)->GetX(); |
d14a1e28 RD |
5633 | |
5634 | wxPyEndAllowThreads(__tstate); | |
5635 | if (PyErr_Occurred()) SWIG_fail; | |
5636 | } | |
15afbcd0 | 5637 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5638 | return resultobj; |
5639 | fail: | |
5640 | return NULL; | |
5641 | } | |
5642 | ||
5643 | ||
5644 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5645 | PyObject *resultobj; | |
5646 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5647 | int result; |
d14a1e28 RD |
5648 | PyObject * obj0 = 0 ; |
5649 | char *kwnames[] = { | |
5650 | (char *) "self", NULL | |
5651 | }; | |
5652 | ||
5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5656 | { |
5657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5658 | result = (int)(arg1)->GetY(); |
d14a1e28 RD |
5659 | |
5660 | wxPyEndAllowThreads(__tstate); | |
5661 | if (PyErr_Occurred()) SWIG_fail; | |
5662 | } | |
15afbcd0 | 5663 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5664 | return resultobj; |
5665 | fail: | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
5670 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5671 | PyObject *resultobj; | |
5672 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5673 | int result; |
d14a1e28 RD |
5674 | PyObject * obj0 = 0 ; |
5675 | char *kwnames[] = { | |
5676 | (char *) "self", NULL | |
5677 | }; | |
5678 | ||
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5682 | { |
5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5684 | result = (int)(arg1)->GetW(); |
d14a1e28 RD |
5685 | |
5686 | wxPyEndAllowThreads(__tstate); | |
5687 | if (PyErr_Occurred()) SWIG_fail; | |
5688 | } | |
15afbcd0 | 5689 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5690 | return resultobj; |
5691 | fail: | |
5692 | return NULL; | |
5693 | } | |
5694 | ||
5695 | ||
5696 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject *resultobj; | |
5698 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5699 | int result; |
d14a1e28 RD |
5700 | PyObject * obj0 = 0 ; |
5701 | char *kwnames[] = { | |
5702 | (char *) "self", NULL | |
5703 | }; | |
5704 | ||
5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5708 | { |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5710 | result = (int)(arg1)->GetWidth(); |
d14a1e28 RD |
5711 | |
5712 | wxPyEndAllowThreads(__tstate); | |
5713 | if (PyErr_Occurred()) SWIG_fail; | |
5714 | } | |
15afbcd0 | 5715 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5716 | return resultobj; |
5717 | fail: | |
5718 | return NULL; | |
5719 | } | |
5720 | ||
5721 | ||
5722 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5723 | PyObject *resultobj; | |
5724 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5725 | int result; |
d14a1e28 RD |
5726 | PyObject * obj0 = 0 ; |
5727 | char *kwnames[] = { | |
5728 | (char *) "self", NULL | |
5729 | }; | |
5730 | ||
5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5734 | { |
5735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5736 | result = (int)(arg1)->GetH(); |
d14a1e28 RD |
5737 | |
5738 | wxPyEndAllowThreads(__tstate); | |
5739 | if (PyErr_Occurred()) SWIG_fail; | |
5740 | } | |
15afbcd0 | 5741 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5742 | return resultobj; |
5743 | fail: | |
5744 | return NULL; | |
5745 | } | |
5746 | ||
5747 | ||
5748 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5749 | PyObject *resultobj; | |
5750 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
e811c8ce | 5751 | int result; |
d14a1e28 RD |
5752 | PyObject * obj0 = 0 ; |
5753 | char *kwnames[] = { | |
5754 | (char *) "self", NULL | |
5755 | }; | |
5756 | ||
5757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5760 | { |
5761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5762 | result = (int)(arg1)->GetHeight(); |
d14a1e28 RD |
5763 | |
5764 | wxPyEndAllowThreads(__tstate); | |
5765 | if (PyErr_Occurred()) SWIG_fail; | |
5766 | } | |
15afbcd0 | 5767 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5768 | return resultobj; |
5769 | fail: | |
5770 | return NULL; | |
5771 | } | |
5772 | ||
5773 | ||
5774 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5775 | PyObject *resultobj; | |
5776 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5777 | wxRect result; | |
5778 | PyObject * obj0 = 0 ; | |
5779 | char *kwnames[] = { | |
5780 | (char *) "self", NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5786 | { |
5787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5788 | result = (arg1)->GetRect(); | |
5789 | ||
5790 | wxPyEndAllowThreads(__tstate); | |
5791 | if (PyErr_Occurred()) SWIG_fail; | |
5792 | } | |
5793 | { | |
5794 | wxRect * resultptr; | |
5795 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 5796 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
5797 | } |
5798 | return resultobj; | |
5799 | fail: | |
5800 | return NULL; | |
5801 | } | |
5802 | ||
5803 | ||
5804 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5805 | PyObject *resultobj; | |
5806 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5807 | bool result; | |
5808 | PyObject * obj0 = 0 ; | |
5809 | char *kwnames[] = { | |
5810 | (char *) "self", NULL | |
5811 | }; | |
5812 | ||
5813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5816 | { |
5817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5818 | result = (bool)(arg1)->HaveRects(); | |
5819 | ||
5820 | wxPyEndAllowThreads(__tstate); | |
5821 | if (PyErr_Occurred()) SWIG_fail; | |
5822 | } | |
4f89f6a3 RD |
5823 | { |
5824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5825 | } | |
d14a1e28 RD |
5826 | return resultobj; |
5827 | fail: | |
5828 | return NULL; | |
5829 | } | |
5830 | ||
5831 | ||
5832 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject *resultobj; | |
5834 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5835 | PyObject * obj0 = 0 ; | |
5836 | char *kwnames[] = { | |
5837 | (char *) "self", NULL | |
5838 | }; | |
5839 | ||
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5843 | { |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | (arg1)->Reset(); | |
5846 | ||
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | Py_INCREF(Py_None); resultobj = Py_None; | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject *resultobj; | |
5859 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5860 | PyObject * obj0 = 0 ; | |
5861 | char *kwnames[] = { | |
5862 | (char *) "self", NULL | |
5863 | }; | |
5864 | ||
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5868 | { |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | wxRegionIterator_Next(arg1); | |
5871 | ||
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
5875 | Py_INCREF(Py_None); resultobj = Py_None; | |
5876 | return resultobj; | |
5877 | fail: | |
5878 | return NULL; | |
5879 | } | |
5880 | ||
5881 | ||
5882 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5883 | PyObject *resultobj; | |
5884 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5885 | bool result; | |
5886 | PyObject * obj0 = 0 ; | |
5887 | char *kwnames[] = { | |
5888 | (char *) "self", NULL | |
5889 | }; | |
5890 | ||
5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, |
5893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5894 | { |
5895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5896 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5897 | ||
5898 | wxPyEndAllowThreads(__tstate); | |
5899 | if (PyErr_Occurred()) SWIG_fail; | |
5900 | } | |
4f89f6a3 RD |
5901 | { |
5902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5903 | } | |
d14a1e28 RD |
5904 | return resultobj; |
5905 | fail: | |
5906 | return NULL; | |
5907 | } | |
5908 | ||
5909 | ||
5910 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5911 | PyObject *obj; | |
5912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5913 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5914 | Py_INCREF(obj); | |
5915 | return Py_BuildValue((char *)""); | |
5916 | } | |
5917 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject *resultobj; | |
5919 | wxNativeFontInfo *result; | |
5920 | char *kwnames[] = { | |
5921 | NULL | |
5922 | }; | |
5923 | ||
5924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5925 | { | |
5926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5927 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5928 | ||
5929 | wxPyEndAllowThreads(__tstate); | |
5930 | if (PyErr_Occurred()) SWIG_fail; | |
5931 | } | |
15afbcd0 | 5932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); |
d14a1e28 RD |
5933 | return resultobj; |
5934 | fail: | |
5935 | return NULL; | |
5936 | } | |
5937 | ||
5938 | ||
5939 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5940 | PyObject *resultobj; | |
5941 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5942 | PyObject * obj0 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5950 | { |
5951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5952 | delete arg1; | |
5953 | ||
5954 | wxPyEndAllowThreads(__tstate); | |
5955 | if (PyErr_Occurred()) SWIG_fail; | |
5956 | } | |
5957 | Py_INCREF(Py_None); resultobj = Py_None; | |
5958 | return resultobj; | |
5959 | fail: | |
5960 | return NULL; | |
5961 | } | |
5962 | ||
5963 | ||
5964 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject *resultobj; | |
5966 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5967 | PyObject * obj0 = 0 ; | |
5968 | char *kwnames[] = { | |
5969 | (char *) "self", NULL | |
5970 | }; | |
5971 | ||
5972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
5974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5975 | { |
5976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5977 | (arg1)->Init(); | |
5978 | ||
5979 | wxPyEndAllowThreads(__tstate); | |
5980 | if (PyErr_Occurred()) SWIG_fail; | |
5981 | } | |
5982 | Py_INCREF(Py_None); resultobj = Py_None; | |
5983 | return resultobj; | |
5984 | fail: | |
5985 | return NULL; | |
5986 | } | |
5987 | ||
5988 | ||
5989 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject *resultobj; | |
5991 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5992 | wxFont *arg2 = 0 ; | |
5993 | PyObject * obj0 = 0 ; | |
5994 | PyObject * obj1 = 0 ; | |
5995 | char *kwnames[] = { | |
5996 | (char *) "self",(char *) "font", NULL | |
5997 | }; | |
5998 | ||
5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6002 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6003 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6004 | SWIG_fail; | |
d14a1e28 | 6005 | if (arg2 == NULL) { |
15afbcd0 RD |
6006 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6007 | SWIG_fail; | |
d14a1e28 RD |
6008 | } |
6009 | { | |
6010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6011 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6012 | ||
6013 | wxPyEndAllowThreads(__tstate); | |
6014 | if (PyErr_Occurred()) SWIG_fail; | |
6015 | } | |
6016 | Py_INCREF(Py_None); resultobj = Py_None; | |
6017 | return resultobj; | |
6018 | fail: | |
6019 | return NULL; | |
6020 | } | |
6021 | ||
6022 | ||
6023 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6024 | PyObject *resultobj; | |
6025 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6026 | int result; | |
6027 | PyObject * obj0 = 0 ; | |
6028 | char *kwnames[] = { | |
6029 | (char *) "self", NULL | |
6030 | }; | |
6031 | ||
6032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6035 | { |
6036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6037 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6038 | ||
6039 | wxPyEndAllowThreads(__tstate); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | } | |
15afbcd0 | 6042 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6043 | return resultobj; |
6044 | fail: | |
6045 | return NULL; | |
6046 | } | |
6047 | ||
6048 | ||
6049 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6050 | PyObject *resultobj; | |
6051 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6052 | int result; | |
6053 | PyObject * obj0 = 0 ; | |
6054 | char *kwnames[] = { | |
6055 | (char *) "self", NULL | |
6056 | }; | |
6057 | ||
6058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6061 | { |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
15afbcd0 | 6068 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6069 | return resultobj; |
6070 | fail: | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
6075 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6076 | PyObject *resultobj; | |
6077 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6078 | int result; | |
6079 | PyObject * obj0 = 0 ; | |
6080 | char *kwnames[] = { | |
6081 | (char *) "self", NULL | |
6082 | }; | |
6083 | ||
6084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6087 | { |
6088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6089 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6090 | ||
6091 | wxPyEndAllowThreads(__tstate); | |
6092 | if (PyErr_Occurred()) SWIG_fail; | |
6093 | } | |
15afbcd0 | 6094 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6095 | return resultobj; |
6096 | fail: | |
6097 | return NULL; | |
6098 | } | |
6099 | ||
6100 | ||
6101 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6102 | PyObject *resultobj; | |
6103 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6104 | bool result; | |
6105 | PyObject * obj0 = 0 ; | |
6106 | char *kwnames[] = { | |
6107 | (char *) "self", NULL | |
6108 | }; | |
6109 | ||
6110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6113 | { |
6114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6115 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6116 | ||
6117 | wxPyEndAllowThreads(__tstate); | |
6118 | if (PyErr_Occurred()) SWIG_fail; | |
6119 | } | |
4f89f6a3 RD |
6120 | { |
6121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6122 | } | |
d14a1e28 RD |
6123 | return resultobj; |
6124 | fail: | |
6125 | return NULL; | |
6126 | } | |
6127 | ||
6128 | ||
6129 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject *resultobj; | |
6131 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6132 | wxString result; | |
6133 | PyObject * obj0 = 0 ; | |
6134 | char *kwnames[] = { | |
6135 | (char *) "self", NULL | |
6136 | }; | |
6137 | ||
6138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6141 | { |
6142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6143 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6144 | ||
6145 | wxPyEndAllowThreads(__tstate); | |
6146 | if (PyErr_Occurred()) SWIG_fail; | |
6147 | } | |
6148 | { | |
6149 | #if wxUSE_UNICODE | |
6150 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6151 | #else | |
6152 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6153 | #endif | |
6154 | } | |
6155 | return resultobj; | |
6156 | fail: | |
6157 | return NULL; | |
6158 | } | |
6159 | ||
6160 | ||
6161 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6162 | PyObject *resultobj; | |
6163 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6164 | int result; | |
6165 | PyObject * obj0 = 0 ; | |
6166 | char *kwnames[] = { | |
6167 | (char *) "self", NULL | |
6168 | }; | |
6169 | ||
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6173 | { |
6174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6175 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6176 | ||
6177 | wxPyEndAllowThreads(__tstate); | |
6178 | if (PyErr_Occurred()) SWIG_fail; | |
6179 | } | |
15afbcd0 | 6180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6181 | return resultobj; |
6182 | fail: | |
6183 | return NULL; | |
6184 | } | |
6185 | ||
6186 | ||
6187 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6188 | PyObject *resultobj; | |
6189 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6190 | int result; | |
6191 | PyObject * obj0 = 0 ; | |
6192 | char *kwnames[] = { | |
6193 | (char *) "self", NULL | |
6194 | }; | |
6195 | ||
6196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6199 | { |
6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6201 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6202 | ||
6203 | wxPyEndAllowThreads(__tstate); | |
6204 | if (PyErr_Occurred()) SWIG_fail; | |
6205 | } | |
15afbcd0 | 6206 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6207 | return resultobj; |
6208 | fail: | |
6209 | return NULL; | |
6210 | } | |
6211 | ||
6212 | ||
6213 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject *resultobj; | |
6215 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6216 | int arg2 ; | |
6217 | PyObject * obj0 = 0 ; | |
994141e6 | 6218 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6219 | char *kwnames[] = { |
6220 | (char *) "self",(char *) "pointsize", NULL | |
6221 | }; | |
6222 | ||
994141e6 | 6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6226 | arg2 = (int) SWIG_AsInt(obj1); | |
6227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6228 | { |
6229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6230 | (arg1)->SetPointSize(arg2); | |
6231 | ||
6232 | wxPyEndAllowThreads(__tstate); | |
6233 | if (PyErr_Occurred()) SWIG_fail; | |
6234 | } | |
6235 | Py_INCREF(Py_None); resultobj = Py_None; | |
6236 | return resultobj; | |
6237 | fail: | |
6238 | return NULL; | |
6239 | } | |
6240 | ||
6241 | ||
6242 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6243 | PyObject *resultobj; | |
6244 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6245 | int arg2 ; | |
6246 | PyObject * obj0 = 0 ; | |
994141e6 | 6247 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6248 | char *kwnames[] = { |
6249 | (char *) "self",(char *) "style", NULL | |
6250 | }; | |
6251 | ||
994141e6 | 6252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6255 | arg2 = (wxFontStyle) SWIG_AsInt(obj1); | |
6256 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6257 | { |
6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6259 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6260 | ||
6261 | wxPyEndAllowThreads(__tstate); | |
6262 | if (PyErr_Occurred()) SWIG_fail; | |
6263 | } | |
6264 | Py_INCREF(Py_None); resultobj = Py_None; | |
6265 | return resultobj; | |
6266 | fail: | |
6267 | return NULL; | |
6268 | } | |
6269 | ||
6270 | ||
6271 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject *resultobj; | |
6273 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6274 | int arg2 ; | |
6275 | PyObject * obj0 = 0 ; | |
994141e6 | 6276 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6277 | char *kwnames[] = { |
6278 | (char *) "self",(char *) "weight", NULL | |
6279 | }; | |
6280 | ||
994141e6 | 6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6284 | arg2 = (wxFontWeight) SWIG_AsInt(obj1); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6286 | { |
6287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6288 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6289 | ||
6290 | wxPyEndAllowThreads(__tstate); | |
6291 | if (PyErr_Occurred()) SWIG_fail; | |
6292 | } | |
6293 | Py_INCREF(Py_None); resultobj = Py_None; | |
6294 | return resultobj; | |
6295 | fail: | |
6296 | return NULL; | |
6297 | } | |
6298 | ||
6299 | ||
6300 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6301 | PyObject *resultobj; | |
6302 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6303 | bool arg2 ; | |
6304 | PyObject * obj0 = 0 ; | |
6305 | PyObject * obj1 = 0 ; | |
6306 | char *kwnames[] = { | |
6307 | (char *) "self",(char *) "underlined", NULL | |
6308 | }; | |
6309 | ||
6310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6313 | arg2 = (bool) SWIG_AsBool(obj1); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6315 | { |
6316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6317 | (arg1)->SetUnderlined(arg2); | |
6318 | ||
6319 | wxPyEndAllowThreads(__tstate); | |
6320 | if (PyErr_Occurred()) SWIG_fail; | |
6321 | } | |
6322 | Py_INCREF(Py_None); resultobj = Py_None; | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
6329 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj; | |
6331 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6332 | wxString arg2 ; | |
d14a1e28 RD |
6333 | PyObject * obj0 = 0 ; |
6334 | PyObject * obj1 = 0 ; | |
6335 | char *kwnames[] = { | |
6336 | (char *) "self",(char *) "facename", NULL | |
6337 | }; | |
6338 | ||
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
6342 | { |
6343 | wxString* sptr = wxString_in_helper(obj1); | |
6344 | if (sptr == NULL) SWIG_fail; | |
6345 | arg2 = *sptr; | |
6346 | delete sptr; | |
6347 | } | |
d14a1e28 RD |
6348 | { |
6349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6350 | (arg1)->SetFaceName(arg2); | |
6351 | ||
6352 | wxPyEndAllowThreads(__tstate); | |
6353 | if (PyErr_Occurred()) SWIG_fail; | |
6354 | } | |
6355 | Py_INCREF(Py_None); resultobj = Py_None; | |
6356 | return resultobj; | |
6357 | fail: | |
6358 | return NULL; | |
6359 | } | |
6360 | ||
6361 | ||
6362 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6363 | PyObject *resultobj; | |
6364 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6365 | int arg2 ; | |
6366 | PyObject * obj0 = 0 ; | |
994141e6 | 6367 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6368 | char *kwnames[] = { |
6369 | (char *) "self",(char *) "family", NULL | |
6370 | }; | |
6371 | ||
994141e6 | 6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6375 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
6376 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6377 | { |
6378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6379 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6380 | ||
6381 | wxPyEndAllowThreads(__tstate); | |
6382 | if (PyErr_Occurred()) SWIG_fail; | |
6383 | } | |
6384 | Py_INCREF(Py_None); resultobj = Py_None; | |
6385 | return resultobj; | |
6386 | fail: | |
6387 | return NULL; | |
6388 | } | |
6389 | ||
6390 | ||
6391 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6392 | PyObject *resultobj; | |
6393 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6394 | int arg2 ; | |
6395 | PyObject * obj0 = 0 ; | |
994141e6 | 6396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6397 | char *kwnames[] = { |
6398 | (char *) "self",(char *) "encoding", NULL | |
6399 | }; | |
6400 | ||
994141e6 | 6401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6404 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6405 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6406 | { |
6407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6408 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6409 | ||
6410 | wxPyEndAllowThreads(__tstate); | |
6411 | if (PyErr_Occurred()) SWIG_fail; | |
6412 | } | |
6413 | Py_INCREF(Py_None); resultobj = Py_None; | |
6414 | return resultobj; | |
6415 | fail: | |
6416 | return NULL; | |
6417 | } | |
6418 | ||
6419 | ||
6420 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6421 | PyObject *resultobj; | |
6422 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6423 | wxString *arg2 = 0 ; | |
6424 | bool result; | |
e811c8ce | 6425 | bool temp2 = False ; |
d14a1e28 RD |
6426 | PyObject * obj0 = 0 ; |
6427 | PyObject * obj1 = 0 ; | |
6428 | char *kwnames[] = { | |
6429 | (char *) "self",(char *) "s", NULL | |
6430 | }; | |
6431 | ||
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6435 | { |
6436 | arg2 = wxString_in_helper(obj1); | |
6437 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6438 | temp2 = True; |
d14a1e28 RD |
6439 | } |
6440 | { | |
6441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6442 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6443 | ||
6444 | wxPyEndAllowThreads(__tstate); | |
6445 | if (PyErr_Occurred()) SWIG_fail; | |
6446 | } | |
4f89f6a3 RD |
6447 | { |
6448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6449 | } | |
d14a1e28 RD |
6450 | { |
6451 | if (temp2) | |
6452 | delete arg2; | |
6453 | } | |
6454 | return resultobj; | |
6455 | fail: | |
6456 | { | |
6457 | if (temp2) | |
6458 | delete arg2; | |
6459 | } | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
6464 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject *resultobj; | |
6466 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6467 | wxString result; | |
6468 | PyObject * obj0 = 0 ; | |
6469 | char *kwnames[] = { | |
6470 | (char *) "self", NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6476 | { |
6477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6478 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6479 | ||
6480 | wxPyEndAllowThreads(__tstate); | |
6481 | if (PyErr_Occurred()) SWIG_fail; | |
6482 | } | |
6483 | { | |
6484 | #if wxUSE_UNICODE | |
6485 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6486 | #else | |
6487 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6488 | #endif | |
6489 | } | |
6490 | return resultobj; | |
6491 | fail: | |
6492 | return NULL; | |
6493 | } | |
6494 | ||
6495 | ||
6496 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6497 | PyObject *resultobj; | |
6498 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6499 | wxString result; | |
6500 | PyObject * obj0 = 0 ; | |
6501 | char *kwnames[] = { | |
6502 | (char *) "self", NULL | |
6503 | }; | |
6504 | ||
6505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6508 | { |
6509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6510 | result = wxNativeFontInfo___str__(arg1); | |
6511 | ||
6512 | wxPyEndAllowThreads(__tstate); | |
6513 | if (PyErr_Occurred()) SWIG_fail; | |
6514 | } | |
6515 | { | |
6516 | #if wxUSE_UNICODE | |
6517 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6518 | #else | |
6519 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6520 | #endif | |
6521 | } | |
6522 | return resultobj; | |
6523 | fail: | |
6524 | return NULL; | |
6525 | } | |
6526 | ||
6527 | ||
6528 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6529 | PyObject *resultobj; | |
6530 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6531 | wxString *arg2 = 0 ; | |
6532 | bool result; | |
e811c8ce | 6533 | bool temp2 = False ; |
d14a1e28 RD |
6534 | PyObject * obj0 = 0 ; |
6535 | PyObject * obj1 = 0 ; | |
6536 | char *kwnames[] = { | |
6537 | (char *) "self",(char *) "s", NULL | |
6538 | }; | |
6539 | ||
6540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6543 | { |
6544 | arg2 = wxString_in_helper(obj1); | |
6545 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6546 | temp2 = True; |
d14a1e28 RD |
6547 | } |
6548 | { | |
6549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6550 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6551 | ||
6552 | wxPyEndAllowThreads(__tstate); | |
6553 | if (PyErr_Occurred()) SWIG_fail; | |
6554 | } | |
4f89f6a3 RD |
6555 | { |
6556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6557 | } | |
d14a1e28 RD |
6558 | { |
6559 | if (temp2) | |
6560 | delete arg2; | |
6561 | } | |
6562 | return resultobj; | |
6563 | fail: | |
6564 | { | |
6565 | if (temp2) | |
6566 | delete arg2; | |
6567 | } | |
6568 | return NULL; | |
6569 | } | |
6570 | ||
6571 | ||
6572 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6573 | PyObject *resultobj; | |
6574 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6575 | wxString result; | |
6576 | PyObject * obj0 = 0 ; | |
6577 | char *kwnames[] = { | |
6578 | (char *) "self", NULL | |
6579 | }; | |
6580 | ||
6581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
6583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6584 | { |
6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6586 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6587 | ||
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | { | |
6592 | #if wxUSE_UNICODE | |
6593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6594 | #else | |
6595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6596 | #endif | |
6597 | } | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | return NULL; | |
6601 | } | |
6602 | ||
6603 | ||
6604 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6605 | PyObject *obj; | |
6606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6607 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6608 | Py_INCREF(obj); | |
6609 | return Py_BuildValue((char *)""); | |
6610 | } | |
6611 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6612 | PyObject *resultobj; | |
6613 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6614 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 6615 | bool temp2 = False ; |
d14a1e28 RD |
6616 | PyObject * obj0 = 0 ; |
6617 | PyObject * obj1 = 0 ; | |
6618 | char *kwnames[] = { | |
6619 | (char *) "self",(char *) "facename", NULL | |
6620 | }; | |
6621 | ||
6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
6625 | { |
6626 | arg2 = wxString_in_helper(obj1); | |
6627 | if (arg2 == NULL) SWIG_fail; | |
6628 | temp2 = True; | |
6629 | } | |
196addbf | 6630 | if (arg1) (arg1)->facename = *arg2; |
d14a1e28 RD |
6631 | |
6632 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
6633 | { |
6634 | if (temp2) | |
6635 | delete arg2; | |
6636 | } | |
d14a1e28 RD |
6637 | return resultobj; |
6638 | fail: | |
7eae615b RD |
6639 | { |
6640 | if (temp2) | |
6641 | delete arg2; | |
6642 | } | |
d14a1e28 RD |
6643 | return NULL; |
6644 | } | |
6645 | ||
6646 | ||
6647 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6648 | PyObject *resultobj; | |
6649 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
196addbf | 6650 | wxString *result; |
d14a1e28 RD |
6651 | PyObject * obj0 = 0 ; |
6652 | char *kwnames[] = { | |
6653 | (char *) "self", NULL | |
6654 | }; | |
6655 | ||
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 6659 | result = (wxString *)& ((arg1)->facename); |
d14a1e28 RD |
6660 | |
6661 | { | |
6662 | #if wxUSE_UNICODE | |
196addbf | 6663 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 6664 | #else |
196addbf | 6665 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
6666 | #endif |
6667 | } | |
6668 | return resultobj; | |
6669 | fail: | |
6670 | return NULL; | |
6671 | } | |
6672 | ||
6673 | ||
6674 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6675 | PyObject *resultobj; | |
6676 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6677 | int arg2 ; | |
6678 | PyObject * obj0 = 0 ; | |
994141e6 | 6679 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6680 | char *kwnames[] = { |
6681 | (char *) "self",(char *) "encoding", NULL | |
6682 | }; | |
6683 | ||
994141e6 | 6684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6687 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6688 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6689 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; |
6690 | ||
6691 | Py_INCREF(Py_None); resultobj = Py_None; | |
6692 | return resultobj; | |
6693 | fail: | |
6694 | return NULL; | |
6695 | } | |
6696 | ||
6697 | ||
6698 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6699 | PyObject *resultobj; | |
6700 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6701 | int result; | |
6702 | PyObject * obj0 = 0 ; | |
6703 | char *kwnames[] = { | |
6704 | (char *) "self", NULL | |
6705 | }; | |
6706 | ||
6707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6710 | result = (int) ((arg1)->encoding); |
6711 | ||
15afbcd0 | 6712 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6713 | return resultobj; |
6714 | fail: | |
6715 | return NULL; | |
6716 | } | |
6717 | ||
6718 | ||
6719 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6720 | PyObject *resultobj; | |
6721 | wxNativeEncodingInfo *result; | |
6722 | char *kwnames[] = { | |
6723 | NULL | |
6724 | }; | |
6725 | ||
6726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6727 | { | |
6728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6729 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6730 | ||
6731 | wxPyEndAllowThreads(__tstate); | |
6732 | if (PyErr_Occurred()) SWIG_fail; | |
6733 | } | |
15afbcd0 | 6734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); |
d14a1e28 RD |
6735 | return resultobj; |
6736 | fail: | |
6737 | return NULL; | |
6738 | } | |
6739 | ||
6740 | ||
6741 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6742 | PyObject *resultobj; | |
6743 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6744 | PyObject * obj0 = 0 ; | |
6745 | char *kwnames[] = { | |
6746 | (char *) "self", NULL | |
6747 | }; | |
6748 | ||
6749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6752 | { |
6753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6754 | delete arg1; | |
6755 | ||
6756 | wxPyEndAllowThreads(__tstate); | |
6757 | if (PyErr_Occurred()) SWIG_fail; | |
6758 | } | |
6759 | Py_INCREF(Py_None); resultobj = Py_None; | |
6760 | return resultobj; | |
6761 | fail: | |
6762 | return NULL; | |
6763 | } | |
6764 | ||
6765 | ||
6766 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6767 | PyObject *resultobj; | |
6768 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6769 | wxString *arg2 = 0 ; | |
6770 | bool result; | |
e811c8ce | 6771 | bool temp2 = False ; |
d14a1e28 RD |
6772 | PyObject * obj0 = 0 ; |
6773 | PyObject * obj1 = 0 ; | |
6774 | char *kwnames[] = { | |
6775 | (char *) "self",(char *) "s", NULL | |
6776 | }; | |
6777 | ||
6778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6781 | { |
6782 | arg2 = wxString_in_helper(obj1); | |
6783 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6784 | temp2 = True; |
d14a1e28 RD |
6785 | } |
6786 | { | |
6787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6788 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6789 | ||
6790 | wxPyEndAllowThreads(__tstate); | |
6791 | if (PyErr_Occurred()) SWIG_fail; | |
6792 | } | |
4f89f6a3 RD |
6793 | { |
6794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6795 | } | |
d14a1e28 RD |
6796 | { |
6797 | if (temp2) | |
6798 | delete arg2; | |
6799 | } | |
6800 | return resultobj; | |
6801 | fail: | |
6802 | { | |
6803 | if (temp2) | |
6804 | delete arg2; | |
6805 | } | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj; | |
6812 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6813 | wxString result; | |
6814 | PyObject * obj0 = 0 ; | |
6815 | char *kwnames[] = { | |
6816 | (char *) "self", NULL | |
6817 | }; | |
6818 | ||
6819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6822 | { |
6823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6825 | ||
6826 | wxPyEndAllowThreads(__tstate); | |
6827 | if (PyErr_Occurred()) SWIG_fail; | |
6828 | } | |
6829 | { | |
6830 | #if wxUSE_UNICODE | |
6831 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6832 | #else | |
6833 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6834 | #endif | |
6835 | } | |
6836 | return resultobj; | |
6837 | fail: | |
6838 | return NULL; | |
6839 | } | |
6840 | ||
6841 | ||
6842 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6843 | PyObject *obj; | |
6844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6845 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6846 | Py_INCREF(obj); | |
6847 | return Py_BuildValue((char *)""); | |
6848 | } | |
6849 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6850 | PyObject *resultobj; | |
6851 | int arg1 ; | |
6852 | wxNativeEncodingInfo *result; | |
994141e6 | 6853 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6854 | char *kwnames[] = { |
6855 | (char *) "encoding", NULL | |
6856 | }; | |
6857 | ||
994141e6 | 6858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
6859 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
6860 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
6861 | { |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
d14a1e28 RD |
6864 | |
6865 | wxPyEndAllowThreads(__tstate); | |
6866 | if (PyErr_Occurred()) SWIG_fail; | |
6867 | } | |
15afbcd0 | 6868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); |
d14a1e28 RD |
6869 | return resultobj; |
6870 | fail: | |
6871 | return NULL; | |
6872 | } | |
6873 | ||
6874 | ||
6875 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject *resultobj; | |
6877 | wxNativeEncodingInfo *arg1 = 0 ; | |
6878 | bool result; | |
6879 | PyObject * obj0 = 0 ; | |
6880 | char *kwnames[] = { | |
6881 | (char *) "info", NULL | |
6882 | }; | |
6883 | ||
6884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, |
6886 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6887 | SWIG_fail; | |
d14a1e28 | 6888 | if (arg1 == NULL) { |
15afbcd0 RD |
6889 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6890 | SWIG_fail; | |
d14a1e28 RD |
6891 | } |
6892 | { | |
6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6894 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6895 | ||
6896 | wxPyEndAllowThreads(__tstate); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | } | |
4f89f6a3 RD |
6899 | { |
6900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6901 | } | |
d14a1e28 RD |
6902 | return resultobj; |
6903 | fail: | |
6904 | return NULL; | |
6905 | } | |
6906 | ||
6907 | ||
6908 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject *resultobj; | |
6910 | wxFontMapper *result; | |
6911 | char *kwnames[] = { | |
6912 | NULL | |
6913 | }; | |
6914 | ||
6915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6916 | { | |
6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6918 | result = (wxFontMapper *)new wxFontMapper(); | |
6919 | ||
6920 | wxPyEndAllowThreads(__tstate); | |
6921 | if (PyErr_Occurred()) SWIG_fail; | |
6922 | } | |
15afbcd0 | 6923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); |
d14a1e28 RD |
6924 | return resultobj; |
6925 | fail: | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject *resultobj; | |
6932 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6933 | PyObject * obj0 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
6940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6941 | { |
6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6943 | delete arg1; | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | } | |
6948 | Py_INCREF(Py_None); resultobj = Py_None; | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxFontMapper *result; | |
6958 | char *kwnames[] = { | |
6959 | NULL | |
6960 | }; | |
6961 | ||
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6963 | { | |
6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6965 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6966 | ||
6967 | wxPyEndAllowThreads(__tstate); | |
6968 | if (PyErr_Occurred()) SWIG_fail; | |
6969 | } | |
15afbcd0 | 6970 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
6971 | return resultobj; |
6972 | fail: | |
6973 | return NULL; | |
6974 | } | |
6975 | ||
6976 | ||
6977 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6978 | PyObject *resultobj; | |
6979 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6980 | wxFontMapper *result; | |
6981 | PyObject * obj0 = 0 ; | |
6982 | char *kwnames[] = { | |
6983 | (char *) "mapper", NULL | |
6984 | }; | |
6985 | ||
6986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
6988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6989 | { |
6990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6991 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6992 | ||
6993 | wxPyEndAllowThreads(__tstate); | |
6994 | if (PyErr_Occurred()) SWIG_fail; | |
6995 | } | |
15afbcd0 | 6996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); |
d14a1e28 RD |
6997 | return resultobj; |
6998 | fail: | |
6999 | return NULL; | |
7000 | } | |
7001 | ||
7002 | ||
7003 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7004 | PyObject *resultobj; | |
7005 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7006 | wxString *arg2 = 0 ; | |
e811c8ce | 7007 | bool arg3 = (bool) True ; |
d14a1e28 | 7008 | int result; |
e811c8ce | 7009 | bool temp2 = False ; |
d14a1e28 RD |
7010 | PyObject * obj0 = 0 ; |
7011 | PyObject * obj1 = 0 ; | |
7012 | PyObject * obj2 = 0 ; | |
7013 | char *kwnames[] = { | |
7014 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7015 | }; | |
7016 | ||
7017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7020 | { |
7021 | arg2 = wxString_in_helper(obj1); | |
7022 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7023 | temp2 = True; |
d14a1e28 RD |
7024 | } |
7025 | if (obj2) { | |
15afbcd0 RD |
7026 | arg3 = (bool) SWIG_AsBool(obj2); |
7027 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7028 | } |
7029 | { | |
7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7031 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7032 | ||
7033 | wxPyEndAllowThreads(__tstate); | |
7034 | if (PyErr_Occurred()) SWIG_fail; | |
7035 | } | |
15afbcd0 | 7036 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7037 | { |
7038 | if (temp2) | |
7039 | delete arg2; | |
7040 | } | |
7041 | return resultobj; | |
7042 | fail: | |
7043 | { | |
7044 | if (temp2) | |
7045 | delete arg2; | |
7046 | } | |
7047 | return NULL; | |
7048 | } | |
7049 | ||
7050 | ||
7051 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7052 | PyObject *resultobj; | |
7053 | size_t result; | |
7054 | char *kwnames[] = { | |
7055 | NULL | |
7056 | }; | |
7057 | ||
7058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7059 | { | |
7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7061 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7062 | ||
7063 | wxPyEndAllowThreads(__tstate); | |
7064 | if (PyErr_Occurred()) SWIG_fail; | |
7065 | } | |
15afbcd0 | 7066 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
7067 | return resultobj; |
7068 | fail: | |
7069 | return NULL; | |
7070 | } | |
7071 | ||
7072 | ||
7073 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7074 | PyObject *resultobj; | |
7075 | size_t arg1 ; | |
7076 | int result; | |
7077 | PyObject * obj0 = 0 ; | |
7078 | char *kwnames[] = { | |
7079 | (char *) "n", NULL | |
7080 | }; | |
7081 | ||
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7083 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); |
7084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7085 | { |
7086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7087 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7088 | ||
7089 | wxPyEndAllowThreads(__tstate); | |
7090 | if (PyErr_Occurred()) SWIG_fail; | |
7091 | } | |
15afbcd0 | 7092 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7093 | return resultobj; |
7094 | fail: | |
7095 | return NULL; | |
7096 | } | |
7097 | ||
7098 | ||
7099 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7100 | PyObject *resultobj; | |
7101 | int arg1 ; | |
7102 | wxString result; | |
994141e6 | 7103 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7104 | char *kwnames[] = { |
7105 | (char *) "encoding", NULL | |
7106 | }; | |
7107 | ||
994141e6 | 7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7109 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7110 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7111 | { |
7112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7113 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7114 | ||
7115 | wxPyEndAllowThreads(__tstate); | |
7116 | if (PyErr_Occurred()) SWIG_fail; | |
7117 | } | |
7118 | { | |
7119 | #if wxUSE_UNICODE | |
7120 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7121 | #else | |
7122 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7123 | #endif | |
7124 | } | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
7131 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject *resultobj; | |
7133 | int arg1 ; | |
7134 | wxString result; | |
994141e6 | 7135 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7136 | char *kwnames[] = { |
7137 | (char *) "encoding", NULL | |
7138 | }; | |
7139 | ||
994141e6 | 7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7141 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
7142 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7143 | { |
7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7145 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7146 | ||
7147 | wxPyEndAllowThreads(__tstate); | |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
7149 | } | |
7150 | { | |
7151 | #if wxUSE_UNICODE | |
7152 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7153 | #else | |
7154 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7155 | #endif | |
7156 | } | |
7157 | return resultobj; | |
7158 | fail: | |
7159 | return NULL; | |
7160 | } | |
7161 | ||
7162 | ||
b2df227b RD |
7163 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) { |
7164 | PyObject *resultobj; | |
7165 | wxString *arg1 = 0 ; | |
7166 | int result; | |
7167 | bool temp1 = False ; | |
7168 | PyObject * obj0 = 0 ; | |
7169 | char *kwnames[] = { | |
7170 | (char *) "name", NULL | |
7171 | }; | |
7172 | ||
7173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7174 | { | |
7175 | arg1 = wxString_in_helper(obj0); | |
7176 | if (arg1 == NULL) SWIG_fail; | |
7177 | temp1 = True; | |
7178 | } | |
7179 | { | |
7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7181 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7182 | ||
7183 | wxPyEndAllowThreads(__tstate); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | resultobj = SWIG_FromInt((int)result); | |
7187 | { | |
7188 | if (temp1) | |
7189 | delete arg1; | |
7190 | } | |
7191 | return resultobj; | |
7192 | fail: | |
7193 | { | |
7194 | if (temp1) | |
7195 | delete arg1; | |
7196 | } | |
7197 | return NULL; | |
7198 | } | |
7199 | ||
7200 | ||
d14a1e28 RD |
7201 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { |
7202 | PyObject *resultobj; | |
7203 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7204 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7205 | PyObject * obj0 = 0 ; | |
7206 | PyObject * obj1 = 0 ; | |
7207 | char *kwnames[] = { | |
7208 | (char *) "self",(char *) "config", NULL | |
7209 | }; | |
7210 | ||
7211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7214 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7216 | { |
7217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7218 | (arg1)->SetConfig(arg2); | |
7219 | ||
7220 | wxPyEndAllowThreads(__tstate); | |
7221 | if (PyErr_Occurred()) SWIG_fail; | |
7222 | } | |
7223 | Py_INCREF(Py_None); resultobj = Py_None; | |
7224 | return resultobj; | |
7225 | fail: | |
7226 | return NULL; | |
7227 | } | |
7228 | ||
7229 | ||
7230 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7231 | PyObject *resultobj; | |
7232 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7233 | wxString *arg2 = 0 ; | |
e811c8ce | 7234 | bool temp2 = False ; |
d14a1e28 RD |
7235 | PyObject * obj0 = 0 ; |
7236 | PyObject * obj1 = 0 ; | |
7237 | char *kwnames[] = { | |
7238 | (char *) "self",(char *) "prefix", NULL | |
7239 | }; | |
7240 | ||
7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7244 | { |
7245 | arg2 = wxString_in_helper(obj1); | |
7246 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7247 | temp2 = True; |
d14a1e28 RD |
7248 | } |
7249 | { | |
7250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7251 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7252 | ||
7253 | wxPyEndAllowThreads(__tstate); | |
7254 | if (PyErr_Occurred()) SWIG_fail; | |
7255 | } | |
7256 | Py_INCREF(Py_None); resultobj = Py_None; | |
7257 | { | |
7258 | if (temp2) | |
7259 | delete arg2; | |
7260 | } | |
7261 | return resultobj; | |
7262 | fail: | |
7263 | { | |
7264 | if (temp2) | |
7265 | delete arg2; | |
7266 | } | |
7267 | return NULL; | |
7268 | } | |
7269 | ||
7270 | ||
7271 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7272 | PyObject *resultobj; | |
7273 | wxString result; | |
7274 | char *kwnames[] = { | |
7275 | NULL | |
7276 | }; | |
7277 | ||
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7279 | { | |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | result = wxFontMapper::GetDefaultConfigPath(); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
7286 | { | |
7287 | #if wxUSE_UNICODE | |
7288 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7289 | #else | |
7290 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7291 | #endif | |
7292 | } | |
7293 | return resultobj; | |
7294 | fail: | |
7295 | return NULL; | |
7296 | } | |
7297 | ||
7298 | ||
7299 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7300 | PyObject *resultobj; | |
7301 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7302 | int arg2 ; | |
7303 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7304 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
e811c8ce | 7305 | bool arg4 = (bool) True ; |
d14a1e28 | 7306 | PyObject *result; |
e811c8ce | 7307 | bool temp3 = False ; |
d14a1e28 | 7308 | PyObject * obj0 = 0 ; |
994141e6 | 7309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7310 | PyObject * obj2 = 0 ; |
7311 | PyObject * obj3 = 0 ; | |
7312 | char *kwnames[] = { | |
7313 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7314 | }; | |
7315 | ||
994141e6 | 7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
7317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7319 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7321 | if (obj2) { |
7322 | { | |
7323 | arg3 = wxString_in_helper(obj2); | |
7324 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7325 | temp3 = True; |
d14a1e28 RD |
7326 | } |
7327 | } | |
7328 | if (obj3) { | |
15afbcd0 RD |
7329 | arg4 = (bool) SWIG_AsBool(obj3); |
7330 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7331 | } |
7332 | { | |
7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7334 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7335 | ||
7336 | wxPyEndAllowThreads(__tstate); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
7339 | resultobj = result; | |
7340 | { | |
7341 | if (temp3) | |
7342 | delete arg3; | |
7343 | } | |
7344 | return resultobj; | |
7345 | fail: | |
7346 | { | |
7347 | if (temp3) | |
7348 | delete arg3; | |
7349 | } | |
7350 | return NULL; | |
7351 | } | |
7352 | ||
7353 | ||
7354 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7355 | PyObject *resultobj; | |
7356 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7357 | int arg2 ; | |
7358 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7359 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7360 | bool result; | |
e811c8ce | 7361 | bool temp3 = False ; |
d14a1e28 | 7362 | PyObject * obj0 = 0 ; |
994141e6 | 7363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7364 | PyObject * obj2 = 0 ; |
7365 | char *kwnames[] = { | |
7366 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7367 | }; | |
7368 | ||
994141e6 | 7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7372 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7374 | if (obj2) { |
7375 | { | |
7376 | arg3 = wxString_in_helper(obj2); | |
7377 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7378 | temp3 = True; |
d14a1e28 RD |
7379 | } |
7380 | } | |
7381 | { | |
7382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7383 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7384 | ||
7385 | wxPyEndAllowThreads(__tstate); | |
7386 | if (PyErr_Occurred()) SWIG_fail; | |
7387 | } | |
4f89f6a3 RD |
7388 | { |
7389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7390 | } | |
d14a1e28 RD |
7391 | { |
7392 | if (temp3) | |
7393 | delete arg3; | |
7394 | } | |
7395 | return resultobj; | |
7396 | fail: | |
7397 | { | |
7398 | if (temp3) | |
7399 | delete arg3; | |
7400 | } | |
7401 | return NULL; | |
7402 | } | |
7403 | ||
7404 | ||
7405 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7406 | PyObject *resultobj; | |
7407 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7408 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7409 | PyObject * obj0 = 0 ; | |
7410 | PyObject * obj1 = 0 ; | |
7411 | char *kwnames[] = { | |
7412 | (char *) "self",(char *) "parent", NULL | |
7413 | }; | |
7414 | ||
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7420 | { |
7421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7422 | (arg1)->SetDialogParent(arg2); | |
7423 | ||
7424 | wxPyEndAllowThreads(__tstate); | |
7425 | if (PyErr_Occurred()) SWIG_fail; | |
7426 | } | |
7427 | Py_INCREF(Py_None); resultobj = Py_None; | |
7428 | return resultobj; | |
7429 | fail: | |
7430 | return NULL; | |
7431 | } | |
7432 | ||
7433 | ||
7434 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject *resultobj; | |
7436 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7437 | wxString *arg2 = 0 ; | |
e811c8ce | 7438 | bool temp2 = False ; |
d14a1e28 RD |
7439 | PyObject * obj0 = 0 ; |
7440 | PyObject * obj1 = 0 ; | |
7441 | char *kwnames[] = { | |
7442 | (char *) "self",(char *) "title", NULL | |
7443 | }; | |
7444 | ||
7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, |
7447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7448 | { |
7449 | arg2 = wxString_in_helper(obj1); | |
7450 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7451 | temp2 = True; |
d14a1e28 RD |
7452 | } |
7453 | { | |
7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7455 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7456 | ||
7457 | wxPyEndAllowThreads(__tstate); | |
7458 | if (PyErr_Occurred()) SWIG_fail; | |
7459 | } | |
7460 | Py_INCREF(Py_None); resultobj = Py_None; | |
7461 | { | |
7462 | if (temp2) | |
7463 | delete arg2; | |
7464 | } | |
7465 | return resultobj; | |
7466 | fail: | |
7467 | { | |
7468 | if (temp2) | |
7469 | delete arg2; | |
7470 | } | |
7471 | return NULL; | |
7472 | } | |
7473 | ||
7474 | ||
7475 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7476 | PyObject *obj; | |
7477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7478 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7479 | Py_INCREF(obj); | |
7480 | return Py_BuildValue((char *)""); | |
7481 | } | |
7482 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7483 | PyObject *resultobj; | |
7484 | int arg1 ; | |
7485 | int arg2 ; | |
7486 | int arg3 ; | |
7487 | int arg4 ; | |
e811c8ce | 7488 | bool arg5 = (bool) False ; |
d14a1e28 RD |
7489 | wxString const &arg6_defvalue = wxPyEmptyString ; |
7490 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7491 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7492 | wxFont *result; | |
e811c8ce | 7493 | bool temp6 = False ; |
994141e6 RD |
7494 | PyObject * obj0 = 0 ; |
7495 | PyObject * obj1 = 0 ; | |
7496 | PyObject * obj2 = 0 ; | |
7497 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7498 | PyObject * obj4 = 0 ; |
7499 | PyObject * obj5 = 0 ; | |
994141e6 | 7500 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7501 | char *kwnames[] = { |
7502 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7503 | }; | |
7504 | ||
994141e6 | 7505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
7506 | arg1 = (int) SWIG_AsInt(obj0); |
7507 | if (PyErr_Occurred()) SWIG_fail; | |
7508 | arg2 = (int) SWIG_AsInt(obj1); | |
7509 | if (PyErr_Occurred()) SWIG_fail; | |
7510 | arg3 = (int) SWIG_AsInt(obj2); | |
7511 | if (PyErr_Occurred()) SWIG_fail; | |
7512 | arg4 = (int) SWIG_AsInt(obj3); | |
7513 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 7514 | if (obj4) { |
15afbcd0 RD |
7515 | arg5 = (bool) SWIG_AsBool(obj4); |
7516 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7517 | } |
7518 | if (obj5) { | |
7519 | { | |
7520 | arg6 = wxString_in_helper(obj5); | |
7521 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 7522 | temp6 = True; |
d14a1e28 RD |
7523 | } |
7524 | } | |
994141e6 | 7525 | if (obj6) { |
15afbcd0 RD |
7526 | arg7 = (wxFontEncoding) SWIG_AsInt(obj6); |
7527 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7528 | } |
d14a1e28 RD |
7529 | { |
7530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7531 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7532 | ||
7533 | wxPyEndAllowThreads(__tstate); | |
7534 | if (PyErr_Occurred()) SWIG_fail; | |
7535 | } | |
15afbcd0 | 7536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7537 | { |
7538 | if (temp6) | |
7539 | delete arg6; | |
7540 | } | |
7541 | return resultobj; | |
7542 | fail: | |
7543 | { | |
7544 | if (temp6) | |
7545 | delete arg6; | |
7546 | } | |
7547 | return NULL; | |
7548 | } | |
7549 | ||
7550 | ||
7551 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7552 | PyObject *resultobj; | |
7553 | wxFont *arg1 = (wxFont *) 0 ; | |
7554 | PyObject * obj0 = 0 ; | |
7555 | char *kwnames[] = { | |
7556 | (char *) "self", NULL | |
7557 | }; | |
7558 | ||
7559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7562 | { |
7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7564 | delete arg1; | |
7565 | ||
7566 | wxPyEndAllowThreads(__tstate); | |
7567 | if (PyErr_Occurred()) SWIG_fail; | |
7568 | } | |
7569 | Py_INCREF(Py_None); resultobj = Py_None; | |
7570 | return resultobj; | |
7571 | fail: | |
7572 | return NULL; | |
7573 | } | |
7574 | ||
7575 | ||
7576 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7577 | PyObject *resultobj; | |
7578 | wxNativeFontInfo *arg1 = 0 ; | |
7579 | wxFont *result; | |
7580 | PyObject * obj0 = 0 ; | |
7581 | char *kwnames[] = { | |
7582 | (char *) "info", NULL | |
7583 | }; | |
7584 | ||
7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, |
7587 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7588 | SWIG_fail; | |
d14a1e28 | 7589 | if (arg1 == NULL) { |
15afbcd0 RD |
7590 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7591 | SWIG_fail; | |
d14a1e28 RD |
7592 | } |
7593 | { | |
7594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7595 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7596 | ||
7597 | wxPyEndAllowThreads(__tstate); | |
7598 | if (PyErr_Occurred()) SWIG_fail; | |
7599 | } | |
15afbcd0 | 7600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7601 | return resultobj; |
7602 | fail: | |
7603 | return NULL; | |
7604 | } | |
7605 | ||
7606 | ||
7607 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7608 | PyObject *resultobj; | |
7609 | wxString *arg1 = 0 ; | |
7610 | wxFont *result; | |
e811c8ce | 7611 | bool temp1 = False ; |
d14a1e28 RD |
7612 | PyObject * obj0 = 0 ; |
7613 | char *kwnames[] = { | |
7614 | (char *) "info", NULL | |
7615 | }; | |
7616 | ||
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7618 | { | |
7619 | arg1 = wxString_in_helper(obj0); | |
7620 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7621 | temp1 = True; |
d14a1e28 RD |
7622 | } |
7623 | { | |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7625 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7626 | ||
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
15afbcd0 | 7630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7631 | { |
7632 | if (temp1) | |
7633 | delete arg1; | |
7634 | } | |
7635 | return resultobj; | |
7636 | fail: | |
7637 | { | |
7638 | if (temp1) | |
7639 | delete arg1; | |
7640 | } | |
7641 | return NULL; | |
7642 | } | |
7643 | ||
7644 | ||
7645 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7646 | PyObject *resultobj; | |
7647 | int arg1 ; | |
7648 | int arg2 ; | |
7649 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7650 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7651 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7652 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7653 | wxFont *result; | |
e811c8ce | 7654 | bool temp4 = False ; |
994141e6 RD |
7655 | PyObject * obj0 = 0 ; |
7656 | PyObject * obj1 = 0 ; | |
7657 | PyObject * obj2 = 0 ; | |
d14a1e28 | 7658 | PyObject * obj3 = 0 ; |
994141e6 | 7659 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7660 | char *kwnames[] = { |
7661 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7662 | }; | |
7663 | ||
994141e6 | 7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
7665 | arg1 = (int) SWIG_AsInt(obj0); |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
7668 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7669 | if (obj2) { |
15afbcd0 RD |
7670 | arg3 = (int) SWIG_AsInt(obj2); |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7672 | } |
d14a1e28 RD |
7673 | if (obj3) { |
7674 | { | |
7675 | arg4 = wxString_in_helper(obj3); | |
7676 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7677 | temp4 = True; |
d14a1e28 RD |
7678 | } |
7679 | } | |
994141e6 | 7680 | if (obj4) { |
15afbcd0 RD |
7681 | arg5 = (wxFontEncoding) SWIG_AsInt(obj4); |
7682 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7683 | } |
d14a1e28 RD |
7684 | { |
7685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7686 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7687 | ||
7688 | wxPyEndAllowThreads(__tstate); | |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
7690 | } | |
15afbcd0 | 7691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
7692 | { |
7693 | if (temp4) | |
7694 | delete arg4; | |
7695 | } | |
7696 | return resultobj; | |
7697 | fail: | |
7698 | { | |
7699 | if (temp4) | |
7700 | delete arg4; | |
7701 | } | |
7702 | return NULL; | |
7703 | } | |
7704 | ||
7705 | ||
7706 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7707 | PyObject *resultobj; | |
7708 | wxFont *arg1 = (wxFont *) 0 ; | |
7709 | bool result; | |
7710 | PyObject * obj0 = 0 ; | |
7711 | char *kwnames[] = { | |
7712 | (char *) "self", NULL | |
7713 | }; | |
7714 | ||
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7718 | { |
7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7720 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7721 | ||
7722 | wxPyEndAllowThreads(__tstate); | |
7723 | if (PyErr_Occurred()) SWIG_fail; | |
7724 | } | |
4f89f6a3 RD |
7725 | { |
7726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7727 | } | |
d14a1e28 RD |
7728 | return resultobj; |
7729 | fail: | |
7730 | return NULL; | |
7731 | } | |
7732 | ||
7733 | ||
7734 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7735 | PyObject *resultobj; | |
7736 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7737 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7738 | bool result; |
7739 | PyObject * obj0 = 0 ; | |
7740 | PyObject * obj1 = 0 ; | |
7741 | char *kwnames[] = { | |
22faec7d | 7742 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7743 | }; |
7744 | ||
7745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7748 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7750 | { |
7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7752 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7753 | |
7754 | wxPyEndAllowThreads(__tstate); | |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
7756 | } | |
4f89f6a3 RD |
7757 | { |
7758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7759 | } | |
d14a1e28 RD |
7760 | return resultobj; |
7761 | fail: | |
7762 | return NULL; | |
7763 | } | |
7764 | ||
7765 | ||
7766 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7767 | PyObject *resultobj; | |
7768 | wxFont *arg1 = (wxFont *) 0 ; | |
22faec7d | 7769 | wxFont *arg2 = (wxFont *) 0 ; |
d14a1e28 RD |
7770 | bool result; |
7771 | PyObject * obj0 = 0 ; | |
7772 | PyObject * obj1 = 0 ; | |
7773 | char *kwnames[] = { | |
22faec7d | 7774 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
7775 | }; |
7776 | ||
7777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7780 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7782 | { |
7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 7784 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); |
d14a1e28 RD |
7785 | |
7786 | wxPyEndAllowThreads(__tstate); | |
7787 | if (PyErr_Occurred()) SWIG_fail; | |
7788 | } | |
4f89f6a3 RD |
7789 | { |
7790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7791 | } | |
d14a1e28 RD |
7792 | return resultobj; |
7793 | fail: | |
7794 | return NULL; | |
7795 | } | |
7796 | ||
7797 | ||
7798 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7799 | PyObject *resultobj; | |
7800 | wxFont *arg1 = (wxFont *) 0 ; | |
7801 | int result; | |
7802 | PyObject * obj0 = 0 ; | |
7803 | char *kwnames[] = { | |
7804 | (char *) "self", NULL | |
7805 | }; | |
7806 | ||
7807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7810 | { |
7811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7812 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7813 | ||
7814 | wxPyEndAllowThreads(__tstate); | |
7815 | if (PyErr_Occurred()) SWIG_fail; | |
7816 | } | |
15afbcd0 | 7817 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7818 | return resultobj; |
7819 | fail: | |
7820 | return NULL; | |
7821 | } | |
7822 | ||
7823 | ||
7824 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7825 | PyObject *resultobj; | |
7826 | wxFont *arg1 = (wxFont *) 0 ; | |
7827 | int result; | |
7828 | PyObject * obj0 = 0 ; | |
7829 | char *kwnames[] = { | |
7830 | (char *) "self", NULL | |
7831 | }; | |
7832 | ||
7833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7836 | { |
7837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7838 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7839 | ||
7840 | wxPyEndAllowThreads(__tstate); | |
7841 | if (PyErr_Occurred()) SWIG_fail; | |
7842 | } | |
15afbcd0 | 7843 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7844 | return resultobj; |
7845 | fail: | |
7846 | return NULL; | |
7847 | } | |
7848 | ||
7849 | ||
7850 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7851 | PyObject *resultobj; | |
7852 | wxFont *arg1 = (wxFont *) 0 ; | |
7853 | int result; | |
7854 | PyObject * obj0 = 0 ; | |
7855 | char *kwnames[] = { | |
7856 | (char *) "self", NULL | |
7857 | }; | |
7858 | ||
7859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7862 | { |
7863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7864 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7865 | ||
7866 | wxPyEndAllowThreads(__tstate); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
15afbcd0 | 7869 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7870 | return resultobj; |
7871 | fail: | |
7872 | return NULL; | |
7873 | } | |
7874 | ||
7875 | ||
7876 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7877 | PyObject *resultobj; | |
7878 | wxFont *arg1 = (wxFont *) 0 ; | |
7879 | int result; | |
7880 | PyObject * obj0 = 0 ; | |
7881 | char *kwnames[] = { | |
7882 | (char *) "self", NULL | |
7883 | }; | |
7884 | ||
7885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7888 | { |
7889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7890 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7891 | ||
7892 | wxPyEndAllowThreads(__tstate); | |
7893 | if (PyErr_Occurred()) SWIG_fail; | |
7894 | } | |
15afbcd0 | 7895 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7896 | return resultobj; |
7897 | fail: | |
7898 | return NULL; | |
7899 | } | |
7900 | ||
7901 | ||
7902 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject *resultobj; | |
7904 | wxFont *arg1 = (wxFont *) 0 ; | |
7905 | bool result; | |
7906 | PyObject * obj0 = 0 ; | |
7907 | char *kwnames[] = { | |
7908 | (char *) "self", NULL | |
7909 | }; | |
7910 | ||
7911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7914 | { |
7915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7916 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7917 | ||
7918 | wxPyEndAllowThreads(__tstate); | |
7919 | if (PyErr_Occurred()) SWIG_fail; | |
7920 | } | |
4f89f6a3 RD |
7921 | { |
7922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7923 | } | |
d14a1e28 RD |
7924 | return resultobj; |
7925 | fail: | |
7926 | return NULL; | |
7927 | } | |
7928 | ||
7929 | ||
7930 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7931 | PyObject *resultobj; | |
7932 | wxFont *arg1 = (wxFont *) 0 ; | |
7933 | wxString result; | |
7934 | PyObject * obj0 = 0 ; | |
7935 | char *kwnames[] = { | |
7936 | (char *) "self", NULL | |
7937 | }; | |
7938 | ||
7939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7942 | { |
7943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7944 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7945 | ||
7946 | wxPyEndAllowThreads(__tstate); | |
7947 | if (PyErr_Occurred()) SWIG_fail; | |
7948 | } | |
7949 | { | |
7950 | #if wxUSE_UNICODE | |
7951 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7952 | #else | |
7953 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7954 | #endif | |
7955 | } | |
7956 | return resultobj; | |
7957 | fail: | |
7958 | return NULL; | |
7959 | } | |
7960 | ||
7961 | ||
7962 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7963 | PyObject *resultobj; | |
7964 | wxFont *arg1 = (wxFont *) 0 ; | |
7965 | int result; | |
7966 | PyObject * obj0 = 0 ; | |
7967 | char *kwnames[] = { | |
7968 | (char *) "self", NULL | |
7969 | }; | |
7970 | ||
7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7974 | { |
7975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7976 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7977 | ||
7978 | wxPyEndAllowThreads(__tstate); | |
7979 | if (PyErr_Occurred()) SWIG_fail; | |
7980 | } | |
15afbcd0 | 7981 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7982 | return resultobj; |
7983 | fail: | |
7984 | return NULL; | |
7985 | } | |
7986 | ||
7987 | ||
7988 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7989 | PyObject *resultobj; | |
7990 | wxFont *arg1 = (wxFont *) 0 ; | |
7991 | wxNativeFontInfo *result; | |
7992 | PyObject * obj0 = 0 ; | |
7993 | char *kwnames[] = { | |
7994 | (char *) "self", NULL | |
7995 | }; | |
7996 | ||
7997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
7999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8000 | { |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
15afbcd0 | 8007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); |
d14a1e28 RD |
8008 | return resultobj; |
8009 | fail: | |
8010 | return NULL; | |
8011 | } | |
8012 | ||
8013 | ||
8014 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8015 | PyObject *resultobj; | |
8016 | wxFont *arg1 = (wxFont *) 0 ; | |
8017 | bool result; | |
8018 | PyObject * obj0 = 0 ; | |
8019 | char *kwnames[] = { | |
8020 | (char *) "self", NULL | |
8021 | }; | |
8022 | ||
8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8026 | { |
8027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8028 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8029 | ||
8030 | wxPyEndAllowThreads(__tstate); | |
8031 | if (PyErr_Occurred()) SWIG_fail; | |
8032 | } | |
4f89f6a3 RD |
8033 | { |
8034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8035 | } | |
d14a1e28 RD |
8036 | return resultobj; |
8037 | fail: | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj; | |
8044 | wxFont *arg1 = (wxFont *) 0 ; | |
8045 | wxString result; | |
8046 | PyObject * obj0 = 0 ; | |
8047 | char *kwnames[] = { | |
8048 | (char *) "self", NULL | |
8049 | }; | |
8050 | ||
8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8054 | { |
8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8056 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8057 | ||
8058 | wxPyEndAllowThreads(__tstate); | |
8059 | if (PyErr_Occurred()) SWIG_fail; | |
8060 | } | |
8061 | { | |
8062 | #if wxUSE_UNICODE | |
8063 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8064 | #else | |
8065 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8066 | #endif | |
8067 | } | |
8068 | return resultobj; | |
8069 | fail: | |
8070 | return NULL; | |
8071 | } | |
8072 | ||
8073 | ||
8074 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8075 | PyObject *resultobj; | |
8076 | wxFont *arg1 = (wxFont *) 0 ; | |
8077 | wxString result; | |
8078 | PyObject * obj0 = 0 ; | |
8079 | char *kwnames[] = { | |
8080 | (char *) "self", NULL | |
8081 | }; | |
8082 | ||
8083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8086 | { |
8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8088 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8089 | ||
8090 | wxPyEndAllowThreads(__tstate); | |
8091 | if (PyErr_Occurred()) SWIG_fail; | |
8092 | } | |
8093 | { | |
8094 | #if wxUSE_UNICODE | |
8095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8096 | #else | |
8097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8098 | #endif | |
8099 | } | |
8100 | return resultobj; | |
8101 | fail: | |
8102 | return NULL; | |
8103 | } | |
8104 | ||
8105 | ||
8106 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8107 | PyObject *resultobj; | |
8108 | wxFont *arg1 = (wxFont *) 0 ; | |
8109 | int arg2 ; | |
8110 | PyObject * obj0 = 0 ; | |
994141e6 | 8111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8112 | char *kwnames[] = { |
8113 | (char *) "self",(char *) "pointSize", NULL | |
8114 | }; | |
8115 | ||
994141e6 | 8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8119 | arg2 = (int) SWIG_AsInt(obj1); | |
8120 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8121 | { |
8122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8123 | (arg1)->SetPointSize(arg2); | |
8124 | ||
8125 | wxPyEndAllowThreads(__tstate); | |
8126 | if (PyErr_Occurred()) SWIG_fail; | |
8127 | } | |
8128 | Py_INCREF(Py_None); resultobj = Py_None; | |
8129 | return resultobj; | |
8130 | fail: | |
8131 | return NULL; | |
8132 | } | |
8133 | ||
8134 | ||
8135 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8136 | PyObject *resultobj; | |
8137 | wxFont *arg1 = (wxFont *) 0 ; | |
8138 | int arg2 ; | |
8139 | PyObject * obj0 = 0 ; | |
994141e6 | 8140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8141 | char *kwnames[] = { |
8142 | (char *) "self",(char *) "family", NULL | |
8143 | }; | |
8144 | ||
994141e6 | 8145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8148 | arg2 = (int) SWIG_AsInt(obj1); | |
8149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8150 | { |
8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8152 | (arg1)->SetFamily(arg2); | |
8153 | ||
8154 | wxPyEndAllowThreads(__tstate); | |
8155 | if (PyErr_Occurred()) SWIG_fail; | |
8156 | } | |
8157 | Py_INCREF(Py_None); resultobj = Py_None; | |
8158 | return resultobj; | |
8159 | fail: | |
8160 | return NULL; | |
8161 | } | |
8162 | ||
8163 | ||
8164 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8165 | PyObject *resultobj; | |
8166 | wxFont *arg1 = (wxFont *) 0 ; | |
8167 | int arg2 ; | |
8168 | PyObject * obj0 = 0 ; | |
994141e6 | 8169 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8170 | char *kwnames[] = { |
8171 | (char *) "self",(char *) "style", NULL | |
8172 | }; | |
8173 | ||
994141e6 | 8174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8177 | arg2 = (int) SWIG_AsInt(obj1); | |
8178 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8179 | { |
8180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8181 | (arg1)->SetStyle(arg2); | |
8182 | ||
8183 | wxPyEndAllowThreads(__tstate); | |
8184 | if (PyErr_Occurred()) SWIG_fail; | |
8185 | } | |
8186 | Py_INCREF(Py_None); resultobj = Py_None; | |
8187 | return resultobj; | |
8188 | fail: | |
8189 | return NULL; | |
8190 | } | |
8191 | ||
8192 | ||
8193 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8194 | PyObject *resultobj; | |
8195 | wxFont *arg1 = (wxFont *) 0 ; | |
8196 | int arg2 ; | |
8197 | PyObject * obj0 = 0 ; | |
994141e6 | 8198 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8199 | char *kwnames[] = { |
8200 | (char *) "self",(char *) "weight", NULL | |
8201 | }; | |
8202 | ||
994141e6 | 8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8206 | arg2 = (int) SWIG_AsInt(obj1); | |
8207 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8208 | { |
8209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8210 | (arg1)->SetWeight(arg2); | |
8211 | ||
8212 | wxPyEndAllowThreads(__tstate); | |
8213 | if (PyErr_Occurred()) SWIG_fail; | |
8214 | } | |
8215 | Py_INCREF(Py_None); resultobj = Py_None; | |
8216 | return resultobj; | |
8217 | fail: | |
8218 | return NULL; | |
8219 | } | |
8220 | ||
8221 | ||
8222 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8223 | PyObject *resultobj; | |
8224 | wxFont *arg1 = (wxFont *) 0 ; | |
8225 | wxString *arg2 = 0 ; | |
e811c8ce | 8226 | bool temp2 = False ; |
d14a1e28 RD |
8227 | PyObject * obj0 = 0 ; |
8228 | PyObject * obj1 = 0 ; | |
8229 | char *kwnames[] = { | |
8230 | (char *) "self",(char *) "faceName", NULL | |
8231 | }; | |
8232 | ||
8233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8236 | { |
8237 | arg2 = wxString_in_helper(obj1); | |
8238 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8239 | temp2 = True; |
d14a1e28 RD |
8240 | } |
8241 | { | |
8242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8243 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8244 | ||
8245 | wxPyEndAllowThreads(__tstate); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | Py_INCREF(Py_None); resultobj = Py_None; | |
8249 | { | |
8250 | if (temp2) | |
8251 | delete arg2; | |
8252 | } | |
8253 | return resultobj; | |
8254 | fail: | |
8255 | { | |
8256 | if (temp2) | |
8257 | delete arg2; | |
8258 | } | |
8259 | return NULL; | |
8260 | } | |
8261 | ||
8262 | ||
8263 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject *resultobj; | |
8265 | wxFont *arg1 = (wxFont *) 0 ; | |
8266 | bool arg2 ; | |
8267 | PyObject * obj0 = 0 ; | |
8268 | PyObject * obj1 = 0 ; | |
8269 | char *kwnames[] = { | |
8270 | (char *) "self",(char *) "underlined", NULL | |
8271 | }; | |
8272 | ||
8273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8276 | arg2 = (bool) SWIG_AsBool(obj1); | |
8277 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8278 | { |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | (arg1)->SetUnderlined(arg2); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8285 | Py_INCREF(Py_None); resultobj = Py_None; | |
8286 | return resultobj; | |
8287 | fail: | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
8292 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8293 | PyObject *resultobj; | |
8294 | wxFont *arg1 = (wxFont *) 0 ; | |
8295 | int arg2 ; | |
8296 | PyObject * obj0 = 0 ; | |
994141e6 | 8297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8298 | char *kwnames[] = { |
8299 | (char *) "self",(char *) "encoding", NULL | |
8300 | }; | |
8301 | ||
994141e6 | 8302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8305 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8307 | { |
8308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8309 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8310 | ||
8311 | wxPyEndAllowThreads(__tstate); | |
8312 | if (PyErr_Occurred()) SWIG_fail; | |
8313 | } | |
8314 | Py_INCREF(Py_None); resultobj = Py_None; | |
8315 | return resultobj; | |
8316 | fail: | |
8317 | return NULL; | |
8318 | } | |
8319 | ||
8320 | ||
8321 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8322 | PyObject *resultobj; | |
8323 | wxFont *arg1 = (wxFont *) 0 ; | |
8324 | wxNativeFontInfo *arg2 = 0 ; | |
8325 | PyObject * obj0 = 0 ; | |
8326 | PyObject * obj1 = 0 ; | |
8327 | char *kwnames[] = { | |
8328 | (char *) "self",(char *) "info", NULL | |
8329 | }; | |
8330 | ||
8331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8334 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8335 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8336 | SWIG_fail; | |
d14a1e28 | 8337 | if (arg2 == NULL) { |
15afbcd0 RD |
8338 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8339 | SWIG_fail; | |
d14a1e28 RD |
8340 | } |
8341 | { | |
8342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8343 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8344 | ||
8345 | wxPyEndAllowThreads(__tstate); | |
8346 | if (PyErr_Occurred()) SWIG_fail; | |
8347 | } | |
8348 | Py_INCREF(Py_None); resultobj = Py_None; | |
8349 | return resultobj; | |
8350 | fail: | |
8351 | return NULL; | |
8352 | } | |
8353 | ||
8354 | ||
8355 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8356 | PyObject *resultobj; | |
8357 | wxFont *arg1 = (wxFont *) 0 ; | |
8358 | wxString *arg2 = 0 ; | |
e811c8ce | 8359 | bool temp2 = False ; |
d14a1e28 RD |
8360 | PyObject * obj0 = 0 ; |
8361 | PyObject * obj1 = 0 ; | |
8362 | char *kwnames[] = { | |
8363 | (char *) "self",(char *) "info", NULL | |
8364 | }; | |
8365 | ||
8366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8369 | { |
8370 | arg2 = wxString_in_helper(obj1); | |
8371 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8372 | temp2 = True; |
d14a1e28 RD |
8373 | } |
8374 | { | |
8375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8376 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8377 | ||
8378 | wxPyEndAllowThreads(__tstate); | |
8379 | if (PyErr_Occurred()) SWIG_fail; | |
8380 | } | |
8381 | Py_INCREF(Py_None); resultobj = Py_None; | |
8382 | { | |
8383 | if (temp2) | |
8384 | delete arg2; | |
8385 | } | |
8386 | return resultobj; | |
8387 | fail: | |
8388 | { | |
8389 | if (temp2) | |
8390 | delete arg2; | |
8391 | } | |
8392 | return NULL; | |
8393 | } | |
8394 | ||
8395 | ||
8396 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8397 | PyObject *resultobj; | |
8398 | wxFont *arg1 = (wxFont *) 0 ; | |
8399 | wxString *arg2 = 0 ; | |
e811c8ce | 8400 | bool temp2 = False ; |
d14a1e28 RD |
8401 | PyObject * obj0 = 0 ; |
8402 | PyObject * obj1 = 0 ; | |
8403 | char *kwnames[] = { | |
8404 | (char *) "self",(char *) "info", NULL | |
8405 | }; | |
8406 | ||
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8410 | { |
8411 | arg2 = wxString_in_helper(obj1); | |
8412 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8413 | temp2 = True; |
d14a1e28 RD |
8414 | } |
8415 | { | |
8416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8417 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8418 | ||
8419 | wxPyEndAllowThreads(__tstate); | |
8420 | if (PyErr_Occurred()) SWIG_fail; | |
8421 | } | |
8422 | Py_INCREF(Py_None); resultobj = Py_None; | |
8423 | { | |
8424 | if (temp2) | |
8425 | delete arg2; | |
8426 | } | |
8427 | return resultobj; | |
8428 | fail: | |
8429 | { | |
8430 | if (temp2) | |
8431 | delete arg2; | |
8432 | } | |
8433 | return NULL; | |
8434 | } | |
8435 | ||
8436 | ||
8437 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8438 | PyObject *resultobj; | |
8439 | wxFont *arg1 = (wxFont *) 0 ; | |
8440 | wxString result; | |
8441 | PyObject * obj0 = 0 ; | |
8442 | char *kwnames[] = { | |
8443 | (char *) "self", NULL | |
8444 | }; | |
8445 | ||
8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8449 | { |
8450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8451 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8452 | ||
8453 | wxPyEndAllowThreads(__tstate); | |
8454 | if (PyErr_Occurred()) SWIG_fail; | |
8455 | } | |
8456 | { | |
8457 | #if wxUSE_UNICODE | |
8458 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8459 | #else | |
8460 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8461 | #endif | |
8462 | } | |
8463 | return resultobj; | |
8464 | fail: | |
8465 | return NULL; | |
8466 | } | |
8467 | ||
8468 | ||
8469 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8470 | PyObject *resultobj; | |
8471 | wxFont *arg1 = (wxFont *) 0 ; | |
8472 | wxString result; | |
8473 | PyObject * obj0 = 0 ; | |
8474 | char *kwnames[] = { | |
8475 | (char *) "self", NULL | |
8476 | }; | |
8477 | ||
8478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8481 | { |
8482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8483 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8484 | ||
8485 | wxPyEndAllowThreads(__tstate); | |
8486 | if (PyErr_Occurred()) SWIG_fail; | |
8487 | } | |
8488 | { | |
8489 | #if wxUSE_UNICODE | |
8490 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8491 | #else | |
8492 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8493 | #endif | |
8494 | } | |
8495 | return resultobj; | |
8496 | fail: | |
8497 | return NULL; | |
8498 | } | |
8499 | ||
8500 | ||
8501 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8502 | PyObject *resultobj; | |
8503 | wxFont *arg1 = (wxFont *) 0 ; | |
8504 | wxString result; | |
8505 | PyObject * obj0 = 0 ; | |
8506 | char *kwnames[] = { | |
8507 | (char *) "self", NULL | |
8508 | }; | |
8509 | ||
8510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8513 | { |
8514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8515 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8516 | ||
8517 | wxPyEndAllowThreads(__tstate); | |
8518 | if (PyErr_Occurred()) SWIG_fail; | |
8519 | } | |
8520 | { | |
8521 | #if wxUSE_UNICODE | |
8522 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8523 | #else | |
8524 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8525 | #endif | |
8526 | } | |
8527 | return resultobj; | |
8528 | fail: | |
8529 | return NULL; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8534 | PyObject *resultobj; | |
8535 | wxFont *arg1 = (wxFont *) 0 ; | |
e811c8ce | 8536 | bool arg2 = (bool) True ; |
d14a1e28 RD |
8537 | PyObject * obj0 = 0 ; |
8538 | PyObject * obj1 = 0 ; | |
8539 | char *kwnames[] = { | |
8540 | (char *) "self",(char *) "no", NULL | |
8541 | }; | |
8542 | ||
8543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8546 | if (obj1) { |
15afbcd0 RD |
8547 | arg2 = (bool) SWIG_AsBool(obj1); |
8548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8549 | } |
8550 | { | |
8551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8552 | (arg1)->SetNoAntiAliasing(arg2); | |
8553 | ||
8554 | wxPyEndAllowThreads(__tstate); | |
8555 | if (PyErr_Occurred()) SWIG_fail; | |
8556 | } | |
8557 | Py_INCREF(Py_None); resultobj = Py_None; | |
8558 | return resultobj; | |
8559 | fail: | |
8560 | return NULL; | |
8561 | } | |
8562 | ||
8563 | ||
8564 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8565 | PyObject *resultobj; | |
8566 | wxFont *arg1 = (wxFont *) 0 ; | |
8567 | bool result; | |
8568 | PyObject * obj0 = 0 ; | |
8569 | char *kwnames[] = { | |
8570 | (char *) "self", NULL | |
8571 | }; | |
8572 | ||
8573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, |
8575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8576 | { |
8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8578 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8579 | ||
8580 | wxPyEndAllowThreads(__tstate); | |
8581 | if (PyErr_Occurred()) SWIG_fail; | |
8582 | } | |
4f89f6a3 RD |
8583 | { |
8584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8585 | } | |
d14a1e28 RD |
8586 | return resultobj; |
8587 | fail: | |
8588 | return NULL; | |
8589 | } | |
8590 | ||
8591 | ||
8592 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8593 | PyObject *resultobj; | |
8594 | int result; | |
8595 | char *kwnames[] = { | |
8596 | NULL | |
8597 | }; | |
8598 | ||
8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8600 | { | |
8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8602 | result = (int)wxFont::GetDefaultEncoding(); | |
8603 | ||
8604 | wxPyEndAllowThreads(__tstate); | |
8605 | if (PyErr_Occurred()) SWIG_fail; | |
8606 | } | |
15afbcd0 | 8607 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8608 | return resultobj; |
8609 | fail: | |
8610 | return NULL; | |
8611 | } | |
8612 | ||
8613 | ||
8614 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8615 | PyObject *resultobj; | |
8616 | int arg1 ; | |
994141e6 | 8617 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
8618 | char *kwnames[] = { |
8619 | (char *) "encoding", NULL | |
8620 | }; | |
8621 | ||
994141e6 | 8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
8623 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8625 | { |
8626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8627 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8628 | ||
8629 | wxPyEndAllowThreads(__tstate); | |
8630 | if (PyErr_Occurred()) SWIG_fail; | |
8631 | } | |
8632 | Py_INCREF(Py_None); resultobj = Py_None; | |
8633 | return resultobj; | |
8634 | fail: | |
8635 | return NULL; | |
8636 | } | |
8637 | ||
8638 | ||
8639 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8640 | PyObject *obj; | |
8641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8642 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8643 | Py_INCREF(obj); | |
8644 | return Py_BuildValue((char *)""); | |
8645 | } | |
8646 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8647 | PyObject *resultobj; | |
8648 | wxPyFontEnumerator *result; | |
8649 | char *kwnames[] = { | |
8650 | NULL | |
8651 | }; | |
8652 | ||
8653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8654 | { | |
8655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8656 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8657 | ||
8658 | wxPyEndAllowThreads(__tstate); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
15afbcd0 | 8661 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); |
d14a1e28 RD |
8662 | return resultobj; |
8663 | fail: | |
8664 | return NULL; | |
8665 | } | |
8666 | ||
8667 | ||
8668 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8669 | PyObject *resultobj; | |
8670 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8671 | PyObject * obj0 = 0 ; | |
8672 | char *kwnames[] = { | |
8673 | (char *) "self", NULL | |
8674 | }; | |
8675 | ||
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8679 | { |
8680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8681 | delete arg1; | |
8682 | ||
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | Py_INCREF(Py_None); resultobj = Py_None; | |
8687 | return resultobj; | |
8688 | fail: | |
8689 | return NULL; | |
8690 | } | |
8691 | ||
8692 | ||
8693 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8694 | PyObject *resultobj; | |
8695 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8696 | PyObject *arg2 = (PyObject *) 0 ; | |
8697 | PyObject *arg3 = (PyObject *) 0 ; | |
8698 | bool arg4 ; | |
8699 | PyObject * obj0 = 0 ; | |
8700 | PyObject * obj1 = 0 ; | |
8701 | PyObject * obj2 = 0 ; | |
8702 | PyObject * obj3 = 0 ; | |
8703 | char *kwnames[] = { | |
8704 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8705 | }; | |
8706 | ||
8707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
8708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8710 | arg2 = obj1; |
8711 | arg3 = obj2; | |
15afbcd0 RD |
8712 | arg4 = (bool) SWIG_AsBool(obj3); |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8714 | { |
8715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8716 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8717 | ||
8718 | wxPyEndAllowThreads(__tstate); | |
8719 | if (PyErr_Occurred()) SWIG_fail; | |
8720 | } | |
8721 | Py_INCREF(Py_None); resultobj = Py_None; | |
8722 | return resultobj; | |
8723 | fail: | |
8724 | return NULL; | |
8725 | } | |
8726 | ||
8727 | ||
8728 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8729 | PyObject *resultobj; | |
8730 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8731 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
e811c8ce | 8732 | bool arg3 = (bool) False ; |
d14a1e28 RD |
8733 | bool result; |
8734 | PyObject * obj0 = 0 ; | |
994141e6 | 8735 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8736 | PyObject * obj2 = 0 ; |
8737 | char *kwnames[] = { | |
8738 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8739 | }; | |
8740 | ||
994141e6 | 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 8744 | if (obj1) { |
15afbcd0 RD |
8745 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); |
8746 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8747 | } |
d14a1e28 | 8748 | if (obj2) { |
15afbcd0 RD |
8749 | arg3 = (bool) SWIG_AsBool(obj2); |
8750 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8751 | } |
8752 | { | |
8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8754 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8755 | ||
8756 | wxPyEndAllowThreads(__tstate); | |
8757 | if (PyErr_Occurred()) SWIG_fail; | |
8758 | } | |
4f89f6a3 RD |
8759 | { |
8760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8761 | } | |
d14a1e28 RD |
8762 | return resultobj; |
8763 | fail: | |
8764 | return NULL; | |
8765 | } | |
8766 | ||
8767 | ||
8768 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8769 | PyObject *resultobj; | |
8770 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8771 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8772 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8773 | bool result; | |
e811c8ce | 8774 | bool temp2 = False ; |
d14a1e28 RD |
8775 | PyObject * obj0 = 0 ; |
8776 | PyObject * obj1 = 0 ; | |
8777 | char *kwnames[] = { | |
8778 | (char *) "self",(char *) "facename", NULL | |
8779 | }; | |
8780 | ||
8781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8784 | if (obj1) { |
8785 | { | |
8786 | arg2 = wxString_in_helper(obj1); | |
8787 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8788 | temp2 = True; |
d14a1e28 RD |
8789 | } |
8790 | } | |
8791 | { | |
8792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8793 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8794 | ||
8795 | wxPyEndAllowThreads(__tstate); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | } | |
4f89f6a3 RD |
8798 | { |
8799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8800 | } | |
d14a1e28 RD |
8801 | { |
8802 | if (temp2) | |
8803 | delete arg2; | |
8804 | } | |
8805 | return resultobj; | |
8806 | fail: | |
8807 | { | |
8808 | if (temp2) | |
8809 | delete arg2; | |
8810 | } | |
8811 | return NULL; | |
8812 | } | |
8813 | ||
8814 | ||
8815 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8816 | PyObject *resultobj; | |
8817 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8818 | PyObject *result; | |
8819 | PyObject * obj0 = 0 ; | |
8820 | char *kwnames[] = { | |
8821 | (char *) "self", NULL | |
8822 | }; | |
8823 | ||
8824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8827 | { |
8828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8829 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8830 | ||
8831 | wxPyEndAllowThreads(__tstate); | |
8832 | if (PyErr_Occurred()) SWIG_fail; | |
8833 | } | |
8834 | resultobj = result; | |
8835 | return resultobj; | |
8836 | fail: | |
8837 | return NULL; | |
8838 | } | |
8839 | ||
8840 | ||
8841 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8842 | PyObject *resultobj; | |
8843 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8844 | PyObject *result; | |
8845 | PyObject * obj0 = 0 ; | |
8846 | char *kwnames[] = { | |
8847 | (char *) "self", NULL | |
8848 | }; | |
8849 | ||
8850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, |
8852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8853 | { |
8854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8855 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8856 | ||
8857 | wxPyEndAllowThreads(__tstate); | |
8858 | if (PyErr_Occurred()) SWIG_fail; | |
8859 | } | |
8860 | resultobj = result; | |
8861 | return resultobj; | |
8862 | fail: | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
8867 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8868 | PyObject *obj; | |
8869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8870 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8871 | Py_INCREF(obj); | |
8872 | return Py_BuildValue((char *)""); | |
8873 | } | |
8874 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8875 | PyObject *resultobj; | |
8876 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8877 | int arg2 ; | |
8878 | PyObject * obj0 = 0 ; | |
994141e6 | 8879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8880 | char *kwnames[] = { |
8881 | (char *) "self",(char *) "Language", NULL | |
8882 | }; | |
8883 | ||
994141e6 | 8884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8887 | arg2 = (int) SWIG_AsInt(obj1); | |
8888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8889 | if (arg1) (arg1)->Language = arg2; |
8890 | ||
8891 | Py_INCREF(Py_None); resultobj = Py_None; | |
8892 | return resultobj; | |
8893 | fail: | |
8894 | return NULL; | |
8895 | } | |
8896 | ||
8897 | ||
8898 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8899 | PyObject *resultobj; | |
8900 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8901 | int result; | |
8902 | PyObject * obj0 = 0 ; | |
8903 | char *kwnames[] = { | |
8904 | (char *) "self", NULL | |
8905 | }; | |
8906 | ||
8907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8910 | result = (int) ((arg1)->Language); |
8911 | ||
15afbcd0 | 8912 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8913 | return resultobj; |
8914 | fail: | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8920 | PyObject *resultobj; | |
8921 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8922 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8923 | bool temp2 = False ; |
d14a1e28 RD |
8924 | PyObject * obj0 = 0 ; |
8925 | PyObject * obj1 = 0 ; | |
8926 | char *kwnames[] = { | |
8927 | (char *) "self",(char *) "CanonicalName", NULL | |
8928 | }; | |
8929 | ||
8930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
8933 | { |
8934 | arg2 = wxString_in_helper(obj1); | |
8935 | if (arg2 == NULL) SWIG_fail; | |
8936 | temp2 = True; | |
8937 | } | |
196addbf | 8938 | if (arg1) (arg1)->CanonicalName = *arg2; |
d14a1e28 RD |
8939 | |
8940 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
8941 | { |
8942 | if (temp2) | |
8943 | delete arg2; | |
8944 | } | |
d14a1e28 RD |
8945 | return resultobj; |
8946 | fail: | |
7eae615b RD |
8947 | { |
8948 | if (temp2) | |
8949 | delete arg2; | |
8950 | } | |
d14a1e28 RD |
8951 | return NULL; |
8952 | } | |
8953 | ||
8954 | ||
8955 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject *resultobj; | |
8957 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8958 | wxString *result; |
d14a1e28 RD |
8959 | PyObject * obj0 = 0 ; |
8960 | char *kwnames[] = { | |
8961 | (char *) "self", NULL | |
8962 | }; | |
8963 | ||
8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 8967 | result = (wxString *)& ((arg1)->CanonicalName); |
d14a1e28 RD |
8968 | |
8969 | { | |
8970 | #if wxUSE_UNICODE | |
196addbf | 8971 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 8972 | #else |
196addbf | 8973 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
8974 | #endif |
8975 | } | |
8976 | return resultobj; | |
8977 | fail: | |
8978 | return NULL; | |
8979 | } | |
8980 | ||
8981 | ||
8982 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8983 | PyObject *resultobj; | |
8984 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 8985 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 8986 | bool temp2 = False ; |
d14a1e28 RD |
8987 | PyObject * obj0 = 0 ; |
8988 | PyObject * obj1 = 0 ; | |
8989 | char *kwnames[] = { | |
8990 | (char *) "self",(char *) "Description", NULL | |
8991 | }; | |
8992 | ||
8993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
8995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
8996 | { |
8997 | arg2 = wxString_in_helper(obj1); | |
8998 | if (arg2 == NULL) SWIG_fail; | |
8999 | temp2 = True; | |
9000 | } | |
196addbf | 9001 | if (arg1) (arg1)->Description = *arg2; |
d14a1e28 RD |
9002 | |
9003 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
9004 | { |
9005 | if (temp2) | |
9006 | delete arg2; | |
9007 | } | |
d14a1e28 RD |
9008 | return resultobj; |
9009 | fail: | |
7eae615b RD |
9010 | { |
9011 | if (temp2) | |
9012 | delete arg2; | |
9013 | } | |
d14a1e28 RD |
9014 | return NULL; |
9015 | } | |
9016 | ||
9017 | ||
9018 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9019 | PyObject *resultobj; | |
9020 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
196addbf | 9021 | wxString *result; |
d14a1e28 RD |
9022 | PyObject * obj0 = 0 ; |
9023 | char *kwnames[] = { | |
9024 | (char *) "self", NULL | |
9025 | }; | |
9026 | ||
9027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 9030 | result = (wxString *)& ((arg1)->Description); |
d14a1e28 RD |
9031 | |
9032 | { | |
9033 | #if wxUSE_UNICODE | |
196addbf | 9034 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 9035 | #else |
196addbf | 9036 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
9037 | #endif |
9038 | } | |
9039 | return resultobj; | |
9040 | fail: | |
9041 | return NULL; | |
9042 | } | |
9043 | ||
9044 | ||
9045 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
9046 | PyObject *obj; | |
9047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9048 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9049 | Py_INCREF(obj); | |
9050 | return Py_BuildValue((char *)""); | |
9051 | } | |
9052 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9053 | PyObject *resultobj; | |
41e2b43e | 9054 | int arg1 = (int) -1 ; |
d14a1e28 RD |
9055 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9056 | wxLocale *result; | |
994141e6 RD |
9057 | PyObject * obj0 = 0 ; |
9058 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
9059 | char *kwnames[] = { |
9060 | (char *) "language",(char *) "flags", NULL | |
9061 | }; | |
9062 | ||
994141e6 RD |
9063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; |
9064 | if (obj0) { | |
15afbcd0 RD |
9065 | arg1 = (int) SWIG_AsInt(obj0); |
9066 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9067 | } |
9068 | if (obj1) { | |
15afbcd0 RD |
9069 | arg2 = (int) SWIG_AsInt(obj1); |
9070 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9071 | } |
d14a1e28 RD |
9072 | { |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
41e2b43e | 9074 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d14a1e28 RD |
9075 | |
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
15afbcd0 | 9079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); |
d14a1e28 RD |
9080 | return resultobj; |
9081 | fail: | |
9082 | return NULL; | |
9083 | } | |
9084 | ||
9085 | ||
9086 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9087 | PyObject *resultobj; | |
9088 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9089 | PyObject * obj0 = 0 ; | |
9090 | char *kwnames[] = { | |
9091 | (char *) "self", NULL | |
9092 | }; | |
9093 | ||
9094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9097 | { |
9098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9099 | delete arg1; | |
9100 | ||
9101 | wxPyEndAllowThreads(__tstate); | |
9102 | if (PyErr_Occurred()) SWIG_fail; | |
9103 | } | |
9104 | Py_INCREF(Py_None); resultobj = Py_None; | |
9105 | return resultobj; | |
9106 | fail: | |
9107 | return NULL; | |
9108 | } | |
9109 | ||
9110 | ||
9111 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9112 | PyObject *resultobj; | |
9113 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9114 | wxString *arg2 = 0 ; | |
9115 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9116 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9117 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9118 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
e811c8ce RD |
9119 | bool arg5 = (bool) True ; |
9120 | bool arg6 = (bool) False ; | |
d14a1e28 | 9121 | bool result; |
e811c8ce RD |
9122 | bool temp2 = False ; |
9123 | bool temp3 = False ; | |
9124 | bool temp4 = False ; | |
d14a1e28 RD |
9125 | PyObject * obj0 = 0 ; |
9126 | PyObject * obj1 = 0 ; | |
9127 | PyObject * obj2 = 0 ; | |
9128 | PyObject * obj3 = 0 ; | |
9129 | PyObject * obj4 = 0 ; | |
9130 | PyObject * obj5 = 0 ; | |
9131 | char *kwnames[] = { | |
9132 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9133 | }; | |
9134 | ||
9135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
9136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9138 | { |
9139 | arg2 = wxString_in_helper(obj1); | |
9140 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9141 | temp2 = True; |
d14a1e28 RD |
9142 | } |
9143 | if (obj2) { | |
9144 | { | |
9145 | arg3 = wxString_in_helper(obj2); | |
9146 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9147 | temp3 = True; |
d14a1e28 RD |
9148 | } |
9149 | } | |
9150 | if (obj3) { | |
9151 | { | |
9152 | arg4 = wxString_in_helper(obj3); | |
9153 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9154 | temp4 = True; |
d14a1e28 RD |
9155 | } |
9156 | } | |
9157 | if (obj4) { | |
15afbcd0 RD |
9158 | arg5 = (bool) SWIG_AsBool(obj4); |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9160 | } |
9161 | if (obj5) { | |
15afbcd0 RD |
9162 | arg6 = (bool) SWIG_AsBool(obj5); |
9163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9164 | } |
9165 | { | |
9166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9167 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9168 | ||
9169 | wxPyEndAllowThreads(__tstate); | |
9170 | if (PyErr_Occurred()) SWIG_fail; | |
9171 | } | |
4f89f6a3 RD |
9172 | { |
9173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9174 | } | |
d14a1e28 RD |
9175 | { |
9176 | if (temp2) | |
9177 | delete arg2; | |
9178 | } | |
9179 | { | |
9180 | if (temp3) | |
9181 | delete arg3; | |
9182 | } | |
9183 | { | |
9184 | if (temp4) | |
9185 | delete arg4; | |
9186 | } | |
9187 | return resultobj; | |
9188 | fail: | |
9189 | { | |
9190 | if (temp2) | |
9191 | delete arg2; | |
9192 | } | |
9193 | { | |
9194 | if (temp3) | |
9195 | delete arg3; | |
9196 | } | |
9197 | { | |
9198 | if (temp4) | |
9199 | delete arg4; | |
9200 | } | |
9201 | return NULL; | |
9202 | } | |
9203 | ||
9204 | ||
9205 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9206 | PyObject *resultobj; | |
9207 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9208 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9209 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9210 | bool result; | |
9211 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9212 | PyObject * obj1 = 0 ; |
9213 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9214 | char *kwnames[] = { |
9215 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9216 | }; | |
9217 | ||
994141e6 | 9218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 9221 | if (obj1) { |
15afbcd0 RD |
9222 | arg2 = (int) SWIG_AsInt(obj1); |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9224 | } |
9225 | if (obj2) { | |
15afbcd0 RD |
9226 | arg3 = (int) SWIG_AsInt(obj2); |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9228 | } |
d14a1e28 RD |
9229 | { |
9230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9231 | result = (bool)(arg1)->Init(arg2,arg3); | |
9232 | ||
9233 | wxPyEndAllowThreads(__tstate); | |
9234 | if (PyErr_Occurred()) SWIG_fail; | |
9235 | } | |
4f89f6a3 RD |
9236 | { |
9237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9238 | } | |
d14a1e28 RD |
9239 | return resultobj; |
9240 | fail: | |
9241 | return NULL; | |
9242 | } | |
9243 | ||
9244 | ||
9245 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9246 | PyObject *resultobj; | |
9247 | int result; | |
9248 | char *kwnames[] = { | |
9249 | NULL | |
9250 | }; | |
9251 | ||
9252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9253 | { | |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9255 | result = (int)wxLocale::GetSystemLanguage(); | |
9256 | ||
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
15afbcd0 | 9260 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9261 | return resultobj; |
9262 | fail: | |
9263 | return NULL; | |
9264 | } | |
9265 | ||
9266 | ||
9267 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9268 | PyObject *resultobj; | |
9269 | int result; | |
9270 | char *kwnames[] = { | |
9271 | NULL | |
9272 | }; | |
9273 | ||
9274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9275 | { | |
9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9277 | result = (int)wxLocale::GetSystemEncoding(); | |
9278 | ||
9279 | wxPyEndAllowThreads(__tstate); | |
9280 | if (PyErr_Occurred()) SWIG_fail; | |
9281 | } | |
15afbcd0 | 9282 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9283 | return resultobj; |
9284 | fail: | |
9285 | return NULL; | |
9286 | } | |
9287 | ||
9288 | ||
9289 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9290 | PyObject *resultobj; | |
9291 | wxString result; | |
9292 | char *kwnames[] = { | |
9293 | NULL | |
9294 | }; | |
9295 | ||
9296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9297 | { | |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | result = wxLocale::GetSystemEncodingName(); | |
9300 | ||
9301 | wxPyEndAllowThreads(__tstate); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | } | |
9304 | { | |
9305 | #if wxUSE_UNICODE | |
9306 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9307 | #else | |
9308 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9309 | #endif | |
9310 | } | |
9311 | return resultobj; | |
9312 | fail: | |
9313 | return NULL; | |
9314 | } | |
9315 | ||
9316 | ||
9317 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9318 | PyObject *resultobj; | |
9319 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9320 | bool result; | |
9321 | PyObject * obj0 = 0 ; | |
9322 | char *kwnames[] = { | |
9323 | (char *) "self", NULL | |
9324 | }; | |
9325 | ||
9326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9329 | { |
9330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9331 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9332 | ||
9333 | wxPyEndAllowThreads(__tstate); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
4f89f6a3 RD |
9336 | { |
9337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9338 | } | |
d14a1e28 RD |
9339 | return resultobj; |
9340 | fail: | |
9341 | return NULL; | |
9342 | } | |
9343 | ||
9344 | ||
9345 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9346 | PyObject *resultobj; | |
9347 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9348 | wxString result; | |
9349 | PyObject * obj0 = 0 ; | |
9350 | char *kwnames[] = { | |
9351 | (char *) "self", NULL | |
9352 | }; | |
9353 | ||
9354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9357 | { |
9358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9359 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9360 | ||
9361 | wxPyEndAllowThreads(__tstate); | |
9362 | if (PyErr_Occurred()) SWIG_fail; | |
9363 | } | |
9364 | { | |
9365 | #if wxUSE_UNICODE | |
9366 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9367 | #else | |
9368 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9369 | #endif | |
9370 | } | |
9371 | return resultobj; | |
9372 | fail: | |
9373 | return NULL; | |
9374 | } | |
9375 | ||
9376 | ||
9377 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9378 | PyObject *resultobj; | |
9379 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9380 | int result; | |
9381 | PyObject * obj0 = 0 ; | |
9382 | char *kwnames[] = { | |
9383 | (char *) "self", NULL | |
9384 | }; | |
9385 | ||
9386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9389 | { |
9390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9391 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9392 | ||
9393 | wxPyEndAllowThreads(__tstate); | |
9394 | if (PyErr_Occurred()) SWIG_fail; | |
9395 | } | |
15afbcd0 | 9396 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9397 | return resultobj; |
9398 | fail: | |
9399 | return NULL; | |
9400 | } | |
9401 | ||
9402 | ||
9403 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9404 | PyObject *resultobj; | |
9405 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9406 | wxString result; | |
9407 | PyObject * obj0 = 0 ; | |
9408 | char *kwnames[] = { | |
9409 | (char *) "self", NULL | |
9410 | }; | |
9411 | ||
9412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9415 | { |
9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9417 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9418 | ||
9419 | wxPyEndAllowThreads(__tstate); | |
9420 | if (PyErr_Occurred()) SWIG_fail; | |
9421 | } | |
9422 | { | |
9423 | #if wxUSE_UNICODE | |
9424 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9425 | #else | |
9426 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9427 | #endif | |
9428 | } | |
9429 | return resultobj; | |
9430 | fail: | |
9431 | return NULL; | |
9432 | } | |
9433 | ||
9434 | ||
9435 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9436 | PyObject *resultobj; | |
9437 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9438 | wxString result; | |
9439 | PyObject * obj0 = 0 ; | |
9440 | char *kwnames[] = { | |
9441 | (char *) "self", NULL | |
9442 | }; | |
9443 | ||
9444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9447 | { |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
9454 | { | |
9455 | #if wxUSE_UNICODE | |
9456 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9457 | #else | |
9458 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9459 | #endif | |
9460 | } | |
9461 | return resultobj; | |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject *resultobj; | |
9469 | wxString *arg1 = 0 ; | |
e811c8ce | 9470 | bool temp1 = False ; |
d14a1e28 RD |
9471 | PyObject * obj0 = 0 ; |
9472 | char *kwnames[] = { | |
9473 | (char *) "prefix", NULL | |
9474 | }; | |
9475 | ||
9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9477 | { | |
9478 | arg1 = wxString_in_helper(obj0); | |
9479 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9480 | temp1 = True; |
d14a1e28 RD |
9481 | } |
9482 | { | |
9483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9484 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9485 | ||
9486 | wxPyEndAllowThreads(__tstate); | |
9487 | if (PyErr_Occurred()) SWIG_fail; | |
9488 | } | |
9489 | Py_INCREF(Py_None); resultobj = Py_None; | |
9490 | { | |
9491 | if (temp1) | |
9492 | delete arg1; | |
9493 | } | |
9494 | return resultobj; | |
9495 | fail: | |
9496 | { | |
9497 | if (temp1) | |
9498 | delete arg1; | |
9499 | } | |
9500 | return NULL; | |
9501 | } | |
9502 | ||
9503 | ||
9504 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9505 | PyObject *resultobj; | |
9506 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9507 | wxString *arg2 = 0 ; | |
9508 | bool result; | |
e811c8ce | 9509 | bool temp2 = False ; |
d14a1e28 RD |
9510 | PyObject * obj0 = 0 ; |
9511 | PyObject * obj1 = 0 ; | |
9512 | char *kwnames[] = { | |
9513 | (char *) "self",(char *) "szDomain", NULL | |
9514 | }; | |
9515 | ||
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9519 | { |
9520 | arg2 = wxString_in_helper(obj1); | |
9521 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9522 | temp2 = True; |
d14a1e28 RD |
9523 | } |
9524 | { | |
9525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9526 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9527 | ||
9528 | wxPyEndAllowThreads(__tstate); | |
9529 | if (PyErr_Occurred()) SWIG_fail; | |
9530 | } | |
4f89f6a3 RD |
9531 | { |
9532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9533 | } | |
d14a1e28 RD |
9534 | { |
9535 | if (temp2) | |
9536 | delete arg2; | |
9537 | } | |
9538 | return resultobj; | |
9539 | fail: | |
9540 | { | |
9541 | if (temp2) | |
9542 | delete arg2; | |
9543 | } | |
9544 | return NULL; | |
9545 | } | |
9546 | ||
9547 | ||
9548 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9549 | PyObject *resultobj; | |
9550 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9551 | wxString *arg2 = 0 ; | |
9552 | bool result; | |
e811c8ce | 9553 | bool temp2 = False ; |
d14a1e28 RD |
9554 | PyObject * obj0 = 0 ; |
9555 | PyObject * obj1 = 0 ; | |
9556 | char *kwnames[] = { | |
9557 | (char *) "self",(char *) "szDomain", NULL | |
9558 | }; | |
9559 | ||
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9563 | { |
9564 | arg2 = wxString_in_helper(obj1); | |
9565 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9566 | temp2 = True; |
d14a1e28 RD |
9567 | } |
9568 | { | |
9569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9570 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9571 | ||
9572 | wxPyEndAllowThreads(__tstate); | |
9573 | if (PyErr_Occurred()) SWIG_fail; | |
9574 | } | |
4f89f6a3 RD |
9575 | { |
9576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9577 | } | |
d14a1e28 RD |
9578 | { |
9579 | if (temp2) | |
9580 | delete arg2; | |
9581 | } | |
9582 | return resultobj; | |
9583 | fail: | |
9584 | { | |
9585 | if (temp2) | |
9586 | delete arg2; | |
9587 | } | |
9588 | return NULL; | |
9589 | } | |
9590 | ||
9591 | ||
9592 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9593 | PyObject *resultobj; | |
9594 | int arg1 ; | |
9595 | wxLanguageInfo *result; | |
994141e6 | 9596 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9597 | char *kwnames[] = { |
9598 | (char *) "lang", NULL | |
9599 | }; | |
9600 | ||
994141e6 | 9601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
9602 | arg1 = (int) SWIG_AsInt(obj0); |
9603 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9604 | { |
9605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9606 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9607 | ||
9608 | wxPyEndAllowThreads(__tstate); | |
9609 | if (PyErr_Occurred()) SWIG_fail; | |
9610 | } | |
15afbcd0 | 9611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
9612 | return resultobj; |
9613 | fail: | |
9614 | return NULL; | |
9615 | } | |
9616 | ||
9617 | ||
9618 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9619 | PyObject *resultobj; | |
9620 | int arg1 ; | |
9621 | wxString result; | |
994141e6 | 9622 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
9623 | char *kwnames[] = { |
9624 | (char *) "lang", NULL | |
9625 | }; | |
9626 | ||
994141e6 | 9627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
9628 | arg1 = (int) SWIG_AsInt(obj0); |
9629 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9630 | { |
9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9632 | result = wxLocale::GetLanguageName(arg1); | |
9633 | ||
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
9637 | { | |
9638 | #if wxUSE_UNICODE | |
9639 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9640 | #else | |
9641 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9642 | #endif | |
9643 | } | |
9644 | return resultobj; | |
9645 | fail: | |
9646 | return NULL; | |
9647 | } | |
9648 | ||
9649 | ||
9650 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9651 | PyObject *resultobj; | |
9652 | wxString *arg1 = 0 ; | |
9653 | wxLanguageInfo *result; | |
e811c8ce | 9654 | bool temp1 = False ; |
d14a1e28 RD |
9655 | PyObject * obj0 = 0 ; |
9656 | char *kwnames[] = { | |
9657 | (char *) "locale", NULL | |
9658 | }; | |
9659 | ||
9660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9661 | { | |
9662 | arg1 = wxString_in_helper(obj0); | |
9663 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9664 | temp1 = True; |
d14a1e28 RD |
9665 | } |
9666 | { | |
9667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9668 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9669 | ||
9670 | wxPyEndAllowThreads(__tstate); | |
9671 | if (PyErr_Occurred()) SWIG_fail; | |
9672 | } | |
15afbcd0 | 9673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); |
d14a1e28 RD |
9674 | { |
9675 | if (temp1) | |
9676 | delete arg1; | |
9677 | } | |
9678 | return resultobj; | |
9679 | fail: | |
9680 | { | |
9681 | if (temp1) | |
9682 | delete arg1; | |
9683 | } | |
9684 | return NULL; | |
9685 | } | |
9686 | ||
9687 | ||
9688 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9689 | PyObject *resultobj; | |
9690 | wxLanguageInfo *arg1 = 0 ; | |
9691 | PyObject * obj0 = 0 ; | |
9692 | char *kwnames[] = { | |
9693 | (char *) "info", NULL | |
9694 | }; | |
9695 | ||
9696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, |
9698 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9699 | SWIG_fail; | |
d14a1e28 | 9700 | if (arg1 == NULL) { |
15afbcd0 RD |
9701 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9702 | SWIG_fail; | |
d14a1e28 RD |
9703 | } |
9704 | { | |
9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9706 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9707 | ||
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
9711 | Py_INCREF(Py_None); resultobj = Py_None; | |
9712 | return resultobj; | |
9713 | fail: | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
9718 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9719 | PyObject *resultobj; | |
9720 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9721 | wxString *arg2 = 0 ; | |
9722 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9723 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9724 | wxString result; | |
e811c8ce RD |
9725 | bool temp2 = False ; |
9726 | bool temp3 = False ; | |
d14a1e28 RD |
9727 | PyObject * obj0 = 0 ; |
9728 | PyObject * obj1 = 0 ; | |
9729 | PyObject * obj2 = 0 ; | |
9730 | char *kwnames[] = { | |
9731 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9732 | }; | |
9733 | ||
9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9737 | { |
9738 | arg2 = wxString_in_helper(obj1); | |
9739 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9740 | temp2 = True; |
d14a1e28 RD |
9741 | } |
9742 | if (obj2) { | |
9743 | { | |
9744 | arg3 = wxString_in_helper(obj2); | |
9745 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9746 | temp3 = True; |
d14a1e28 RD |
9747 | } |
9748 | } | |
9749 | { | |
9750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9751 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9752 | ||
9753 | wxPyEndAllowThreads(__tstate); | |
9754 | if (PyErr_Occurred()) SWIG_fail; | |
9755 | } | |
9756 | { | |
9757 | #if wxUSE_UNICODE | |
9758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9759 | #else | |
9760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9761 | #endif | |
9762 | } | |
9763 | { | |
9764 | if (temp2) | |
9765 | delete arg2; | |
9766 | } | |
9767 | { | |
9768 | if (temp3) | |
9769 | delete arg3; | |
9770 | } | |
9771 | return resultobj; | |
9772 | fail: | |
9773 | { | |
9774 | if (temp2) | |
9775 | delete arg2; | |
9776 | } | |
9777 | { | |
9778 | if (temp3) | |
9779 | delete arg3; | |
9780 | } | |
9781 | return NULL; | |
9782 | } | |
9783 | ||
9784 | ||
9785 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9786 | PyObject *resultobj; | |
9787 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9788 | wxString *result; | |
9789 | PyObject * obj0 = 0 ; | |
9790 | char *kwnames[] = { | |
9791 | (char *) "self", NULL | |
9792 | }; | |
9793 | ||
9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, |
9796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9797 | { |
9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9799 | { | |
9800 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9801 | result = (wxString *) &_result_ref; | |
9802 | } | |
9803 | ||
9804 | wxPyEndAllowThreads(__tstate); | |
9805 | if (PyErr_Occurred()) SWIG_fail; | |
9806 | } | |
cc6dd355 RD |
9807 | { |
9808 | #if wxUSE_UNICODE | |
9809 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9810 | #else | |
9811 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9812 | #endif | |
9813 | } | |
d14a1e28 RD |
9814 | return resultobj; |
9815 | fail: | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9821 | PyObject *obj; | |
9822 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9823 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9824 | Py_INCREF(obj); | |
9825 | return Py_BuildValue((char *)""); | |
9826 | } | |
9827 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9828 | PyObject *resultobj; | |
9829 | wxLocale *result; | |
9830 | char *kwnames[] = { | |
9831 | NULL | |
9832 | }; | |
9833 | ||
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9835 | { | |
9836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9837 | result = (wxLocale *)wxGetLocale(); | |
9838 | ||
9839 | wxPyEndAllowThreads(__tstate); | |
9840 | if (PyErr_Occurred()) SWIG_fail; | |
9841 | } | |
15afbcd0 | 9842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); |
d14a1e28 RD |
9843 | return resultobj; |
9844 | fail: | |
9845 | return NULL; | |
9846 | } | |
9847 | ||
9848 | ||
9849 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9850 | PyObject *resultobj; | |
9851 | wxString *arg1 = 0 ; | |
9852 | wxString result; | |
e811c8ce | 9853 | bool temp1 = False ; |
d14a1e28 RD |
9854 | PyObject * obj0 = 0 ; |
9855 | ||
9856 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9857 | { | |
9858 | arg1 = wxString_in_helper(obj0); | |
9859 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9860 | temp1 = True; |
d14a1e28 RD |
9861 | } |
9862 | { | |
9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9864 | result = wxGetTranslation((wxString const &)*arg1); | |
9865 | ||
9866 | wxPyEndAllowThreads(__tstate); | |
9867 | if (PyErr_Occurred()) SWIG_fail; | |
9868 | } | |
9869 | { | |
9870 | #if wxUSE_UNICODE | |
9871 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9872 | #else | |
9873 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9874 | #endif | |
9875 | } | |
9876 | { | |
9877 | if (temp1) | |
9878 | delete arg1; | |
9879 | } | |
9880 | return resultobj; | |
9881 | fail: | |
9882 | { | |
9883 | if (temp1) | |
9884 | delete arg1; | |
9885 | } | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
9890 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9891 | PyObject *resultobj; | |
9892 | wxString *arg1 = 0 ; | |
9893 | wxString *arg2 = 0 ; | |
9894 | size_t arg3 ; | |
9895 | wxString result; | |
e811c8ce RD |
9896 | bool temp1 = False ; |
9897 | bool temp2 = False ; | |
d14a1e28 RD |
9898 | PyObject * obj0 = 0 ; |
9899 | PyObject * obj1 = 0 ; | |
9900 | PyObject * obj2 = 0 ; | |
9901 | ||
9902 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9903 | { | |
9904 | arg1 = wxString_in_helper(obj0); | |
9905 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9906 | temp1 = True; |
d14a1e28 RD |
9907 | } |
9908 | { | |
9909 | arg2 = wxString_in_helper(obj1); | |
9910 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9911 | temp2 = True; |
d14a1e28 | 9912 | } |
15afbcd0 RD |
9913 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9915 | { |
9916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9917 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9918 | ||
9919 | wxPyEndAllowThreads(__tstate); | |
9920 | if (PyErr_Occurred()) SWIG_fail; | |
9921 | } | |
9922 | { | |
9923 | #if wxUSE_UNICODE | |
9924 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9925 | #else | |
9926 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9927 | #endif | |
9928 | } | |
9929 | { | |
9930 | if (temp1) | |
9931 | delete arg1; | |
9932 | } | |
9933 | { | |
9934 | if (temp2) | |
9935 | delete arg2; | |
9936 | } | |
9937 | return resultobj; | |
9938 | fail: | |
9939 | { | |
9940 | if (temp1) | |
9941 | delete arg1; | |
9942 | } | |
9943 | { | |
9944 | if (temp2) | |
9945 | delete arg2; | |
9946 | } | |
9947 | return NULL; | |
9948 | } | |
9949 | ||
9950 | ||
9951 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9952 | int argc; | |
9953 | PyObject *argv[4]; | |
9954 | int ii; | |
9955 | ||
9956 | argc = PyObject_Length(args); | |
9957 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9958 | argv[ii] = PyTuple_GetItem(args,ii); | |
9959 | } | |
9960 | if (argc == 1) { | |
9961 | int _v; | |
9962 | { | |
4d5c3d91 | 9963 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9964 | } |
9965 | if (_v) { | |
9966 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9967 | } | |
9968 | } | |
9969 | if (argc == 3) { | |
9970 | int _v; | |
9971 | { | |
4d5c3d91 | 9972 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); |
d14a1e28 RD |
9973 | } |
9974 | if (_v) { | |
9975 | { | |
4d5c3d91 | 9976 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); |
d14a1e28 RD |
9977 | } |
9978 | if (_v) { | |
15afbcd0 | 9979 | _v = SWIG_CheckUnsignedLong(argv[2]); |
d14a1e28 RD |
9980 | if (_v) { |
9981 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9982 | } | |
9983 | } | |
9984 | } | |
9985 | } | |
9986 | ||
9987 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9988 | return NULL; | |
9989 | } | |
9990 | ||
9991 | ||
9992 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9993 | PyObject *resultobj; | |
9994 | wxEncodingConverter *result; | |
9995 | char *kwnames[] = { | |
9996 | NULL | |
9997 | }; | |
9998 | ||
9999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10000 | { | |
10001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10002 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10003 | ||
10004 | wxPyEndAllowThreads(__tstate); | |
10005 | if (PyErr_Occurred()) SWIG_fail; | |
10006 | } | |
15afbcd0 | 10007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); |
d14a1e28 RD |
10008 | return resultobj; |
10009 | fail: | |
10010 | return NULL; | |
10011 | } | |
10012 | ||
10013 | ||
10014 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10015 | PyObject *resultobj; | |
10016 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10017 | PyObject * obj0 = 0 ; | |
10018 | char *kwnames[] = { | |
10019 | (char *) "self", NULL | |
10020 | }; | |
10021 | ||
10022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10025 | { |
10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10027 | delete arg1; | |
10028 | ||
10029 | wxPyEndAllowThreads(__tstate); | |
10030 | if (PyErr_Occurred()) SWIG_fail; | |
10031 | } | |
10032 | Py_INCREF(Py_None); resultobj = Py_None; | |
10033 | return resultobj; | |
10034 | fail: | |
10035 | return NULL; | |
10036 | } | |
10037 | ||
10038 | ||
10039 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10040 | PyObject *resultobj; | |
10041 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10042 | int arg2 ; | |
10043 | int arg3 ; | |
10044 | int arg4 = (int) wxCONVERT_STRICT ; | |
10045 | bool result; | |
10046 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10047 | PyObject * obj1 = 0 ; |
10048 | PyObject * obj2 = 0 ; | |
10049 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10050 | char *kwnames[] = { |
10051 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10052 | }; | |
10053 | ||
994141e6 | 10054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10057 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10058 | if (PyErr_Occurred()) SWIG_fail; | |
10059 | arg3 = (wxFontEncoding) SWIG_AsInt(obj2); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10061 | if (obj3) { |
15afbcd0 RD |
10062 | arg4 = (int) SWIG_AsInt(obj3); |
10063 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10064 | } |
d14a1e28 RD |
10065 | { |
10066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10067 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10068 | ||
10069 | wxPyEndAllowThreads(__tstate); | |
10070 | if (PyErr_Occurred()) SWIG_fail; | |
10071 | } | |
4f89f6a3 RD |
10072 | { |
10073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10074 | } | |
d14a1e28 RD |
10075 | return resultobj; |
10076 | fail: | |
10077 | return NULL; | |
10078 | } | |
10079 | ||
10080 | ||
10081 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10082 | PyObject *resultobj; | |
10083 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10084 | wxString *arg2 = 0 ; | |
10085 | wxString result; | |
e811c8ce | 10086 | bool temp2 = False ; |
d14a1e28 RD |
10087 | PyObject * obj0 = 0 ; |
10088 | PyObject * obj1 = 0 ; | |
10089 | char *kwnames[] = { | |
10090 | (char *) "self",(char *) "input", NULL | |
10091 | }; | |
10092 | ||
10093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, |
10095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10096 | { |
10097 | arg2 = wxString_in_helper(obj1); | |
10098 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10099 | temp2 = True; |
d14a1e28 RD |
10100 | } |
10101 | { | |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10103 | result = (arg1)->Convert((wxString const &)*arg2); | |
10104 | ||
10105 | wxPyEndAllowThreads(__tstate); | |
10106 | if (PyErr_Occurred()) SWIG_fail; | |
10107 | } | |
10108 | { | |
10109 | #if wxUSE_UNICODE | |
10110 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10111 | #else | |
10112 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10113 | #endif | |
10114 | } | |
10115 | { | |
10116 | if (temp2) | |
10117 | delete arg2; | |
10118 | } | |
10119 | return resultobj; | |
10120 | fail: | |
10121 | { | |
10122 | if (temp2) | |
10123 | delete arg2; | |
10124 | } | |
10125 | return NULL; | |
10126 | } | |
10127 | ||
10128 | ||
10129 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10130 | PyObject *resultobj; | |
10131 | int arg1 ; | |
10132 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10133 | wxFontEncodingArray result; | |
994141e6 RD |
10134 | PyObject * obj0 = 0 ; |
10135 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10136 | char *kwnames[] = { |
10137 | (char *) "enc",(char *) "platform", NULL | |
10138 | }; | |
10139 | ||
994141e6 | 10140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10141 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10142 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10143 | if (obj1) { |
15afbcd0 RD |
10144 | arg2 = (int) SWIG_AsInt(obj1); |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10146 | } |
d14a1e28 RD |
10147 | { |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10149 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10150 | ||
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) SWIG_fail; | |
10153 | } | |
10154 | { | |
10155 | resultobj = PyList_New(0); | |
10156 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10157 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10158 | PyList_Append(resultobj, number); | |
10159 | Py_DECREF(number); | |
10160 | } | |
10161 | } | |
10162 | return resultobj; | |
10163 | fail: | |
10164 | return NULL; | |
10165 | } | |
10166 | ||
10167 | ||
10168 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10169 | PyObject *resultobj; | |
10170 | int arg1 ; | |
10171 | wxFontEncodingArray result; | |
994141e6 | 10172 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10173 | char *kwnames[] = { |
10174 | (char *) "enc", NULL | |
10175 | }; | |
10176 | ||
994141e6 | 10177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
10178 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10180 | { |
10181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10182 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10183 | ||
10184 | wxPyEndAllowThreads(__tstate); | |
10185 | if (PyErr_Occurred()) SWIG_fail; | |
10186 | } | |
10187 | { | |
10188 | resultobj = PyList_New(0); | |
10189 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10190 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10191 | PyList_Append(resultobj, number); | |
10192 | Py_DECREF(number); | |
10193 | } | |
10194 | } | |
10195 | return resultobj; | |
10196 | fail: | |
10197 | return NULL; | |
10198 | } | |
10199 | ||
10200 | ||
10201 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10202 | PyObject *resultobj; | |
10203 | int arg1 ; | |
10204 | int arg2 ; | |
10205 | bool result; | |
994141e6 RD |
10206 | PyObject * obj0 = 0 ; |
10207 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
10208 | char *kwnames[] = { |
10209 | (char *) "encIn",(char *) "encOut", NULL | |
10210 | }; | |
10211 | ||
994141e6 | 10212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10213 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10217 | { |
10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10219 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10220 | ||
10221 | wxPyEndAllowThreads(__tstate); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | } | |
4f89f6a3 RD |
10224 | { |
10225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10226 | } | |
d14a1e28 RD |
10227 | return resultobj; |
10228 | fail: | |
10229 | return NULL; | |
10230 | } | |
10231 | ||
10232 | ||
10233 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10234 | PyObject *obj; | |
10235 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10236 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10237 | Py_INCREF(obj); | |
10238 | return Py_BuildValue((char *)""); | |
10239 | } | |
10240 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10241 | PyObject *resultobj; | |
10242 | wxDC *arg1 = (wxDC *) 0 ; | |
10243 | PyObject * obj0 = 0 ; | |
10244 | char *kwnames[] = { | |
10245 | (char *) "self", NULL | |
10246 | }; | |
10247 | ||
10248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10251 | { |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | delete arg1; | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
10258 | Py_INCREF(Py_None); resultobj = Py_None; | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10266 | PyObject *resultobj; | |
10267 | wxDC *arg1 = (wxDC *) 0 ; | |
10268 | PyObject * obj0 = 0 ; | |
10269 | char *kwnames[] = { | |
10270 | (char *) "self", NULL | |
10271 | }; | |
10272 | ||
10273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10276 | { |
10277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10278 | (arg1)->BeginDrawing(); | |
10279 | ||
10280 | wxPyEndAllowThreads(__tstate); | |
10281 | if (PyErr_Occurred()) SWIG_fail; | |
10282 | } | |
10283 | Py_INCREF(Py_None); resultobj = Py_None; | |
10284 | return resultobj; | |
10285 | fail: | |
10286 | return NULL; | |
10287 | } | |
10288 | ||
10289 | ||
10290 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10291 | PyObject *resultobj; | |
10292 | wxDC *arg1 = (wxDC *) 0 ; | |
10293 | PyObject * obj0 = 0 ; | |
10294 | char *kwnames[] = { | |
10295 | (char *) "self", NULL | |
10296 | }; | |
10297 | ||
10298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10301 | { |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | (arg1)->EndDrawing(); | |
10304 | ||
10305 | wxPyEndAllowThreads(__tstate); | |
10306 | if (PyErr_Occurred()) SWIG_fail; | |
10307 | } | |
10308 | Py_INCREF(Py_None); resultobj = Py_None; | |
10309 | return resultobj; | |
10310 | fail: | |
10311 | return NULL; | |
10312 | } | |
10313 | ||
10314 | ||
03e37cd5 | 10315 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10316 | PyObject *resultobj; |
10317 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10318 | int arg2 ; |
10319 | int arg3 ; | |
d14a1e28 RD |
10320 | wxColour *arg4 = 0 ; |
10321 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10322 | bool result; | |
10323 | wxColour temp4 ; | |
10324 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10325 | PyObject * obj1 = 0 ; |
10326 | PyObject * obj2 = 0 ; | |
d14a1e28 | 10327 | PyObject * obj3 = 0 ; |
994141e6 | 10328 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10329 | char *kwnames[] = { |
10330 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10331 | }; | |
10332 | ||
03e37cd5 | 10333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10336 | arg2 = (int) SWIG_AsInt(obj1); | |
10337 | if (PyErr_Occurred()) SWIG_fail; | |
10338 | arg3 = (int) SWIG_AsInt(obj2); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10340 | { |
10341 | arg4 = &temp4; | |
10342 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10343 | } | |
994141e6 | 10344 | if (obj4) { |
15afbcd0 RD |
10345 | arg5 = (int) SWIG_AsInt(obj4); |
10346 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10347 | } |
d14a1e28 RD |
10348 | { |
10349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10350 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10351 | ||
10352 | wxPyEndAllowThreads(__tstate); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
10354 | } | |
4f89f6a3 RD |
10355 | { |
10356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10357 | } | |
d14a1e28 RD |
10358 | return resultobj; |
10359 | fail: | |
10360 | return NULL; | |
10361 | } | |
10362 | ||
10363 | ||
03e37cd5 | 10364 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10365 | PyObject *resultobj; |
10366 | wxDC *arg1 = (wxDC *) 0 ; | |
10367 | wxPoint *arg2 = 0 ; | |
10368 | wxColour *arg3 = 0 ; | |
10369 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10370 | bool result; | |
10371 | wxPoint temp2 ; | |
10372 | wxColour temp3 ; | |
10373 | PyObject * obj0 = 0 ; | |
10374 | PyObject * obj1 = 0 ; | |
10375 | PyObject * obj2 = 0 ; | |
994141e6 | 10376 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
10377 | char *kwnames[] = { |
10378 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10379 | }; | |
10380 | ||
03e37cd5 | 10381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10384 | { |
10385 | arg2 = &temp2; | |
10386 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10387 | } | |
10388 | { | |
10389 | arg3 = &temp3; | |
10390 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10391 | } | |
994141e6 | 10392 | if (obj3) { |
15afbcd0 RD |
10393 | arg4 = (int) SWIG_AsInt(obj3); |
10394 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10395 | } |
d14a1e28 RD |
10396 | { |
10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10398 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10399 | ||
10400 | wxPyEndAllowThreads(__tstate); | |
10401 | if (PyErr_Occurred()) SWIG_fail; | |
10402 | } | |
4f89f6a3 RD |
10403 | { |
10404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10405 | } | |
d14a1e28 RD |
10406 | return resultobj; |
10407 | fail: | |
10408 | return NULL; | |
10409 | } | |
10410 | ||
10411 | ||
03e37cd5 | 10412 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10413 | PyObject *resultobj; |
10414 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10415 | int arg2 ; |
10416 | int arg3 ; | |
d14a1e28 RD |
10417 | wxColour result; |
10418 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10419 | PyObject * obj1 = 0 ; |
10420 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10421 | char *kwnames[] = { |
10422 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10423 | }; | |
10424 | ||
03e37cd5 | 10425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10428 | arg2 = (int) SWIG_AsInt(obj1); | |
10429 | if (PyErr_Occurred()) SWIG_fail; | |
10430 | arg3 = (int) SWIG_AsInt(obj2); | |
10431 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10432 | { |
10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 10434 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d14a1e28 RD |
10435 | |
10436 | wxPyEndAllowThreads(__tstate); | |
10437 | if (PyErr_Occurred()) SWIG_fail; | |
10438 | } | |
10439 | { | |
10440 | wxColour * resultptr; | |
10441 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10443 | } |
10444 | return resultobj; | |
10445 | fail: | |
10446 | return NULL; | |
10447 | } | |
10448 | ||
10449 | ||
03e37cd5 | 10450 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10451 | PyObject *resultobj; |
10452 | wxDC *arg1 = (wxDC *) 0 ; | |
10453 | wxPoint *arg2 = 0 ; | |
10454 | wxColour result; | |
10455 | wxPoint temp2 ; | |
10456 | PyObject * obj0 = 0 ; | |
10457 | PyObject * obj1 = 0 ; | |
10458 | char *kwnames[] = { | |
10459 | (char *) "self",(char *) "pt", NULL | |
10460 | }; | |
10461 | ||
03e37cd5 | 10462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10465 | { |
10466 | arg2 = &temp2; | |
10467 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10468 | } | |
10469 | { | |
10470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 10471 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d14a1e28 RD |
10472 | |
10473 | wxPyEndAllowThreads(__tstate); | |
10474 | if (PyErr_Occurred()) SWIG_fail; | |
10475 | } | |
10476 | { | |
10477 | wxColour * resultptr; | |
10478 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 10479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
10480 | } |
10481 | return resultobj; | |
10482 | fail: | |
10483 | return NULL; | |
10484 | } | |
10485 | ||
10486 | ||
03e37cd5 | 10487 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10488 | PyObject *resultobj; |
10489 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10490 | int arg2 ; |
10491 | int arg3 ; | |
10492 | int arg4 ; | |
10493 | int arg5 ; | |
d14a1e28 | 10494 | PyObject * obj0 = 0 ; |
994141e6 RD |
10495 | PyObject * obj1 = 0 ; |
10496 | PyObject * obj2 = 0 ; | |
10497 | PyObject * obj3 = 0 ; | |
10498 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10499 | char *kwnames[] = { |
10500 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10501 | }; | |
10502 | ||
03e37cd5 | 10503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10506 | arg2 = (int) SWIG_AsInt(obj1); | |
10507 | if (PyErr_Occurred()) SWIG_fail; | |
10508 | arg3 = (int) SWIG_AsInt(obj2); | |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
10510 | arg4 = (int) SWIG_AsInt(obj3); | |
10511 | if (PyErr_Occurred()) SWIG_fail; | |
10512 | arg5 = (int) SWIG_AsInt(obj4); | |
10513 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10514 | { |
10515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10516 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10517 | ||
10518 | wxPyEndAllowThreads(__tstate); | |
10519 | if (PyErr_Occurred()) SWIG_fail; | |
10520 | } | |
10521 | Py_INCREF(Py_None); resultobj = Py_None; | |
10522 | return resultobj; | |
10523 | fail: | |
10524 | return NULL; | |
10525 | } | |
10526 | ||
10527 | ||
03e37cd5 | 10528 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10529 | PyObject *resultobj; |
10530 | wxDC *arg1 = (wxDC *) 0 ; | |
10531 | wxPoint *arg2 = 0 ; | |
10532 | wxPoint *arg3 = 0 ; | |
10533 | wxPoint temp2 ; | |
10534 | wxPoint temp3 ; | |
10535 | PyObject * obj0 = 0 ; | |
10536 | PyObject * obj1 = 0 ; | |
10537 | PyObject * obj2 = 0 ; | |
10538 | char *kwnames[] = { | |
10539 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10540 | }; | |
10541 | ||
03e37cd5 | 10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10545 | { |
10546 | arg2 = &temp2; | |
10547 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10548 | } | |
10549 | { | |
10550 | arg3 = &temp3; | |
10551 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10552 | } | |
10553 | { | |
10554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10555 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10556 | ||
10557 | wxPyEndAllowThreads(__tstate); | |
10558 | if (PyErr_Occurred()) SWIG_fail; | |
10559 | } | |
10560 | Py_INCREF(Py_None); resultobj = Py_None; | |
10561 | return resultobj; | |
10562 | fail: | |
10563 | return NULL; | |
10564 | } | |
10565 | ||
10566 | ||
03e37cd5 | 10567 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10568 | PyObject *resultobj; |
10569 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10570 | int arg2 ; |
10571 | int arg3 ; | |
d14a1e28 | 10572 | PyObject * obj0 = 0 ; |
994141e6 RD |
10573 | PyObject * obj1 = 0 ; |
10574 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10575 | char *kwnames[] = { |
10576 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10577 | }; | |
10578 | ||
03e37cd5 | 10579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10582 | arg2 = (int) SWIG_AsInt(obj1); | |
10583 | if (PyErr_Occurred()) SWIG_fail; | |
10584 | arg3 = (int) SWIG_AsInt(obj2); | |
10585 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10586 | { |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10588 | (arg1)->CrossHair(arg2,arg3); | |
10589 | ||
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) SWIG_fail; | |
10592 | } | |
10593 | Py_INCREF(Py_None); resultobj = Py_None; | |
10594 | return resultobj; | |
10595 | fail: | |
10596 | return NULL; | |
10597 | } | |
10598 | ||
10599 | ||
03e37cd5 | 10600 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10601 | PyObject *resultobj; |
10602 | wxDC *arg1 = (wxDC *) 0 ; | |
10603 | wxPoint *arg2 = 0 ; | |
10604 | wxPoint temp2 ; | |
10605 | PyObject * obj0 = 0 ; | |
10606 | PyObject * obj1 = 0 ; | |
10607 | char *kwnames[] = { | |
10608 | (char *) "self",(char *) "pt", NULL | |
10609 | }; | |
10610 | ||
03e37cd5 | 10611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10614 | { |
10615 | arg2 = &temp2; | |
10616 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10617 | } | |
10618 | { | |
10619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10620 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10621 | ||
10622 | wxPyEndAllowThreads(__tstate); | |
10623 | if (PyErr_Occurred()) SWIG_fail; | |
10624 | } | |
10625 | Py_INCREF(Py_None); resultobj = Py_None; | |
10626 | return resultobj; | |
10627 | fail: | |
10628 | return NULL; | |
10629 | } | |
10630 | ||
10631 | ||
03e37cd5 | 10632 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10633 | PyObject *resultobj; |
10634 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10635 | int arg2 ; |
10636 | int arg3 ; | |
10637 | int arg4 ; | |
10638 | int arg5 ; | |
10639 | int arg6 ; | |
10640 | int arg7 ; | |
d14a1e28 | 10641 | PyObject * obj0 = 0 ; |
994141e6 RD |
10642 | PyObject * obj1 = 0 ; |
10643 | PyObject * obj2 = 0 ; | |
10644 | PyObject * obj3 = 0 ; | |
10645 | PyObject * obj4 = 0 ; | |
10646 | PyObject * obj5 = 0 ; | |
10647 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10648 | char *kwnames[] = { |
10649 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10650 | }; | |
10651 | ||
03e37cd5 | 10652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10655 | arg2 = (int) SWIG_AsInt(obj1); | |
10656 | if (PyErr_Occurred()) SWIG_fail; | |
10657 | arg3 = (int) SWIG_AsInt(obj2); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | arg4 = (int) SWIG_AsInt(obj3); | |
10660 | if (PyErr_Occurred()) SWIG_fail; | |
10661 | arg5 = (int) SWIG_AsInt(obj4); | |
10662 | if (PyErr_Occurred()) SWIG_fail; | |
10663 | arg6 = (int) SWIG_AsInt(obj5); | |
10664 | if (PyErr_Occurred()) SWIG_fail; | |
10665 | arg7 = (int) SWIG_AsInt(obj6); | |
10666 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10667 | { |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10670 | ||
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | Py_INCREF(Py_None); resultobj = Py_None; | |
10675 | return resultobj; | |
10676 | fail: | |
10677 | return NULL; | |
10678 | } | |
10679 | ||
10680 | ||
03e37cd5 | 10681 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10682 | PyObject *resultobj; |
10683 | wxDC *arg1 = (wxDC *) 0 ; | |
10684 | wxPoint *arg2 = 0 ; | |
10685 | wxPoint *arg3 = 0 ; | |
10686 | wxPoint *arg4 = 0 ; | |
10687 | wxPoint temp2 ; | |
10688 | wxPoint temp3 ; | |
10689 | wxPoint temp4 ; | |
10690 | PyObject * obj0 = 0 ; | |
10691 | PyObject * obj1 = 0 ; | |
10692 | PyObject * obj2 = 0 ; | |
10693 | PyObject * obj3 = 0 ; | |
10694 | char *kwnames[] = { | |
10695 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10696 | }; | |
10697 | ||
03e37cd5 | 10698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10701 | { |
10702 | arg2 = &temp2; | |
10703 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10704 | } | |
10705 | { | |
10706 | arg3 = &temp3; | |
10707 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10708 | } | |
10709 | { | |
10710 | arg4 = &temp4; | |
10711 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10712 | } | |
10713 | { | |
10714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10715 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10716 | ||
10717 | wxPyEndAllowThreads(__tstate); | |
10718 | if (PyErr_Occurred()) SWIG_fail; | |
10719 | } | |
10720 | Py_INCREF(Py_None); resultobj = Py_None; | |
10721 | return resultobj; | |
10722 | fail: | |
10723 | return NULL; | |
10724 | } | |
10725 | ||
10726 | ||
03e37cd5 | 10727 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10728 | PyObject *resultobj; |
10729 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10730 | int arg2 ; |
10731 | int arg3 ; | |
10732 | int arg4 ; | |
10733 | int arg5 ; | |
d14a1e28 | 10734 | PyObject * obj0 = 0 ; |
994141e6 RD |
10735 | PyObject * obj1 = 0 ; |
10736 | PyObject * obj2 = 0 ; | |
10737 | PyObject * obj3 = 0 ; | |
10738 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10739 | char *kwnames[] = { |
10740 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10741 | }; | |
10742 | ||
03e37cd5 | 10743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10746 | arg2 = (int) SWIG_AsInt(obj1); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | arg3 = (int) SWIG_AsInt(obj2); | |
10749 | if (PyErr_Occurred()) SWIG_fail; | |
10750 | arg4 = (int) SWIG_AsInt(obj3); | |
10751 | if (PyErr_Occurred()) SWIG_fail; | |
10752 | arg5 = (int) SWIG_AsInt(obj4); | |
10753 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
10754 | { |
10755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10756 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10757 | ||
10758 | wxPyEndAllowThreads(__tstate); | |
10759 | if (PyErr_Occurred()) SWIG_fail; | |
10760 | } | |
10761 | Py_INCREF(Py_None); resultobj = Py_None; | |
10762 | return resultobj; | |
10763 | fail: | |
10764 | return NULL; | |
10765 | } | |
10766 | ||
10767 | ||
03e37cd5 | 10768 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10769 | PyObject *resultobj; |
10770 | wxDC *arg1 = (wxDC *) 0 ; | |
10771 | wxRect *arg2 = 0 ; | |
10772 | wxRect temp2 ; | |
10773 | PyObject * obj0 = 0 ; | |
10774 | PyObject * obj1 = 0 ; | |
10775 | char *kwnames[] = { | |
10776 | (char *) "self",(char *) "rect", NULL | |
10777 | }; | |
10778 | ||
03e37cd5 | 10779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10782 | { |
10783 | arg2 = &temp2; | |
10784 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10785 | } | |
10786 | { | |
10787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10788 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10789 | ||
10790 | wxPyEndAllowThreads(__tstate); | |
10791 | if (PyErr_Occurred()) SWIG_fail; | |
10792 | } | |
10793 | Py_INCREF(Py_None); resultobj = Py_None; | |
10794 | return resultobj; | |
10795 | fail: | |
10796 | return NULL; | |
10797 | } | |
10798 | ||
10799 | ||
03e37cd5 | 10800 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10801 | PyObject *resultobj; |
10802 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10803 | int arg2 ; |
10804 | int arg3 ; | |
10805 | int arg4 ; | |
10806 | int arg5 ; | |
d14a1e28 RD |
10807 | double arg6 ; |
10808 | double arg7 ; | |
10809 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10810 | PyObject * obj1 = 0 ; |
10811 | PyObject * obj2 = 0 ; | |
10812 | PyObject * obj3 = 0 ; | |
10813 | PyObject * obj4 = 0 ; | |
10814 | PyObject * obj5 = 0 ; | |
10815 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
10816 | char *kwnames[] = { |
10817 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10818 | }; | |
10819 | ||
03e37cd5 | 10820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10823 | arg2 = (int) SWIG_AsInt(obj1); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | arg3 = (int) SWIG_AsInt(obj2); | |
10826 | if (PyErr_Occurred()) SWIG_fail; | |
10827 | arg4 = (int) SWIG_AsInt(obj3); | |
10828 | if (PyErr_Occurred()) SWIG_fail; | |
10829 | arg5 = (int) SWIG_AsInt(obj4); | |
10830 | if (PyErr_Occurred()) SWIG_fail; | |
10831 | arg6 = (double) SWIG_AsDouble(obj5); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | arg7 = (double) SWIG_AsDouble(obj6); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10835 | { |
10836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10837 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10838 | ||
10839 | wxPyEndAllowThreads(__tstate); | |
10840 | if (PyErr_Occurred()) SWIG_fail; | |
10841 | } | |
10842 | Py_INCREF(Py_None); resultobj = Py_None; | |
10843 | return resultobj; | |
10844 | fail: | |
10845 | return NULL; | |
10846 | } | |
10847 | ||
10848 | ||
03e37cd5 | 10849 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10850 | PyObject *resultobj; |
10851 | wxDC *arg1 = (wxDC *) 0 ; | |
10852 | wxPoint *arg2 = 0 ; | |
10853 | wxSize *arg3 = 0 ; | |
10854 | double arg4 ; | |
10855 | double arg5 ; | |
10856 | wxPoint temp2 ; | |
10857 | wxSize temp3 ; | |
10858 | PyObject * obj0 = 0 ; | |
10859 | PyObject * obj1 = 0 ; | |
10860 | PyObject * obj2 = 0 ; | |
994141e6 RD |
10861 | PyObject * obj3 = 0 ; |
10862 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10863 | char *kwnames[] = { |
10864 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10865 | }; | |
10866 | ||
03e37cd5 | 10867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10870 | { |
10871 | arg2 = &temp2; | |
10872 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10873 | } | |
10874 | { | |
10875 | arg3 = &temp3; | |
10876 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10877 | } | |
15afbcd0 RD |
10878 | arg4 = (double) SWIG_AsDouble(obj3); |
10879 | if (PyErr_Occurred()) SWIG_fail; | |
10880 | arg5 = (double) SWIG_AsDouble(obj4); | |
10881 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10882 | { |
10883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10884 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10885 | ||
10886 | wxPyEndAllowThreads(__tstate); | |
10887 | if (PyErr_Occurred()) SWIG_fail; | |
10888 | } | |
10889 | Py_INCREF(Py_None); resultobj = Py_None; | |
10890 | return resultobj; | |
10891 | fail: | |
10892 | return NULL; | |
10893 | } | |
10894 | ||
10895 | ||
03e37cd5 | 10896 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10897 | PyObject *resultobj; |
10898 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10899 | int arg2 ; |
10900 | int arg3 ; | |
d14a1e28 | 10901 | PyObject * obj0 = 0 ; |
994141e6 RD |
10902 | PyObject * obj1 = 0 ; |
10903 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10904 | char *kwnames[] = { |
10905 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10906 | }; | |
10907 | ||
03e37cd5 | 10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10911 | arg2 = (int) SWIG_AsInt(obj1); | |
10912 | if (PyErr_Occurred()) SWIG_fail; | |
10913 | arg3 = (int) SWIG_AsInt(obj2); | |
10914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10915 | { |
10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10917 | (arg1)->DrawPoint(arg2,arg3); | |
10918 | ||
10919 | wxPyEndAllowThreads(__tstate); | |
10920 | if (PyErr_Occurred()) SWIG_fail; | |
10921 | } | |
10922 | Py_INCREF(Py_None); resultobj = Py_None; | |
10923 | return resultobj; | |
10924 | fail: | |
10925 | return NULL; | |
10926 | } | |
10927 | ||
10928 | ||
03e37cd5 | 10929 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10930 | PyObject *resultobj; |
10931 | wxDC *arg1 = (wxDC *) 0 ; | |
10932 | wxPoint *arg2 = 0 ; | |
10933 | wxPoint temp2 ; | |
10934 | PyObject * obj0 = 0 ; | |
10935 | PyObject * obj1 = 0 ; | |
10936 | char *kwnames[] = { | |
10937 | (char *) "self",(char *) "pt", NULL | |
10938 | }; | |
10939 | ||
03e37cd5 | 10940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10943 | { |
10944 | arg2 = &temp2; | |
10945 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10946 | } | |
10947 | { | |
10948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10949 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10950 | ||
10951 | wxPyEndAllowThreads(__tstate); | |
10952 | if (PyErr_Occurred()) SWIG_fail; | |
10953 | } | |
10954 | Py_INCREF(Py_None); resultobj = Py_None; | |
10955 | return resultobj; | |
10956 | fail: | |
10957 | return NULL; | |
10958 | } | |
10959 | ||
10960 | ||
03e37cd5 | 10961 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
10962 | PyObject *resultobj; |
10963 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
10964 | int arg2 ; |
10965 | int arg3 ; | |
10966 | int arg4 ; | |
10967 | int arg5 ; | |
d14a1e28 | 10968 | PyObject * obj0 = 0 ; |
994141e6 RD |
10969 | PyObject * obj1 = 0 ; |
10970 | PyObject * obj2 = 0 ; | |
10971 | PyObject * obj3 = 0 ; | |
10972 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10973 | char *kwnames[] = { |
10974 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10975 | }; | |
10976 | ||
03e37cd5 | 10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10980 | arg2 = (int) SWIG_AsInt(obj1); | |
10981 | if (PyErr_Occurred()) SWIG_fail; | |
10982 | arg3 = (int) SWIG_AsInt(obj2); | |
10983 | if (PyErr_Occurred()) SWIG_fail; | |
10984 | arg4 = (int) SWIG_AsInt(obj3); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | arg5 = (int) SWIG_AsInt(obj4); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10988 | { |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
10995 | Py_INCREF(Py_None); resultobj = Py_None; | |
10996 | return resultobj; | |
10997 | fail: | |
10998 | return NULL; | |
10999 | } | |
11000 | ||
11001 | ||
03e37cd5 | 11002 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11003 | PyObject *resultobj; |
11004 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11005 | wxRect *arg2 = 0 ; |
11006 | wxRect temp2 ; | |
d14a1e28 RD |
11007 | PyObject * obj0 = 0 ; |
11008 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11009 | char *kwnames[] = { |
03e37cd5 | 11010 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
11011 | }; |
11012 | ||
03e37cd5 | 11013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11016 | { |
11017 | arg2 = &temp2; | |
03e37cd5 | 11018 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
11019 | } |
11020 | { | |
11021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11022 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d14a1e28 RD |
11023 | |
11024 | wxPyEndAllowThreads(__tstate); | |
11025 | if (PyErr_Occurred()) SWIG_fail; | |
11026 | } | |
11027 | Py_INCREF(Py_None); resultobj = Py_None; | |
11028 | return resultobj; | |
11029 | fail: | |
11030 | return NULL; | |
11031 | } | |
11032 | ||
11033 | ||
03e37cd5 | 11034 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11035 | PyObject *resultobj; |
11036 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11037 | wxPoint *arg2 = 0 ; |
11038 | wxSize *arg3 = 0 ; | |
11039 | wxPoint temp2 ; | |
11040 | wxSize temp3 ; | |
d14a1e28 RD |
11041 | PyObject * obj0 = 0 ; |
11042 | PyObject * obj1 = 0 ; | |
03e37cd5 | 11043 | PyObject * obj2 = 0 ; |
d14a1e28 | 11044 | char *kwnames[] = { |
03e37cd5 | 11045 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
11046 | }; |
11047 | ||
03e37cd5 | 11048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11051 | { |
11052 | arg2 = &temp2; | |
03e37cd5 RD |
11053 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11054 | } | |
11055 | { | |
11056 | arg3 = &temp3; | |
11057 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
11058 | } |
11059 | { | |
11060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11061 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
11062 | |
11063 | wxPyEndAllowThreads(__tstate); | |
11064 | if (PyErr_Occurred()) SWIG_fail; | |
11065 | } | |
11066 | Py_INCREF(Py_None); resultobj = Py_None; | |
11067 | return resultobj; | |
11068 | fail: | |
11069 | return NULL; | |
11070 | } | |
11071 | ||
11072 | ||
03e37cd5 | 11073 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11074 | PyObject *resultobj; |
11075 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11076 | int arg2 ; |
11077 | int arg3 ; | |
11078 | int arg4 ; | |
11079 | int arg5 ; | |
d14a1e28 RD |
11080 | double arg6 ; |
11081 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11082 | PyObject * obj1 = 0 ; |
11083 | PyObject * obj2 = 0 ; | |
11084 | PyObject * obj3 = 0 ; | |
11085 | PyObject * obj4 = 0 ; | |
11086 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
11087 | char *kwnames[] = { |
11088 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11089 | }; | |
11090 | ||
03e37cd5 | 11091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
11092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11094 | arg2 = (int) SWIG_AsInt(obj1); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | arg3 = (int) SWIG_AsInt(obj2); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | arg4 = (int) SWIG_AsInt(obj3); | |
11099 | if (PyErr_Occurred()) SWIG_fail; | |
11100 | arg5 = (int) SWIG_AsInt(obj4); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | arg6 = (double) SWIG_AsDouble(obj5); | |
11103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11104 | { |
11105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11106 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11107 | ||
11108 | wxPyEndAllowThreads(__tstate); | |
11109 | if (PyErr_Occurred()) SWIG_fail; | |
11110 | } | |
11111 | Py_INCREF(Py_None); resultobj = Py_None; | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
11115 | } | |
11116 | ||
11117 | ||
03e37cd5 | 11118 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11119 | PyObject *resultobj; |
11120 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11121 | wxRect *arg2 = 0 ; |
11122 | double arg3 ; | |
11123 | wxRect temp2 ; | |
d14a1e28 RD |
11124 | PyObject * obj0 = 0 ; |
11125 | PyObject * obj1 = 0 ; | |
11126 | PyObject * obj2 = 0 ; | |
11127 | char *kwnames[] = { | |
03e37cd5 | 11128 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d14a1e28 RD |
11129 | }; |
11130 | ||
03e37cd5 | 11131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11134 | { |
11135 | arg2 = &temp2; | |
03e37cd5 | 11136 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 | 11137 | } |
03e37cd5 | 11138 | arg3 = (double) SWIG_AsDouble(obj2); |
15afbcd0 | 11139 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11140 | { |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11142 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d14a1e28 RD |
11143 | |
11144 | wxPyEndAllowThreads(__tstate); | |
11145 | if (PyErr_Occurred()) SWIG_fail; | |
11146 | } | |
11147 | Py_INCREF(Py_None); resultobj = Py_None; | |
11148 | return resultobj; | |
11149 | fail: | |
11150 | return NULL; | |
11151 | } | |
11152 | ||
11153 | ||
03e37cd5 | 11154 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11155 | PyObject *resultobj; |
11156 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11157 | wxPoint *arg2 = 0 ; |
11158 | wxSize *arg3 = 0 ; | |
11159 | double arg4 ; | |
11160 | wxPoint temp2 ; | |
11161 | wxSize temp3 ; | |
d14a1e28 RD |
11162 | PyObject * obj0 = 0 ; |
11163 | PyObject * obj1 = 0 ; | |
994141e6 | 11164 | PyObject * obj2 = 0 ; |
03e37cd5 | 11165 | PyObject * obj3 = 0 ; |
d14a1e28 | 11166 | char *kwnames[] = { |
03e37cd5 | 11167 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d14a1e28 RD |
11168 | }; |
11169 | ||
03e37cd5 | 11170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11173 | { |
11174 | arg2 = &temp2; | |
03e37cd5 | 11175 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 | 11176 | } |
03e37cd5 RD |
11177 | { |
11178 | arg3 = &temp3; | |
11179 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11180 | } | |
11181 | arg4 = (double) SWIG_AsDouble(obj3); | |
15afbcd0 | 11182 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11183 | { |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11185 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d14a1e28 RD |
11186 | |
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | Py_INCREF(Py_None); resultobj = Py_None; | |
11191 | return resultobj; | |
11192 | fail: | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
03e37cd5 | 11197 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11198 | PyObject *resultobj; |
11199 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11200 | int arg2 ; |
11201 | int arg3 ; | |
11202 | int arg4 ; | |
d14a1e28 | 11203 | PyObject * obj0 = 0 ; |
994141e6 RD |
11204 | PyObject * obj1 = 0 ; |
11205 | PyObject * obj2 = 0 ; | |
11206 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11207 | char *kwnames[] = { |
11208 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11209 | }; | |
11210 | ||
03e37cd5 | 11211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11214 | arg2 = (int) SWIG_AsInt(obj1); | |
11215 | if (PyErr_Occurred()) SWIG_fail; | |
11216 | arg3 = (int) SWIG_AsInt(obj2); | |
11217 | if (PyErr_Occurred()) SWIG_fail; | |
11218 | arg4 = (int) SWIG_AsInt(obj3); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11220 | { |
11221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11222 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11223 | ||
11224 | wxPyEndAllowThreads(__tstate); | |
11225 | if (PyErr_Occurred()) SWIG_fail; | |
11226 | } | |
11227 | Py_INCREF(Py_None); resultobj = Py_None; | |
11228 | return resultobj; | |
11229 | fail: | |
11230 | return NULL; | |
11231 | } | |
11232 | ||
11233 | ||
03e37cd5 | 11234 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11235 | PyObject *resultobj; |
11236 | wxDC *arg1 = (wxDC *) 0 ; | |
11237 | wxPoint *arg2 = 0 ; | |
e811c8ce | 11238 | int arg3 ; |
d14a1e28 RD |
11239 | wxPoint temp2 ; |
11240 | PyObject * obj0 = 0 ; | |
11241 | PyObject * obj1 = 0 ; | |
994141e6 | 11242 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11243 | char *kwnames[] = { |
11244 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11245 | }; | |
11246 | ||
03e37cd5 | 11247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11250 | { |
11251 | arg2 = &temp2; | |
11252 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11253 | } | |
15afbcd0 RD |
11254 | arg3 = (int) SWIG_AsInt(obj2); |
11255 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11256 | { |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | Py_INCREF(Py_None); resultobj = Py_None; | |
11264 | return resultobj; | |
11265 | fail: | |
11266 | return NULL; | |
11267 | } | |
11268 | ||
11269 | ||
03e37cd5 | 11270 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11271 | PyObject *resultobj; |
11272 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11273 | int arg2 ; |
11274 | int arg3 ; | |
11275 | int arg4 ; | |
11276 | int arg5 ; | |
d14a1e28 | 11277 | PyObject * obj0 = 0 ; |
994141e6 RD |
11278 | PyObject * obj1 = 0 ; |
11279 | PyObject * obj2 = 0 ; | |
11280 | PyObject * obj3 = 0 ; | |
11281 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11282 | char *kwnames[] = { |
11283 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11284 | }; | |
11285 | ||
03e37cd5 | 11286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11289 | arg2 = (int) SWIG_AsInt(obj1); | |
11290 | if (PyErr_Occurred()) SWIG_fail; | |
11291 | arg3 = (int) SWIG_AsInt(obj2); | |
11292 | if (PyErr_Occurred()) SWIG_fail; | |
11293 | arg4 = (int) SWIG_AsInt(obj3); | |
11294 | if (PyErr_Occurred()) SWIG_fail; | |
11295 | arg5 = (int) SWIG_AsInt(obj4); | |
11296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11297 | { |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11300 | ||
11301 | wxPyEndAllowThreads(__tstate); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
11304 | Py_INCREF(Py_None); resultobj = Py_None; | |
11305 | return resultobj; | |
11306 | fail: | |
11307 | return NULL; | |
11308 | } | |
11309 | ||
11310 | ||
03e37cd5 | 11311 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11312 | PyObject *resultobj; |
11313 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11314 | wxRect *arg2 = 0 ; |
11315 | wxRect temp2 ; | |
d14a1e28 RD |
11316 | PyObject * obj0 = 0 ; |
11317 | PyObject * obj1 = 0 ; | |
d14a1e28 | 11318 | char *kwnames[] = { |
03e37cd5 | 11319 | (char *) "self",(char *) "rect", NULL |
d14a1e28 RD |
11320 | }; |
11321 | ||
03e37cd5 | 11322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11325 | { |
11326 | arg2 = &temp2; | |
03e37cd5 | 11327 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d14a1e28 RD |
11328 | } |
11329 | { | |
11330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11331 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d14a1e28 RD |
11332 | |
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | Py_INCREF(Py_None); resultobj = Py_None; | |
11337 | return resultobj; | |
11338 | fail: | |
11339 | return NULL; | |
11340 | } | |
11341 | ||
11342 | ||
03e37cd5 | 11343 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11344 | PyObject *resultobj; |
11345 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11346 | wxPoint *arg2 = 0 ; |
11347 | wxSize *arg3 = 0 ; | |
11348 | wxPoint temp2 ; | |
11349 | wxSize temp3 ; | |
d14a1e28 RD |
11350 | PyObject * obj0 = 0 ; |
11351 | PyObject * obj1 = 0 ; | |
03e37cd5 | 11352 | PyObject * obj2 = 0 ; |
d14a1e28 | 11353 | char *kwnames[] = { |
03e37cd5 | 11354 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
11355 | }; |
11356 | ||
03e37cd5 | 11357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11360 | { |
11361 | arg2 = &temp2; | |
03e37cd5 RD |
11362 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11363 | } | |
11364 | { | |
11365 | arg3 = &temp3; | |
11366 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d14a1e28 RD |
11367 | } |
11368 | { | |
11369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11370 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
11371 | |
11372 | wxPyEndAllowThreads(__tstate); | |
11373 | if (PyErr_Occurred()) SWIG_fail; | |
11374 | } | |
11375 | Py_INCREF(Py_None); resultobj = Py_None; | |
11376 | return resultobj; | |
11377 | fail: | |
11378 | return NULL; | |
11379 | } | |
11380 | ||
11381 | ||
03e37cd5 | 11382 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11383 | PyObject *resultobj; |
11384 | wxDC *arg1 = (wxDC *) 0 ; | |
11385 | wxIcon *arg2 = 0 ; | |
e811c8ce RD |
11386 | int arg3 ; |
11387 | int arg4 ; | |
d14a1e28 RD |
11388 | PyObject * obj0 = 0 ; |
11389 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11390 | PyObject * obj2 = 0 ; |
11391 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11392 | char *kwnames[] = { |
11393 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11394 | }; | |
11395 | ||
03e37cd5 | 11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11399 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11400 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11401 | SWIG_fail; | |
d14a1e28 | 11402 | if (arg2 == NULL) { |
15afbcd0 RD |
11403 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11404 | SWIG_fail; | |
994141e6 | 11405 | } |
15afbcd0 RD |
11406 | arg3 = (int) SWIG_AsInt(obj2); |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | arg4 = (int) SWIG_AsInt(obj3); | |
11409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11410 | { |
11411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11412 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11413 | ||
11414 | wxPyEndAllowThreads(__tstate); | |
11415 | if (PyErr_Occurred()) SWIG_fail; | |
11416 | } | |
11417 | Py_INCREF(Py_None); resultobj = Py_None; | |
11418 | return resultobj; | |
11419 | fail: | |
11420 | return NULL; | |
11421 | } | |
11422 | ||
11423 | ||
03e37cd5 | 11424 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11425 | PyObject *resultobj; |
11426 | wxDC *arg1 = (wxDC *) 0 ; | |
11427 | wxIcon *arg2 = 0 ; | |
11428 | wxPoint *arg3 = 0 ; | |
11429 | wxPoint temp3 ; | |
11430 | PyObject * obj0 = 0 ; | |
11431 | PyObject * obj1 = 0 ; | |
11432 | PyObject * obj2 = 0 ; | |
11433 | char *kwnames[] = { | |
11434 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11435 | }; | |
11436 | ||
03e37cd5 | 11437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11441 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11442 | SWIG_fail; | |
d14a1e28 | 11443 | if (arg2 == NULL) { |
15afbcd0 RD |
11444 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11445 | SWIG_fail; | |
d14a1e28 RD |
11446 | } |
11447 | { | |
11448 | arg3 = &temp3; | |
11449 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11450 | } | |
11451 | { | |
11452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11453 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11454 | ||
11455 | wxPyEndAllowThreads(__tstate); | |
11456 | if (PyErr_Occurred()) SWIG_fail; | |
11457 | } | |
11458 | Py_INCREF(Py_None); resultobj = Py_None; | |
11459 | return resultobj; | |
11460 | fail: | |
11461 | return NULL; | |
11462 | } | |
11463 | ||
11464 | ||
03e37cd5 | 11465 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11466 | PyObject *resultobj; |
11467 | wxDC *arg1 = (wxDC *) 0 ; | |
11468 | wxBitmap *arg2 = 0 ; | |
e811c8ce RD |
11469 | int arg3 ; |
11470 | int arg4 ; | |
11471 | bool arg5 = (bool) False ; | |
d14a1e28 RD |
11472 | PyObject * obj0 = 0 ; |
11473 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11474 | PyObject * obj2 = 0 ; |
11475 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11476 | PyObject * obj4 = 0 ; |
11477 | char *kwnames[] = { | |
11478 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11479 | }; | |
11480 | ||
03e37cd5 | 11481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11485 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11486 | SWIG_fail; | |
d14a1e28 | 11487 | if (arg2 == NULL) { |
15afbcd0 RD |
11488 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11489 | SWIG_fail; | |
994141e6 | 11490 | } |
15afbcd0 RD |
11491 | arg3 = (int) SWIG_AsInt(obj2); |
11492 | if (PyErr_Occurred()) SWIG_fail; | |
11493 | arg4 = (int) SWIG_AsInt(obj3); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11495 | if (obj4) { |
15afbcd0 RD |
11496 | arg5 = (bool) SWIG_AsBool(obj4); |
11497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11498 | } |
11499 | { | |
11500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11501 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11502 | ||
11503 | wxPyEndAllowThreads(__tstate); | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
11505 | } | |
11506 | Py_INCREF(Py_None); resultobj = Py_None; | |
11507 | return resultobj; | |
11508 | fail: | |
11509 | return NULL; | |
11510 | } | |
11511 | ||
11512 | ||
03e37cd5 | 11513 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11514 | PyObject *resultobj; |
11515 | wxDC *arg1 = (wxDC *) 0 ; | |
11516 | wxBitmap *arg2 = 0 ; | |
11517 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11518 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11519 | wxPoint temp3 ; |
11520 | PyObject * obj0 = 0 ; | |
11521 | PyObject * obj1 = 0 ; | |
11522 | PyObject * obj2 = 0 ; | |
11523 | PyObject * obj3 = 0 ; | |
11524 | char *kwnames[] = { | |
11525 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11526 | }; | |
11527 | ||
03e37cd5 | 11528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11531 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11533 | SWIG_fail; | |
d14a1e28 | 11534 | if (arg2 == NULL) { |
15afbcd0 RD |
11535 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11536 | SWIG_fail; | |
d14a1e28 RD |
11537 | } |
11538 | { | |
11539 | arg3 = &temp3; | |
11540 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11541 | } | |
11542 | if (obj3) { | |
15afbcd0 RD |
11543 | arg4 = (bool) SWIG_AsBool(obj3); |
11544 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11545 | } |
11546 | { | |
11547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11548 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11549 | ||
11550 | wxPyEndAllowThreads(__tstate); | |
11551 | if (PyErr_Occurred()) SWIG_fail; | |
11552 | } | |
11553 | Py_INCREF(Py_None); resultobj = Py_None; | |
11554 | return resultobj; | |
11555 | fail: | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
03e37cd5 | 11560 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11561 | PyObject *resultobj; |
11562 | wxDC *arg1 = (wxDC *) 0 ; | |
11563 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11564 | int arg3 ; |
11565 | int arg4 ; | |
11566 | bool temp2 = False ; | |
d14a1e28 RD |
11567 | PyObject * obj0 = 0 ; |
11568 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11569 | PyObject * obj2 = 0 ; |
11570 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11571 | char *kwnames[] = { |
11572 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11573 | }; | |
11574 | ||
03e37cd5 | 11575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11578 | { |
11579 | arg2 = wxString_in_helper(obj1); | |
11580 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11581 | temp2 = True; |
d14a1e28 | 11582 | } |
15afbcd0 RD |
11583 | arg3 = (int) SWIG_AsInt(obj2); |
11584 | if (PyErr_Occurred()) SWIG_fail; | |
11585 | arg4 = (int) SWIG_AsInt(obj3); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11587 | { |
11588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11589 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11590 | ||
11591 | wxPyEndAllowThreads(__tstate); | |
11592 | if (PyErr_Occurred()) SWIG_fail; | |
11593 | } | |
11594 | Py_INCREF(Py_None); resultobj = Py_None; | |
11595 | { | |
11596 | if (temp2) | |
11597 | delete arg2; | |
11598 | } | |
11599 | return resultobj; | |
11600 | fail: | |
11601 | { | |
11602 | if (temp2) | |
11603 | delete arg2; | |
11604 | } | |
11605 | return NULL; | |
11606 | } | |
11607 | ||
11608 | ||
03e37cd5 | 11609 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11610 | PyObject *resultobj; |
11611 | wxDC *arg1 = (wxDC *) 0 ; | |
11612 | wxString *arg2 = 0 ; | |
11613 | wxPoint *arg3 = 0 ; | |
e811c8ce | 11614 | bool temp2 = False ; |
d14a1e28 RD |
11615 | wxPoint temp3 ; |
11616 | PyObject * obj0 = 0 ; | |
11617 | PyObject * obj1 = 0 ; | |
11618 | PyObject * obj2 = 0 ; | |
11619 | char *kwnames[] = { | |
11620 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11621 | }; | |
11622 | ||
03e37cd5 | 11623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11626 | { |
11627 | arg2 = wxString_in_helper(obj1); | |
11628 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11629 | temp2 = True; |
d14a1e28 RD |
11630 | } |
11631 | { | |
11632 | arg3 = &temp3; | |
11633 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11634 | } | |
11635 | { | |
11636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11637 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11638 | ||
11639 | wxPyEndAllowThreads(__tstate); | |
11640 | if (PyErr_Occurred()) SWIG_fail; | |
11641 | } | |
11642 | Py_INCREF(Py_None); resultobj = Py_None; | |
11643 | { | |
11644 | if (temp2) | |
11645 | delete arg2; | |
11646 | } | |
11647 | return resultobj; | |
11648 | fail: | |
11649 | { | |
11650 | if (temp2) | |
11651 | delete arg2; | |
11652 | } | |
11653 | return NULL; | |
11654 | } | |
11655 | ||
11656 | ||
03e37cd5 | 11657 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11658 | PyObject *resultobj; |
11659 | wxDC *arg1 = (wxDC *) 0 ; | |
11660 | wxString *arg2 = 0 ; | |
e811c8ce RD |
11661 | int arg3 ; |
11662 | int arg4 ; | |
d14a1e28 | 11663 | double arg5 ; |
e811c8ce | 11664 | bool temp2 = False ; |
d14a1e28 RD |
11665 | PyObject * obj0 = 0 ; |
11666 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11667 | PyObject * obj2 = 0 ; |
11668 | PyObject * obj3 = 0 ; | |
11669 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
11670 | char *kwnames[] = { |
11671 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11672 | }; | |
11673 | ||
03e37cd5 | 11674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11677 | { |
11678 | arg2 = wxString_in_helper(obj1); | |
11679 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11680 | temp2 = True; |
d14a1e28 | 11681 | } |
15afbcd0 RD |
11682 | arg3 = (int) SWIG_AsInt(obj2); |
11683 | if (PyErr_Occurred()) SWIG_fail; | |
11684 | arg4 = (int) SWIG_AsInt(obj3); | |
11685 | if (PyErr_Occurred()) SWIG_fail; | |
11686 | arg5 = (double) SWIG_AsDouble(obj4); | |
11687 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11688 | { |
11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11690 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
11691 | ||
11692 | wxPyEndAllowThreads(__tstate); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
11695 | Py_INCREF(Py_None); resultobj = Py_None; | |
11696 | { | |
11697 | if (temp2) | |
11698 | delete arg2; | |
11699 | } | |
11700 | return resultobj; | |
11701 | fail: | |
11702 | { | |
11703 | if (temp2) | |
11704 | delete arg2; | |
11705 | } | |
11706 | return NULL; | |
11707 | } | |
11708 | ||
11709 | ||
03e37cd5 | 11710 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11711 | PyObject *resultobj; |
11712 | wxDC *arg1 = (wxDC *) 0 ; | |
11713 | wxString *arg2 = 0 ; | |
11714 | wxPoint *arg3 = 0 ; | |
11715 | double arg4 ; | |
e811c8ce | 11716 | bool temp2 = False ; |
d14a1e28 RD |
11717 | wxPoint temp3 ; |
11718 | PyObject * obj0 = 0 ; | |
11719 | PyObject * obj1 = 0 ; | |
11720 | PyObject * obj2 = 0 ; | |
994141e6 | 11721 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11722 | char *kwnames[] = { |
11723 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11724 | }; | |
11725 | ||
03e37cd5 | 11726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
11727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11729 | { |
11730 | arg2 = wxString_in_helper(obj1); | |
11731 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11732 | temp2 = True; |
d14a1e28 RD |
11733 | } |
11734 | { | |
11735 | arg3 = &temp3; | |
11736 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11737 | } | |
15afbcd0 RD |
11738 | arg4 = (double) SWIG_AsDouble(obj3); |
11739 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11740 | { |
11741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11742 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11743 | ||
11744 | wxPyEndAllowThreads(__tstate); | |
11745 | if (PyErr_Occurred()) SWIG_fail; | |
11746 | } | |
11747 | Py_INCREF(Py_None); resultobj = Py_None; | |
11748 | { | |
11749 | if (temp2) | |
11750 | delete arg2; | |
11751 | } | |
11752 | return resultobj; | |
11753 | fail: | |
11754 | { | |
11755 | if (temp2) | |
11756 | delete arg2; | |
11757 | } | |
11758 | return NULL; | |
11759 | } | |
11760 | ||
11761 | ||
03e37cd5 | 11762 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11763 | PyObject *resultobj; |
11764 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
11765 | int arg2 ; |
11766 | int arg3 ; | |
11767 | int arg4 ; | |
11768 | int arg5 ; | |
d14a1e28 | 11769 | wxDC *arg6 = (wxDC *) 0 ; |
e811c8ce RD |
11770 | int arg7 ; |
11771 | int arg8 ; | |
d14a1e28 | 11772 | int arg9 = (int) wxCOPY ; |
e811c8ce RD |
11773 | bool arg10 = (bool) False ; |
11774 | int arg11 = (int) -1 ; | |
11775 | int arg12 = (int) -1 ; | |
d14a1e28 RD |
11776 | bool result; |
11777 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11778 | PyObject * obj1 = 0 ; |
11779 | PyObject * obj2 = 0 ; | |
11780 | PyObject * obj3 = 0 ; | |
11781 | PyObject * obj4 = 0 ; | |
d14a1e28 | 11782 | PyObject * obj5 = 0 ; |
994141e6 RD |
11783 | PyObject * obj6 = 0 ; |
11784 | PyObject * obj7 = 0 ; | |
11785 | PyObject * obj8 = 0 ; | |
d14a1e28 | 11786 | PyObject * obj9 = 0 ; |
994141e6 RD |
11787 | PyObject * obj10 = 0 ; |
11788 | PyObject * obj11 = 0 ; | |
d14a1e28 RD |
11789 | char *kwnames[] = { |
11790 | (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 | |
11791 | }; | |
11792 | ||
03e37cd5 | 11793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
15afbcd0 RD |
11794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11796 | arg2 = (int) SWIG_AsInt(obj1); | |
11797 | if (PyErr_Occurred()) SWIG_fail; | |
11798 | arg3 = (int) SWIG_AsInt(obj2); | |
11799 | if (PyErr_Occurred()) SWIG_fail; | |
11800 | arg4 = (int) SWIG_AsInt(obj3); | |
11801 | if (PyErr_Occurred()) SWIG_fail; | |
11802 | arg5 = (int) SWIG_AsInt(obj4); | |
11803 | if (PyErr_Occurred()) SWIG_fail; | |
11804 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
11805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11806 | arg7 = (int) SWIG_AsInt(obj6); | |
11807 | if (PyErr_Occurred()) SWIG_fail; | |
11808 | arg8 = (int) SWIG_AsInt(obj7); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11810 | if (obj8) { |
15afbcd0 RD |
11811 | arg9 = (int) SWIG_AsInt(obj8); |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11813 | } |
d14a1e28 | 11814 | if (obj9) { |
15afbcd0 RD |
11815 | arg10 = (bool) SWIG_AsBool(obj9); |
11816 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11817 | } |
11818 | if (obj10) { | |
15afbcd0 RD |
11819 | arg11 = (int) SWIG_AsInt(obj10); |
11820 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11821 | } |
11822 | if (obj11) { | |
15afbcd0 RD |
11823 | arg12 = (int) SWIG_AsInt(obj11); |
11824 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11825 | } |
11826 | { | |
11827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11828 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11829 | ||
11830 | wxPyEndAllowThreads(__tstate); | |
11831 | if (PyErr_Occurred()) SWIG_fail; | |
11832 | } | |
4f89f6a3 RD |
11833 | { |
11834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11835 | } | |
d14a1e28 RD |
11836 | return resultobj; |
11837 | fail: | |
11838 | return NULL; | |
11839 | } | |
11840 | ||
11841 | ||
03e37cd5 | 11842 | static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11843 | PyObject *resultobj; |
11844 | wxDC *arg1 = (wxDC *) 0 ; | |
11845 | wxPoint *arg2 = 0 ; | |
11846 | wxSize *arg3 = 0 ; | |
11847 | wxDC *arg4 = (wxDC *) 0 ; | |
11848 | wxPoint *arg5 = 0 ; | |
11849 | int arg6 = (int) wxCOPY ; | |
e811c8ce | 11850 | bool arg7 = (bool) False ; |
d14a1e28 RD |
11851 | wxPoint const &arg8_defvalue = wxDefaultPosition ; |
11852 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11853 | bool result; | |
11854 | wxPoint temp2 ; | |
11855 | wxSize temp3 ; | |
11856 | wxPoint temp5 ; | |
11857 | wxPoint temp8 ; | |
11858 | PyObject * obj0 = 0 ; | |
11859 | PyObject * obj1 = 0 ; | |
11860 | PyObject * obj2 = 0 ; | |
11861 | PyObject * obj3 = 0 ; | |
11862 | PyObject * obj4 = 0 ; | |
994141e6 | 11863 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11864 | PyObject * obj6 = 0 ; |
11865 | PyObject * obj7 = 0 ; | |
11866 | char *kwnames[] = { | |
11867 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11868 | }; | |
11869 | ||
03e37cd5 | 11870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
11871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11873 | { |
11874 | arg2 = &temp2; | |
11875 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11876 | } | |
11877 | { | |
11878 | arg3 = &temp3; | |
11879 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11880 | } | |
15afbcd0 RD |
11881 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, |
11882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11883 | { |
11884 | arg5 = &temp5; | |
11885 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11886 | } | |
994141e6 | 11887 | if (obj5) { |
15afbcd0 RD |
11888 | arg6 = (int) SWIG_AsInt(obj5); |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11890 | } |
d14a1e28 | 11891 | if (obj6) { |
15afbcd0 RD |
11892 | arg7 = (bool) SWIG_AsBool(obj6); |
11893 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11894 | } |
11895 | if (obj7) { | |
11896 | { | |
11897 | arg8 = &temp8; | |
11898 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11899 | } | |
11900 | } | |
11901 | { | |
11902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11903 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
11904 | ||
11905 | wxPyEndAllowThreads(__tstate); | |
11906 | if (PyErr_Occurred()) SWIG_fail; | |
11907 | } | |
4f89f6a3 RD |
11908 | { |
11909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11910 | } | |
d14a1e28 RD |
11911 | return resultobj; |
11912 | fail: | |
11913 | return NULL; | |
11914 | } | |
11915 | ||
11916 | ||
03e37cd5 | 11917 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11918 | PyObject *resultobj; |
11919 | wxDC *arg1 = (wxDC *) 0 ; | |
11920 | int arg2 ; | |
03e37cd5 RD |
11921 | int arg3 ; |
11922 | int arg4 ; | |
11923 | int arg5 ; | |
d14a1e28 RD |
11924 | PyObject * obj0 = 0 ; |
11925 | PyObject * obj1 = 0 ; | |
994141e6 RD |
11926 | PyObject * obj2 = 0 ; |
11927 | PyObject * obj3 = 0 ; | |
03e37cd5 | 11928 | PyObject * obj4 = 0 ; |
d14a1e28 | 11929 | char *kwnames[] = { |
03e37cd5 | 11930 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL |
d14a1e28 RD |
11931 | }; |
11932 | ||
03e37cd5 | 11933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
03e37cd5 RD |
11936 | arg2 = (int) SWIG_AsInt(obj1); |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | arg3 = (int) SWIG_AsInt(obj2); | |
11939 | if (PyErr_Occurred()) SWIG_fail; | |
11940 | arg4 = (int) SWIG_AsInt(obj3); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | arg5 = (int) SWIG_AsInt(obj4); | |
11943 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11944 | { |
11945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11946 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
11947 | |
11948 | wxPyEndAllowThreads(__tstate); | |
11949 | if (PyErr_Occurred()) SWIG_fail; | |
11950 | } | |
11951 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
11952 | return resultobj; |
11953 | fail: | |
d14a1e28 RD |
11954 | return NULL; |
11955 | } | |
11956 | ||
11957 | ||
03e37cd5 | 11958 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11959 | PyObject *resultobj; |
11960 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 RD |
11961 | wxPoint *arg2 = 0 ; |
11962 | wxSize *arg3 = 0 ; | |
11963 | wxPoint temp2 ; | |
11964 | wxSize temp3 ; | |
d14a1e28 RD |
11965 | PyObject * obj0 = 0 ; |
11966 | PyObject * obj1 = 0 ; | |
994141e6 | 11967 | PyObject * obj2 = 0 ; |
d14a1e28 | 11968 | char *kwnames[] = { |
03e37cd5 | 11969 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d14a1e28 RD |
11970 | }; |
11971 | ||
03e37cd5 | 11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11975 | { |
03e37cd5 RD |
11976 | arg2 = &temp2; |
11977 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 11978 | } |
03e37cd5 RD |
11979 | { |
11980 | arg3 = &temp3; | |
11981 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
994141e6 | 11982 | } |
d14a1e28 RD |
11983 | { |
11984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03e37cd5 | 11985 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
11986 | |
11987 | wxPyEndAllowThreads(__tstate); | |
11988 | if (PyErr_Occurred()) SWIG_fail; | |
11989 | } | |
11990 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
11991 | return resultobj; |
11992 | fail: | |
d14a1e28 RD |
11993 | return NULL; |
11994 | } | |
11995 | ||
11996 | ||
03e37cd5 | 11997 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
11998 | PyObject *resultobj; |
11999 | wxDC *arg1 = (wxDC *) 0 ; | |
03e37cd5 | 12000 | wxRegion *arg2 = 0 ; |
d14a1e28 RD |
12001 | PyObject * obj0 = 0 ; |
12002 | PyObject * obj1 = 0 ; | |
d14a1e28 | 12003 | char *kwnames[] = { |
03e37cd5 | 12004 | (char *) "self",(char *) "region", NULL |
d14a1e28 RD |
12005 | }; |
12006 | ||
03e37cd5 RD |
12007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; |
12008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12011 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12012 | SWIG_fail; | |
12013 | if (arg2 == NULL) { | |
12014 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12015 | SWIG_fail; | |
12016 | } | |
12017 | { | |
12018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12019 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12020 | ||
12021 | wxPyEndAllowThreads(__tstate); | |
12022 | if (PyErr_Occurred()) SWIG_fail; | |
12023 | } | |
12024 | Py_INCREF(Py_None); resultobj = Py_None; | |
12025 | return resultobj; | |
12026 | fail: | |
12027 | return NULL; | |
12028 | } | |
12029 | ||
12030 | ||
12031 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12032 | PyObject *resultobj; | |
12033 | wxDC *arg1 = (wxDC *) 0 ; | |
12034 | wxRect *arg2 = 0 ; | |
12035 | wxRect temp2 ; | |
12036 | PyObject * obj0 = 0 ; | |
12037 | PyObject * obj1 = 0 ; | |
12038 | char *kwnames[] = { | |
12039 | (char *) "self",(char *) "rect", NULL | |
12040 | }; | |
12041 | ||
12042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12045 | { | |
12046 | arg2 = &temp2; | |
12047 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12048 | } | |
12049 | { | |
12050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12051 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
12052 | ||
12053 | wxPyEndAllowThreads(__tstate); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | } | |
12056 | Py_INCREF(Py_None); resultobj = Py_None; | |
12057 | return resultobj; | |
12058 | fail: | |
12059 | return NULL; | |
12060 | } | |
12061 | ||
12062 | ||
12063 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12064 | PyObject *resultobj; | |
12065 | wxDC *arg1 = (wxDC *) 0 ; | |
12066 | int arg2 ; | |
12067 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12068 | int arg4 = (int) 0 ; | |
12069 | int arg5 = (int) 0 ; | |
12070 | PyObject * obj0 = 0 ; | |
12071 | PyObject * obj1 = 0 ; | |
12072 | PyObject * obj2 = 0 ; | |
12073 | PyObject * obj3 = 0 ; | |
12074 | char *kwnames[] = { | |
12075 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12076 | }; | |
12077 | ||
12078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12081 | { | |
12082 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12083 | if (arg3 == NULL) SWIG_fail; | |
12084 | } | |
12085 | if (obj2) { | |
12086 | arg4 = (int) SWIG_AsInt(obj2); | |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | } | |
12089 | if (obj3) { | |
12090 | arg5 = (int) SWIG_AsInt(obj3); | |
12091 | if (PyErr_Occurred()) SWIG_fail; | |
12092 | } | |
12093 | { | |
12094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12095 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12096 | ||
12097 | wxPyEndAllowThreads(__tstate); | |
12098 | if (PyErr_Occurred()) SWIG_fail; | |
12099 | } | |
12100 | Py_INCREF(Py_None); resultobj = Py_None; | |
12101 | { | |
12102 | if (arg3) delete [] arg3; | |
12103 | } | |
12104 | return resultobj; | |
12105 | fail: | |
12106 | { | |
12107 | if (arg3) delete [] arg3; | |
12108 | } | |
12109 | return NULL; | |
12110 | } | |
12111 | ||
12112 | ||
12113 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12114 | PyObject *resultobj; | |
12115 | wxDC *arg1 = (wxDC *) 0 ; | |
12116 | int arg2 ; | |
12117 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12118 | int arg4 = (int) 0 ; | |
12119 | int arg5 = (int) 0 ; | |
12120 | int arg6 = (int) wxODDEVEN_RULE ; | |
12121 | PyObject * obj0 = 0 ; | |
12122 | PyObject * obj1 = 0 ; | |
12123 | PyObject * obj2 = 0 ; | |
12124 | PyObject * obj3 = 0 ; | |
12125 | PyObject * obj4 = 0 ; | |
12126 | char *kwnames[] = { | |
12127 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12128 | }; | |
12129 | ||
12130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12133 | { | |
12134 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12135 | if (arg3 == NULL) SWIG_fail; | |
12136 | } | |
12137 | if (obj2) { | |
12138 | arg4 = (int) SWIG_AsInt(obj2); | |
12139 | if (PyErr_Occurred()) SWIG_fail; | |
12140 | } | |
12141 | if (obj3) { | |
12142 | arg5 = (int) SWIG_AsInt(obj3); | |
12143 | if (PyErr_Occurred()) SWIG_fail; | |
12144 | } | |
12145 | if (obj4) { | |
12146 | arg6 = (int) SWIG_AsInt(obj4); | |
12147 | if (PyErr_Occurred()) SWIG_fail; | |
12148 | } | |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | Py_INCREF(Py_None); resultobj = Py_None; | |
12157 | { | |
12158 | if (arg3) delete [] arg3; | |
12159 | } | |
12160 | return resultobj; | |
12161 | fail: | |
12162 | { | |
12163 | if (arg3) delete [] arg3; | |
12164 | } | |
12165 | return NULL; | |
12166 | } | |
12167 | ||
12168 | ||
12169 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12170 | PyObject *resultobj; | |
12171 | wxDC *arg1 = (wxDC *) 0 ; | |
12172 | wxString *arg2 = 0 ; | |
12173 | wxRect *arg3 = 0 ; | |
12174 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12175 | int arg5 = (int) -1 ; | |
12176 | bool temp2 = False ; | |
12177 | wxRect temp3 ; | |
12178 | PyObject * obj0 = 0 ; | |
12179 | PyObject * obj1 = 0 ; | |
12180 | PyObject * obj2 = 0 ; | |
12181 | PyObject * obj3 = 0 ; | |
12182 | PyObject * obj4 = 0 ; | |
12183 | char *kwnames[] = { | |
12184 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
12188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12190 | { |
12191 | arg2 = wxString_in_helper(obj1); | |
12192 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12193 | temp2 = True; |
d14a1e28 RD |
12194 | } |
12195 | { | |
12196 | arg3 = &temp3; | |
12197 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12198 | } | |
994141e6 | 12199 | if (obj3) { |
15afbcd0 RD |
12200 | arg4 = (int) SWIG_AsInt(obj3); |
12201 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12202 | } |
12203 | if (obj4) { | |
15afbcd0 RD |
12204 | arg5 = (int) SWIG_AsInt(obj4); |
12205 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12206 | } |
12207 | { | |
12208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12209 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
d14a1e28 RD |
12210 | |
12211 | wxPyEndAllowThreads(__tstate); | |
12212 | if (PyErr_Occurred()) SWIG_fail; | |
12213 | } | |
12214 | Py_INCREF(Py_None); resultobj = Py_None; | |
12215 | { | |
12216 | if (temp2) | |
12217 | delete arg2; | |
12218 | } | |
12219 | return resultobj; | |
12220 | fail: | |
12221 | { | |
12222 | if (temp2) | |
12223 | delete arg2; | |
12224 | } | |
12225 | return NULL; | |
12226 | } | |
12227 | ||
12228 | ||
12229 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12230 | PyObject *resultobj; | |
12231 | wxDC *arg1 = (wxDC *) 0 ; | |
12232 | wxString *arg2 = 0 ; | |
12233 | wxBitmap *arg3 = 0 ; | |
12234 | wxRect *arg4 = 0 ; | |
12235 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12236 | int arg6 = (int) -1 ; | |
12237 | wxRect result; | |
e811c8ce | 12238 | bool temp2 = False ; |
d14a1e28 RD |
12239 | wxRect temp4 ; |
12240 | PyObject * obj0 = 0 ; | |
12241 | PyObject * obj1 = 0 ; | |
12242 | PyObject * obj2 = 0 ; | |
12243 | PyObject * obj3 = 0 ; | |
994141e6 RD |
12244 | PyObject * obj4 = 0 ; |
12245 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12246 | char *kwnames[] = { |
12247 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12248 | }; | |
12249 | ||
994141e6 | 12250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
12251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12253 | { |
12254 | arg2 = wxString_in_helper(obj1); | |
12255 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12256 | temp2 = True; |
d14a1e28 | 12257 | } |
15afbcd0 RD |
12258 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
12259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12260 | SWIG_fail; | |
d14a1e28 | 12261 | if (arg3 == NULL) { |
15afbcd0 RD |
12262 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12263 | SWIG_fail; | |
d14a1e28 RD |
12264 | } |
12265 | { | |
12266 | arg4 = &temp4; | |
12267 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12268 | } | |
994141e6 | 12269 | if (obj4) { |
15afbcd0 RD |
12270 | arg5 = (int) SWIG_AsInt(obj4); |
12271 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12272 | } |
12273 | if (obj5) { | |
15afbcd0 RD |
12274 | arg6 = (int) SWIG_AsInt(obj5); |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12276 | } |
d14a1e28 RD |
12277 | { |
12278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12279 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12280 | ||
12281 | wxPyEndAllowThreads(__tstate); | |
12282 | if (PyErr_Occurred()) SWIG_fail; | |
12283 | } | |
12284 | { | |
12285 | wxRect * resultptr; | |
12286 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 12287 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12288 | } |
12289 | { | |
12290 | if (temp2) | |
12291 | delete arg2; | |
12292 | } | |
12293 | return resultobj; | |
12294 | fail: | |
12295 | { | |
12296 | if (temp2) | |
12297 | delete arg2; | |
12298 | } | |
12299 | return NULL; | |
12300 | } | |
12301 | ||
12302 | ||
12303 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12304 | PyObject *resultobj; | |
12305 | wxDC *arg1 = (wxDC *) 0 ; | |
12306 | int arg2 ; | |
12307 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12308 | PyObject * obj0 = 0 ; | |
12309 | PyObject * obj1 = 0 ; | |
12310 | char *kwnames[] = { | |
12311 | (char *) "self",(char *) "points", NULL | |
12312 | }; | |
12313 | ||
12314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12317 | { |
12318 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12319 | if (arg3 == NULL) SWIG_fail; | |
12320 | } | |
12321 | { | |
12322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12323 | (arg1)->DrawSpline(arg2,arg3); | |
12324 | ||
12325 | wxPyEndAllowThreads(__tstate); | |
12326 | if (PyErr_Occurred()) SWIG_fail; | |
12327 | } | |
12328 | Py_INCREF(Py_None); resultobj = Py_None; | |
12329 | { | |
12330 | if (arg3) delete [] arg3; | |
12331 | } | |
12332 | return resultobj; | |
12333 | fail: | |
12334 | { | |
12335 | if (arg3) delete [] arg3; | |
12336 | } | |
12337 | return NULL; | |
12338 | } | |
12339 | ||
12340 | ||
12341 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12342 | PyObject *resultobj; | |
12343 | wxDC *arg1 = (wxDC *) 0 ; | |
12344 | PyObject * obj0 = 0 ; | |
12345 | char *kwnames[] = { | |
12346 | (char *) "self", NULL | |
12347 | }; | |
12348 | ||
12349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12352 | { |
12353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12354 | (arg1)->Clear(); | |
12355 | ||
12356 | wxPyEndAllowThreads(__tstate); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
12359 | Py_INCREF(Py_None); resultobj = Py_None; | |
12360 | return resultobj; | |
12361 | fail: | |
12362 | return NULL; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12367 | PyObject *resultobj; | |
12368 | wxDC *arg1 = (wxDC *) 0 ; | |
12369 | wxString *arg2 = 0 ; | |
12370 | bool result; | |
e811c8ce | 12371 | bool temp2 = False ; |
d14a1e28 RD |
12372 | PyObject * obj0 = 0 ; |
12373 | PyObject * obj1 = 0 ; | |
12374 | char *kwnames[] = { | |
12375 | (char *) "self",(char *) "message", NULL | |
12376 | }; | |
12377 | ||
12378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12381 | { |
12382 | arg2 = wxString_in_helper(obj1); | |
12383 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12384 | temp2 = True; |
d14a1e28 RD |
12385 | } |
12386 | { | |
12387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12388 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12389 | ||
12390 | wxPyEndAllowThreads(__tstate); | |
12391 | if (PyErr_Occurred()) SWIG_fail; | |
12392 | } | |
4f89f6a3 RD |
12393 | { |
12394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12395 | } | |
d14a1e28 RD |
12396 | { |
12397 | if (temp2) | |
12398 | delete arg2; | |
12399 | } | |
12400 | return resultobj; | |
12401 | fail: | |
12402 | { | |
12403 | if (temp2) | |
12404 | delete arg2; | |
12405 | } | |
12406 | return NULL; | |
12407 | } | |
12408 | ||
12409 | ||
12410 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12411 | PyObject *resultobj; | |
12412 | wxDC *arg1 = (wxDC *) 0 ; | |
12413 | PyObject * obj0 = 0 ; | |
12414 | char *kwnames[] = { | |
12415 | (char *) "self", NULL | |
12416 | }; | |
12417 | ||
12418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12421 | { |
12422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12423 | (arg1)->EndDoc(); | |
12424 | ||
12425 | wxPyEndAllowThreads(__tstate); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | } | |
12428 | Py_INCREF(Py_None); resultobj = Py_None; | |
12429 | return resultobj; | |
12430 | fail: | |
12431 | return NULL; | |
12432 | } | |
12433 | ||
12434 | ||
12435 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12436 | PyObject *resultobj; | |
12437 | wxDC *arg1 = (wxDC *) 0 ; | |
12438 | PyObject * obj0 = 0 ; | |
12439 | char *kwnames[] = { | |
12440 | (char *) "self", NULL | |
12441 | }; | |
12442 | ||
12443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12446 | { |
12447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12448 | (arg1)->StartPage(); | |
12449 | ||
12450 | wxPyEndAllowThreads(__tstate); | |
12451 | if (PyErr_Occurred()) SWIG_fail; | |
12452 | } | |
12453 | Py_INCREF(Py_None); resultobj = Py_None; | |
12454 | return resultobj; | |
12455 | fail: | |
12456 | return NULL; | |
12457 | } | |
12458 | ||
12459 | ||
12460 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12461 | PyObject *resultobj; | |
12462 | wxDC *arg1 = (wxDC *) 0 ; | |
12463 | PyObject * obj0 = 0 ; | |
12464 | char *kwnames[] = { | |
12465 | (char *) "self", NULL | |
12466 | }; | |
12467 | ||
12468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12471 | { |
12472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12473 | (arg1)->EndPage(); | |
12474 | ||
12475 | wxPyEndAllowThreads(__tstate); | |
12476 | if (PyErr_Occurred()) SWIG_fail; | |
12477 | } | |
12478 | Py_INCREF(Py_None); resultobj = Py_None; | |
12479 | return resultobj; | |
12480 | fail: | |
12481 | return NULL; | |
12482 | } | |
12483 | ||
12484 | ||
12485 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12486 | PyObject *resultobj; | |
12487 | wxDC *arg1 = (wxDC *) 0 ; | |
12488 | wxFont *arg2 = 0 ; | |
12489 | PyObject * obj0 = 0 ; | |
12490 | PyObject * obj1 = 0 ; | |
12491 | char *kwnames[] = { | |
12492 | (char *) "self",(char *) "font", NULL | |
12493 | }; | |
12494 | ||
12495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12499 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12500 | SWIG_fail; | |
d14a1e28 | 12501 | if (arg2 == NULL) { |
15afbcd0 RD |
12502 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12503 | SWIG_fail; | |
d14a1e28 RD |
12504 | } |
12505 | { | |
12506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12507 | (arg1)->SetFont((wxFont const &)*arg2); | |
12508 | ||
12509 | wxPyEndAllowThreads(__tstate); | |
12510 | if (PyErr_Occurred()) SWIG_fail; | |
12511 | } | |
12512 | Py_INCREF(Py_None); resultobj = Py_None; | |
12513 | return resultobj; | |
12514 | fail: | |
12515 | return NULL; | |
12516 | } | |
12517 | ||
12518 | ||
12519 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12520 | PyObject *resultobj; | |
12521 | wxDC *arg1 = (wxDC *) 0 ; | |
12522 | wxPen *arg2 = 0 ; | |
12523 | PyObject * obj0 = 0 ; | |
12524 | PyObject * obj1 = 0 ; | |
12525 | char *kwnames[] = { | |
12526 | (char *) "self",(char *) "pen", NULL | |
12527 | }; | |
12528 | ||
12529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12532 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
12533 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12534 | SWIG_fail; | |
d14a1e28 | 12535 | if (arg2 == NULL) { |
15afbcd0 RD |
12536 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12537 | SWIG_fail; | |
d14a1e28 RD |
12538 | } |
12539 | { | |
12540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12541 | (arg1)->SetPen((wxPen const &)*arg2); | |
12542 | ||
12543 | wxPyEndAllowThreads(__tstate); | |
12544 | if (PyErr_Occurred()) SWIG_fail; | |
12545 | } | |
12546 | Py_INCREF(Py_None); resultobj = Py_None; | |
12547 | return resultobj; | |
12548 | fail: | |
12549 | return NULL; | |
12550 | } | |
12551 | ||
12552 | ||
12553 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12554 | PyObject *resultobj; | |
12555 | wxDC *arg1 = (wxDC *) 0 ; | |
12556 | wxBrush *arg2 = 0 ; | |
12557 | PyObject * obj0 = 0 ; | |
12558 | PyObject * obj1 = 0 ; | |
12559 | char *kwnames[] = { | |
12560 | (char *) "self",(char *) "brush", NULL | |
12561 | }; | |
12562 | ||
12563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12567 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12568 | SWIG_fail; | |
d14a1e28 | 12569 | if (arg2 == NULL) { |
15afbcd0 RD |
12570 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12571 | SWIG_fail; | |
d14a1e28 RD |
12572 | } |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12576 | ||
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
12580 | Py_INCREF(Py_None); resultobj = Py_None; | |
12581 | return resultobj; | |
12582 | fail: | |
12583 | return NULL; | |
12584 | } | |
12585 | ||
12586 | ||
12587 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12588 | PyObject *resultobj; | |
12589 | wxDC *arg1 = (wxDC *) 0 ; | |
12590 | wxBrush *arg2 = 0 ; | |
12591 | PyObject * obj0 = 0 ; | |
12592 | PyObject * obj1 = 0 ; | |
12593 | char *kwnames[] = { | |
12594 | (char *) "self",(char *) "brush", NULL | |
12595 | }; | |
12596 | ||
12597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12600 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12601 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12602 | SWIG_fail; | |
d14a1e28 | 12603 | if (arg2 == NULL) { |
15afbcd0 RD |
12604 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12605 | SWIG_fail; | |
d14a1e28 RD |
12606 | } |
12607 | { | |
12608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12609 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12610 | ||
12611 | wxPyEndAllowThreads(__tstate); | |
12612 | if (PyErr_Occurred()) SWIG_fail; | |
12613 | } | |
12614 | Py_INCREF(Py_None); resultobj = Py_None; | |
12615 | return resultobj; | |
12616 | fail: | |
12617 | return NULL; | |
12618 | } | |
12619 | ||
12620 | ||
12621 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12622 | PyObject *resultobj; | |
12623 | wxDC *arg1 = (wxDC *) 0 ; | |
12624 | int arg2 ; | |
12625 | PyObject * obj0 = 0 ; | |
994141e6 | 12626 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12627 | char *kwnames[] = { |
12628 | (char *) "self",(char *) "mode", NULL | |
12629 | }; | |
12630 | ||
994141e6 | 12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12634 | arg2 = (int) SWIG_AsInt(obj1); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12636 | { |
12637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12638 | (arg1)->SetBackgroundMode(arg2); | |
12639 | ||
12640 | wxPyEndAllowThreads(__tstate); | |
12641 | if (PyErr_Occurred()) SWIG_fail; | |
12642 | } | |
12643 | Py_INCREF(Py_None); resultobj = Py_None; | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
12650 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12651 | PyObject *resultobj; | |
12652 | wxDC *arg1 = (wxDC *) 0 ; | |
12653 | wxPalette *arg2 = 0 ; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | PyObject * obj1 = 0 ; | |
12656 | char *kwnames[] = { | |
12657 | (char *) "self",(char *) "palette", NULL | |
12658 | }; | |
12659 | ||
12660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12663 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
12664 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12665 | SWIG_fail; | |
d14a1e28 | 12666 | if (arg2 == NULL) { |
15afbcd0 RD |
12667 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12668 | SWIG_fail; | |
d14a1e28 RD |
12669 | } |
12670 | { | |
12671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12672 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12673 | ||
12674 | wxPyEndAllowThreads(__tstate); | |
12675 | if (PyErr_Occurred()) SWIG_fail; | |
12676 | } | |
12677 | Py_INCREF(Py_None); resultobj = Py_None; | |
12678 | return resultobj; | |
12679 | fail: | |
12680 | return NULL; | |
12681 | } | |
12682 | ||
12683 | ||
d14a1e28 RD |
12684 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12685 | PyObject *resultobj; | |
12686 | wxDC *arg1 = (wxDC *) 0 ; | |
12687 | PyObject * obj0 = 0 ; | |
12688 | char *kwnames[] = { | |
12689 | (char *) "self", NULL | |
12690 | }; | |
12691 | ||
12692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12695 | { |
12696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12697 | (arg1)->DestroyClippingRegion(); | |
12698 | ||
12699 | wxPyEndAllowThreads(__tstate); | |
12700 | if (PyErr_Occurred()) SWIG_fail; | |
12701 | } | |
12702 | Py_INCREF(Py_None); resultobj = Py_None; | |
12703 | return resultobj; | |
12704 | fail: | |
12705 | return NULL; | |
12706 | } | |
12707 | ||
12708 | ||
12709 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12710 | PyObject *resultobj; | |
12711 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
12712 | int *arg2 = (int *) 0 ; |
12713 | int *arg3 = (int *) 0 ; | |
12714 | int *arg4 = (int *) 0 ; | |
12715 | int *arg5 = (int *) 0 ; | |
12716 | int temp2 ; | |
12717 | int temp3 ; | |
12718 | int temp4 ; | |
12719 | int temp5 ; | |
d14a1e28 RD |
12720 | PyObject * obj0 = 0 ; |
12721 | char *kwnames[] = { | |
12722 | (char *) "self", NULL | |
12723 | }; | |
12724 | ||
12725 | arg2 = &temp2; | |
12726 | arg3 = &temp3; | |
12727 | arg4 = &temp4; | |
12728 | arg5 = &temp5; | |
12729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12732 | { |
12733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12734 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12735 | ||
12736 | wxPyEndAllowThreads(__tstate); | |
12737 | if (PyErr_Occurred()) SWIG_fail; | |
12738 | } | |
12739 | Py_INCREF(Py_None); resultobj = Py_None; | |
12740 | { | |
12741 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12742 | resultobj = t_output_helper(resultobj,o); | |
12743 | } | |
12744 | { | |
12745 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12746 | resultobj = t_output_helper(resultobj,o); | |
12747 | } | |
12748 | { | |
12749 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12750 | resultobj = t_output_helper(resultobj,o); | |
12751 | } | |
12752 | { | |
12753 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12754 | resultobj = t_output_helper(resultobj,o); | |
12755 | } | |
12756 | return resultobj; | |
12757 | fail: | |
12758 | return NULL; | |
12759 | } | |
12760 | ||
12761 | ||
12762 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12763 | PyObject *resultobj; | |
12764 | wxDC *arg1 = (wxDC *) 0 ; | |
12765 | wxRect result; | |
12766 | PyObject * obj0 = 0 ; | |
12767 | char *kwnames[] = { | |
12768 | (char *) "self", NULL | |
12769 | }; | |
12770 | ||
12771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12774 | { |
12775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12776 | result = wxDC_GetClippingRect(arg1); | |
12777 | ||
12778 | wxPyEndAllowThreads(__tstate); | |
12779 | if (PyErr_Occurred()) SWIG_fail; | |
12780 | } | |
12781 | { | |
12782 | wxRect * resultptr; | |
12783 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 12784 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
12785 | } |
12786 | return resultobj; | |
12787 | fail: | |
12788 | return NULL; | |
12789 | } | |
12790 | ||
12791 | ||
12792 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12793 | PyObject *resultobj; | |
12794 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12795 | int result; |
d14a1e28 RD |
12796 | PyObject * obj0 = 0 ; |
12797 | char *kwnames[] = { | |
12798 | (char *) "self", NULL | |
12799 | }; | |
12800 | ||
12801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12804 | { |
12805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12806 | result = (int)((wxDC const *)arg1)->GetCharHeight(); |
d14a1e28 RD |
12807 | |
12808 | wxPyEndAllowThreads(__tstate); | |
12809 | if (PyErr_Occurred()) SWIG_fail; | |
12810 | } | |
15afbcd0 | 12811 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12812 | return resultobj; |
12813 | fail: | |
12814 | return NULL; | |
12815 | } | |
12816 | ||
12817 | ||
12818 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12819 | PyObject *resultobj; | |
12820 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 12821 | int result; |
d14a1e28 RD |
12822 | PyObject * obj0 = 0 ; |
12823 | char *kwnames[] = { | |
12824 | (char *) "self", NULL | |
12825 | }; | |
12826 | ||
12827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12830 | { |
12831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 12832 | result = (int)((wxDC const *)arg1)->GetCharWidth(); |
d14a1e28 RD |
12833 | |
12834 | wxPyEndAllowThreads(__tstate); | |
12835 | if (PyErr_Occurred()) SWIG_fail; | |
12836 | } | |
15afbcd0 | 12837 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12838 | return resultobj; |
12839 | fail: | |
12840 | return NULL; | |
12841 | } | |
12842 | ||
12843 | ||
12844 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12845 | PyObject *resultobj; | |
12846 | wxDC *arg1 = (wxDC *) 0 ; | |
12847 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12848 | int *arg3 = (int *) 0 ; |
12849 | int *arg4 = (int *) 0 ; | |
12850 | bool temp2 = False ; | |
12851 | int temp3 ; | |
12852 | int temp4 ; | |
d14a1e28 RD |
12853 | PyObject * obj0 = 0 ; |
12854 | PyObject * obj1 = 0 ; | |
12855 | char *kwnames[] = { | |
12856 | (char *) "self",(char *) "string", NULL | |
12857 | }; | |
12858 | ||
12859 | arg3 = &temp3; | |
12860 | arg4 = &temp4; | |
12861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12864 | { |
12865 | arg2 = wxString_in_helper(obj1); | |
12866 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12867 | temp2 = True; |
d14a1e28 RD |
12868 | } |
12869 | { | |
12870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12871 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12872 | ||
12873 | wxPyEndAllowThreads(__tstate); | |
12874 | if (PyErr_Occurred()) SWIG_fail; | |
12875 | } | |
12876 | Py_INCREF(Py_None); resultobj = Py_None; | |
12877 | { | |
12878 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12879 | resultobj = t_output_helper(resultobj,o); | |
12880 | } | |
12881 | { | |
12882 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12883 | resultobj = t_output_helper(resultobj,o); | |
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 | ||
12899 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12900 | PyObject *resultobj; | |
12901 | wxDC *arg1 = (wxDC *) 0 ; | |
12902 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12903 | int *arg3 = (int *) 0 ; |
12904 | int *arg4 = (int *) 0 ; | |
12905 | int *arg5 = (int *) 0 ; | |
12906 | int *arg6 = (int *) 0 ; | |
d14a1e28 | 12907 | wxFont *arg7 = (wxFont *) NULL ; |
e811c8ce RD |
12908 | bool temp2 = False ; |
12909 | int temp3 ; | |
12910 | int temp4 ; | |
12911 | int temp5 ; | |
12912 | int temp6 ; | |
d14a1e28 RD |
12913 | PyObject * obj0 = 0 ; |
12914 | PyObject * obj1 = 0 ; | |
12915 | PyObject * obj2 = 0 ; | |
12916 | char *kwnames[] = { | |
12917 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12918 | }; | |
12919 | ||
12920 | arg3 = &temp3; | |
12921 | arg4 = &temp4; | |
12922 | arg5 = &temp5; | |
12923 | arg6 = &temp6; | |
12924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12927 | { |
12928 | arg2 = wxString_in_helper(obj1); | |
12929 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12930 | temp2 = True; |
d14a1e28 RD |
12931 | } |
12932 | if (obj2) { | |
15afbcd0 RD |
12933 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
12934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12935 | } |
12936 | { | |
12937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12938 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12939 | ||
12940 | wxPyEndAllowThreads(__tstate); | |
12941 | if (PyErr_Occurred()) SWIG_fail; | |
12942 | } | |
12943 | Py_INCREF(Py_None); resultobj = Py_None; | |
12944 | { | |
12945 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12946 | resultobj = t_output_helper(resultobj,o); | |
12947 | } | |
12948 | { | |
12949 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12950 | resultobj = t_output_helper(resultobj,o); | |
12951 | } | |
12952 | { | |
12953 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12954 | resultobj = t_output_helper(resultobj,o); | |
12955 | } | |
12956 | { | |
12957 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12958 | resultobj = t_output_helper(resultobj,o); | |
12959 | } | |
12960 | { | |
12961 | if (temp2) | |
12962 | delete arg2; | |
12963 | } | |
12964 | return resultobj; | |
12965 | fail: | |
12966 | { | |
12967 | if (temp2) | |
12968 | delete arg2; | |
12969 | } | |
12970 | return NULL; | |
12971 | } | |
12972 | ||
12973 | ||
12974 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12975 | PyObject *resultobj; | |
12976 | wxDC *arg1 = (wxDC *) 0 ; | |
12977 | wxString *arg2 = 0 ; | |
e811c8ce RD |
12978 | int *arg3 = (int *) 0 ; |
12979 | int *arg4 = (int *) 0 ; | |
12980 | int *arg5 = (int *) 0 ; | |
d14a1e28 | 12981 | wxFont *arg6 = (wxFont *) NULL ; |
e811c8ce RD |
12982 | bool temp2 = False ; |
12983 | int temp3 ; | |
12984 | int temp4 ; | |
12985 | int temp5 ; | |
d14a1e28 RD |
12986 | PyObject * obj0 = 0 ; |
12987 | PyObject * obj1 = 0 ; | |
12988 | PyObject * obj2 = 0 ; | |
12989 | char *kwnames[] = { | |
12990 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12991 | }; | |
12992 | ||
12993 | arg3 = &temp3; | |
12994 | arg4 = &temp4; | |
12995 | arg5 = &temp5; | |
12996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
12997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12999 | { |
13000 | arg2 = wxString_in_helper(obj1); | |
13001 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13002 | temp2 = True; |
d14a1e28 RD |
13003 | } |
13004 | if (obj2) { | |
15afbcd0 RD |
13005 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, |
13006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13007 | } |
13008 | { | |
13009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13010 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13011 | ||
13012 | wxPyEndAllowThreads(__tstate); | |
13013 | if (PyErr_Occurred()) SWIG_fail; | |
13014 | } | |
13015 | Py_INCREF(Py_None); resultobj = Py_None; | |
13016 | { | |
13017 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13018 | resultobj = t_output_helper(resultobj,o); | |
13019 | } | |
13020 | { | |
13021 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13022 | resultobj = t_output_helper(resultobj,o); | |
13023 | } | |
13024 | { | |
13025 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13026 | resultobj = t_output_helper(resultobj,o); | |
13027 | } | |
13028 | { | |
13029 | if (temp2) | |
13030 | delete arg2; | |
13031 | } | |
13032 | return resultobj; | |
13033 | fail: | |
13034 | { | |
13035 | if (temp2) | |
13036 | delete arg2; | |
13037 | } | |
13038 | return NULL; | |
13039 | } | |
13040 | ||
13041 | ||
db914595 RD |
13042 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { |
13043 | PyObject *resultobj; | |
13044 | wxDC *arg1 = (wxDC *) 0 ; | |
13045 | wxString *arg2 = 0 ; | |
13046 | wxArrayInt result; | |
13047 | bool temp2 = False ; | |
13048 | PyObject * obj0 = 0 ; | |
13049 | PyObject * obj1 = 0 ; | |
13050 | char *kwnames[] = { | |
13051 | (char *) "self",(char *) "text", NULL | |
13052 | }; | |
13053 | ||
13054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
db914595 RD |
13057 | { |
13058 | arg2 = wxString_in_helper(obj1); | |
13059 | if (arg2 == NULL) SWIG_fail; | |
13060 | temp2 = True; | |
13061 | } | |
13062 | { | |
13063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13064 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13065 | ||
13066 | wxPyEndAllowThreads(__tstate); | |
13067 | if (PyErr_Occurred()) SWIG_fail; | |
13068 | } | |
13069 | { | |
13070 | resultobj = PyList_New(0); | |
13071 | size_t idx; | |
13072 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13073 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13074 | PyList_Append(resultobj, val); | |
13075 | Py_DECREF(val); | |
13076 | } | |
13077 | } | |
13078 | { | |
13079 | if (temp2) | |
13080 | delete arg2; | |
13081 | } | |
13082 | return resultobj; | |
13083 | fail: | |
13084 | { | |
13085 | if (temp2) | |
13086 | delete arg2; | |
13087 | } | |
13088 | return NULL; | |
13089 | } | |
13090 | ||
13091 | ||
322913ce RD |
13092 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
13093 | PyObject *resultobj; | |
13094 | wxDC *arg1 = (wxDC *) 0 ; | |
13095 | wxSize result; | |
13096 | PyObject * obj0 = 0 ; | |
13097 | char *kwnames[] = { | |
13098 | (char *) "self", NULL | |
13099 | }; | |
13100 | ||
13101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
322913ce RD |
13104 | { |
13105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13106 | result = (arg1)->GetSize(); | |
13107 | ||
13108 | wxPyEndAllowThreads(__tstate); | |
13109 | if (PyErr_Occurred()) SWIG_fail; | |
13110 | } | |
13111 | { | |
13112 | wxSize * resultptr; | |
13113 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
322913ce RD |
13115 | } |
13116 | return resultobj; | |
13117 | fail: | |
13118 | return NULL; | |
13119 | } | |
13120 | ||
13121 | ||
d14a1e28 RD |
13122 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
13123 | PyObject *resultobj; | |
13124 | wxDC *arg1 = (wxDC *) 0 ; | |
13125 | int *arg2 = (int *) 0 ; | |
13126 | int *arg3 = (int *) 0 ; | |
13127 | int temp2 ; | |
13128 | int temp3 ; | |
13129 | PyObject * obj0 = 0 ; | |
13130 | char *kwnames[] = { | |
13131 | (char *) "self", NULL | |
13132 | }; | |
13133 | ||
13134 | arg2 = &temp2; | |
13135 | arg3 = &temp3; | |
13136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13139 | { |
13140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13141 | (arg1)->GetSize(arg2,arg3); | |
13142 | ||
13143 | wxPyEndAllowThreads(__tstate); | |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
13145 | } | |
13146 | Py_INCREF(Py_None); resultobj = Py_None; | |
13147 | { | |
13148 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13149 | resultobj = t_output_helper(resultobj,o); | |
13150 | } | |
13151 | { | |
13152 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13153 | resultobj = t_output_helper(resultobj,o); | |
13154 | } | |
13155 | return resultobj; | |
13156 | fail: | |
13157 | return NULL; | |
13158 | } | |
13159 | ||
13160 | ||
322913ce | 13161 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13162 | PyObject *resultobj; |
13163 | wxDC *arg1 = (wxDC *) 0 ; | |
13164 | wxSize result; | |
13165 | PyObject * obj0 = 0 ; | |
13166 | char *kwnames[] = { | |
13167 | (char *) "self", NULL | |
13168 | }; | |
13169 | ||
322913ce | 13170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13173 | { |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 13175 | result = ((wxDC const *)arg1)->GetSizeMM(); |
d14a1e28 RD |
13176 | |
13177 | wxPyEndAllowThreads(__tstate); | |
13178 | if (PyErr_Occurred()) SWIG_fail; | |
13179 | } | |
13180 | { | |
13181 | wxSize * resultptr; | |
13182 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13183 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13184 | } |
13185 | return resultobj; | |
13186 | fail: | |
13187 | return NULL; | |
13188 | } | |
13189 | ||
13190 | ||
322913ce | 13191 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
13192 | PyObject *resultobj; |
13193 | wxDC *arg1 = (wxDC *) 0 ; | |
13194 | int *arg2 = (int *) 0 ; | |
13195 | int *arg3 = (int *) 0 ; | |
13196 | int temp2 ; | |
13197 | int temp3 ; | |
13198 | PyObject * obj0 = 0 ; | |
13199 | char *kwnames[] = { | |
13200 | (char *) "self", NULL | |
13201 | }; | |
13202 | ||
13203 | arg2 = &temp2; | |
13204 | arg3 = &temp3; | |
322913ce | 13205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
13206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13208 | { |
13209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13210 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13211 | ||
13212 | wxPyEndAllowThreads(__tstate); | |
13213 | if (PyErr_Occurred()) SWIG_fail; | |
13214 | } | |
13215 | Py_INCREF(Py_None); resultobj = Py_None; | |
13216 | { | |
13217 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13218 | resultobj = t_output_helper(resultobj,o); | |
13219 | } | |
13220 | { | |
13221 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13222 | resultobj = t_output_helper(resultobj,o); | |
13223 | } | |
13224 | return resultobj; | |
13225 | fail: | |
13226 | return NULL; | |
13227 | } | |
13228 | ||
13229 | ||
d14a1e28 RD |
13230 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
13231 | PyObject *resultobj; | |
13232 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13233 | int arg2 ; |
13234 | int result; | |
d14a1e28 | 13235 | PyObject * obj0 = 0 ; |
994141e6 | 13236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13237 | char *kwnames[] = { |
13238 | (char *) "self",(char *) "x", NULL | |
13239 | }; | |
13240 | ||
994141e6 | 13241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13244 | arg2 = (int) SWIG_AsInt(obj1); | |
13245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13246 | { |
13247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13248 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); |
d14a1e28 RD |
13249 | |
13250 | wxPyEndAllowThreads(__tstate); | |
13251 | if (PyErr_Occurred()) SWIG_fail; | |
13252 | } | |
15afbcd0 | 13253 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13254 | return resultobj; |
13255 | fail: | |
13256 | return NULL; | |
13257 | } | |
13258 | ||
13259 | ||
13260 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13261 | PyObject *resultobj; | |
13262 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13263 | int arg2 ; |
13264 | int result; | |
d14a1e28 | 13265 | PyObject * obj0 = 0 ; |
994141e6 | 13266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13267 | char *kwnames[] = { |
13268 | (char *) "self",(char *) "y", NULL | |
13269 | }; | |
13270 | ||
994141e6 | 13271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13274 | arg2 = (int) SWIG_AsInt(obj1); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13276 | { |
13277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13278 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); |
d14a1e28 RD |
13279 | |
13280 | wxPyEndAllowThreads(__tstate); | |
13281 | if (PyErr_Occurred()) SWIG_fail; | |
13282 | } | |
15afbcd0 | 13283 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13284 | return resultobj; |
13285 | fail: | |
13286 | return NULL; | |
13287 | } | |
13288 | ||
13289 | ||
13290 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13291 | PyObject *resultobj; | |
13292 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13293 | int arg2 ; |
13294 | int result; | |
d14a1e28 | 13295 | PyObject * obj0 = 0 ; |
994141e6 | 13296 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13297 | char *kwnames[] = { |
13298 | (char *) "self",(char *) "x", NULL | |
13299 | }; | |
13300 | ||
994141e6 | 13301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13304 | arg2 = (int) SWIG_AsInt(obj1); | |
13305 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13306 | { |
13307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13308 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); |
d14a1e28 RD |
13309 | |
13310 | wxPyEndAllowThreads(__tstate); | |
13311 | if (PyErr_Occurred()) SWIG_fail; | |
13312 | } | |
15afbcd0 | 13313 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13314 | return resultobj; |
13315 | fail: | |
13316 | return NULL; | |
13317 | } | |
13318 | ||
13319 | ||
13320 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13321 | PyObject *resultobj; | |
13322 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13323 | int arg2 ; |
13324 | int result; | |
d14a1e28 | 13325 | PyObject * obj0 = 0 ; |
994141e6 | 13326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13327 | char *kwnames[] = { |
13328 | (char *) "self",(char *) "y", NULL | |
13329 | }; | |
13330 | ||
994141e6 | 13331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13334 | arg2 = (int) SWIG_AsInt(obj1); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13336 | { |
13337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13338 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); |
d14a1e28 RD |
13339 | |
13340 | wxPyEndAllowThreads(__tstate); | |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
13342 | } | |
15afbcd0 | 13343 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13344 | return resultobj; |
13345 | fail: | |
13346 | return NULL; | |
13347 | } | |
13348 | ||
13349 | ||
13350 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13351 | PyObject *resultobj; | |
13352 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13353 | int arg2 ; |
13354 | int result; | |
d14a1e28 | 13355 | PyObject * obj0 = 0 ; |
994141e6 | 13356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13357 | char *kwnames[] = { |
13358 | (char *) "self",(char *) "x", NULL | |
13359 | }; | |
13360 | ||
994141e6 | 13361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13364 | arg2 = (int) SWIG_AsInt(obj1); | |
13365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13366 | { |
13367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13368 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); |
d14a1e28 RD |
13369 | |
13370 | wxPyEndAllowThreads(__tstate); | |
13371 | if (PyErr_Occurred()) SWIG_fail; | |
13372 | } | |
15afbcd0 | 13373 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13374 | return resultobj; |
13375 | fail: | |
13376 | return NULL; | |
13377 | } | |
13378 | ||
13379 | ||
13380 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13381 | PyObject *resultobj; | |
13382 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13383 | int arg2 ; |
13384 | int result; | |
d14a1e28 | 13385 | PyObject * obj0 = 0 ; |
994141e6 | 13386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13387 | char *kwnames[] = { |
13388 | (char *) "self",(char *) "y", NULL | |
13389 | }; | |
13390 | ||
994141e6 | 13391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13394 | arg2 = (int) SWIG_AsInt(obj1); | |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13396 | { |
13397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13398 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); |
d14a1e28 RD |
13399 | |
13400 | wxPyEndAllowThreads(__tstate); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
13402 | } | |
15afbcd0 | 13403 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13404 | return resultobj; |
13405 | fail: | |
13406 | return NULL; | |
13407 | } | |
13408 | ||
13409 | ||
13410 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13411 | PyObject *resultobj; | |
13412 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13413 | int arg2 ; |
13414 | int result; | |
d14a1e28 | 13415 | PyObject * obj0 = 0 ; |
994141e6 | 13416 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13417 | char *kwnames[] = { |
13418 | (char *) "self",(char *) "x", NULL | |
13419 | }; | |
13420 | ||
994141e6 | 13421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13424 | arg2 = (int) SWIG_AsInt(obj1); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13426 | { |
13427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13428 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); |
d14a1e28 RD |
13429 | |
13430 | wxPyEndAllowThreads(__tstate); | |
13431 | if (PyErr_Occurred()) SWIG_fail; | |
13432 | } | |
15afbcd0 | 13433 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13434 | return resultobj; |
13435 | fail: | |
13436 | return NULL; | |
13437 | } | |
13438 | ||
13439 | ||
13440 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13441 | PyObject *resultobj; | |
13442 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
13443 | int arg2 ; |
13444 | int result; | |
d14a1e28 | 13445 | PyObject * obj0 = 0 ; |
994141e6 | 13446 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13447 | char *kwnames[] = { |
13448 | (char *) "self",(char *) "y", NULL | |
13449 | }; | |
13450 | ||
994141e6 | 13451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13454 | arg2 = (int) SWIG_AsInt(obj1); | |
13455 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13456 | { |
13457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 13458 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); |
d14a1e28 RD |
13459 | |
13460 | wxPyEndAllowThreads(__tstate); | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
15afbcd0 | 13463 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13464 | return resultobj; |
13465 | fail: | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
13470 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13471 | PyObject *resultobj; | |
13472 | wxDC *arg1 = (wxDC *) 0 ; | |
13473 | bool result; | |
13474 | PyObject * obj0 = 0 ; | |
13475 | char *kwnames[] = { | |
13476 | (char *) "self", NULL | |
13477 | }; | |
13478 | ||
13479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13482 | { |
13483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13484 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13485 | ||
13486 | wxPyEndAllowThreads(__tstate); | |
13487 | if (PyErr_Occurred()) SWIG_fail; | |
13488 | } | |
4f89f6a3 RD |
13489 | { |
13490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13491 | } | |
d14a1e28 RD |
13492 | return resultobj; |
13493 | fail: | |
13494 | return NULL; | |
13495 | } | |
13496 | ||
13497 | ||
13498 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13499 | PyObject *resultobj; | |
13500 | wxDC *arg1 = (wxDC *) 0 ; | |
13501 | bool result; | |
13502 | PyObject * obj0 = 0 ; | |
13503 | char *kwnames[] = { | |
13504 | (char *) "self", NULL | |
13505 | }; | |
13506 | ||
13507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13510 | { |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13513 | ||
13514 | wxPyEndAllowThreads(__tstate); | |
13515 | if (PyErr_Occurred()) SWIG_fail; | |
13516 | } | |
4f89f6a3 RD |
13517 | { |
13518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13519 | } | |
d14a1e28 RD |
13520 | return resultobj; |
13521 | fail: | |
13522 | return NULL; | |
13523 | } | |
13524 | ||
13525 | ||
13526 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13527 | PyObject *resultobj; | |
13528 | wxDC *arg1 = (wxDC *) 0 ; | |
13529 | int result; | |
13530 | PyObject * obj0 = 0 ; | |
13531 | char *kwnames[] = { | |
13532 | (char *) "self", NULL | |
13533 | }; | |
13534 | ||
13535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13538 | { |
13539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13540 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13541 | ||
13542 | wxPyEndAllowThreads(__tstate); | |
13543 | if (PyErr_Occurred()) SWIG_fail; | |
13544 | } | |
15afbcd0 | 13545 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13546 | return resultobj; |
13547 | fail: | |
13548 | return NULL; | |
13549 | } | |
13550 | ||
13551 | ||
13552 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj; | |
13554 | wxDC *arg1 = (wxDC *) 0 ; | |
13555 | wxSize result; | |
13556 | PyObject * obj0 = 0 ; | |
13557 | char *kwnames[] = { | |
13558 | (char *) "self", NULL | |
13559 | }; | |
13560 | ||
13561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13564 | { |
13565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13566 | result = ((wxDC const *)arg1)->GetPPI(); | |
13567 | ||
13568 | wxPyEndAllowThreads(__tstate); | |
13569 | if (PyErr_Occurred()) SWIG_fail; | |
13570 | } | |
13571 | { | |
13572 | wxSize * resultptr; | |
13573 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 13574 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13575 | } |
13576 | return resultobj; | |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj; | |
13584 | wxDC *arg1 = (wxDC *) 0 ; | |
13585 | bool result; | |
13586 | PyObject * obj0 = 0 ; | |
13587 | char *kwnames[] = { | |
13588 | (char *) "self", NULL | |
13589 | }; | |
13590 | ||
13591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 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 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13597 | ||
13598 | wxPyEndAllowThreads(__tstate); | |
13599 | if (PyErr_Occurred()) SWIG_fail; | |
13600 | } | |
4f89f6a3 RD |
13601 | { |
13602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13603 | } | |
d14a1e28 RD |
13604 | return resultobj; |
13605 | fail: | |
13606 | return NULL; | |
13607 | } | |
13608 | ||
13609 | ||
13610 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13611 | PyObject *resultobj; | |
13612 | wxDC *arg1 = (wxDC *) 0 ; | |
13613 | int result; | |
13614 | PyObject * obj0 = 0 ; | |
13615 | char *kwnames[] = { | |
13616 | (char *) "self", NULL | |
13617 | }; | |
13618 | ||
13619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13622 | { |
13623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13624 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13625 | ||
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
15afbcd0 | 13629 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13630 | return resultobj; |
13631 | fail: | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
13636 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13637 | PyObject *resultobj; | |
13638 | wxDC *arg1 = (wxDC *) 0 ; | |
13639 | wxBrush *result; | |
13640 | PyObject * obj0 = 0 ; | |
13641 | char *kwnames[] = { | |
13642 | (char *) "self", NULL | |
13643 | }; | |
13644 | ||
13645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13648 | { |
13649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13650 | { | |
13651 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13652 | result = (wxBrush *) &_result_ref; | |
13653 | } | |
13654 | ||
13655 | wxPyEndAllowThreads(__tstate); | |
13656 | if (PyErr_Occurred()) SWIG_fail; | |
13657 | } | |
4276dc52 RD |
13658 | { |
13659 | wxBrush* resultptr = new wxBrush(*result); | |
13660 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
13661 | } | |
d14a1e28 RD |
13662 | return resultobj; |
13663 | fail: | |
13664 | return NULL; | |
13665 | } | |
13666 | ||
13667 | ||
13668 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13669 | PyObject *resultobj; | |
13670 | wxDC *arg1 = (wxDC *) 0 ; | |
13671 | wxBrush *result; | |
13672 | PyObject * obj0 = 0 ; | |
13673 | char *kwnames[] = { | |
13674 | (char *) "self", NULL | |
13675 | }; | |
13676 | ||
13677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13680 | { |
13681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13682 | { | |
13683 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13684 | result = (wxBrush *) &_result_ref; | |
13685 | } | |
13686 | ||
13687 | wxPyEndAllowThreads(__tstate); | |
13688 | if (PyErr_Occurred()) SWIG_fail; | |
13689 | } | |
4276dc52 RD |
13690 | { |
13691 | wxBrush* resultptr = new wxBrush(*result); | |
13692 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
13693 | } | |
d14a1e28 RD |
13694 | return resultobj; |
13695 | fail: | |
13696 | return NULL; | |
13697 | } | |
13698 | ||
13699 | ||
13700 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13701 | PyObject *resultobj; | |
13702 | wxDC *arg1 = (wxDC *) 0 ; | |
13703 | wxFont *result; | |
13704 | PyObject * obj0 = 0 ; | |
13705 | char *kwnames[] = { | |
13706 | (char *) "self", NULL | |
13707 | }; | |
13708 | ||
13709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13712 | { |
13713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13714 | { | |
13715 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13716 | result = (wxFont *) &_result_ref; | |
13717 | } | |
13718 | ||
13719 | wxPyEndAllowThreads(__tstate); | |
13720 | if (PyErr_Occurred()) SWIG_fail; | |
13721 | } | |
4276dc52 RD |
13722 | { |
13723 | wxFont* resultptr = new wxFont(*result); | |
13724 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13725 | } | |
d14a1e28 RD |
13726 | return resultobj; |
13727 | fail: | |
13728 | return NULL; | |
13729 | } | |
13730 | ||
13731 | ||
13732 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13733 | PyObject *resultobj; | |
13734 | wxDC *arg1 = (wxDC *) 0 ; | |
13735 | wxPen *result; | |
13736 | PyObject * obj0 = 0 ; | |
13737 | char *kwnames[] = { | |
13738 | (char *) "self", NULL | |
13739 | }; | |
13740 | ||
13741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13744 | { |
13745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13746 | { | |
13747 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13748 | result = (wxPen *) &_result_ref; | |
13749 | } | |
13750 | ||
13751 | wxPyEndAllowThreads(__tstate); | |
13752 | if (PyErr_Occurred()) SWIG_fail; | |
13753 | } | |
4276dc52 RD |
13754 | { |
13755 | wxPen* resultptr = new wxPen(*result); | |
13756 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
13757 | } | |
d14a1e28 RD |
13758 | return resultobj; |
13759 | fail: | |
13760 | return NULL; | |
13761 | } | |
13762 | ||
13763 | ||
13764 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13765 | PyObject *resultobj; | |
13766 | wxDC *arg1 = (wxDC *) 0 ; | |
13767 | wxColour *result; | |
13768 | PyObject * obj0 = 0 ; | |
13769 | char *kwnames[] = { | |
13770 | (char *) "self", NULL | |
13771 | }; | |
13772 | ||
13773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13776 | { |
13777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13778 | { | |
13779 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13780 | result = (wxColour *) &_result_ref; | |
13781 | } | |
13782 | ||
13783 | wxPyEndAllowThreads(__tstate); | |
13784 | if (PyErr_Occurred()) SWIG_fail; | |
13785 | } | |
15afbcd0 | 13786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
13787 | return resultobj; |
13788 | fail: | |
13789 | return NULL; | |
13790 | } | |
13791 | ||
13792 | ||
13793 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13794 | PyObject *resultobj; | |
13795 | wxDC *arg1 = (wxDC *) 0 ; | |
13796 | wxColour *result; | |
13797 | PyObject * obj0 = 0 ; | |
13798 | char *kwnames[] = { | |
13799 | (char *) "self", NULL | |
13800 | }; | |
13801 | ||
13802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13805 | { |
13806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13807 | { | |
13808 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13809 | result = (wxColour *) &_result_ref; | |
13810 | } | |
13811 | ||
13812 | wxPyEndAllowThreads(__tstate); | |
13813 | if (PyErr_Occurred()) SWIG_fail; | |
13814 | } | |
15afbcd0 | 13815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
13816 | return resultobj; |
13817 | fail: | |
13818 | return NULL; | |
13819 | } | |
13820 | ||
13821 | ||
13822 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13823 | PyObject *resultobj; | |
13824 | wxDC *arg1 = (wxDC *) 0 ; | |
13825 | wxColour *arg2 = 0 ; | |
13826 | wxColour temp2 ; | |
13827 | PyObject * obj0 = 0 ; | |
13828 | PyObject * obj1 = 0 ; | |
13829 | char *kwnames[] = { | |
13830 | (char *) "self",(char *) "colour", NULL | |
13831 | }; | |
13832 | ||
13833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13836 | { |
13837 | arg2 = &temp2; | |
13838 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13839 | } | |
13840 | { | |
13841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13842 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13843 | ||
13844 | wxPyEndAllowThreads(__tstate); | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | Py_INCREF(Py_None); resultobj = Py_None; | |
13848 | return resultobj; | |
13849 | fail: | |
13850 | return NULL; | |
13851 | } | |
13852 | ||
13853 | ||
13854 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13855 | PyObject *resultobj; | |
13856 | wxDC *arg1 = (wxDC *) 0 ; | |
13857 | wxColour *arg2 = 0 ; | |
13858 | wxColour temp2 ; | |
13859 | PyObject * obj0 = 0 ; | |
13860 | PyObject * obj1 = 0 ; | |
13861 | char *kwnames[] = { | |
13862 | (char *) "self",(char *) "colour", NULL | |
13863 | }; | |
13864 | ||
13865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13868 | { |
13869 | arg2 = &temp2; | |
13870 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13871 | } | |
13872 | { | |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
13879 | Py_INCREF(Py_None); resultobj = Py_None; | |
13880 | return resultobj; | |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13887 | PyObject *resultobj; | |
13888 | wxDC *arg1 = (wxDC *) 0 ; | |
13889 | int result; | |
13890 | PyObject * obj0 = 0 ; | |
13891 | char *kwnames[] = { | |
13892 | (char *) "self", NULL | |
13893 | }; | |
13894 | ||
13895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13898 | { |
13899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13900 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13901 | ||
13902 | wxPyEndAllowThreads(__tstate); | |
13903 | if (PyErr_Occurred()) SWIG_fail; | |
13904 | } | |
15afbcd0 | 13905 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13906 | return resultobj; |
13907 | fail: | |
13908 | return NULL; | |
13909 | } | |
13910 | ||
13911 | ||
13912 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13913 | PyObject *resultobj; | |
13914 | wxDC *arg1 = (wxDC *) 0 ; | |
13915 | int arg2 ; | |
13916 | PyObject * obj0 = 0 ; | |
994141e6 | 13917 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13918 | char *kwnames[] = { |
13919 | (char *) "self",(char *) "mode", NULL | |
13920 | }; | |
13921 | ||
994141e6 | 13922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13925 | arg2 = (int) SWIG_AsInt(obj1); | |
13926 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13927 | { |
13928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13929 | (arg1)->SetMapMode(arg2); | |
13930 | ||
13931 | wxPyEndAllowThreads(__tstate); | |
13932 | if (PyErr_Occurred()) SWIG_fail; | |
13933 | } | |
13934 | Py_INCREF(Py_None); resultobj = Py_None; | |
13935 | return resultobj; | |
13936 | fail: | |
13937 | return NULL; | |
13938 | } | |
13939 | ||
13940 | ||
13941 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13942 | PyObject *resultobj; | |
13943 | wxDC *arg1 = (wxDC *) 0 ; | |
13944 | double *arg2 = (double *) 0 ; | |
13945 | double *arg3 = (double *) 0 ; | |
13946 | double temp2 ; | |
13947 | double temp3 ; | |
13948 | PyObject * obj0 = 0 ; | |
13949 | char *kwnames[] = { | |
13950 | (char *) "self", NULL | |
13951 | }; | |
13952 | ||
13953 | arg2 = &temp2; | |
13954 | arg3 = &temp3; | |
13955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13958 | { |
13959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13960 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13961 | ||
13962 | wxPyEndAllowThreads(__tstate); | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | } | |
13965 | Py_INCREF(Py_None); resultobj = Py_None; | |
13966 | { | |
13967 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13968 | resultobj = t_output_helper(resultobj,o); | |
13969 | } | |
13970 | { | |
13971 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13972 | resultobj = t_output_helper(resultobj,o); | |
13973 | } | |
13974 | return resultobj; | |
13975 | fail: | |
13976 | return NULL; | |
13977 | } | |
13978 | ||
13979 | ||
13980 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13981 | PyObject *resultobj; | |
13982 | wxDC *arg1 = (wxDC *) 0 ; | |
13983 | double arg2 ; | |
13984 | double arg3 ; | |
13985 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13986 | PyObject * obj1 = 0 ; |
13987 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13988 | char *kwnames[] = { |
13989 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13990 | }; | |
13991 | ||
994141e6 | 13992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
13994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13995 | arg2 = (double) SWIG_AsDouble(obj1); | |
13996 | if (PyErr_Occurred()) SWIG_fail; | |
13997 | arg3 = (double) SWIG_AsDouble(obj2); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13999 | { |
14000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14001 | (arg1)->SetUserScale(arg2,arg3); | |
14002 | ||
14003 | wxPyEndAllowThreads(__tstate); | |
14004 | if (PyErr_Occurred()) SWIG_fail; | |
14005 | } | |
14006 | Py_INCREF(Py_None); resultobj = Py_None; | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj; | |
14015 | wxDC *arg1 = (wxDC *) 0 ; | |
14016 | double *arg2 = (double *) 0 ; | |
14017 | double *arg3 = (double *) 0 ; | |
14018 | double temp2 ; | |
14019 | double temp3 ; | |
14020 | PyObject * obj0 = 0 ; | |
14021 | char *kwnames[] = { | |
14022 | (char *) "self", NULL | |
14023 | }; | |
14024 | ||
14025 | arg2 = &temp2; | |
14026 | arg3 = &temp3; | |
14027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14030 | { |
14031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14032 | (arg1)->GetLogicalScale(arg2,arg3); | |
14033 | ||
14034 | wxPyEndAllowThreads(__tstate); | |
14035 | if (PyErr_Occurred()) SWIG_fail; | |
14036 | } | |
14037 | Py_INCREF(Py_None); resultobj = Py_None; | |
14038 | { | |
14039 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14040 | resultobj = t_output_helper(resultobj,o); | |
14041 | } | |
14042 | { | |
14043 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14044 | resultobj = t_output_helper(resultobj,o); | |
14045 | } | |
14046 | return resultobj; | |
14047 | fail: | |
14048 | return NULL; | |
14049 | } | |
14050 | ||
14051 | ||
14052 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14053 | PyObject *resultobj; | |
14054 | wxDC *arg1 = (wxDC *) 0 ; | |
14055 | double arg2 ; | |
14056 | double arg3 ; | |
14057 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14058 | PyObject * obj1 = 0 ; |
14059 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14060 | char *kwnames[] = { |
14061 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14062 | }; | |
14063 | ||
994141e6 | 14064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14067 | arg2 = (double) SWIG_AsDouble(obj1); | |
14068 | if (PyErr_Occurred()) SWIG_fail; | |
14069 | arg3 = (double) SWIG_AsDouble(obj2); | |
14070 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14071 | { |
14072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14073 | (arg1)->SetLogicalScale(arg2,arg3); | |
14074 | ||
14075 | wxPyEndAllowThreads(__tstate); | |
14076 | if (PyErr_Occurred()) SWIG_fail; | |
14077 | } | |
14078 | Py_INCREF(Py_None); resultobj = Py_None; | |
14079 | return resultobj; | |
14080 | fail: | |
14081 | return NULL; | |
14082 | } | |
14083 | ||
14084 | ||
322913ce | 14085 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14086 | PyObject *resultobj; |
14087 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14088 | wxPoint result; |
d14a1e28 RD |
14089 | PyObject * obj0 = 0 ; |
14090 | char *kwnames[] = { | |
14091 | (char *) "self", NULL | |
14092 | }; | |
14093 | ||
322913ce | 14094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14097 | { |
14098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14099 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); |
d14a1e28 RD |
14100 | |
14101 | wxPyEndAllowThreads(__tstate); | |
14102 | if (PyErr_Occurred()) SWIG_fail; | |
14103 | } | |
d14a1e28 | 14104 | { |
322913ce RD |
14105 | wxPoint * resultptr; |
14106 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14107 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14108 | } |
14109 | return resultobj; | |
14110 | fail: | |
14111 | return NULL; | |
14112 | } | |
14113 | ||
14114 | ||
322913ce | 14115 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14116 | PyObject *resultobj; |
14117 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14118 | int *arg2 = (int *) 0 ; |
14119 | int *arg3 = (int *) 0 ; | |
14120 | int temp2 ; | |
14121 | int temp3 ; | |
d14a1e28 RD |
14122 | PyObject * obj0 = 0 ; |
14123 | char *kwnames[] = { | |
14124 | (char *) "self", NULL | |
14125 | }; | |
14126 | ||
322913ce RD |
14127 | arg2 = &temp2; |
14128 | arg3 = &temp3; | |
14129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14132 | { |
14133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14134 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); |
d14a1e28 RD |
14135 | |
14136 | wxPyEndAllowThreads(__tstate); | |
14137 | if (PyErr_Occurred()) SWIG_fail; | |
14138 | } | |
322913ce | 14139 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14140 | { |
322913ce RD |
14141 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14142 | resultobj = t_output_helper(resultobj,o); | |
14143 | } | |
14144 | { | |
14145 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14146 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14147 | } |
14148 | return resultobj; | |
14149 | fail: | |
14150 | return NULL; | |
14151 | } | |
14152 | ||
14153 | ||
14154 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14155 | PyObject *resultobj; | |
14156 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14157 | int arg2 ; |
14158 | int arg3 ; | |
d14a1e28 | 14159 | PyObject * obj0 = 0 ; |
994141e6 RD |
14160 | PyObject * obj1 = 0 ; |
14161 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14162 | char *kwnames[] = { |
14163 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14164 | }; | |
14165 | ||
994141e6 | 14166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14169 | arg2 = (int) SWIG_AsInt(obj1); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | arg3 = (int) SWIG_AsInt(obj2); | |
14172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14173 | { |
14174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14175 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14176 | ||
14177 | wxPyEndAllowThreads(__tstate); | |
14178 | if (PyErr_Occurred()) SWIG_fail; | |
14179 | } | |
14180 | Py_INCREF(Py_None); resultobj = Py_None; | |
14181 | return resultobj; | |
14182 | fail: | |
14183 | return NULL; | |
14184 | } | |
14185 | ||
14186 | ||
03e37cd5 RD |
14187 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14188 | PyObject *resultobj; | |
14189 | wxDC *arg1 = (wxDC *) 0 ; | |
14190 | wxPoint *arg2 = 0 ; | |
14191 | wxPoint temp2 ; | |
14192 | PyObject * obj0 = 0 ; | |
14193 | PyObject * obj1 = 0 ; | |
14194 | char *kwnames[] = { | |
14195 | (char *) "self",(char *) "point", NULL | |
14196 | }; | |
14197 | ||
14198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14201 | { | |
14202 | arg2 = &temp2; | |
14203 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14204 | } | |
14205 | { | |
14206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14207 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14208 | ||
14209 | wxPyEndAllowThreads(__tstate); | |
14210 | if (PyErr_Occurred()) SWIG_fail; | |
14211 | } | |
14212 | Py_INCREF(Py_None); resultobj = Py_None; | |
14213 | return resultobj; | |
14214 | fail: | |
14215 | return NULL; | |
14216 | } | |
14217 | ||
14218 | ||
322913ce | 14219 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14220 | PyObject *resultobj; |
14221 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce | 14222 | wxPoint result; |
d14a1e28 RD |
14223 | PyObject * obj0 = 0 ; |
14224 | char *kwnames[] = { | |
14225 | (char *) "self", NULL | |
14226 | }; | |
14227 | ||
322913ce | 14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
14229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14231 | { |
14232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14233 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); |
d14a1e28 RD |
14234 | |
14235 | wxPyEndAllowThreads(__tstate); | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | } | |
d14a1e28 | 14238 | { |
322913ce RD |
14239 | wxPoint * resultptr; |
14240 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14241 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14242 | } |
14243 | return resultobj; | |
14244 | fail: | |
14245 | return NULL; | |
14246 | } | |
14247 | ||
14248 | ||
322913ce | 14249 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
14250 | PyObject *resultobj; |
14251 | wxDC *arg1 = (wxDC *) 0 ; | |
322913ce RD |
14252 | int *arg2 = (int *) 0 ; |
14253 | int *arg3 = (int *) 0 ; | |
14254 | int temp2 ; | |
14255 | int temp3 ; | |
d14a1e28 RD |
14256 | PyObject * obj0 = 0 ; |
14257 | char *kwnames[] = { | |
14258 | (char *) "self", NULL | |
14259 | }; | |
14260 | ||
322913ce RD |
14261 | arg2 = &temp2; |
14262 | arg3 = &temp3; | |
14263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14266 | { |
14267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 14268 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); |
d14a1e28 RD |
14269 | |
14270 | wxPyEndAllowThreads(__tstate); | |
14271 | if (PyErr_Occurred()) SWIG_fail; | |
14272 | } | |
322913ce | 14273 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 14274 | { |
322913ce RD |
14275 | PyObject *o = PyInt_FromLong((long) (*arg2)); |
14276 | resultobj = t_output_helper(resultobj,o); | |
14277 | } | |
14278 | { | |
14279 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14280 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
14281 | } |
14282 | return resultobj; | |
14283 | fail: | |
14284 | return NULL; | |
14285 | } | |
14286 | ||
14287 | ||
14288 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14289 | PyObject *resultobj; | |
14290 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14291 | int arg2 ; |
14292 | int arg3 ; | |
d14a1e28 | 14293 | PyObject * obj0 = 0 ; |
994141e6 RD |
14294 | PyObject * obj1 = 0 ; |
14295 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14296 | char *kwnames[] = { |
14297 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14298 | }; | |
14299 | ||
994141e6 | 14300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14303 | arg2 = (int) SWIG_AsInt(obj1); | |
14304 | if (PyErr_Occurred()) SWIG_fail; | |
14305 | arg3 = (int) SWIG_AsInt(obj2); | |
14306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14307 | { |
14308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14309 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14310 | ||
14311 | wxPyEndAllowThreads(__tstate); | |
14312 | if (PyErr_Occurred()) SWIG_fail; | |
14313 | } | |
14314 | Py_INCREF(Py_None); resultobj = Py_None; | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
03e37cd5 RD |
14321 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14322 | PyObject *resultobj; | |
14323 | wxDC *arg1 = (wxDC *) 0 ; | |
14324 | wxPoint *arg2 = 0 ; | |
14325 | wxPoint temp2 ; | |
14326 | PyObject * obj0 = 0 ; | |
14327 | PyObject * obj1 = 0 ; | |
14328 | char *kwnames[] = { | |
14329 | (char *) "self",(char *) "point", NULL | |
14330 | }; | |
14331 | ||
14332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14335 | { | |
14336 | arg2 = &temp2; | |
14337 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14338 | } | |
14339 | { | |
14340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14341 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
14342 | ||
14343 | wxPyEndAllowThreads(__tstate); | |
14344 | if (PyErr_Occurred()) SWIG_fail; | |
14345 | } | |
14346 | Py_INCREF(Py_None); resultobj = Py_None; | |
14347 | return resultobj; | |
14348 | fail: | |
14349 | return NULL; | |
14350 | } | |
14351 | ||
14352 | ||
d14a1e28 RD |
14353 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
14354 | PyObject *resultobj; | |
14355 | wxDC *arg1 = (wxDC *) 0 ; | |
14356 | bool arg2 ; | |
14357 | bool arg3 ; | |
14358 | PyObject * obj0 = 0 ; | |
14359 | PyObject * obj1 = 0 ; | |
14360 | PyObject * obj2 = 0 ; | |
14361 | char *kwnames[] = { | |
14362 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14363 | }; | |
14364 | ||
14365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14368 | arg2 = (bool) SWIG_AsBool(obj1); | |
14369 | if (PyErr_Occurred()) SWIG_fail; | |
14370 | arg3 = (bool) SWIG_AsBool(obj2); | |
14371 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14372 | { |
14373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14374 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14375 | ||
14376 | wxPyEndAllowThreads(__tstate); | |
14377 | if (PyErr_Occurred()) SWIG_fail; | |
14378 | } | |
14379 | Py_INCREF(Py_None); resultobj = Py_None; | |
14380 | return resultobj; | |
14381 | fail: | |
14382 | return NULL; | |
14383 | } | |
14384 | ||
14385 | ||
14386 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14387 | PyObject *resultobj; | |
14388 | wxDC *arg1 = (wxDC *) 0 ; | |
14389 | int result; | |
14390 | PyObject * obj0 = 0 ; | |
14391 | char *kwnames[] = { | |
14392 | (char *) "self", NULL | |
14393 | }; | |
14394 | ||
14395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14398 | { |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14400 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14401 | ||
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
15afbcd0 | 14405 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14406 | return resultobj; |
14407 | fail: | |
14408 | return NULL; | |
14409 | } | |
14410 | ||
14411 | ||
14412 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14413 | PyObject *resultobj; | |
14414 | wxDC *arg1 = (wxDC *) 0 ; | |
14415 | int arg2 ; | |
14416 | PyObject * obj0 = 0 ; | |
994141e6 | 14417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14418 | char *kwnames[] = { |
14419 | (char *) "self",(char *) "function", NULL | |
14420 | }; | |
14421 | ||
994141e6 | 14422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14425 | arg2 = (int) SWIG_AsInt(obj1); | |
14426 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14427 | { |
14428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14429 | (arg1)->SetLogicalFunction(arg2); | |
14430 | ||
14431 | wxPyEndAllowThreads(__tstate); | |
14432 | if (PyErr_Occurred()) SWIG_fail; | |
14433 | } | |
14434 | Py_INCREF(Py_None); resultobj = Py_None; | |
14435 | return resultobj; | |
14436 | fail: | |
14437 | return NULL; | |
14438 | } | |
14439 | ||
14440 | ||
14441 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14442 | PyObject *resultobj; | |
14443 | wxDC *arg1 = (wxDC *) 0 ; | |
14444 | bool arg2 ; | |
14445 | PyObject * obj0 = 0 ; | |
14446 | PyObject * obj1 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self",(char *) "opt", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14454 | arg2 = (bool) SWIG_AsBool(obj1); | |
14455 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14456 | { |
14457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14458 | (arg1)->SetOptimization(arg2); | |
14459 | ||
14460 | wxPyEndAllowThreads(__tstate); | |
14461 | if (PyErr_Occurred()) SWIG_fail; | |
14462 | } | |
14463 | Py_INCREF(Py_None); resultobj = Py_None; | |
14464 | return resultobj; | |
14465 | fail: | |
14466 | return NULL; | |
14467 | } | |
14468 | ||
14469 | ||
14470 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14471 | PyObject *resultobj; | |
14472 | wxDC *arg1 = (wxDC *) 0 ; | |
14473 | bool result; | |
14474 | PyObject * obj0 = 0 ; | |
14475 | char *kwnames[] = { | |
14476 | (char *) "self", NULL | |
14477 | }; | |
14478 | ||
14479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14482 | { |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14484 | result = (bool)(arg1)->GetOptimization(); | |
14485 | ||
14486 | wxPyEndAllowThreads(__tstate); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
4f89f6a3 RD |
14489 | { |
14490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14491 | } | |
d14a1e28 RD |
14492 | return resultobj; |
14493 | fail: | |
14494 | return NULL; | |
14495 | } | |
14496 | ||
14497 | ||
14498 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14499 | PyObject *resultobj; | |
14500 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce RD |
14501 | int arg2 ; |
14502 | int arg3 ; | |
d14a1e28 | 14503 | PyObject * obj0 = 0 ; |
994141e6 RD |
14504 | PyObject * obj1 = 0 ; |
14505 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
14506 | char *kwnames[] = { |
14507 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14508 | }; | |
14509 | ||
994141e6 | 14510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14513 | arg2 = (int) SWIG_AsInt(obj1); | |
14514 | if (PyErr_Occurred()) SWIG_fail; | |
14515 | arg3 = (int) SWIG_AsInt(obj2); | |
14516 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14517 | { |
14518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14519 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14520 | ||
14521 | wxPyEndAllowThreads(__tstate); | |
14522 | if (PyErr_Occurred()) SWIG_fail; | |
14523 | } | |
14524 | Py_INCREF(Py_None); resultobj = Py_None; | |
14525 | return resultobj; | |
14526 | fail: | |
14527 | return NULL; | |
14528 | } | |
14529 | ||
14530 | ||
03e37cd5 RD |
14531 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14532 | PyObject *resultobj; | |
14533 | wxDC *arg1 = (wxDC *) 0 ; | |
14534 | wxPoint *arg2 = 0 ; | |
14535 | wxPoint temp2 ; | |
14536 | PyObject * obj0 = 0 ; | |
14537 | PyObject * obj1 = 0 ; | |
14538 | char *kwnames[] = { | |
14539 | (char *) "self",(char *) "point", NULL | |
14540 | }; | |
14541 | ||
14542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
14543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14545 | { | |
14546 | arg2 = &temp2; | |
14547 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14548 | } | |
14549 | { | |
14550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14551 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
14552 | ||
14553 | wxPyEndAllowThreads(__tstate); | |
14554 | if (PyErr_Occurred()) SWIG_fail; | |
14555 | } | |
14556 | Py_INCREF(Py_None); resultobj = Py_None; | |
14557 | return resultobj; | |
14558 | fail: | |
14559 | return NULL; | |
14560 | } | |
14561 | ||
14562 | ||
d14a1e28 RD |
14563 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
14564 | PyObject *resultobj; | |
14565 | wxDC *arg1 = (wxDC *) 0 ; | |
14566 | PyObject * obj0 = 0 ; | |
14567 | char *kwnames[] = { | |
14568 | (char *) "self", NULL | |
14569 | }; | |
14570 | ||
14571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14574 | { |
14575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14576 | (arg1)->ResetBoundingBox(); | |
14577 | ||
14578 | wxPyEndAllowThreads(__tstate); | |
14579 | if (PyErr_Occurred()) SWIG_fail; | |
14580 | } | |
14581 | Py_INCREF(Py_None); resultobj = Py_None; | |
14582 | return resultobj; | |
14583 | fail: | |
14584 | return NULL; | |
14585 | } | |
14586 | ||
14587 | ||
14588 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14589 | PyObject *resultobj; | |
14590 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14591 | int result; |
d14a1e28 RD |
14592 | PyObject * obj0 = 0 ; |
14593 | char *kwnames[] = { | |
14594 | (char *) "self", NULL | |
14595 | }; | |
14596 | ||
14597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14600 | { |
14601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14602 | result = (int)((wxDC const *)arg1)->MinX(); |
d14a1e28 RD |
14603 | |
14604 | wxPyEndAllowThreads(__tstate); | |
14605 | if (PyErr_Occurred()) SWIG_fail; | |
14606 | } | |
15afbcd0 | 14607 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14608 | return resultobj; |
14609 | fail: | |
14610 | return NULL; | |
14611 | } | |
14612 | ||
14613 | ||
14614 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14615 | PyObject *resultobj; | |
14616 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14617 | int result; |
d14a1e28 RD |
14618 | PyObject * obj0 = 0 ; |
14619 | char *kwnames[] = { | |
14620 | (char *) "self", NULL | |
14621 | }; | |
14622 | ||
14623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14626 | { |
14627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14628 | result = (int)((wxDC const *)arg1)->MaxX(); |
d14a1e28 RD |
14629 | |
14630 | wxPyEndAllowThreads(__tstate); | |
14631 | if (PyErr_Occurred()) SWIG_fail; | |
14632 | } | |
15afbcd0 | 14633 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14634 | return resultobj; |
14635 | fail: | |
14636 | return NULL; | |
14637 | } | |
14638 | ||
14639 | ||
14640 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14641 | PyObject *resultobj; | |
14642 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14643 | int result; |
d14a1e28 RD |
14644 | PyObject * obj0 = 0 ; |
14645 | char *kwnames[] = { | |
14646 | (char *) "self", NULL | |
14647 | }; | |
14648 | ||
14649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14652 | { |
14653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14654 | result = (int)((wxDC const *)arg1)->MinY(); |
d14a1e28 RD |
14655 | |
14656 | wxPyEndAllowThreads(__tstate); | |
14657 | if (PyErr_Occurred()) SWIG_fail; | |
14658 | } | |
15afbcd0 | 14659 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14660 | return resultobj; |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
14666 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14667 | PyObject *resultobj; | |
14668 | wxDC *arg1 = (wxDC *) 0 ; | |
e811c8ce | 14669 | int result; |
d14a1e28 RD |
14670 | PyObject * obj0 = 0 ; |
14671 | char *kwnames[] = { | |
14672 | (char *) "self", NULL | |
14673 | }; | |
14674 | ||
14675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14678 | { |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14680 | result = (int)((wxDC const *)arg1)->MaxY(); |
d14a1e28 RD |
14681 | |
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
15afbcd0 | 14685 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14686 | return resultobj; |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
14692 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14693 | PyObject *resultobj; | |
14694 | wxDC *arg1 = (wxDC *) 0 ; | |
14695 | int *arg2 = (int *) 0 ; | |
14696 | int *arg3 = (int *) 0 ; | |
14697 | int *arg4 = (int *) 0 ; | |
14698 | int *arg5 = (int *) 0 ; | |
14699 | int temp2 ; | |
14700 | int temp3 ; | |
14701 | int temp4 ; | |
14702 | int temp5 ; | |
14703 | PyObject * obj0 = 0 ; | |
14704 | char *kwnames[] = { | |
14705 | (char *) "self", NULL | |
14706 | }; | |
14707 | ||
14708 | arg2 = &temp2; | |
14709 | arg3 = &temp3; | |
14710 | arg4 = &temp4; | |
14711 | arg5 = &temp5; | |
14712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14715 | { |
14716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14717 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14718 | ||
14719 | wxPyEndAllowThreads(__tstate); | |
14720 | if (PyErr_Occurred()) SWIG_fail; | |
14721 | } | |
14722 | Py_INCREF(Py_None); resultobj = Py_None; | |
14723 | { | |
14724 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14725 | resultobj = t_output_helper(resultobj,o); | |
14726 | } | |
14727 | { | |
14728 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14729 | resultobj = t_output_helper(resultobj,o); | |
14730 | } | |
14731 | { | |
14732 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14733 | resultobj = t_output_helper(resultobj,o); | |
14734 | } | |
14735 | { | |
14736 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14737 | resultobj = t_output_helper(resultobj,o); | |
14738 | } | |
14739 | return resultobj; | |
14740 | fail: | |
14741 | return NULL; | |
14742 | } | |
14743 | ||
14744 | ||
14745 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14746 | PyObject *resultobj; | |
14747 | wxDC *arg1 = (wxDC *) 0 ; | |
14748 | PyObject *arg2 = (PyObject *) 0 ; | |
14749 | PyObject *arg3 = (PyObject *) 0 ; | |
14750 | PyObject *arg4 = (PyObject *) 0 ; | |
14751 | PyObject *result; | |
14752 | PyObject * obj0 = 0 ; | |
14753 | PyObject * obj1 = 0 ; | |
14754 | PyObject * obj2 = 0 ; | |
14755 | PyObject * obj3 = 0 ; | |
14756 | char *kwnames[] = { | |
14757 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14758 | }; | |
14759 | ||
14760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14763 | arg2 = obj1; |
14764 | arg3 = obj2; | |
14765 | arg4 = obj3; | |
14766 | { | |
14767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14768 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14769 | ||
14770 | wxPyEndAllowThreads(__tstate); | |
14771 | if (PyErr_Occurred()) SWIG_fail; | |
14772 | } | |
14773 | resultobj = result; | |
14774 | return resultobj; | |
14775 | fail: | |
14776 | return NULL; | |
14777 | } | |
14778 | ||
14779 | ||
14780 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14781 | PyObject *resultobj; | |
14782 | wxDC *arg1 = (wxDC *) 0 ; | |
14783 | PyObject *arg2 = (PyObject *) 0 ; | |
14784 | PyObject *arg3 = (PyObject *) 0 ; | |
14785 | PyObject *arg4 = (PyObject *) 0 ; | |
14786 | PyObject *result; | |
14787 | PyObject * obj0 = 0 ; | |
14788 | PyObject * obj1 = 0 ; | |
14789 | PyObject * obj2 = 0 ; | |
14790 | PyObject * obj3 = 0 ; | |
14791 | char *kwnames[] = { | |
14792 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14793 | }; | |
14794 | ||
14795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14798 | arg2 = obj1; |
14799 | arg3 = obj2; | |
14800 | arg4 = obj3; | |
14801 | { | |
14802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14803 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14804 | ||
14805 | wxPyEndAllowThreads(__tstate); | |
14806 | if (PyErr_Occurred()) SWIG_fail; | |
14807 | } | |
14808 | resultobj = result; | |
14809 | return resultobj; | |
14810 | fail: | |
14811 | return NULL; | |
14812 | } | |
14813 | ||
14814 | ||
14815 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14816 | PyObject *resultobj; | |
14817 | wxDC *arg1 = (wxDC *) 0 ; | |
14818 | PyObject *arg2 = (PyObject *) 0 ; | |
14819 | PyObject *arg3 = (PyObject *) 0 ; | |
14820 | PyObject *arg4 = (PyObject *) 0 ; | |
14821 | PyObject *result; | |
14822 | PyObject * obj0 = 0 ; | |
14823 | PyObject * obj1 = 0 ; | |
14824 | PyObject * obj2 = 0 ; | |
14825 | PyObject * obj3 = 0 ; | |
14826 | char *kwnames[] = { | |
14827 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14828 | }; | |
14829 | ||
14830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14833 | arg2 = obj1; |
14834 | arg3 = obj2; | |
14835 | arg4 = obj3; | |
14836 | { | |
14837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14838 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14839 | ||
14840 | wxPyEndAllowThreads(__tstate); | |
14841 | if (PyErr_Occurred()) SWIG_fail; | |
14842 | } | |
14843 | resultobj = result; | |
14844 | return resultobj; | |
14845 | fail: | |
14846 | return NULL; | |
14847 | } | |
14848 | ||
14849 | ||
14850 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14851 | PyObject *resultobj; | |
14852 | wxDC *arg1 = (wxDC *) 0 ; | |
14853 | PyObject *arg2 = (PyObject *) 0 ; | |
14854 | PyObject *arg3 = (PyObject *) 0 ; | |
14855 | PyObject *arg4 = (PyObject *) 0 ; | |
14856 | PyObject *result; | |
14857 | PyObject * obj0 = 0 ; | |
14858 | PyObject * obj1 = 0 ; | |
14859 | PyObject * obj2 = 0 ; | |
14860 | PyObject * obj3 = 0 ; | |
14861 | char *kwnames[] = { | |
14862 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14863 | }; | |
14864 | ||
14865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14868 | arg2 = obj1; |
14869 | arg3 = obj2; | |
14870 | arg4 = obj3; | |
14871 | { | |
14872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14873 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14874 | ||
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
14878 | resultobj = result; | |
14879 | return resultobj; | |
14880 | fail: | |
14881 | return NULL; | |
14882 | } | |
14883 | ||
14884 | ||
14885 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14886 | PyObject *resultobj; | |
14887 | wxDC *arg1 = (wxDC *) 0 ; | |
14888 | PyObject *arg2 = (PyObject *) 0 ; | |
14889 | PyObject *arg3 = (PyObject *) 0 ; | |
14890 | PyObject *arg4 = (PyObject *) 0 ; | |
14891 | PyObject *result; | |
14892 | PyObject * obj0 = 0 ; | |
14893 | PyObject * obj1 = 0 ; | |
14894 | PyObject * obj2 = 0 ; | |
14895 | PyObject * obj3 = 0 ; | |
14896 | char *kwnames[] = { | |
14897 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14898 | }; | |
14899 | ||
14900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
14901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14903 | arg2 = obj1; |
14904 | arg3 = obj2; | |
14905 | arg4 = obj3; | |
14906 | { | |
14907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14908 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14909 | ||
14910 | wxPyEndAllowThreads(__tstate); | |
14911 | if (PyErr_Occurred()) SWIG_fail; | |
14912 | } | |
14913 | resultobj = result; | |
14914 | return resultobj; | |
14915 | fail: | |
14916 | return NULL; | |
14917 | } | |
14918 | ||
14919 | ||
14920 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14921 | PyObject *resultobj; | |
14922 | wxDC *arg1 = (wxDC *) 0 ; | |
14923 | PyObject *arg2 = (PyObject *) 0 ; | |
14924 | PyObject *arg3 = (PyObject *) 0 ; | |
14925 | PyObject *arg4 = (PyObject *) 0 ; | |
14926 | PyObject *arg5 = (PyObject *) 0 ; | |
14927 | PyObject *result; | |
14928 | PyObject * obj0 = 0 ; | |
14929 | PyObject * obj1 = 0 ; | |
14930 | PyObject * obj2 = 0 ; | |
14931 | PyObject * obj3 = 0 ; | |
14932 | PyObject * obj4 = 0 ; | |
14933 | char *kwnames[] = { | |
14934 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14935 | }; | |
14936 | ||
14937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
14938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14940 | arg2 = obj1; |
14941 | arg3 = obj2; | |
14942 | arg4 = obj3; | |
14943 | arg5 = obj4; | |
14944 | { | |
14945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14946 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14947 | ||
14948 | wxPyEndAllowThreads(__tstate); | |
14949 | if (PyErr_Occurred()) SWIG_fail; | |
14950 | } | |
14951 | resultobj = result; | |
14952 | return resultobj; | |
14953 | fail: | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
14958 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14959 | PyObject *obj; | |
14960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14961 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14962 | Py_INCREF(obj); | |
14963 | return Py_BuildValue((char *)""); | |
14964 | } | |
14965 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14966 | PyObject *resultobj; | |
14967 | wxMemoryDC *result; | |
14968 | char *kwnames[] = { | |
14969 | NULL | |
14970 | }; | |
14971 | ||
14972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14973 | { | |
14974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14975 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14976 | ||
14977 | wxPyEndAllowThreads(__tstate); | |
14978 | if (PyErr_Occurred()) SWIG_fail; | |
14979 | } | |
15afbcd0 | 14980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
14981 | return resultobj; |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxDC *arg1 = (wxDC *) 0 ; | |
14990 | wxMemoryDC *result; | |
14991 | PyObject * obj0 = 0 ; | |
14992 | char *kwnames[] = { | |
14993 | (char *) "oldDC", NULL | |
14994 | }; | |
14995 | ||
14996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
14998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14999 | { |
15000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15001 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15002 | ||
15003 | wxPyEndAllowThreads(__tstate); | |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | } | |
15afbcd0 | 15006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); |
d14a1e28 RD |
15007 | return resultobj; |
15008 | fail: | |
15009 | return NULL; | |
15010 | } | |
15011 | ||
15012 | ||
15013 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15014 | PyObject *resultobj; | |
15015 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15016 | wxBitmap *arg2 = 0 ; | |
15017 | PyObject * obj0 = 0 ; | |
15018 | PyObject * obj1 = 0 ; | |
15019 | char *kwnames[] = { | |
15020 | (char *) "self",(char *) "bitmap", NULL | |
15021 | }; | |
15022 | ||
15023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, |
15025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15028 | SWIG_fail; | |
d14a1e28 | 15029 | if (arg2 == NULL) { |
15afbcd0 RD |
15030 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15031 | SWIG_fail; | |
d14a1e28 RD |
15032 | } |
15033 | { | |
15034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15035 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15036 | ||
15037 | wxPyEndAllowThreads(__tstate); | |
15038 | if (PyErr_Occurred()) SWIG_fail; | |
15039 | } | |
15040 | Py_INCREF(Py_None); resultobj = Py_None; | |
15041 | return resultobj; | |
15042 | fail: | |
15043 | return NULL; | |
15044 | } | |
15045 | ||
15046 | ||
15047 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
15048 | PyObject *obj; | |
15049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15050 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15051 | Py_INCREF(obj); | |
15052 | return Py_BuildValue((char *)""); | |
15053 | } | |
3adfb63b | 15054 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
15055 | PyObject *resultobj; |
15056 | wxDC *arg1 = (wxDC *) 0 ; | |
15057 | wxBitmap *arg2 = 0 ; | |
15058 | wxBufferedDC *result; | |
15059 | PyObject * obj0 = 0 ; | |
15060 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15061 | |
3adfb63b | 15062 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15067 | SWIG_fail; | |
d14a1e28 | 15068 | if (arg2 == NULL) { |
15afbcd0 RD |
15069 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15070 | SWIG_fail; | |
d14a1e28 RD |
15071 | } |
15072 | { | |
15073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15074 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15075 | ||
15076 | wxPyEndAllowThreads(__tstate); | |
15077 | if (PyErr_Occurred()) SWIG_fail; | |
15078 | } | |
15afbcd0 | 15079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
15080 | return resultobj; |
15081 | fail: | |
15082 | return NULL; | |
15083 | } | |
15084 | ||
15085 | ||
3adfb63b | 15086 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
15087 | PyObject *resultobj; |
15088 | wxDC *arg1 = (wxDC *) 0 ; | |
15089 | wxSize *arg2 = 0 ; | |
15090 | wxBufferedDC *result; | |
15091 | wxSize temp2 ; | |
15092 | PyObject * obj0 = 0 ; | |
15093 | PyObject * obj1 = 0 ; | |
3adfb63b | 15094 | |
e498079e | 15095 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
15098 | { |
15099 | arg2 = &temp2; | |
15100 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15101 | } | |
3adfb63b RD |
15102 | { |
15103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15104 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
3adfb63b RD |
15105 | |
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
15afbcd0 | 15109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
3adfb63b RD |
15110 | return resultobj; |
15111 | fail: | |
15112 | return NULL; | |
15113 | } | |
15114 | ||
15115 | ||
15116 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15117 | int argc; | |
e498079e | 15118 | PyObject *argv[3]; |
3adfb63b RD |
15119 | int ii; |
15120 | ||
15121 | argc = PyObject_Length(args); | |
e498079e | 15122 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { |
3adfb63b RD |
15123 | argv[ii] = PyTuple_GetItem(args,ii); |
15124 | } | |
15125 | if (argc == 2) { | |
15126 | int _v; | |
15127 | { | |
15128 | void *ptr; | |
15afbcd0 | 15129 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
3adfb63b RD |
15130 | _v = 0; |
15131 | PyErr_Clear(); | |
15132 | } else { | |
15133 | _v = 1; | |
15134 | } | |
15135 | } | |
15136 | if (_v) { | |
15137 | { | |
15138 | void *ptr; | |
15afbcd0 | 15139 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { |
3adfb63b RD |
15140 | _v = 0; |
15141 | PyErr_Clear(); | |
15142 | } else { | |
15143 | _v = 1; | |
15144 | } | |
15145 | } | |
15146 | if (_v) { | |
15147 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15148 | } | |
15149 | } | |
15150 | } | |
e498079e | 15151 | if (argc == 2) { |
3adfb63b RD |
15152 | int _v; |
15153 | { | |
15154 | void *ptr; | |
15afbcd0 | 15155 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { |
3adfb63b RD |
15156 | _v = 0; |
15157 | PyErr_Clear(); | |
15158 | } else { | |
15159 | _v = 1; | |
15160 | } | |
15161 | } | |
15162 | if (_v) { | |
15163 | { | |
15164 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15165 | } | |
15166 | if (_v) { | |
e498079e | 15167 | return _wrap_new_BufferedDC__SWIG_1(self,args); |
3adfb63b RD |
15168 | } |
15169 | } | |
15170 | } | |
15171 | ||
15172 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15173 | return NULL; | |
15174 | } | |
15175 | ||
15176 | ||
15177 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
15178 | PyObject *resultobj; | |
15179 | wxDC *arg1 = (wxDC *) 0 ; | |
15180 | wxSize *arg2 = 0 ; | |
3adfb63b RD |
15181 | wxBufferedDC *result; |
15182 | wxSize temp2 ; | |
15183 | PyObject * obj0 = 0 ; | |
15184 | PyObject * obj1 = 0 ; | |
d14a1e28 | 15185 | |
e498079e | 15186 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15189 | { |
15190 | arg2 = &temp2; | |
15191 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15192 | } | |
15193 | { | |
15194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15195 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); |
d14a1e28 RD |
15196 | |
15197 | wxPyEndAllowThreads(__tstate); | |
15198 | if (PyErr_Occurred()) SWIG_fail; | |
15199 | } | |
15afbcd0 | 15200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); |
d14a1e28 RD |
15201 | return resultobj; |
15202 | fail: | |
15203 | return NULL; | |
15204 | } | |
15205 | ||
15206 | ||
e498079e | 15207 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15208 | PyObject *resultobj; |
15209 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15210 | PyObject * obj0 = 0 ; | |
15211 | char *kwnames[] = { | |
15212 | (char *) "self", NULL | |
15213 | }; | |
15214 | ||
e498079e | 15215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15218 | { |
15219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15220 | delete arg1; |
d14a1e28 RD |
15221 | |
15222 | wxPyEndAllowThreads(__tstate); | |
15223 | if (PyErr_Occurred()) SWIG_fail; | |
15224 | } | |
15225 | Py_INCREF(Py_None); resultobj = Py_None; | |
15226 | return resultobj; | |
15227 | fail: | |
15228 | return NULL; | |
15229 | } | |
15230 | ||
15231 | ||
e498079e | 15232 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 15233 | PyObject *resultobj; |
e498079e | 15234 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; |
3adfb63b | 15235 | PyObject * obj0 = 0 ; |
e498079e RD |
15236 | char *kwnames[] = { |
15237 | (char *) "self", NULL | |
15238 | }; | |
3adfb63b | 15239 | |
e498079e | 15240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, |
15242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3adfb63b RD |
15243 | { |
15244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15245 | (arg1)->UnMask(); |
3adfb63b RD |
15246 | |
15247 | wxPyEndAllowThreads(__tstate); | |
15248 | if (PyErr_Occurred()) SWIG_fail; | |
15249 | } | |
e498079e | 15250 | Py_INCREF(Py_None); resultobj = Py_None; |
3adfb63b RD |
15251 | return resultobj; |
15252 | fail: | |
15253 | return NULL; | |
15254 | } | |
15255 | ||
15256 | ||
e498079e RD |
15257 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { |
15258 | PyObject *obj; | |
15259 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15260 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15261 | Py_INCREF(obj); | |
15262 | return Py_BuildValue((char *)""); | |
15263 | } | |
15264 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
15265 | PyObject *resultobj; |
15266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e498079e RD |
15267 | wxBitmap const &arg2_defvalue = wxNullBitmap ; |
15268 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
d14a1e28 RD |
15269 | wxBufferedPaintDC *result; |
15270 | PyObject * obj0 = 0 ; | |
15271 | PyObject * obj1 = 0 ; | |
e498079e RD |
15272 | char *kwnames[] = { |
15273 | (char *) "window",(char *) "buffer", NULL | |
15274 | }; | |
d14a1e28 | 15275 | |
e498079e | 15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15279 | if (obj1) { |
15afbcd0 RD |
15280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
15281 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15282 | SWIG_fail; | |
e498079e | 15283 | if (arg2 == NULL) { |
15afbcd0 RD |
15284 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15285 | SWIG_fail; | |
d14a1e28 RD |
15286 | } |
15287 | } | |
15288 | { | |
15289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e498079e | 15290 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); |
d14a1e28 RD |
15291 | |
15292 | wxPyEndAllowThreads(__tstate); | |
15293 | if (PyErr_Occurred()) SWIG_fail; | |
15294 | } | |
15afbcd0 | 15295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); |
d14a1e28 RD |
15296 | return resultobj; |
15297 | fail: | |
15298 | return NULL; | |
15299 | } | |
15300 | ||
15301 | ||
15302 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
15303 | PyObject *obj; | |
15304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15305 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15306 | Py_INCREF(obj); | |
15307 | return Py_BuildValue((char *)""); | |
15308 | } | |
15309 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15310 | PyObject *resultobj; | |
15311 | wxScreenDC *result; | |
15312 | char *kwnames[] = { | |
15313 | NULL | |
15314 | }; | |
15315 | ||
15316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15317 | { | |
15318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15319 | result = (wxScreenDC *)new wxScreenDC(); | |
15320 | ||
15321 | wxPyEndAllowThreads(__tstate); | |
15322 | if (PyErr_Occurred()) SWIG_fail; | |
15323 | } | |
15afbcd0 | 15324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); |
d14a1e28 RD |
15325 | return resultobj; |
15326 | fail: | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
15331 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15332 | PyObject *resultobj; | |
15333 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15334 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15335 | bool result; | |
15336 | PyObject * obj0 = 0 ; | |
15337 | PyObject * obj1 = 0 ; | |
15338 | char *kwnames[] = { | |
15339 | (char *) "self",(char *) "window", NULL | |
15340 | }; | |
15341 | ||
15342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15347 | { |
15348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15349 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15350 | ||
15351 | wxPyEndAllowThreads(__tstate); | |
15352 | if (PyErr_Occurred()) SWIG_fail; | |
15353 | } | |
4f89f6a3 RD |
15354 | { |
15355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15356 | } | |
d14a1e28 RD |
15357 | return resultobj; |
15358 | fail: | |
15359 | return NULL; | |
15360 | } | |
15361 | ||
15362 | ||
15363 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15364 | PyObject *resultobj; | |
15365 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15366 | wxRect *arg2 = (wxRect *) NULL ; | |
15367 | bool result; | |
15368 | PyObject * obj0 = 0 ; | |
15369 | PyObject * obj1 = 0 ; | |
15370 | char *kwnames[] = { | |
15371 | (char *) "self",(char *) "rect", NULL | |
15372 | }; | |
15373 | ||
15374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 15377 | if (obj1) { |
15afbcd0 RD |
15378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, |
15379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15380 | } |
15381 | { | |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15384 | ||
15385 | wxPyEndAllowThreads(__tstate); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
4f89f6a3 RD |
15388 | { |
15389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15390 | } | |
d14a1e28 RD |
15391 | return resultobj; |
15392 | fail: | |
15393 | return NULL; | |
15394 | } | |
15395 | ||
15396 | ||
15397 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15398 | PyObject *resultobj; | |
15399 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15400 | bool result; | |
15401 | PyObject * obj0 = 0 ; | |
15402 | char *kwnames[] = { | |
15403 | (char *) "self", NULL | |
15404 | }; | |
15405 | ||
15406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, |
15408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15409 | { |
15410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15411 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15412 | ||
15413 | wxPyEndAllowThreads(__tstate); | |
15414 | if (PyErr_Occurred()) SWIG_fail; | |
15415 | } | |
4f89f6a3 RD |
15416 | { |
15417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15418 | } | |
d14a1e28 RD |
15419 | return resultobj; |
15420 | fail: | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
15425 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15426 | PyObject *obj; | |
15427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15428 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15429 | Py_INCREF(obj); | |
15430 | return Py_BuildValue((char *)""); | |
15431 | } | |
15432 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15435 | wxClientDC *result; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "win", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15444 | { |
15445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15446 | result = (wxClientDC *)new wxClientDC(arg1); | |
15447 | ||
15448 | wxPyEndAllowThreads(__tstate); | |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
15afbcd0 | 15451 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); |
d14a1e28 RD |
15452 | return resultobj; |
15453 | fail: | |
15454 | return NULL; | |
15455 | } | |
15456 | ||
15457 | ||
15458 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15459 | PyObject *obj; | |
15460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15461 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15462 | Py_INCREF(obj); | |
15463 | return Py_BuildValue((char *)""); | |
15464 | } | |
15465 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15466 | PyObject *resultobj; | |
15467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15468 | wxPaintDC *result; | |
15469 | PyObject * obj0 = 0 ; | |
15470 | char *kwnames[] = { | |
15471 | (char *) "win", NULL | |
15472 | }; | |
15473 | ||
15474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15477 | { |
15478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15479 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15480 | ||
15481 | wxPyEndAllowThreads(__tstate); | |
15482 | if (PyErr_Occurred()) SWIG_fail; | |
15483 | } | |
15afbcd0 | 15484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); |
d14a1e28 RD |
15485 | return resultobj; |
15486 | fail: | |
15487 | return NULL; | |
15488 | } | |
15489 | ||
15490 | ||
15491 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15492 | PyObject *obj; | |
15493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15494 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15495 | Py_INCREF(obj); | |
15496 | return Py_BuildValue((char *)""); | |
15497 | } | |
15498 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15499 | PyObject *resultobj; | |
15500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15501 | wxWindowDC *result; | |
15502 | PyObject * obj0 = 0 ; | |
15503 | char *kwnames[] = { | |
15504 | (char *) "win", NULL | |
15505 | }; | |
15506 | ||
15507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15510 | { |
15511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15512 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15513 | ||
15514 | wxPyEndAllowThreads(__tstate); | |
15515 | if (PyErr_Occurred()) SWIG_fail; | |
15516 | } | |
15afbcd0 | 15517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); |
d14a1e28 RD |
15518 | return resultobj; |
15519 | fail: | |
15520 | return NULL; | |
15521 | } | |
15522 | ||
15523 | ||
15524 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15525 | PyObject *obj; | |
15526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15527 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15528 | Py_INCREF(obj); | |
15529 | return Py_BuildValue((char *)""); | |
15530 | } | |
15531 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15532 | PyObject *resultobj; | |
15533 | wxDC *arg1 = 0 ; | |
15534 | bool arg2 ; | |
15535 | wxMirrorDC *result; | |
15536 | PyObject * obj0 = 0 ; | |
15537 | PyObject * obj1 = 0 ; | |
15538 | char *kwnames[] = { | |
15539 | (char *) "dc",(char *) "mirror", NULL | |
15540 | }; | |
15541 | ||
15542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
15544 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15545 | SWIG_fail; | |
d14a1e28 | 15546 | if (arg1 == NULL) { |
15afbcd0 RD |
15547 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15548 | SWIG_fail; | |
a41e16b6 | 15549 | } |
15afbcd0 RD |
15550 | arg2 = (bool) SWIG_AsBool(obj1); |
15551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15552 | { |
15553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15554 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15555 | ||
15556 | wxPyEndAllowThreads(__tstate); | |
15557 | if (PyErr_Occurred()) SWIG_fail; | |
15558 | } | |
15afbcd0 | 15559 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); |
d14a1e28 RD |
15560 | return resultobj; |
15561 | fail: | |
15562 | return NULL; | |
15563 | } | |
15564 | ||
15565 | ||
15566 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15567 | PyObject *obj; | |
15568 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15569 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15570 | Py_INCREF(obj); | |
15571 | return Py_BuildValue((char *)""); | |
15572 | } | |
15573 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15574 | PyObject *resultobj; | |
15575 | wxPrintData *arg1 = 0 ; | |
15576 | wxPostScriptDC *result; | |
15577 | PyObject * obj0 = 0 ; | |
15578 | char *kwnames[] = { | |
15579 | (char *) "printData", NULL | |
15580 | }; | |
15581 | ||
15582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15584 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15585 | SWIG_fail; | |
d14a1e28 | 15586 | if (arg1 == NULL) { |
15afbcd0 RD |
15587 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15588 | SWIG_fail; | |
d14a1e28 RD |
15589 | } |
15590 | { | |
15591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15592 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15593 | ||
15594 | wxPyEndAllowThreads(__tstate); | |
15595 | if (PyErr_Occurred()) SWIG_fail; | |
15596 | } | |
15afbcd0 | 15597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); |
d14a1e28 RD |
15598 | return resultobj; |
15599 | fail: | |
15600 | return NULL; | |
15601 | } | |
15602 | ||
15603 | ||
15604 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15605 | PyObject *resultobj; | |
15606 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15607 | wxPrintData *result; | |
15608 | PyObject * obj0 = 0 ; | |
15609 | char *kwnames[] = { | |
15610 | (char *) "self", NULL | |
15611 | }; | |
15612 | ||
15613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
15615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15616 | { |
15617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15618 | { | |
15619 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15620 | result = (wxPrintData *) &_result_ref; | |
15621 | } | |
15622 | ||
15623 | wxPyEndAllowThreads(__tstate); | |
15624 | if (PyErr_Occurred()) SWIG_fail; | |
15625 | } | |
15afbcd0 | 15626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); |
d14a1e28 RD |
15627 | return resultobj; |
15628 | fail: | |
15629 | return NULL; | |
15630 | } | |
15631 | ||
15632 | ||
15633 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15634 | PyObject *resultobj; | |
15635 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15636 | wxPrintData *arg2 = 0 ; | |
15637 | PyObject * obj0 = 0 ; | |
15638 | PyObject * obj1 = 0 ; | |
15639 | char *kwnames[] = { | |
15640 | (char *) "self",(char *) "data", NULL | |
15641 | }; | |
15642 | ||
15643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, |
15645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
15647 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15648 | SWIG_fail; | |
d14a1e28 | 15649 | if (arg2 == NULL) { |
15afbcd0 RD |
15650 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15651 | SWIG_fail; | |
d14a1e28 RD |
15652 | } |
15653 | { | |
15654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15655 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15656 | ||
15657 | wxPyEndAllowThreads(__tstate); | |
15658 | if (PyErr_Occurred()) SWIG_fail; | |
15659 | } | |
15660 | Py_INCREF(Py_None); resultobj = Py_None; | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
15667 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15668 | PyObject *resultobj; | |
15669 | int arg1 ; | |
994141e6 | 15670 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15671 | char *kwnames[] = { |
15672 | (char *) "ppi", NULL | |
15673 | }; | |
15674 | ||
994141e6 | 15675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15676 | arg1 = (int) SWIG_AsInt(obj0); |
15677 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15678 | { |
15679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15680 | wxPostScriptDC::SetResolution(arg1); | |
15681 | ||
15682 | wxPyEndAllowThreads(__tstate); | |
15683 | if (PyErr_Occurred()) SWIG_fail; | |
15684 | } | |
15685 | Py_INCREF(Py_None); resultobj = Py_None; | |
15686 | return resultobj; | |
15687 | fail: | |
15688 | return NULL; | |
15689 | } | |
15690 | ||
15691 | ||
15692 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15693 | PyObject *resultobj; | |
15694 | int result; | |
15695 | char *kwnames[] = { | |
15696 | NULL | |
15697 | }; | |
15698 | ||
15699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15700 | { | |
15701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15702 | result = (int)wxPostScriptDC::GetResolution(); | |
15703 | ||
15704 | wxPyEndAllowThreads(__tstate); | |
15705 | if (PyErr_Occurred()) SWIG_fail; | |
15706 | } | |
15afbcd0 | 15707 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15708 | return resultobj; |
15709 | fail: | |
15710 | return NULL; | |
15711 | } | |
15712 | ||
15713 | ||
15714 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15715 | PyObject *obj; | |
15716 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15717 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15718 | Py_INCREF(obj); | |
15719 | return Py_BuildValue((char *)""); | |
15720 | } | |
15721 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15722 | PyObject *resultobj; | |
15723 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15724 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15725 | wxMetaFile *result; | |
e811c8ce | 15726 | bool temp1 = False ; |
d14a1e28 RD |
15727 | PyObject * obj0 = 0 ; |
15728 | char *kwnames[] = { | |
15729 | (char *) "filename", NULL | |
15730 | }; | |
15731 | ||
15732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15733 | if (obj0) { | |
15734 | { | |
15735 | arg1 = wxString_in_helper(obj0); | |
15736 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15737 | temp1 = True; |
d14a1e28 RD |
15738 | } |
15739 | } | |
15740 | { | |
15741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15742 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15743 | ||
15744 | wxPyEndAllowThreads(__tstate); | |
15745 | if (PyErr_Occurred()) SWIG_fail; | |
15746 | } | |
15afbcd0 | 15747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); |
d14a1e28 RD |
15748 | { |
15749 | if (temp1) | |
15750 | delete arg1; | |
15751 | } | |
15752 | return resultobj; | |
15753 | fail: | |
15754 | { | |
15755 | if (temp1) | |
15756 | delete arg1; | |
15757 | } | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
15762 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15763 | PyObject *obj; | |
15764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15765 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15766 | Py_INCREF(obj); | |
15767 | return Py_BuildValue((char *)""); | |
15768 | } | |
15769 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15770 | PyObject *resultobj; | |
15771 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15772 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15773 | int arg2 = (int) 0 ; | |
15774 | int arg3 = (int) 0 ; | |
15775 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15776 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15777 | wxMetaFileDC *result; | |
e811c8ce RD |
15778 | bool temp1 = False ; |
15779 | bool temp4 = False ; | |
d14a1e28 | 15780 | PyObject * obj0 = 0 ; |
994141e6 RD |
15781 | PyObject * obj1 = 0 ; |
15782 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15783 | PyObject * obj3 = 0 ; |
15784 | char *kwnames[] = { | |
15785 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15786 | }; | |
15787 | ||
994141e6 | 15788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
15789 | if (obj0) { |
15790 | { | |
15791 | arg1 = wxString_in_helper(obj0); | |
15792 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 15793 | temp1 = True; |
d14a1e28 RD |
15794 | } |
15795 | } | |
994141e6 | 15796 | if (obj1) { |
15afbcd0 RD |
15797 | arg2 = (int) SWIG_AsInt(obj1); |
15798 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15799 | } |
15800 | if (obj2) { | |
15afbcd0 RD |
15801 | arg3 = (int) SWIG_AsInt(obj2); |
15802 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15803 | } |
d14a1e28 RD |
15804 | if (obj3) { |
15805 | { | |
15806 | arg4 = wxString_in_helper(obj3); | |
15807 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 15808 | temp4 = True; |
d14a1e28 RD |
15809 | } |
15810 | } | |
15811 | { | |
15812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15813 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15814 | ||
15815 | wxPyEndAllowThreads(__tstate); | |
15816 | if (PyErr_Occurred()) SWIG_fail; | |
15817 | } | |
15afbcd0 | 15818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); |
d14a1e28 RD |
15819 | { |
15820 | if (temp1) | |
15821 | delete arg1; | |
15822 | } | |
15823 | { | |
15824 | if (temp4) | |
15825 | delete arg4; | |
15826 | } | |
15827 | return resultobj; | |
15828 | fail: | |
15829 | { | |
15830 | if (temp1) | |
15831 | delete arg1; | |
15832 | } | |
15833 | { | |
15834 | if (temp4) | |
15835 | delete arg4; | |
15836 | } | |
15837 | return NULL; | |
15838 | } | |
15839 | ||
15840 | ||
15841 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15842 | PyObject *obj; | |
15843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15844 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15845 | Py_INCREF(obj); | |
15846 | return Py_BuildValue((char *)""); | |
15847 | } | |
15848 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15849 | PyObject *resultobj; | |
15850 | wxPrintData *arg1 = 0 ; | |
15851 | wxPrinterDC *result; | |
15852 | PyObject * obj0 = 0 ; | |
15853 | char *kwnames[] = { | |
15854 | (char *) "printData", NULL | |
15855 | }; | |
15856 | ||
15857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, |
15859 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15860 | SWIG_fail; | |
d14a1e28 | 15861 | if (arg1 == NULL) { |
15afbcd0 RD |
15862 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15863 | SWIG_fail; | |
d14a1e28 RD |
15864 | } |
15865 | { | |
15866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15867 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
15868 | ||
15869 | wxPyEndAllowThreads(__tstate); | |
15870 | if (PyErr_Occurred()) SWIG_fail; | |
15871 | } | |
15afbcd0 | 15872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); |
d14a1e28 RD |
15873 | return resultobj; |
15874 | fail: | |
15875 | return NULL; | |
15876 | } | |
15877 | ||
15878 | ||
15879 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
15880 | PyObject *obj; | |
15881 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15882 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
15883 | Py_INCREF(obj); | |
15884 | return Py_BuildValue((char *)""); | |
15885 | } | |
15886 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15887 | PyObject *resultobj; | |
15888 | int arg1 ; | |
15889 | int arg2 ; | |
e811c8ce | 15890 | int arg3 = (int) True ; |
d14a1e28 RD |
15891 | int arg4 = (int) 1 ; |
15892 | wxImageList *result; | |
994141e6 RD |
15893 | PyObject * obj0 = 0 ; |
15894 | PyObject * obj1 = 0 ; | |
15895 | PyObject * obj2 = 0 ; | |
15896 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15897 | char *kwnames[] = { |
15898 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
15899 | }; | |
15900 | ||
994141e6 | 15901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
15902 | arg1 = (int) SWIG_AsInt(obj0); |
15903 | if (PyErr_Occurred()) SWIG_fail; | |
15904 | arg2 = (int) SWIG_AsInt(obj1); | |
15905 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15906 | if (obj2) { |
15afbcd0 RD |
15907 | arg3 = (int) SWIG_AsInt(obj2); |
15908 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15909 | } |
15910 | if (obj3) { | |
15afbcd0 RD |
15911 | arg4 = (int) SWIG_AsInt(obj3); |
15912 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15913 | } |
d14a1e28 RD |
15914 | { |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
15917 | ||
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | { | |
15922 | resultobj = wxPyMake_wxObject(result); | |
15923 | } | |
15924 | return resultobj; | |
15925 | fail: | |
15926 | return NULL; | |
15927 | } | |
15928 | ||
15929 | ||
15930 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15931 | PyObject *resultobj; | |
15932 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15933 | PyObject * obj0 = 0 ; | |
15934 | char *kwnames[] = { | |
15935 | (char *) "self", NULL | |
15936 | }; | |
15937 | ||
15938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15941 | { |
15942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15943 | delete arg1; | |
15944 | ||
15945 | wxPyEndAllowThreads(__tstate); | |
15946 | if (PyErr_Occurred()) SWIG_fail; | |
15947 | } | |
15948 | Py_INCREF(Py_None); resultobj = Py_None; | |
15949 | return resultobj; | |
15950 | fail: | |
15951 | return NULL; | |
15952 | } | |
15953 | ||
15954 | ||
15955 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15956 | PyObject *resultobj; | |
15957 | wxImageList *arg1 = (wxImageList *) 0 ; | |
15958 | wxBitmap *arg2 = 0 ; | |
15959 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
15960 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
15961 | int result; | |
15962 | PyObject * obj0 = 0 ; | |
15963 | PyObject * obj1 = 0 ; | |
15964 | PyObject * obj2 = 0 ; | |
15965 | char *kwnames[] = { | |
15966 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
15967 | }; | |
15968 | ||
15969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
15970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
15971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15972 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15973 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15974 | SWIG_fail; | |
d14a1e28 | 15975 | if (arg2 == NULL) { |
15afbcd0 RD |
15976 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15977 | SWIG_fail; | |
d14a1e28 RD |
15978 | } |
15979 | if (obj2) { | |
15afbcd0 RD |
15980 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, |
15981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15982 | SWIG_fail; | |
d14a1e28 | 15983 | if (arg3 == NULL) { |
15afbcd0 RD |
15984 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15985 | SWIG_fail; | |
d14a1e28 RD |
15986 | } |
15987 | } | |
15988 | { | |
15989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15990 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
15991 | ||
15992 | wxPyEndAllowThreads(__tstate); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
15afbcd0 | 15995 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15996 | return resultobj; |
15997 | fail: | |
15998 | return NULL; | |
15999 | } | |
16000 | ||
16001 | ||
16002 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16003 | PyObject *resultobj; | |
16004 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16005 | wxBitmap *arg2 = 0 ; | |
16006 | wxColour *arg3 = 0 ; | |
16007 | int result; | |
16008 | wxColour temp3 ; | |
16009 | PyObject * obj0 = 0 ; | |
16010 | PyObject * obj1 = 0 ; | |
16011 | PyObject * obj2 = 0 ; | |
16012 | char *kwnames[] = { | |
16013 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16014 | }; | |
16015 | ||
16016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
16017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16021 | SWIG_fail; | |
d14a1e28 | 16022 | if (arg2 == NULL) { |
15afbcd0 RD |
16023 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16024 | SWIG_fail; | |
d14a1e28 RD |
16025 | } |
16026 | { | |
16027 | arg3 = &temp3; | |
16028 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16029 | } | |
16030 | { | |
16031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16032 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16033 | ||
16034 | wxPyEndAllowThreads(__tstate); | |
16035 | if (PyErr_Occurred()) SWIG_fail; | |
16036 | } | |
15afbcd0 | 16037 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16038 | return resultobj; |
16039 | fail: | |
16040 | return NULL; | |
16041 | } | |
16042 | ||
16043 | ||
16044 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16045 | PyObject *resultobj; | |
16046 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16047 | wxIcon *arg2 = 0 ; | |
16048 | int result; | |
16049 | PyObject * obj0 = 0 ; | |
16050 | PyObject * obj1 = 0 ; | |
16051 | char *kwnames[] = { | |
16052 | (char *) "self",(char *) "icon", NULL | |
16053 | }; | |
16054 | ||
16055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16060 | SWIG_fail; | |
d14a1e28 | 16061 | if (arg2 == NULL) { |
15afbcd0 RD |
16062 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16063 | SWIG_fail; | |
d14a1e28 RD |
16064 | } |
16065 | { | |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
15afbcd0 | 16072 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16073 | return resultobj; |
16074 | fail: | |
16075 | return NULL; | |
16076 | } | |
16077 | ||
16078 | ||
16079 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16080 | PyObject *resultobj; | |
16081 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16082 | int arg2 ; | |
16083 | wxBitmap *arg3 = 0 ; | |
16084 | bool result; | |
16085 | PyObject * obj0 = 0 ; | |
994141e6 | 16086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16087 | PyObject * obj2 = 0 ; |
16088 | char *kwnames[] = { | |
16089 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
16090 | }; | |
16091 | ||
994141e6 | 16092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
16093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16095 | arg2 = (int) SWIG_AsInt(obj1); | |
16096 | if (PyErr_Occurred()) SWIG_fail; | |
16097 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16099 | SWIG_fail; | |
d14a1e28 | 16100 | if (arg3 == NULL) { |
15afbcd0 RD |
16101 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16102 | SWIG_fail; | |
d14a1e28 RD |
16103 | } |
16104 | { | |
16105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16106 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
16107 | ||
16108 | wxPyEndAllowThreads(__tstate); | |
16109 | if (PyErr_Occurred()) SWIG_fail; | |
16110 | } | |
4f89f6a3 RD |
16111 | { |
16112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16113 | } | |
d14a1e28 RD |
16114 | return resultobj; |
16115 | fail: | |
16116 | return NULL; | |
16117 | } | |
16118 | ||
16119 | ||
16120 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16121 | PyObject *resultobj; | |
16122 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16123 | int arg2 ; | |
16124 | wxDC *arg3 = 0 ; | |
16125 | int arg4 ; | |
16126 | int arg5 ; | |
16127 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
e811c8ce | 16128 | bool arg7 = (bool) (bool)False ; |
d14a1e28 RD |
16129 | bool result; |
16130 | PyObject * obj0 = 0 ; | |
994141e6 | 16131 | PyObject * obj1 = 0 ; |
d14a1e28 | 16132 | PyObject * obj2 = 0 ; |
994141e6 RD |
16133 | PyObject * obj3 = 0 ; |
16134 | PyObject * obj4 = 0 ; | |
16135 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
16136 | PyObject * obj6 = 0 ; |
16137 | char *kwnames[] = { | |
16138 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16139 | }; | |
16140 | ||
994141e6 | 16141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
16142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16144 | arg2 = (int) SWIG_AsInt(obj1); | |
16145 | if (PyErr_Occurred()) SWIG_fail; | |
16146 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
16147 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16148 | SWIG_fail; | |
d14a1e28 | 16149 | if (arg3 == NULL) { |
15afbcd0 RD |
16150 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16151 | SWIG_fail; | |
994141e6 | 16152 | } |
15afbcd0 RD |
16153 | arg4 = (int) SWIG_AsInt(obj3); |
16154 | if (PyErr_Occurred()) SWIG_fail; | |
16155 | arg5 = (int) SWIG_AsInt(obj4); | |
16156 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16157 | if (obj5) { |
15afbcd0 RD |
16158 | arg6 = (int) SWIG_AsInt(obj5); |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16160 | } |
d14a1e28 | 16161 | if (obj6) { |
15afbcd0 RD |
16162 | arg7 = (bool const) SWIG_AsBool(obj6); |
16163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16164 | } |
16165 | { | |
16166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16167 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16168 | ||
16169 | wxPyEndAllowThreads(__tstate); | |
16170 | if (PyErr_Occurred()) SWIG_fail; | |
16171 | } | |
4f89f6a3 RD |
16172 | { |
16173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16174 | } | |
d14a1e28 RD |
16175 | return resultobj; |
16176 | fail: | |
16177 | return NULL; | |
16178 | } | |
16179 | ||
16180 | ||
16181 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16182 | PyObject *resultobj; | |
16183 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16184 | int result; | |
16185 | PyObject * obj0 = 0 ; | |
16186 | char *kwnames[] = { | |
16187 | (char *) "self", NULL | |
16188 | }; | |
16189 | ||
16190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16193 | { |
16194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16195 | result = (int)(arg1)->GetImageCount(); | |
16196 | ||
16197 | wxPyEndAllowThreads(__tstate); | |
16198 | if (PyErr_Occurred()) SWIG_fail; | |
16199 | } | |
15afbcd0 | 16200 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16201 | return resultobj; |
16202 | fail: | |
16203 | return NULL; | |
16204 | } | |
16205 | ||
16206 | ||
16207 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16208 | PyObject *resultobj; | |
16209 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16210 | int arg2 ; | |
16211 | bool result; | |
16212 | PyObject * obj0 = 0 ; | |
994141e6 | 16213 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16214 | char *kwnames[] = { |
16215 | (char *) "self",(char *) "index", NULL | |
16216 | }; | |
16217 | ||
994141e6 | 16218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16221 | arg2 = (int) SWIG_AsInt(obj1); | |
16222 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16223 | { |
16224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16225 | result = (bool)(arg1)->Remove(arg2); | |
16226 | ||
16227 | wxPyEndAllowThreads(__tstate); | |
16228 | if (PyErr_Occurred()) SWIG_fail; | |
16229 | } | |
4f89f6a3 RD |
16230 | { |
16231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16232 | } | |
d14a1e28 RD |
16233 | return resultobj; |
16234 | fail: | |
16235 | return NULL; | |
16236 | } | |
16237 | ||
16238 | ||
16239 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16240 | PyObject *resultobj; | |
16241 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16242 | bool result; | |
16243 | PyObject * obj0 = 0 ; | |
16244 | char *kwnames[] = { | |
16245 | (char *) "self", NULL | |
16246 | }; | |
16247 | ||
16248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16251 | { |
16252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16253 | result = (bool)(arg1)->RemoveAll(); | |
16254 | ||
16255 | wxPyEndAllowThreads(__tstate); | |
16256 | if (PyErr_Occurred()) SWIG_fail; | |
16257 | } | |
4f89f6a3 RD |
16258 | { |
16259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16260 | } | |
d14a1e28 RD |
16261 | return resultobj; |
16262 | fail: | |
16263 | return NULL; | |
16264 | } | |
16265 | ||
16266 | ||
16267 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16268 | PyObject *resultobj; | |
16269 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16270 | int arg2 ; | |
16271 | int *arg3 = 0 ; | |
16272 | int *arg4 = 0 ; | |
16273 | int temp3 ; | |
16274 | int temp4 ; | |
16275 | PyObject * obj0 = 0 ; | |
994141e6 | 16276 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16277 | char *kwnames[] = { |
16278 | (char *) "self",(char *) "index", NULL | |
16279 | }; | |
16280 | ||
16281 | arg3 = &temp3; | |
16282 | arg4 = &temp4; | |
994141e6 | 16283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
16284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, |
16285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16286 | arg2 = (int) SWIG_AsInt(obj1); | |
16287 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16288 | { |
16289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16290 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16291 | ||
16292 | wxPyEndAllowThreads(__tstate); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | } | |
16295 | Py_INCREF(Py_None); resultobj = Py_None; | |
16296 | { | |
16297 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16298 | resultobj = t_output_helper(resultobj,o); | |
16299 | } | |
16300 | { | |
16301 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
16302 | resultobj = t_output_helper(resultobj,o); | |
16303 | } | |
16304 | return resultobj; | |
16305 | fail: | |
16306 | return NULL; | |
16307 | } | |
16308 | ||
16309 | ||
16310 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
16311 | PyObject *obj; | |
16312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16313 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16314 | Py_INCREF(obj); | |
16315 | return Py_BuildValue((char *)""); | |
16316 | } | |
994141e6 RD |
16317 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { |
16318 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
16319 | return 1; | |
d14a1e28 RD |
16320 | } |
16321 | ||
16322 | ||
994141e6 RD |
16323 | static PyObject *_wrap_NORMAL_FONT_get() { |
16324 | PyObject *pyobj; | |
d14a1e28 | 16325 | |
15afbcd0 | 16326 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16327 | return pyobj; |
d14a1e28 RD |
16328 | } |
16329 | ||
16330 | ||
994141e6 RD |
16331 | static int _wrap_SMALL_FONT_set(PyObject *_val) { |
16332 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
16333 | return 1; | |
d14a1e28 RD |
16334 | } |
16335 | ||
16336 | ||
994141e6 RD |
16337 | static PyObject *_wrap_SMALL_FONT_get() { |
16338 | PyObject *pyobj; | |
d14a1e28 | 16339 | |
15afbcd0 | 16340 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16341 | return pyobj; |
d14a1e28 RD |
16342 | } |
16343 | ||
16344 | ||
994141e6 RD |
16345 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { |
16346 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
16347 | return 1; | |
d14a1e28 | 16348 | } |
994141e6 RD |
16349 | |
16350 | ||
16351 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16352 | PyObject *pyobj; | |
d14a1e28 | 16353 | |
15afbcd0 | 16354 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16355 | return pyobj; |
d14a1e28 RD |
16356 | } |
16357 | ||
16358 | ||
994141e6 RD |
16359 | static int _wrap_SWISS_FONT_set(PyObject *_val) { |
16360 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
16361 | return 1; | |
d14a1e28 RD |
16362 | } |
16363 | ||
16364 | ||
994141e6 RD |
16365 | static PyObject *_wrap_SWISS_FONT_get() { |
16366 | PyObject *pyobj; | |
d14a1e28 | 16367 | |
15afbcd0 | 16368 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); |
994141e6 | 16369 | return pyobj; |
d14a1e28 RD |
16370 | } |
16371 | ||
16372 | ||
994141e6 RD |
16373 | static int _wrap_RED_PEN_set(PyObject *_val) { |
16374 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
16375 | return 1; | |
16376 | } | |
16377 | ||
16378 | ||
16379 | static PyObject *_wrap_RED_PEN_get() { | |
16380 | PyObject *pyobj; | |
d14a1e28 | 16381 | |
15afbcd0 | 16382 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16383 | return pyobj; |
d14a1e28 RD |
16384 | } |
16385 | ||
16386 | ||
994141e6 RD |
16387 | static int _wrap_CYAN_PEN_set(PyObject *_val) { |
16388 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16389 | return 1; | |
d14a1e28 | 16390 | } |
994141e6 RD |
16391 | |
16392 | ||
16393 | static PyObject *_wrap_CYAN_PEN_get() { | |
16394 | PyObject *pyobj; | |
d14a1e28 | 16395 | |
15afbcd0 | 16396 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16397 | return pyobj; |
d14a1e28 RD |
16398 | } |
16399 | ||
16400 | ||
994141e6 RD |
16401 | static int _wrap_GREEN_PEN_set(PyObject *_val) { |
16402 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16403 | return 1; | |
16404 | } | |
16405 | ||
16406 | ||
16407 | static PyObject *_wrap_GREEN_PEN_get() { | |
16408 | PyObject *pyobj; | |
d14a1e28 | 16409 | |
15afbcd0 | 16410 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16411 | return pyobj; |
d14a1e28 RD |
16412 | } |
16413 | ||
16414 | ||
994141e6 RD |
16415 | static int _wrap_BLACK_PEN_set(PyObject *_val) { |
16416 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16417 | return 1; | |
16418 | } | |
16419 | ||
16420 | ||
16421 | static PyObject *_wrap_BLACK_PEN_get() { | |
16422 | PyObject *pyobj; | |
d14a1e28 | 16423 | |
15afbcd0 | 16424 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16425 | return pyobj; |
d14a1e28 RD |
16426 | } |
16427 | ||
16428 | ||
994141e6 RD |
16429 | static int _wrap_WHITE_PEN_set(PyObject *_val) { |
16430 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16431 | return 1; | |
d14a1e28 RD |
16432 | } |
16433 | ||
16434 | ||
994141e6 RD |
16435 | static PyObject *_wrap_WHITE_PEN_get() { |
16436 | PyObject *pyobj; | |
d14a1e28 | 16437 | |
15afbcd0 | 16438 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16439 | return pyobj; |
d14a1e28 RD |
16440 | } |
16441 | ||
16442 | ||
994141e6 RD |
16443 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { |
16444 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16445 | return 1; | |
d14a1e28 RD |
16446 | } |
16447 | ||
16448 | ||
994141e6 RD |
16449 | static PyObject *_wrap_TRANSPARENT_PEN_get() { |
16450 | PyObject *pyobj; | |
d14a1e28 | 16451 | |
15afbcd0 | 16452 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16453 | return pyobj; |
d14a1e28 RD |
16454 | } |
16455 | ||
16456 | ||
994141e6 RD |
16457 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { |
16458 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16459 | return 1; | |
d14a1e28 RD |
16460 | } |
16461 | ||
16462 | ||
994141e6 RD |
16463 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { |
16464 | PyObject *pyobj; | |
d14a1e28 | 16465 | |
15afbcd0 | 16466 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16467 | return pyobj; |
d14a1e28 RD |
16468 | } |
16469 | ||
16470 | ||
994141e6 RD |
16471 | static int _wrap_GREY_PEN_set(PyObject *_val) { |
16472 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16473 | return 1; | |
d14a1e28 RD |
16474 | } |
16475 | ||
16476 | ||
994141e6 RD |
16477 | static PyObject *_wrap_GREY_PEN_get() { |
16478 | PyObject *pyobj; | |
16479 | ||
15afbcd0 | 16480 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); |
994141e6 | 16481 | return pyobj; |
d14a1e28 | 16482 | } |
994141e6 RD |
16483 | |
16484 | ||
16485 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
16486 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
d14a1e28 RD |
16487 | return 1; |
16488 | } | |
16489 | ||
16490 | ||
994141e6 | 16491 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { |
d14a1e28 RD |
16492 | PyObject *pyobj; |
16493 | ||
15afbcd0 | 16494 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16495 | return pyobj; |
16496 | } | |
16497 | ||
16498 | ||
994141e6 RD |
16499 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { |
16500 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
d14a1e28 RD |
16501 | return 1; |
16502 | } | |
16503 | ||
16504 | ||
994141e6 | 16505 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { |
d14a1e28 RD |
16506 | PyObject *pyobj; |
16507 | ||
15afbcd0 | 16508 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16509 | return pyobj; |
16510 | } | |
16511 | ||
16512 | ||
994141e6 RD |
16513 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { |
16514 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
d14a1e28 RD |
16515 | return 1; |
16516 | } | |
16517 | ||
16518 | ||
994141e6 | 16519 | static PyObject *_wrap_BLUE_BRUSH_get() { |
d14a1e28 RD |
16520 | PyObject *pyobj; |
16521 | ||
15afbcd0 | 16522 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16523 | return pyobj; |
16524 | } | |
16525 | ||
16526 | ||
994141e6 RD |
16527 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { |
16528 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
d14a1e28 RD |
16529 | return 1; |
16530 | } | |
16531 | ||
16532 | ||
994141e6 | 16533 | static PyObject *_wrap_GREEN_BRUSH_get() { |
d14a1e28 RD |
16534 | PyObject *pyobj; |
16535 | ||
15afbcd0 | 16536 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16537 | return pyobj; |
16538 | } | |
16539 | ||
16540 | ||
994141e6 RD |
16541 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { |
16542 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
d14a1e28 RD |
16543 | return 1; |
16544 | } | |
16545 | ||
16546 | ||
994141e6 | 16547 | static PyObject *_wrap_WHITE_BRUSH_get() { |
d14a1e28 RD |
16548 | PyObject *pyobj; |
16549 | ||
15afbcd0 | 16550 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16551 | return pyobj; |
16552 | } | |
16553 | ||
16554 | ||
994141e6 RD |
16555 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { |
16556 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
d14a1e28 RD |
16557 | return 1; |
16558 | } | |
16559 | ||
16560 | ||
994141e6 | 16561 | static PyObject *_wrap_BLACK_BRUSH_get() { |
d14a1e28 RD |
16562 | PyObject *pyobj; |
16563 | ||
15afbcd0 | 16564 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16565 | return pyobj; |
16566 | } | |
16567 | ||
16568 | ||
994141e6 RD |
16569 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { |
16570 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
d14a1e28 RD |
16571 | return 1; |
16572 | } | |
16573 | ||
16574 | ||
994141e6 | 16575 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { |
d14a1e28 RD |
16576 | PyObject *pyobj; |
16577 | ||
15afbcd0 | 16578 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16579 | return pyobj; |
16580 | } | |
16581 | ||
16582 | ||
994141e6 RD |
16583 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { |
16584 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
d14a1e28 RD |
16585 | return 1; |
16586 | } | |
16587 | ||
16588 | ||
994141e6 | 16589 | static PyObject *_wrap_CYAN_BRUSH_get() { |
d14a1e28 RD |
16590 | PyObject *pyobj; |
16591 | ||
15afbcd0 | 16592 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16593 | return pyobj; |
16594 | } | |
16595 | ||
16596 | ||
994141e6 RD |
16597 | static int _wrap_RED_BRUSH_set(PyObject *_val) { |
16598 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
d14a1e28 RD |
16599 | return 1; |
16600 | } | |
16601 | ||
16602 | ||
994141e6 | 16603 | static PyObject *_wrap_RED_BRUSH_get() { |
d14a1e28 RD |
16604 | PyObject *pyobj; |
16605 | ||
15afbcd0 | 16606 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16607 | return pyobj; |
16608 | } | |
16609 | ||
16610 | ||
994141e6 RD |
16611 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { |
16612 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16613 | return 1; |
16614 | } | |
16615 | ||
16616 | ||
994141e6 | 16617 | static PyObject *_wrap_GREY_BRUSH_get() { |
d14a1e28 RD |
16618 | PyObject *pyobj; |
16619 | ||
15afbcd0 | 16620 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16621 | return pyobj; |
16622 | } | |
16623 | ||
16624 | ||
994141e6 RD |
16625 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { |
16626 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16627 | return 1; |
16628 | } | |
16629 | ||
16630 | ||
994141e6 | 16631 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { |
d14a1e28 RD |
16632 | PyObject *pyobj; |
16633 | ||
15afbcd0 | 16634 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16635 | return pyobj; |
16636 | } | |
16637 | ||
16638 | ||
994141e6 RD |
16639 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { |
16640 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
d14a1e28 RD |
16641 | return 1; |
16642 | } | |
16643 | ||
16644 | ||
994141e6 | 16645 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { |
d14a1e28 RD |
16646 | PyObject *pyobj; |
16647 | ||
15afbcd0 | 16648 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16649 | return pyobj; |
16650 | } | |
16651 | ||
16652 | ||
994141e6 RD |
16653 | static int _wrap_BLACK_set(PyObject *_val) { |
16654 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
d14a1e28 RD |
16655 | return 1; |
16656 | } | |
16657 | ||
16658 | ||
994141e6 | 16659 | static PyObject *_wrap_BLACK_get() { |
d14a1e28 RD |
16660 | PyObject *pyobj; |
16661 | ||
15afbcd0 | 16662 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16663 | return pyobj; |
16664 | } | |
16665 | ||
16666 | ||
994141e6 RD |
16667 | static int _wrap_WHITE_set(PyObject *_val) { |
16668 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
d14a1e28 RD |
16669 | return 1; |
16670 | } | |
16671 | ||
16672 | ||
994141e6 | 16673 | static PyObject *_wrap_WHITE_get() { |
d14a1e28 RD |
16674 | PyObject *pyobj; |
16675 | ||
15afbcd0 | 16676 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16677 | return pyobj; |
16678 | } | |
16679 | ||
16680 | ||
994141e6 RD |
16681 | static int _wrap_RED_set(PyObject *_val) { |
16682 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
d14a1e28 RD |
16683 | return 1; |
16684 | } | |
16685 | ||
16686 | ||
994141e6 | 16687 | static PyObject *_wrap_RED_get() { |
d14a1e28 RD |
16688 | PyObject *pyobj; |
16689 | ||
15afbcd0 | 16690 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16691 | return pyobj; |
16692 | } | |
16693 | ||
16694 | ||
994141e6 RD |
16695 | static int _wrap_BLUE_set(PyObject *_val) { |
16696 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
d14a1e28 RD |
16697 | return 1; |
16698 | } | |
16699 | ||
16700 | ||
994141e6 | 16701 | static PyObject *_wrap_BLUE_get() { |
d14a1e28 RD |
16702 | PyObject *pyobj; |
16703 | ||
15afbcd0 | 16704 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16705 | return pyobj; |
16706 | } | |
16707 | ||
16708 | ||
994141e6 RD |
16709 | static int _wrap_GREEN_set(PyObject *_val) { |
16710 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
d14a1e28 RD |
16711 | return 1; |
16712 | } | |
16713 | ||
16714 | ||
994141e6 | 16715 | static PyObject *_wrap_GREEN_get() { |
d14a1e28 RD |
16716 | PyObject *pyobj; |
16717 | ||
15afbcd0 | 16718 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16719 | return pyobj; |
16720 | } | |
16721 | ||
16722 | ||
994141e6 RD |
16723 | static int _wrap_CYAN_set(PyObject *_val) { |
16724 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
d14a1e28 RD |
16725 | return 1; |
16726 | } | |
16727 | ||
16728 | ||
994141e6 | 16729 | static PyObject *_wrap_CYAN_get() { |
d14a1e28 RD |
16730 | PyObject *pyobj; |
16731 | ||
15afbcd0 | 16732 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16733 | return pyobj; |
16734 | } | |
16735 | ||
16736 | ||
994141e6 RD |
16737 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { |
16738 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
d14a1e28 RD |
16739 | return 1; |
16740 | } | |
16741 | ||
16742 | ||
994141e6 | 16743 | static PyObject *_wrap_LIGHT_GREY_get() { |
d14a1e28 RD |
16744 | PyObject *pyobj; |
16745 | ||
15afbcd0 | 16746 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16747 | return pyobj; |
16748 | } | |
16749 | ||
16750 | ||
994141e6 RD |
16751 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { |
16752 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
d14a1e28 RD |
16753 | return 1; |
16754 | } | |
16755 | ||
16756 | ||
994141e6 | 16757 | static PyObject *_wrap_STANDARD_CURSOR_get() { |
d14a1e28 RD |
16758 | PyObject *pyobj; |
16759 | ||
15afbcd0 | 16760 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16761 | return pyobj; |
16762 | } | |
16763 | ||
16764 | ||
994141e6 RD |
16765 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { |
16766 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
d14a1e28 RD |
16767 | return 1; |
16768 | } | |
16769 | ||
16770 | ||
994141e6 | 16771 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { |
d14a1e28 RD |
16772 | PyObject *pyobj; |
16773 | ||
15afbcd0 | 16774 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16775 | return pyobj; |
16776 | } | |
16777 | ||
16778 | ||
994141e6 RD |
16779 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { |
16780 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
d14a1e28 RD |
16781 | return 1; |
16782 | } | |
16783 | ||
16784 | ||
994141e6 | 16785 | static PyObject *_wrap_CROSS_CURSOR_get() { |
d14a1e28 RD |
16786 | PyObject *pyobj; |
16787 | ||
15afbcd0 | 16788 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16789 | return pyobj; |
16790 | } | |
16791 | ||
16792 | ||
994141e6 RD |
16793 | static int _wrap_NullBitmap_set(PyObject *_val) { |
16794 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
d14a1e28 RD |
16795 | return 1; |
16796 | } | |
16797 | ||
16798 | ||
994141e6 | 16799 | static PyObject *_wrap_NullBitmap_get() { |
d14a1e28 RD |
16800 | PyObject *pyobj; |
16801 | ||
15afbcd0 | 16802 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); |
d14a1e28 RD |
16803 | return pyobj; |
16804 | } | |
16805 | ||
16806 | ||
994141e6 RD |
16807 | static int _wrap_NullIcon_set(PyObject *_val) { |
16808 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
d14a1e28 RD |
16809 | return 1; |
16810 | } | |
16811 | ||
16812 | ||
994141e6 | 16813 | static PyObject *_wrap_NullIcon_get() { |
d14a1e28 RD |
16814 | PyObject *pyobj; |
16815 | ||
15afbcd0 | 16816 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); |
d14a1e28 RD |
16817 | return pyobj; |
16818 | } | |
16819 | ||
16820 | ||
994141e6 RD |
16821 | static int _wrap_NullCursor_set(PyObject *_val) { |
16822 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
d14a1e28 RD |
16823 | return 1; |
16824 | } | |
16825 | ||
16826 | ||
994141e6 | 16827 | static PyObject *_wrap_NullCursor_get() { |
d14a1e28 RD |
16828 | PyObject *pyobj; |
16829 | ||
15afbcd0 | 16830 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); |
d14a1e28 RD |
16831 | return pyobj; |
16832 | } | |
16833 | ||
16834 | ||
994141e6 RD |
16835 | static int _wrap_NullPen_set(PyObject *_val) { |
16836 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
d14a1e28 RD |
16837 | return 1; |
16838 | } | |
16839 | ||
16840 | ||
994141e6 | 16841 | static PyObject *_wrap_NullPen_get() { |
d14a1e28 RD |
16842 | PyObject *pyobj; |
16843 | ||
15afbcd0 | 16844 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); |
d14a1e28 RD |
16845 | return pyobj; |
16846 | } | |
16847 | ||
16848 | ||
994141e6 RD |
16849 | static int _wrap_NullBrush_set(PyObject *_val) { |
16850 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
d14a1e28 RD |
16851 | return 1; |
16852 | } | |
16853 | ||
16854 | ||
994141e6 | 16855 | static PyObject *_wrap_NullBrush_get() { |
d14a1e28 RD |
16856 | PyObject *pyobj; |
16857 | ||
15afbcd0 | 16858 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); |
d14a1e28 RD |
16859 | return pyobj; |
16860 | } | |
16861 | ||
16862 | ||
994141e6 RD |
16863 | static int _wrap_NullPalette_set(PyObject *_val) { |
16864 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
d14a1e28 RD |
16865 | return 1; |
16866 | } | |
16867 | ||
16868 | ||
994141e6 | 16869 | static PyObject *_wrap_NullPalette_get() { |
d14a1e28 RD |
16870 | PyObject *pyobj; |
16871 | ||
15afbcd0 | 16872 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); |
d14a1e28 RD |
16873 | return pyobj; |
16874 | } | |
16875 | ||
16876 | ||
994141e6 RD |
16877 | static int _wrap_NullFont_set(PyObject *_val) { |
16878 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
d14a1e28 RD |
16879 | return 1; |
16880 | } | |
16881 | ||
16882 | ||
994141e6 | 16883 | static PyObject *_wrap_NullFont_get() { |
d14a1e28 RD |
16884 | PyObject *pyobj; |
16885 | ||
15afbcd0 | 16886 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); |
d14a1e28 RD |
16887 | return pyobj; |
16888 | } | |
16889 | ||
16890 | ||
994141e6 RD |
16891 | static int _wrap_NullColour_set(PyObject *_val) { |
16892 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
d14a1e28 RD |
16893 | return 1; |
16894 | } | |
16895 | ||
16896 | ||
994141e6 | 16897 | static PyObject *_wrap_NullColour_get() { |
d14a1e28 RD |
16898 | PyObject *pyobj; |
16899 | ||
15afbcd0 | 16900 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
16901 | return pyobj; |
16902 | } | |
16903 | ||
16904 | ||
994141e6 RD |
16905 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16906 | PyObject *resultobj; | |
16907 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16908 | wxPen *arg2 = (wxPen *) 0 ; | |
16909 | PyObject * obj0 = 0 ; | |
16910 | PyObject * obj1 = 0 ; | |
16911 | char *kwnames[] = { | |
16912 | (char *) "self",(char *) "pen", NULL | |
16913 | }; | |
16914 | ||
16915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16918 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
16919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16920 | { |
16921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16922 | (arg1)->AddPen(arg2); | |
16923 | ||
16924 | wxPyEndAllowThreads(__tstate); | |
16925 | if (PyErr_Occurred()) SWIG_fail; | |
16926 | } | |
16927 | Py_INCREF(Py_None); resultobj = Py_None; | |
16928 | return resultobj; | |
16929 | fail: | |
16930 | return NULL; | |
d14a1e28 RD |
16931 | } |
16932 | ||
16933 | ||
994141e6 RD |
16934 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16935 | PyObject *resultobj; | |
16936 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16937 | wxColour *arg2 = 0 ; | |
16938 | int arg3 ; | |
16939 | int arg4 ; | |
16940 | wxPen *result; | |
16941 | wxColour temp2 ; | |
16942 | PyObject * obj0 = 0 ; | |
16943 | PyObject * obj1 = 0 ; | |
16944 | PyObject * obj2 = 0 ; | |
16945 | PyObject * obj3 = 0 ; | |
16946 | char *kwnames[] = { | |
16947 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
16948 | }; | |
d14a1e28 | 16949 | |
994141e6 | 16950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
16951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16953 | { |
16954 | arg2 = &temp2; | |
16955 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16956 | } | |
15afbcd0 RD |
16957 | arg3 = (int) SWIG_AsInt(obj2); |
16958 | if (PyErr_Occurred()) SWIG_fail; | |
16959 | arg4 = (int) SWIG_AsInt(obj3); | |
16960 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16961 | { |
16962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16963 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
16964 | ||
16965 | wxPyEndAllowThreads(__tstate); | |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
16967 | } | |
15afbcd0 | 16968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); |
994141e6 RD |
16969 | return resultobj; |
16970 | fail: | |
16971 | return NULL; | |
d14a1e28 RD |
16972 | } |
16973 | ||
16974 | ||
994141e6 RD |
16975 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { |
16976 | PyObject *resultobj; | |
16977 | wxPenList *arg1 = (wxPenList *) 0 ; | |
16978 | wxPen *arg2 = (wxPen *) 0 ; | |
16979 | PyObject * obj0 = 0 ; | |
16980 | PyObject * obj1 = 0 ; | |
16981 | char *kwnames[] = { | |
16982 | (char *) "self",(char *) "pen", NULL | |
16983 | }; | |
16984 | ||
16985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
16987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
16989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
16990 | { |
16991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16992 | (arg1)->RemovePen(arg2); | |
16993 | ||
16994 | wxPyEndAllowThreads(__tstate); | |
16995 | if (PyErr_Occurred()) SWIG_fail; | |
16996 | } | |
16997 | Py_INCREF(Py_None); resultobj = Py_None; | |
16998 | return resultobj; | |
16999 | fail: | |
17000 | return NULL; | |
d14a1e28 RD |
17001 | } |
17002 | ||
17003 | ||
994141e6 RD |
17004 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17005 | PyObject *resultobj; | |
17006 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17007 | int result; | |
17008 | PyObject * obj0 = 0 ; | |
17009 | char *kwnames[] = { | |
17010 | (char *) "self", NULL | |
17011 | }; | |
d14a1e28 | 17012 | |
994141e6 | 17013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, |
17015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17016 | { |
17017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17018 | result = (int)(arg1)->GetCount(); | |
17019 | ||
17020 | wxPyEndAllowThreads(__tstate); | |
17021 | if (PyErr_Occurred()) SWIG_fail; | |
17022 | } | |
15afbcd0 | 17023 | resultobj = SWIG_FromInt((int)result); |
994141e6 RD |
17024 | return resultobj; |
17025 | fail: | |
17026 | return NULL; | |
d14a1e28 RD |
17027 | } |
17028 | ||
17029 | ||
994141e6 RD |
17030 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { |
17031 | PyObject *obj; | |
17032 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17033 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17034 | Py_INCREF(obj); | |
17035 | return Py_BuildValue((char *)""); | |
17036 | } | |
17037 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17038 | PyObject *resultobj; | |
17039 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17040 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17041 | PyObject * obj0 = 0 ; | |
17042 | PyObject * obj1 = 0 ; | |
17043 | char *kwnames[] = { | |
17044 | (char *) "self",(char *) "brush", NULL | |
17045 | }; | |
17046 | ||
17047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17050 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17052 | { |
17053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17054 | (arg1)->AddBrush(arg2); | |
17055 | ||
17056 | wxPyEndAllowThreads(__tstate); | |
17057 | if (PyErr_Occurred()) SWIG_fail; | |
17058 | } | |
17059 | Py_INCREF(Py_None); resultobj = Py_None; | |
17060 | return resultobj; | |
17061 | fail: | |
17062 | return NULL; | |
17063 | } | |
17064 | ||
17065 | ||
17066 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17067 | PyObject *resultobj; | |
17068 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17069 | wxColour *arg2 = 0 ; | |
17070 | int arg3 ; | |
17071 | wxBrush *result; | |
17072 | wxColour temp2 ; | |
17073 | PyObject * obj0 = 0 ; | |
17074 | PyObject * obj1 = 0 ; | |
17075 | PyObject * obj2 = 0 ; | |
17076 | char *kwnames[] = { | |
17077 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17078 | }; | |
17079 | ||
17080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17083 | { |
17084 | arg2 = &temp2; | |
17085 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17086 | } | |
15afbcd0 RD |
17087 | arg3 = (int) SWIG_AsInt(obj2); |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17089 | { |
17090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17091 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17092 | ||
17093 | wxPyEndAllowThreads(__tstate); | |
17094 | if (PyErr_Occurred()) SWIG_fail; | |
17095 | } | |
15afbcd0 | 17096 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); |
994141e6 RD |
17097 | return resultobj; |
17098 | fail: | |
17099 | return NULL; | |
d14a1e28 RD |
17100 | } |
17101 | ||
17102 | ||
994141e6 RD |
17103 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
17104 | PyObject *resultobj; | |
17105 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17106 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17107 | PyObject * obj0 = 0 ; | |
17108 | PyObject * obj1 = 0 ; | |
17109 | char *kwnames[] = { | |
17110 | (char *) "self",(char *) "brush", NULL | |
17111 | }; | |
d14a1e28 | 17112 | |
994141e6 | 17113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17116 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17118 | { |
17119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17120 | (arg1)->RemoveBrush(arg2); | |
17121 | ||
17122 | wxPyEndAllowThreads(__tstate); | |
17123 | if (PyErr_Occurred()) SWIG_fail; | |
17124 | } | |
17125 | Py_INCREF(Py_None); resultobj = Py_None; | |
17126 | return resultobj; | |
17127 | fail: | |
17128 | return NULL; | |
d14a1e28 RD |
17129 | } |
17130 | ||
17131 | ||
994141e6 RD |
17132 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17133 | PyObject *resultobj; | |
17134 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17135 | int result; | |
17136 | PyObject * obj0 = 0 ; | |
17137 | char *kwnames[] = { | |
17138 | (char *) "self", NULL | |
17139 | }; | |
d14a1e28 | 17140 | |
994141e6 | 17141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, |
17143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17144 | { |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | result = (int)(arg1)->GetCount(); | |
17147 | ||
17148 | wxPyEndAllowThreads(__tstate); | |
17149 | if (PyErr_Occurred()) SWIG_fail; | |
17150 | } | |
15afbcd0 | 17151 | resultobj = SWIG_FromInt((int)result); |
994141e6 RD |
17152 | return resultobj; |
17153 | fail: | |
17154 | return NULL; | |
d14a1e28 RD |
17155 | } |
17156 | ||
17157 | ||
994141e6 RD |
17158 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { |
17159 | PyObject *obj; | |
17160 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17161 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17162 | Py_INCREF(obj); | |
17163 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17164 | } |
994141e6 RD |
17165 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
17166 | PyObject *resultobj; | |
17167 | wxColourDatabase *result; | |
17168 | char *kwnames[] = { | |
17169 | NULL | |
17170 | }; | |
d14a1e28 | 17171 | |
994141e6 RD |
17172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; |
17173 | { | |
17174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17175 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17176 | ||
17177 | wxPyEndAllowThreads(__tstate); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
17179 | } | |
15afbcd0 | 17180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); |
994141e6 RD |
17181 | return resultobj; |
17182 | fail: | |
17183 | return NULL; | |
d14a1e28 RD |
17184 | } |
17185 | ||
17186 | ||
994141e6 RD |
17187 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { |
17188 | PyObject *resultobj; | |
17189 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17190 | PyObject * obj0 = 0 ; | |
17191 | char *kwnames[] = { | |
17192 | (char *) "self", NULL | |
17193 | }; | |
d14a1e28 | 17194 | |
994141e6 | 17195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17198 | { |
17199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17200 | delete arg1; | |
17201 | ||
17202 | wxPyEndAllowThreads(__tstate); | |
17203 | if (PyErr_Occurred()) SWIG_fail; | |
17204 | } | |
17205 | Py_INCREF(Py_None); resultobj = Py_None; | |
17206 | return resultobj; | |
17207 | fail: | |
17208 | return NULL; | |
d14a1e28 RD |
17209 | } |
17210 | ||
17211 | ||
994141e6 RD |
17212 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { |
17213 | PyObject *resultobj; | |
17214 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17215 | wxString *arg2 = 0 ; | |
17216 | wxColour result; | |
17217 | bool temp2 = False ; | |
17218 | PyObject * obj0 = 0 ; | |
17219 | PyObject * obj1 = 0 ; | |
17220 | char *kwnames[] = { | |
17221 | (char *) "self",(char *) "name", NULL | |
17222 | }; | |
17223 | ||
17224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17227 | { |
17228 | arg2 = wxString_in_helper(obj1); | |
17229 | if (arg2 == NULL) SWIG_fail; | |
17230 | temp2 = True; | |
17231 | } | |
17232 | { | |
17233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17234 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17235 | ||
17236 | wxPyEndAllowThreads(__tstate); | |
17237 | if (PyErr_Occurred()) SWIG_fail; | |
17238 | } | |
17239 | { | |
17240 | wxColour * resultptr; | |
17241 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
994141e6 RD |
17243 | } |
17244 | { | |
17245 | if (temp2) | |
17246 | delete arg2; | |
17247 | } | |
17248 | return resultobj; | |
17249 | fail: | |
17250 | { | |
17251 | if (temp2) | |
17252 | delete arg2; | |
17253 | } | |
17254 | return NULL; | |
d14a1e28 RD |
17255 | } |
17256 | ||
17257 | ||
994141e6 RD |
17258 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { |
17259 | PyObject *resultobj; | |
17260 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17261 | wxColour *arg2 = 0 ; | |
17262 | wxString result; | |
17263 | wxColour temp2 ; | |
17264 | PyObject * obj0 = 0 ; | |
17265 | PyObject * obj1 = 0 ; | |
17266 | char *kwnames[] = { | |
17267 | (char *) "self",(char *) "colour", NULL | |
17268 | }; | |
d14a1e28 | 17269 | |
994141e6 | 17270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17273 | { |
17274 | arg2 = &temp2; | |
17275 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17276 | } | |
17277 | { | |
17278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17279 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17280 | ||
17281 | wxPyEndAllowThreads(__tstate); | |
17282 | if (PyErr_Occurred()) SWIG_fail; | |
17283 | } | |
17284 | { | |
17285 | #if wxUSE_UNICODE | |
17286 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17287 | #else | |
17288 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17289 | #endif | |
17290 | } | |
17291 | return resultobj; | |
17292 | fail: | |
17293 | return NULL; | |
d14a1e28 RD |
17294 | } |
17295 | ||
17296 | ||
994141e6 RD |
17297 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
17298 | PyObject *resultobj; | |
17299 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17300 | wxString *arg2 = 0 ; | |
17301 | wxColour *arg3 = 0 ; | |
17302 | bool temp2 = False ; | |
17303 | wxColour temp3 ; | |
17304 | PyObject * obj0 = 0 ; | |
17305 | PyObject * obj1 = 0 ; | |
17306 | PyObject * obj2 = 0 ; | |
17307 | char *kwnames[] = { | |
17308 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17309 | }; | |
17310 | ||
17311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17314 | { |
17315 | arg2 = wxString_in_helper(obj1); | |
17316 | if (arg2 == NULL) SWIG_fail; | |
17317 | temp2 = True; | |
17318 | } | |
17319 | { | |
17320 | arg3 = &temp3; | |
17321 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17322 | } | |
17323 | { | |
17324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17325 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17326 | ||
17327 | wxPyEndAllowThreads(__tstate); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | } | |
17330 | Py_INCREF(Py_None); resultobj = Py_None; | |
17331 | { | |
17332 | if (temp2) | |
17333 | delete arg2; | |
17334 | } | |
17335 | return resultobj; | |
17336 | fail: | |
17337 | { | |
17338 | if (temp2) | |
17339 | delete arg2; | |
17340 | } | |
17341 | return NULL; | |
d14a1e28 RD |
17342 | } |
17343 | ||
17344 | ||
994141e6 RD |
17345 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
17346 | PyObject *resultobj; | |
17347 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17348 | wxString *arg2 = 0 ; | |
17349 | int arg3 ; | |
17350 | int arg4 ; | |
17351 | int arg5 ; | |
17352 | bool temp2 = False ; | |
17353 | PyObject * obj0 = 0 ; | |
17354 | PyObject * obj1 = 0 ; | |
17355 | PyObject * obj2 = 0 ; | |
17356 | PyObject * obj3 = 0 ; | |
17357 | PyObject * obj4 = 0 ; | |
17358 | char *kwnames[] = { | |
17359 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17360 | }; | |
d14a1e28 | 17361 | |
994141e6 | 17362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
17363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, |
17364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17365 | { |
17366 | arg2 = wxString_in_helper(obj1); | |
17367 | if (arg2 == NULL) SWIG_fail; | |
17368 | temp2 = True; | |
17369 | } | |
15afbcd0 RD |
17370 | arg3 = (int) SWIG_AsInt(obj2); |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | arg4 = (int) SWIG_AsInt(obj3); | |
17373 | if (PyErr_Occurred()) SWIG_fail; | |
17374 | arg5 = (int) SWIG_AsInt(obj4); | |
17375 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17376 | { |
17377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17378 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17379 | ||
17380 | wxPyEndAllowThreads(__tstate); | |
17381 | if (PyErr_Occurred()) SWIG_fail; | |
17382 | } | |
17383 | Py_INCREF(Py_None); resultobj = Py_None; | |
17384 | { | |
17385 | if (temp2) | |
17386 | delete arg2; | |
17387 | } | |
17388 | return resultobj; | |
17389 | fail: | |
17390 | { | |
17391 | if (temp2) | |
17392 | delete arg2; | |
17393 | } | |
17394 | return NULL; | |
d14a1e28 RD |
17395 | } |
17396 | ||
17397 | ||
994141e6 RD |
17398 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { |
17399 | PyObject *obj; | |
17400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17401 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17402 | Py_INCREF(obj); | |
17403 | return Py_BuildValue((char *)""); | |
d14a1e28 | 17404 | } |
994141e6 RD |
17405 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17406 | PyObject *resultobj; | |
17407 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17408 | wxFont *arg2 = (wxFont *) 0 ; | |
17409 | PyObject * obj0 = 0 ; | |
17410 | PyObject * obj1 = 0 ; | |
17411 | char *kwnames[] = { | |
17412 | (char *) "self",(char *) "font", NULL | |
17413 | }; | |
d14a1e28 | 17414 | |
994141e6 | 17415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17420 | { |
17421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17422 | (arg1)->AddFont(arg2); | |
17423 | ||
17424 | wxPyEndAllowThreads(__tstate); | |
17425 | if (PyErr_Occurred()) SWIG_fail; | |
17426 | } | |
17427 | Py_INCREF(Py_None); resultobj = Py_None; | |
17428 | return resultobj; | |
17429 | fail: | |
17430 | return NULL; | |
d14a1e28 RD |
17431 | } |
17432 | ||
17433 | ||
994141e6 RD |
17434 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17435 | PyObject *resultobj; | |
17436 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17437 | int arg2 ; | |
17438 | int arg3 ; | |
17439 | int arg4 ; | |
17440 | int arg5 ; | |
17441 | bool arg6 = (bool) False ; | |
17442 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17443 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17444 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17445 | wxFont *result; | |
17446 | bool temp7 = False ; | |
17447 | PyObject * obj0 = 0 ; | |
17448 | PyObject * obj1 = 0 ; | |
17449 | PyObject * obj2 = 0 ; | |
17450 | PyObject * obj3 = 0 ; | |
17451 | PyObject * obj4 = 0 ; | |
17452 | PyObject * obj5 = 0 ; | |
17453 | PyObject * obj6 = 0 ; | |
17454 | PyObject * obj7 = 0 ; | |
17455 | char *kwnames[] = { | |
17456 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17457 | }; | |
d14a1e28 | 17458 | |
994141e6 | 17459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
17460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17462 | arg2 = (int) SWIG_AsInt(obj1); | |
17463 | if (PyErr_Occurred()) SWIG_fail; | |
17464 | arg3 = (int) SWIG_AsInt(obj2); | |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
17466 | arg4 = (int) SWIG_AsInt(obj3); | |
17467 | if (PyErr_Occurred()) SWIG_fail; | |
17468 | arg5 = (int) SWIG_AsInt(obj4); | |
17469 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17470 | if (obj5) { |
15afbcd0 RD |
17471 | arg6 = (bool) SWIG_AsBool(obj5); |
17472 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17473 | } |
17474 | if (obj6) { | |
17475 | { | |
17476 | arg7 = wxString_in_helper(obj6); | |
17477 | if (arg7 == NULL) SWIG_fail; | |
17478 | temp7 = True; | |
17479 | } | |
17480 | } | |
17481 | if (obj7) { | |
15afbcd0 RD |
17482 | arg8 = (wxFontEncoding) SWIG_AsInt(obj7); |
17483 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17484 | } |
17485 | { | |
17486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17487 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17488 | ||
17489 | wxPyEndAllowThreads(__tstate); | |
17490 | if (PyErr_Occurred()) SWIG_fail; | |
17491 | } | |
15afbcd0 | 17492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); |
994141e6 RD |
17493 | { |
17494 | if (temp7) | |
17495 | delete arg7; | |
17496 | } | |
17497 | return resultobj; | |
17498 | fail: | |
17499 | { | |
17500 | if (temp7) | |
17501 | delete arg7; | |
17502 | } | |
17503 | return NULL; | |
d14a1e28 RD |
17504 | } |
17505 | ||
17506 | ||
994141e6 RD |
17507 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
17508 | PyObject *resultobj; | |
17509 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17510 | wxFont *arg2 = (wxFont *) 0 ; | |
17511 | PyObject * obj0 = 0 ; | |
17512 | PyObject * obj1 = 0 ; | |
17513 | char *kwnames[] = { | |
17514 | (char *) "self",(char *) "font", NULL | |
17515 | }; | |
d14a1e28 | 17516 | |
994141e6 | 17517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17522 | { |
17523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17524 | (arg1)->RemoveFont(arg2); | |
17525 | ||
17526 | wxPyEndAllowThreads(__tstate); | |
17527 | if (PyErr_Occurred()) SWIG_fail; | |
17528 | } | |
17529 | Py_INCREF(Py_None); resultobj = Py_None; | |
17530 | return resultobj; | |
17531 | fail: | |
17532 | return NULL; | |
d14a1e28 RD |
17533 | } |
17534 | ||
17535 | ||
994141e6 RD |
17536 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
17537 | PyObject *resultobj; | |
17538 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17539 | int result; | |
17540 | PyObject * obj0 = 0 ; | |
17541 | char *kwnames[] = { | |
17542 | (char *) "self", NULL | |
17543 | }; | |
d14a1e28 | 17544 | |
994141e6 | 17545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, |
17547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
17548 | { |
17549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17550 | result = (int)(arg1)->GetCount(); | |
17551 | ||
17552 | wxPyEndAllowThreads(__tstate); | |
17553 | if (PyErr_Occurred()) SWIG_fail; | |
17554 | } | |
15afbcd0 | 17555 | resultobj = SWIG_FromInt((int)result); |
994141e6 RD |
17556 | return resultobj; |
17557 | fail: | |
17558 | return NULL; | |
d14a1e28 RD |
17559 | } |
17560 | ||
17561 | ||
994141e6 RD |
17562 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { |
17563 | PyObject *obj; | |
17564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17565 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17566 | Py_INCREF(obj); | |
17567 | return Py_BuildValue((char *)""); | |
17568 | } | |
d14a1e28 RD |
17569 | static int _wrap_TheFontList_set(PyObject *_val) { |
17570 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
17571 | return 1; | |
17572 | } | |
17573 | ||
17574 | ||
17575 | static PyObject *_wrap_TheFontList_get() { | |
17576 | PyObject *pyobj; | |
17577 | ||
15afbcd0 | 17578 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); |
d14a1e28 RD |
17579 | return pyobj; |
17580 | } | |
17581 | ||
17582 | ||
17583 | static int _wrap_ThePenList_set(PyObject *_val) { | |
17584 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
17585 | return 1; | |
17586 | } | |
17587 | ||
17588 | ||
17589 | static PyObject *_wrap_ThePenList_get() { | |
17590 | PyObject *pyobj; | |
17591 | ||
15afbcd0 | 17592 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); |
d14a1e28 RD |
17593 | return pyobj; |
17594 | } | |
17595 | ||
17596 | ||
17597 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
17598 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
17599 | return 1; | |
17600 | } | |
17601 | ||
17602 | ||
17603 | static PyObject *_wrap_TheBrushList_get() { | |
17604 | PyObject *pyobj; | |
17605 | ||
15afbcd0 | 17606 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); |
d14a1e28 RD |
17607 | return pyobj; |
17608 | } | |
17609 | ||
17610 | ||
17611 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
17612 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
17613 | return 1; | |
17614 | } | |
17615 | ||
17616 | ||
17617 | static PyObject *_wrap_TheColourDatabase_get() { | |
17618 | PyObject *pyobj; | |
17619 | ||
15afbcd0 | 17620 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); |
d14a1e28 RD |
17621 | return pyobj; |
17622 | } | |
17623 | ||
17624 | ||
e811c8ce | 17625 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17626 | PyObject *resultobj; |
e811c8ce | 17627 | wxEffects *result; |
d14a1e28 | 17628 | char *kwnames[] = { |
e811c8ce | 17629 | NULL |
d14a1e28 RD |
17630 | }; |
17631 | ||
e811c8ce | 17632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; |
d14a1e28 RD |
17633 | { |
17634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17635 | result = (wxEffects *)new wxEffects(); |
d14a1e28 RD |
17636 | |
17637 | wxPyEndAllowThreads(__tstate); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | } | |
15afbcd0 | 17640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); |
d14a1e28 RD |
17641 | return resultobj; |
17642 | fail: | |
17643 | return NULL; | |
17644 | } | |
17645 | ||
17646 | ||
e811c8ce | 17647 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17648 | PyObject *resultobj; |
e811c8ce RD |
17649 | wxEffects *arg1 = (wxEffects *) 0 ; |
17650 | wxColour result; | |
d14a1e28 | 17651 | PyObject * obj0 = 0 ; |
d14a1e28 | 17652 | char *kwnames[] = { |
e811c8ce | 17653 | (char *) "self", NULL |
d14a1e28 RD |
17654 | }; |
17655 | ||
e811c8ce | 17656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17659 | { |
17660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17661 | result = ((wxEffects const *)arg1)->GetHighlightColour(); |
d14a1e28 RD |
17662 | |
17663 | wxPyEndAllowThreads(__tstate); | |
17664 | if (PyErr_Occurred()) SWIG_fail; | |
17665 | } | |
e811c8ce RD |
17666 | { |
17667 | wxColour * resultptr; | |
17668 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17669 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 17670 | } |
d14a1e28 RD |
17671 | return resultobj; |
17672 | fail: | |
17673 | return NULL; | |
17674 | } | |
17675 | ||
17676 | ||
e811c8ce | 17677 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17678 | PyObject *resultobj; |
e811c8ce RD |
17679 | wxEffects *arg1 = (wxEffects *) 0 ; |
17680 | wxColour result; | |
d14a1e28 | 17681 | PyObject * obj0 = 0 ; |
d14a1e28 | 17682 | char *kwnames[] = { |
e811c8ce | 17683 | (char *) "self", NULL |
d14a1e28 RD |
17684 | }; |
17685 | ||
e811c8ce | 17686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17689 | { |
17690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17691 | result = ((wxEffects const *)arg1)->GetLightShadow(); |
d14a1e28 RD |
17692 | |
17693 | wxPyEndAllowThreads(__tstate); | |
17694 | if (PyErr_Occurred()) SWIG_fail; | |
17695 | } | |
d14a1e28 | 17696 | { |
e811c8ce RD |
17697 | wxColour * resultptr; |
17698 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17700 | } |
17701 | return resultobj; | |
17702 | fail: | |
d14a1e28 RD |
17703 | return NULL; |
17704 | } | |
17705 | ||
17706 | ||
e811c8ce | 17707 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17708 | PyObject *resultobj; |
e811c8ce RD |
17709 | wxEffects *arg1 = (wxEffects *) 0 ; |
17710 | wxColour result; | |
d14a1e28 | 17711 | PyObject * obj0 = 0 ; |
d14a1e28 | 17712 | char *kwnames[] = { |
e811c8ce | 17713 | (char *) "self", NULL |
d14a1e28 RD |
17714 | }; |
17715 | ||
e811c8ce | 17716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
17717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17719 | { |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 17721 | result = ((wxEffects const *)arg1)->GetFaceColour(); |
d14a1e28 RD |
17722 | |
17723 | wxPyEndAllowThreads(__tstate); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
17725 | } | |
e811c8ce RD |
17726 | { |
17727 | wxColour * resultptr; | |
17728 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
e811c8ce | 17730 | } |
d14a1e28 RD |
17731 | return resultobj; |
17732 | fail: | |
17733 | return NULL; | |
17734 | } | |
17735 | ||
17736 | ||
e811c8ce | 17737 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 17738 | PyObject *resultobj; |
e811c8ce RD |
17739 | wxEffects *arg1 = (wxEffects *) 0 ; |
17740 | wxColour result; | |
d14a1e28 RD |
17741 | PyObject * obj0 = 0 ; |
17742 | char *kwnames[] = { | |
e811c8ce | 17743 | (char *) "self", NULL |
d14a1e28 RD |
17744 | }; |
17745 | ||
17746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17749 | { |
17750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17751 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17752 | ||
17753 | wxPyEndAllowThreads(__tstate); | |
17754 | if (PyErr_Occurred()) SWIG_fail; | |
17755 | } | |
17756 | { | |
17757 | wxColour * resultptr; | |
17758 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17760 | } |
17761 | return resultobj; | |
17762 | fail: | |
17763 | return NULL; | |
17764 | } | |
17765 | ||
17766 | ||
17767 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17768 | PyObject *resultobj; | |
17769 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17770 | wxColour result; | |
17771 | PyObject * obj0 = 0 ; | |
17772 | char *kwnames[] = { | |
17773 | (char *) "self", NULL | |
17774 | }; | |
17775 | ||
17776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17779 | { |
17780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17781 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17782 | ||
17783 | wxPyEndAllowThreads(__tstate); | |
17784 | if (PyErr_Occurred()) SWIG_fail; | |
17785 | } | |
17786 | { | |
17787 | wxColour * resultptr; | |
17788 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 17789 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
17790 | } |
17791 | return resultobj; | |
17792 | fail: | |
17793 | return NULL; | |
17794 | } | |
17795 | ||
17796 | ||
17797 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17798 | PyObject *resultobj; | |
17799 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17800 | wxColour *arg2 = 0 ; | |
17801 | wxColour temp2 ; | |
17802 | PyObject * obj0 = 0 ; | |
17803 | PyObject * obj1 = 0 ; | |
17804 | char *kwnames[] = { | |
17805 | (char *) "self",(char *) "c", NULL | |
17806 | }; | |
17807 | ||
17808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17811 | { |
17812 | arg2 = &temp2; | |
17813 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17814 | } | |
17815 | { | |
17816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17817 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17818 | ||
17819 | wxPyEndAllowThreads(__tstate); | |
17820 | if (PyErr_Occurred()) SWIG_fail; | |
17821 | } | |
17822 | Py_INCREF(Py_None); resultobj = Py_None; | |
17823 | return resultobj; | |
17824 | fail: | |
17825 | return NULL; | |
17826 | } | |
17827 | ||
17828 | ||
17829 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17830 | PyObject *resultobj; | |
17831 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17832 | wxColour *arg2 = 0 ; | |
17833 | wxColour temp2 ; | |
17834 | PyObject * obj0 = 0 ; | |
17835 | PyObject * obj1 = 0 ; | |
17836 | char *kwnames[] = { | |
17837 | (char *) "self",(char *) "c", NULL | |
17838 | }; | |
17839 | ||
17840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17843 | { |
17844 | arg2 = &temp2; | |
17845 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17846 | } | |
17847 | { | |
17848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17849 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17850 | ||
17851 | wxPyEndAllowThreads(__tstate); | |
17852 | if (PyErr_Occurred()) SWIG_fail; | |
17853 | } | |
17854 | Py_INCREF(Py_None); resultobj = Py_None; | |
17855 | return resultobj; | |
17856 | fail: | |
17857 | return NULL; | |
17858 | } | |
17859 | ||
17860 | ||
17861 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17862 | PyObject *resultobj; | |
17863 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17864 | wxColour *arg2 = 0 ; | |
17865 | wxColour temp2 ; | |
17866 | PyObject * obj0 = 0 ; | |
17867 | PyObject * obj1 = 0 ; | |
17868 | char *kwnames[] = { | |
17869 | (char *) "self",(char *) "c", NULL | |
17870 | }; | |
17871 | ||
17872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17875 | { |
17876 | arg2 = &temp2; | |
17877 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17878 | } | |
17879 | { | |
17880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17881 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
17882 | ||
17883 | wxPyEndAllowThreads(__tstate); | |
17884 | if (PyErr_Occurred()) SWIG_fail; | |
17885 | } | |
17886 | Py_INCREF(Py_None); resultobj = Py_None; | |
17887 | return resultobj; | |
17888 | fail: | |
17889 | return NULL; | |
17890 | } | |
17891 | ||
17892 | ||
17893 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17894 | PyObject *resultobj; | |
17895 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17896 | wxColour *arg2 = 0 ; | |
17897 | wxColour temp2 ; | |
17898 | PyObject * obj0 = 0 ; | |
17899 | PyObject * obj1 = 0 ; | |
17900 | char *kwnames[] = { | |
17901 | (char *) "self",(char *) "c", NULL | |
17902 | }; | |
17903 | ||
17904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17907 | { |
17908 | arg2 = &temp2; | |
17909 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17910 | } | |
17911 | { | |
17912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17913 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
17914 | ||
17915 | wxPyEndAllowThreads(__tstate); | |
17916 | if (PyErr_Occurred()) SWIG_fail; | |
17917 | } | |
17918 | Py_INCREF(Py_None); resultobj = Py_None; | |
17919 | return resultobj; | |
17920 | fail: | |
17921 | return NULL; | |
17922 | } | |
17923 | ||
17924 | ||
17925 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17926 | PyObject *resultobj; | |
17927 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17928 | wxColour *arg2 = 0 ; | |
17929 | wxColour temp2 ; | |
17930 | PyObject * obj0 = 0 ; | |
17931 | PyObject * obj1 = 0 ; | |
17932 | char *kwnames[] = { | |
17933 | (char *) "self",(char *) "c", NULL | |
17934 | }; | |
17935 | ||
17936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17939 | { |
17940 | arg2 = &temp2; | |
17941 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17942 | } | |
17943 | { | |
17944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17945 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
17946 | ||
17947 | wxPyEndAllowThreads(__tstate); | |
17948 | if (PyErr_Occurred()) SWIG_fail; | |
17949 | } | |
17950 | Py_INCREF(Py_None); resultobj = Py_None; | |
17951 | return resultobj; | |
17952 | fail: | |
17953 | return NULL; | |
17954 | } | |
17955 | ||
17956 | ||
17957 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17958 | PyObject *resultobj; | |
17959 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17960 | wxColour *arg2 = 0 ; | |
17961 | wxColour *arg3 = 0 ; | |
17962 | wxColour *arg4 = 0 ; | |
17963 | wxColour *arg5 = 0 ; | |
17964 | wxColour *arg6 = 0 ; | |
17965 | wxColour temp2 ; | |
17966 | wxColour temp3 ; | |
17967 | wxColour temp4 ; | |
17968 | wxColour temp5 ; | |
17969 | wxColour temp6 ; | |
17970 | PyObject * obj0 = 0 ; | |
17971 | PyObject * obj1 = 0 ; | |
17972 | PyObject * obj2 = 0 ; | |
17973 | PyObject * obj3 = 0 ; | |
17974 | PyObject * obj4 = 0 ; | |
17975 | PyObject * obj5 = 0 ; | |
17976 | char *kwnames[] = { | |
17977 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
17978 | }; | |
17979 | ||
17980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15afbcd0 RD |
17981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
17982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17983 | { |
17984 | arg2 = &temp2; | |
17985 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17986 | } | |
17987 | { | |
17988 | arg3 = &temp3; | |
17989 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17990 | } | |
17991 | { | |
17992 | arg4 = &temp4; | |
17993 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17994 | } | |
17995 | { | |
17996 | arg5 = &temp5; | |
17997 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
17998 | } | |
17999 | { | |
18000 | arg6 = &temp6; | |
18001 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18002 | } | |
18003 | { | |
18004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18005 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18006 | ||
18007 | wxPyEndAllowThreads(__tstate); | |
18008 | if (PyErr_Occurred()) SWIG_fail; | |
18009 | } | |
18010 | Py_INCREF(Py_None); resultobj = Py_None; | |
18011 | return resultobj; | |
18012 | fail: | |
18013 | return NULL; | |
18014 | } | |
18015 | ||
18016 | ||
18017 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18018 | PyObject *resultobj; | |
18019 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18020 | wxDC *arg2 = 0 ; | |
18021 | wxRect *arg3 = 0 ; | |
18022 | int arg4 = (int) 1 ; | |
18023 | wxRect temp3 ; | |
18024 | PyObject * obj0 = 0 ; | |
18025 | PyObject * obj1 = 0 ; | |
18026 | PyObject * obj2 = 0 ; | |
994141e6 | 18027 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
18028 | char *kwnames[] = { |
18029 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18030 | }; | |
18031 | ||
994141e6 | 18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
18033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18036 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18037 | SWIG_fail; | |
d14a1e28 | 18038 | if (arg2 == NULL) { |
15afbcd0 RD |
18039 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18040 | SWIG_fail; | |
d14a1e28 RD |
18041 | } |
18042 | { | |
18043 | arg3 = &temp3; | |
18044 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18045 | } | |
994141e6 | 18046 | if (obj3) { |
15afbcd0 RD |
18047 | arg4 = (int) SWIG_AsInt(obj3); |
18048 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18049 | } |
d14a1e28 RD |
18050 | { |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | Py_INCREF(Py_None); resultobj = Py_None; | |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18065 | PyObject *resultobj; | |
18066 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18067 | wxRect *arg2 = 0 ; | |
18068 | wxDC *arg3 = 0 ; | |
18069 | wxBitmap *arg4 = 0 ; | |
18070 | bool result; | |
18071 | wxRect temp2 ; | |
18072 | PyObject * obj0 = 0 ; | |
18073 | PyObject * obj1 = 0 ; | |
18074 | PyObject * obj2 = 0 ; | |
18075 | PyObject * obj3 = 0 ; | |
18076 | char *kwnames[] = { | |
18077 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18078 | }; | |
18079 | ||
18080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
18081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, |
18082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18083 | { |
18084 | arg2 = &temp2; | |
18085 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18086 | } | |
15afbcd0 RD |
18087 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, |
18088 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18089 | SWIG_fail; | |
d14a1e28 | 18090 | if (arg3 == NULL) { |
15afbcd0 RD |
18091 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18092 | SWIG_fail; | |
d14a1e28 | 18093 | } |
15afbcd0 RD |
18094 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
18095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18096 | SWIG_fail; | |
d14a1e28 | 18097 | if (arg4 == NULL) { |
15afbcd0 RD |
18098 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18099 | SWIG_fail; | |
d14a1e28 RD |
18100 | } |
18101 | { | |
18102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18103 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18104 | ||
18105 | wxPyEndAllowThreads(__tstate); | |
18106 | if (PyErr_Occurred()) SWIG_fail; | |
18107 | } | |
4f89f6a3 RD |
18108 | { |
18109 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18110 | } | |
d14a1e28 RD |
18111 | return resultobj; |
18112 | fail: | |
18113 | return NULL; | |
18114 | } | |
18115 | ||
18116 | ||
18117 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
18118 | PyObject *obj; | |
18119 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18120 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18121 | Py_INCREF(obj); | |
18122 | return Py_BuildValue((char *)""); | |
18123 | } | |
18124 | static PyMethodDef SwigMethods[] = { | |
18125 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18126 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18127 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18128 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18129 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
18130 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
18131 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18132 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, |
18133 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
b88bce5f | 18134 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18135 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, |
18136 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
18137 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
18138 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18139 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 18140 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, |
b88bce5f RD |
18141 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, |
18142 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18143 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, |
18144 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18145 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
b88bce5f | 18146 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18147 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, |
18148 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18149 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18150 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18151 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
18152 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18153 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
18154 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18155 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18156 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
18157 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18158 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18159 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18160 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18161 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18162 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
18163 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18164 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18165 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18166 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18167 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
18168 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
66c033b4 RD |
18169 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS }, |
18170 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 18171 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
22faec7d | 18172 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18173 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
d14a1e28 RD |
18174 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, |
18175 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
18176 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18177 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18178 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18179 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18180 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18181 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18182 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18183 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
18184 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
18185 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
66c033b4 | 18186 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18187 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
18188 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
18189 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18190 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
18191 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18192 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18193 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18194 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 18195 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18196 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, |
18197 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
18198 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
18199 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
18200 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18201 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
18202 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18203 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18204 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18205 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18206 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 18207 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
4276dc52 RD |
18208 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, |
18209 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18210 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, |
18211 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18212 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, |
18213 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18214 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18215 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
18216 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
18217 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18218 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18219 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18220 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18221 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18222 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18223 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18224 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18225 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18226 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18227 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18228 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
18229 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18230 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18231 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18232 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18233 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18234 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18235 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18236 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
18237 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18238 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18239 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18240 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18241 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18242 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18243 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
18244 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
18245 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18246 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18247 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
18248 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18249 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
18250 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
18251 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
18252 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18253 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
18254 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
18255 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18256 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
18257 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
18258 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
18259 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
18260 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
18261 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
18262 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
18263 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
18264 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
18265 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
18266 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
18267 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
18268 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
18269 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
18270 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
18271 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
18272 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
18273 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
18274 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
18275 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18276 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18277 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
18278 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18279 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18280 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
18281 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
18282 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
18283 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18284 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
18285 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18286 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
18287 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
18288 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
18289 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
18290 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
18291 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
18292 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18293 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18294 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
18295 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
18296 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18297 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18298 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18299 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18300 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18301 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18302 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18303 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18304 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18305 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18306 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18307 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18308 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18309 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18310 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18311 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18312 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
18313 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
18314 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
18315 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
18316 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
18317 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
18318 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
18319 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
18320 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18321 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18322 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18323 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18324 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
18325 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18326 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18327 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18328 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18329 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
18330 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
18331 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18332 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
18333 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18334 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18335 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 18336 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18337 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, |
18338 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18339 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18340 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18341 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
18342 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
18343 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
18344 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
18345 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
18346 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
18347 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
18348 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
18349 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
18350 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18351 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
18352 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18353 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18354 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18355 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18356 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18357 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18358 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18359 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18360 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18361 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
18362 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
18363 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18364 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18365 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18366 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18367 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18368 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18369 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18370 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18371 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18372 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
18373 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18374 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
18375 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
18376 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
18377 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18378 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18379 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18380 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18381 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
18382 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18383 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18384 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
18385 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18386 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18387 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18388 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18389 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
18390 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
18391 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
18392 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
18393 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
18394 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
18395 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
18396 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
18397 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18398 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18399 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
18400 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
18401 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18402 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18403 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18404 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18405 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18406 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18407 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
18408 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
18409 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
18410 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
18411 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
18412 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18413 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
18414 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18415 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18416 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
18417 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
18418 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
18419 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18420 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
18421 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18422 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18423 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
18424 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
18425 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18426 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18427 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
18428 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
18429 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
18430 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18431 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18432 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18433 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18434 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18435 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18436 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18437 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18438 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18439 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18440 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18441 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18442 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18443 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18444 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18445 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18446 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18447 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18448 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
18449 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
03e37cd5 | 18450 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18451 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, |
18452 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
03e37cd5 | 18453 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18454 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18455 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18456 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, |
18457 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
03e37cd5 | 18458 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18459 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18460 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18461 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18462 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18463 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18464 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18465 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18466 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18467 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 RD |
18468 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS }, |
18469 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18470 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18471 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18472 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18473 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, |
18474 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18475 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18476 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18477 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18478 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18479 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18480 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18481 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18482 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18483 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18484 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18485 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18486 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18487 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18488 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
18489 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18490 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18491 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18492 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18493 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18494 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18495 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18496 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 18497 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18498 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18499 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18500 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18501 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18502 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, |
18503 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18504 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18505 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18506 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18507 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18508 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18509 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18510 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18511 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18512 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18513 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18514 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18515 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18516 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18517 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18518 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18519 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18520 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18521 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18522 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18523 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18524 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18525 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18526 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18527 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18528 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18529 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 18530 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18531 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18532 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18533 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18534 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 18535 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 18536 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
03e37cd5 | 18537 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18538 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
18539 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18540 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18541 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18542 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18543 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
03e37cd5 | 18544 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18545 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
18546 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18547 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18548 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18549 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18550 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18551 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18552 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18553 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18554 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18555 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18556 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18557 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18558 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18559 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18560 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18561 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
3adfb63b RD |
18562 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, |
18563 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
e498079e | 18564 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18565 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
18566 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
e498079e | 18567 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
18568 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, |
18569 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
18570 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
18571 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18572 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18573 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
18574 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
18575 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
18576 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18577 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
18578 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
18579 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
18580 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
18581 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
18582 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
18583 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18584 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18585 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18586 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18587 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
18588 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18589 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
18590 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
18591 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
18592 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
18593 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
18594 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18595 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18596 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
18597 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
18598 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18599 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
18600 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
18601 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
18602 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
18603 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
18604 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18605 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
18606 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
18607 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
18608 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
18609 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18610 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
18611 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
18612 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
18613 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
18614 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18615 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
18616 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18617 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18618 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
18619 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
18620 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
18621 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
18622 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
18623 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
18624 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
18625 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
18626 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18627 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
18628 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, |
18629 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18630 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18631 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18632 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18633 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18634 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18635 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18636 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18637 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18638 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18639 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
18640 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
18641 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18642 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
18643 | { NULL, NULL } | |
18644 | }; | |
18645 | ||
18646 | ||
18647 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18648 | ||
e811c8ce RD |
18649 | static void *_p_wxControlTo_p_wxWindow(void *x) { |
18650 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18651 | } | |
18652 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18653 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18654 | } | |
18655 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18656 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18657 | } | |
d14a1e28 RD |
18658 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
18659 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18660 | } | |
18661 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18662 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18663 | } | |
d14a1e28 RD |
18664 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { |
18665 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18666 | } | |
18667 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18668 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18669 | } | |
18670 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18671 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18672 | } | |
18673 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18674 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18675 | } | |
18676 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18677 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18678 | } | |
18679 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18680 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18681 | } | |
18682 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18683 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18684 | } | |
18685 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18686 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18687 | } | |
18688 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18689 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18690 | } | |
18691 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18692 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18693 | } | |
18694 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18695 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18696 | } | |
18697 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18698 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18699 | } | |
18700 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18701 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18702 | } | |
18703 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18704 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18705 | } | |
18706 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18707 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18708 | } | |
18709 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18710 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18711 | } | |
18712 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18713 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18714 | } | |
18715 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18716 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18717 | } | |
18718 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18719 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18720 | } | |
18721 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18722 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18723 | } | |
18724 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18725 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18726 | } | |
18727 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18728 | return (void *)((wxObject *) ((wxDC *) x)); | |
18729 | } | |
18730 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18731 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18732 | } | |
18733 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18734 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18735 | } | |
18736 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18737 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18738 | } | |
18739 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18740 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18741 | } | |
18742 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18743 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18744 | } | |
18745 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18746 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18747 | } | |
18748 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18749 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18750 | } | |
18751 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18752 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18753 | } | |
18754 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18755 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18756 | } | |
18757 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18758 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18759 | } | |
18760 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18761 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18762 | } | |
18763 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18764 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18765 | } | |
18766 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18767 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18768 | } | |
18769 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18770 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18771 | } | |
18772 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18773 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18774 | } | |
18775 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18776 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18777 | } | |
18778 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18779 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18780 | } | |
18781 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18782 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18783 | } | |
18784 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18785 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18786 | } | |
18787 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18788 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18789 | } | |
18790 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18791 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18792 | } | |
18793 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18794 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18795 | } | |
18796 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18797 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18798 | } | |
18799 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18800 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18801 | } | |
18802 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18803 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18804 | } | |
18805 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18806 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18807 | } | |
18808 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18809 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18810 | } | |
18811 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18812 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18813 | } | |
18814 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18815 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18816 | } | |
18817 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18818 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18819 | } | |
18820 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18821 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18822 | } | |
18823 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18824 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18825 | } | |
18826 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18827 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18828 | } | |
18829 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18830 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18831 | } | |
18832 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18833 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18834 | } | |
18835 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18836 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18837 | } | |
18838 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18839 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18840 | } | |
18841 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18842 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18843 | } | |
18844 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18845 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
18846 | } | |
18847 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
18848 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
18849 | } | |
18850 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
18851 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18852 | } | |
18853 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
18854 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
18855 | } | |
18856 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
18857 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
18858 | } | |
18859 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
18860 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
18861 | } | |
1e0c8722 RD |
18862 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
18863 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
18864 | } | |
d14a1e28 RD |
18865 | static void *_p_wxImageTo_p_wxObject(void *x) { |
18866 | return (void *)((wxObject *) ((wxImage *) x)); | |
18867 | } | |
18868 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
18869 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
18870 | } | |
d14a1e28 RD |
18871 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
18872 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
18873 | } | |
18874 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
18875 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
18876 | } | |
18877 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
18878 | return (void *)((wxObject *) ((wxImageList *) x)); | |
18879 | } | |
18880 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
18881 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
18882 | } | |
18883 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
18884 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
18885 | } | |
18886 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
18887 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
18888 | } | |
18889 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
18890 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
18891 | } | |
18892 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
18893 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
18894 | } | |
18895 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
18896 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
18897 | } | |
18898 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
18899 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
18900 | } | |
18901 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
18902 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
18903 | } | |
18904 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
18905 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
18906 | } | |
18907 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
18908 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
18909 | } | |
18910 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
18911 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
18912 | } | |
d14a1e28 RD |
18913 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
18914 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
18915 | } | |
18916 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
18917 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
18918 | } | |
18919 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
18920 | return (void *)((wxObject *) ((wxMask *) x)); | |
18921 | } | |
18922 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
18923 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
18924 | } | |
18925 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
18926 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
18927 | } | |
18928 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
18929 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
18930 | } | |
18931 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
18932 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
18933 | } | |
18934 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
18935 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
18936 | } | |
18937 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
18938 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
18939 | } | |
18940 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
18941 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
18942 | } | |
18943 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
18944 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
18945 | } | |
18946 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
18947 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
18948 | } | |
18949 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
18950 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
18951 | } | |
18952 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
18953 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
18954 | } | |
18955 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
18956 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
18957 | } | |
18958 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
18959 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
18960 | } | |
18961 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
18962 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
18963 | } | |
18964 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
18965 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
18966 | } | |
18967 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
18968 | return (void *)((wxObject *) ((wxColour *) x)); | |
18969 | } | |
18970 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
18971 | return (void *)((wxObject *) ((wxFontList *) x)); | |
18972 | } | |
18973 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
18974 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
18975 | } | |
18976 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
18977 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
18978 | } | |
e811c8ce RD |
18979 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
18980 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
d14a1e28 | 18981 | } |
e811c8ce RD |
18982 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
18983 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
d14a1e28 | 18984 | } |
e811c8ce RD |
18985 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
18986 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
18987 | } | |
18988 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
18989 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
18990 | } | |
18991 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
18992 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
18993 | } | |
18994 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
18995 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
18996 | } | |
18997 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
18998 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
18999 | } | |
19000 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19001 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19002 | } | |
19003 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19004 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19005 | } | |
19006 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19007 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19008 | } | |
19009 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19010 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19011 | } | |
19012 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19013 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19014 | } | |
e811c8ce RD |
19015 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
19016 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19017 | } | |
19018 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19019 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19020 | } | |
19021 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19022 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19023 | } | |
19024 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19025 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19026 | } | |
19027 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19028 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19029 | } | |
19030 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19031 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19032 | } | |
19033 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19034 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19035 | } | |
19036 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19037 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19038 | } | |
15afbcd0 RD |
19039 | 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}}; |
19040 | 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}}; | |
19041 | 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}}; | |
19042 | 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}}; | |
19043 | 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}}; | |
19044 | 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}}; | |
19045 | 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}}; | |
19046 | 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}}; | |
19047 | 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}}; | |
19048 | 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}}; | |
19049 | 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}}; | |
19050 | 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}}; | |
b2df227b | 19051 | 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}}; |
15afbcd0 RD |
19052 | 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}}; |
19053 | 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}}; | |
15afbcd0 RD |
19054 | 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}}; |
19055 | 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}}; | |
19056 | 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}}; | |
19057 | 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}}; | |
19058 | 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}}; | |
19059 | 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}}; | |
19060 | 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}}; | |
66c033b4 | 19061 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
19062 | 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}}; |
19063 | 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}}; | |
19064 | 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}}; | |
19065 | 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}}; | |
19066 | 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}}; | |
19067 | 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}}; | |
19068 | 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}}; | |
19069 | 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}}; | |
19070 | 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}}; | |
19071 | 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}}; | |
19072 | 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}}; | |
19073 | 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}}; | |
19074 | 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}}; | |
66c033b4 | 19075 | static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
19076 | 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}}; |
19077 | 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}}; | |
19078 | 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}}; | |
b2df227b | 19079 | 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}}; |
66c033b4 | 19080 | 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}}; |
15afbcd0 RD |
19081 | 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}}; |
19082 | 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}}; | |
19083 | 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}}; | |
19084 | 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}}; | |
66c033b4 | 19085 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
19086 | 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}}; |
19087 | 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}}; | |
19088 | 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}}; | |
15afbcd0 RD |
19089 | 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}}; |
19090 | 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}}; | |
19091 | 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}}; | |
19092 | 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}}; | |
19093 | 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 |
19094 | |
19095 | static swig_type_info *swig_types_initial[] = { | |
19096 | _swigt__p_wxPostScriptDC, | |
d14a1e28 RD |
19097 | _swigt__p_wxBrush, |
19098 | _swigt__p_wxColour, | |
d14a1e28 RD |
19099 | _swigt__p_wxDC, |
19100 | _swigt__p_wxMirrorDC, | |
19101 | _swigt__p_byte, | |
19102 | _swigt__p_wxPyFontEnumerator, | |
994141e6 | 19103 | _swigt__p_char, |
d14a1e28 RD |
19104 | _swigt__p_wxIconLocation, |
19105 | _swigt__p_wxImage, | |
19106 | _swigt__p_wxMetaFileDC, | |
19107 | _swigt__p_wxMask, | |
b2df227b | 19108 | _swigt__p_wxSize, |
d14a1e28 RD |
19109 | _swigt__p_wxFont, |
19110 | _swigt__p_wxWindow, | |
d14a1e28 RD |
19111 | _swigt__p_double, |
19112 | _swigt__p_wxMemoryDC, | |
19113 | _swigt__p_wxFontMapper, | |
d14a1e28 RD |
19114 | _swigt__p_wxEffects, |
19115 | _swigt__p_wxNativeEncodingInfo, | |
19116 | _swigt__p_wxPalette, | |
19117 | _swigt__p_wxBitmap, | |
19118 | _swigt__p_wxObject, | |
19119 | _swigt__p_wxRegionIterator, | |
19120 | _swigt__p_wxRect, | |
19121 | _swigt__p_wxString, | |
19122 | _swigt__p_wxPrinterDC, | |
19123 | _swigt__p_wxIconBundle, | |
19124 | _swigt__p_wxPoint, | |
19125 | _swigt__p_wxDash, | |
19126 | _swigt__p_wxScreenDC, | |
19127 | _swigt__p_wxCursor, | |
19128 | _swigt__p_wxClientDC, | |
d14a1e28 RD |
19129 | _swigt__p_wxBufferedDC, |
19130 | _swigt__p_wxImageList, | |
19131 | _swigt__p_unsigned_char, | |
19132 | _swigt__p_wxGDIObject, | |
d14a1e28 | 19133 | _swigt__p_wxIcon, |
994141e6 | 19134 | _swigt__p_wxLocale, |
d14a1e28 | 19135 | _swigt__p_wxRegion, |
b2df227b | 19136 | _swigt__p_wxLanguageInfo, |
66c033b4 | 19137 | _swigt__p_wxConfigBase, |
d14a1e28 RD |
19138 | _swigt__p_wxWindowDC, |
19139 | _swigt__p_wxPrintData, | |
19140 | _swigt__p_wxBrushList, | |
19141 | _swigt__p_wxFontList, | |
19142 | _swigt__p_wxPen, | |
19143 | _swigt__p_wxBufferedPaintDC, | |
19144 | _swigt__p_wxPaintDC, | |
19145 | _swigt__p_wxPenList, | |
d14a1e28 RD |
19146 | _swigt__p_int, |
19147 | _swigt__p_wxMetaFile, | |
19148 | _swigt__p_wxNativeFontInfo, | |
19149 | _swigt__p_wxEncodingConverter, | |
19150 | _swigt__p_wxColourDatabase, | |
19151 | 0 | |
19152 | }; | |
19153 | ||
19154 | ||
19155 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19156 | ||
19157 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
19158 | {0}}; |
19159 | ||
19160 | #ifdef __cplusplus | |
19161 | } | |
19162 | #endif | |
19163 | ||
19164 | #ifdef __cplusplus | |
19165 | extern "C" | |
19166 | #endif | |
19167 | SWIGEXPORT(void) SWIG_init(void) { | |
19168 | static PyObject *SWIG_globals = 0; | |
19169 | static int typeinit = 0; | |
19170 | PyObject *m, *d; | |
19171 | int i; | |
19172 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19173 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19174 | d = PyModule_GetDict(m); | |
19175 | ||
19176 | if (!typeinit) { | |
19177 | for (i = 0; swig_types_initial[i]; i++) { | |
19178 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19179 | } | |
19180 | typeinit = 1; | |
19181 | } | |
19182 | SWIG_InstallConstants(d,swig_const_table); | |
19183 | ||
15afbcd0 RD |
19184 | PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); |
19185 | PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); | |
19186 | PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); | |
19187 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
19188 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
19189 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); | |
19190 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
19191 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); | |
19192 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); | |
19193 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
19194 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); | |
19195 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
19196 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); | |
19197 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); | |
19198 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); | |
19199 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); | |
19200 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
19201 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
19202 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); | |
19203 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); | |
19204 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); | |
19205 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); | |
19206 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); | |
19207 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); | |
19208 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); | |
19209 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
19210 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19211 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
19212 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
19213 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); | |
19214 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); | |
19215 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); | |
19216 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
19217 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
19218 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
19219 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
19220 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
19221 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
19222 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
19223 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
19224 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
19225 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
19226 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
19227 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
19228 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
19229 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
19230 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
19231 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
19232 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); | |
b2df227b | 19233 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U)); |
15afbcd0 RD |
19234 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); |
19235 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
19236 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); | |
19237 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); | |
19238 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); | |
19239 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); | |
19240 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); | |
19241 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); | |
19242 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); | |
19243 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); | |
19244 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); | |
19245 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); | |
19246 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); | |
19247 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); | |
19248 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); | |
19249 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); | |
19250 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); | |
19251 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); | |
19252 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); | |
19253 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); | |
19254 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
19255 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); | |
19256 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); | |
19257 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); | |
19258 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); | |
19259 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); | |
19260 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); | |
19261 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); | |
19262 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); | |
19263 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
19264 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
19265 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
19266 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); | |
19267 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
19268 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); | |
19269 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
19270 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
19271 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
19272 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
19273 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); | |
19274 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
19275 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
19276 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
19277 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
19278 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
19279 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
19280 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
19281 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); | |
19282 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); | |
19283 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
19284 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
19285 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
19286 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
19287 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
19288 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
19289 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
19290 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
19291 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
19292 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
19293 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
19294 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
19295 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
19296 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
19297 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
19298 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
19299 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
19300 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
19301 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
19302 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); | |
19303 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); | |
19304 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); | |
19305 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); | |
19306 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); | |
19307 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); | |
19308 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); | |
19309 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); | |
19310 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
d14a1e28 RD |
19311 | |
19312 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19313 | ||
15afbcd0 RD |
19314 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); |
19315 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
19316 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
19317 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); | |
19318 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
19319 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
19320 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); | |
19321 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); | |
19322 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19323 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19324 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19325 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19326 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19327 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19328 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19329 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19330 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19331 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
19332 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
19333 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19334 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19335 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19336 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19337 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
19338 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19339 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
19340 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
19341 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); | |
19342 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); | |
19343 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19344 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
19345 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); | |
19346 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); | |
19347 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
19348 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); | |
19349 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); | |
19350 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); | |
19351 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); | |
19352 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); | |
19353 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
19354 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); | |
19355 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
19356 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); | |
19357 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); | |
19358 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19359 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19360 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19361 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
19362 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19363 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19364 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); | |
19365 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); | |
19366 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); | |
19367 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); | |
19368 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); | |
19369 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19370 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); | |
19371 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
19372 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
19373 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19374 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19375 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19376 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19377 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19378 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19379 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19380 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19381 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19382 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19383 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19384 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19385 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19386 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
19387 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
19388 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); | |
19389 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); | |
19390 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); | |
19391 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); | |
19392 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); | |
19393 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19394 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19395 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19396 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
19397 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
19398 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); | |
19399 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); | |
19400 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
19401 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); | |
19402 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19403 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19404 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19405 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19406 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19407 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); | |
19408 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19409 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); | |
19410 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19411 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); | |
19412 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); | |
19413 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); | |
19414 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19415 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19416 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19417 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19418 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19419 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19420 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19421 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); | |
19422 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19423 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19424 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19425 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19426 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); | |
19427 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19428 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19429 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19430 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19431 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19432 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19433 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19434 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); | |
19435 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); | |
19436 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); | |
19437 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19438 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); | |
19439 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19440 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); | |
19441 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19442 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19443 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19444 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); | |
19445 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19446 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19447 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19448 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); | |
19449 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19450 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); | |
19451 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); | |
19452 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19453 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19454 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); | |
19455 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); | |
19456 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19457 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19458 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19459 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19460 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); | |
19461 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); | |
19462 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); | |
19463 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); | |
19464 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19465 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19466 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19467 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19468 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19469 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19470 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19471 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19472 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19473 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); | |
19474 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19475 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19476 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19477 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19478 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19479 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19480 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19481 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19482 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); | |
19483 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); | |
19484 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19485 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); | |
19486 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19487 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19488 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); | |
19489 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); | |
19490 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19491 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19492 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19493 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19494 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19495 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19496 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19497 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19498 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19499 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19500 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19501 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19502 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19503 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19504 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19505 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19506 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19507 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19508 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19509 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19510 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19511 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19512 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19513 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19514 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19515 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); | |
19516 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); | |
19517 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); | |
19518 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); | |
19519 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); | |
19520 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19521 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19522 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); | |
19523 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); | |
19524 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); | |
19525 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19526 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); | |
19527 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19528 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19529 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); | |
19530 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19531 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19532 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); | |
19533 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19534 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19535 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19536 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19537 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); | |
19538 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); | |
19539 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); | |
19540 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19541 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); | |
19542 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19543 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); | |
19544 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19545 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19546 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); | |
19547 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19548 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); | |
19549 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19550 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19551 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19552 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19553 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); | |
19554 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19555 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); | |
19556 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); | |
19557 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); | |
19558 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); | |
19559 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); | |
19560 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
19561 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19562 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19563 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19564 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19565 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19566 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); | |
d14a1e28 RD |
19567 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
19568 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19569 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19570 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19571 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19572 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19573 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19574 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19575 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19576 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19577 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19578 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19579 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19580 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19581 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19582 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19583 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19584 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19585 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19586 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19587 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19588 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19589 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19590 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19591 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19592 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19593 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19594 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19595 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19596 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19597 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19598 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19599 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19600 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19601 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19602 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19603 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19604 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19605 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19606 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19607 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19608 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19609 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19610 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19611 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19612 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19613 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
7722248d RD |
19614 | |
19615 | // Work around a chicken/egg problem in drawlist.cpp | |
19616 | wxPyDrawList_SetAPIPtr(); | |
19617 | ||
d14a1e28 RD |
19618 | } |
19619 |