]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
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 | ||
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 | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
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 { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
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 *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
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 | ||
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 | ||
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) | |
173 | ||
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) | |
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 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
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[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxPostScriptDC swig_types[0] | |
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] | |
216 | #define SWIGTYPE_p_char swig_types[7] | |
217 | #define SWIGTYPE_p_wxIconLocation swig_types[8] | |
218 | #define SWIGTYPE_p_wxImage swig_types[9] | |
219 | #define SWIGTYPE_p_wxMetaFileDC swig_types[10] | |
220 | #define SWIGTYPE_p_wxMask swig_types[11] | |
221 | #define SWIGTYPE_p_wxSize swig_types[12] | |
222 | #define SWIGTYPE_p_wxFont swig_types[13] | |
223 | #define SWIGTYPE_p_wxWindow swig_types[14] | |
224 | #define SWIGTYPE_p_double swig_types[15] | |
225 | #define SWIGTYPE_p_wxMemoryDC swig_types[16] | |
226 | #define SWIGTYPE_p_wxFontMapper swig_types[17] | |
227 | #define SWIGTYPE_p_wxEffects swig_types[18] | |
228 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19] | |
229 | #define SWIGTYPE_p_wxPalette swig_types[20] | |
230 | #define SWIGTYPE_p_wxBitmap swig_types[21] | |
231 | #define SWIGTYPE_p_wxObject swig_types[22] | |
232 | #define SWIGTYPE_p_wxRegionIterator swig_types[23] | |
233 | #define SWIGTYPE_p_wxRect swig_types[24] | |
234 | #define SWIGTYPE_p_wxString swig_types[25] | |
235 | #define SWIGTYPE_p_wxPrinterDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxIconBundle swig_types[27] | |
237 | #define SWIGTYPE_p_wxPoint swig_types[28] | |
238 | #define SWIGTYPE_p_wxDash swig_types[29] | |
239 | #define SWIGTYPE_p_wxScreenDC swig_types[30] | |
240 | #define SWIGTYPE_p_wxCursor swig_types[31] | |
241 | #define SWIGTYPE_p_wxClientDC swig_types[32] | |
242 | #define SWIGTYPE_p_wxBufferedDC swig_types[33] | |
243 | #define SWIGTYPE_p_wxImageList swig_types[34] | |
244 | #define SWIGTYPE_p_unsigned_char swig_types[35] | |
245 | #define SWIGTYPE_p_wxGDIObject swig_types[36] | |
246 | #define SWIGTYPE_p_wxIcon swig_types[37] | |
247 | #define SWIGTYPE_p_wxLocale swig_types[38] | |
248 | #define SWIGTYPE_p_wxRegion swig_types[39] | |
d6c14a4c RD |
249 | #define SWIGTYPE_p_wxLanguageInfo swig_types[40] |
250 | #define SWIGTYPE_p_wxConfigBase swig_types[41] | |
d55e5bfc 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] | |
d6c14a4c 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]; | |
d55e5bfc RD |
265 | |
266 | /* -------- TYPES TABLE (END) -------- */ | |
267 | ||
268 | ||
269 | /*----------------------------------------------- | |
270 | @(target):= _gdi_.so | |
271 | ------------------------------------------------*/ | |
272 | #define SWIG_init init_gdi_ | |
273 | ||
274 | #define SWIG_name "_gdi_" | |
275 | ||
276 | /* Auxiliar swig macros */ | |
277 | ||
278 | #ifdef __cplusplus | |
279 | #define SWIGSTATICINLINE(a) static inline a | |
280 | #define SWIGSTATIC(a) static a | |
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) | |
286 | ||
287 | #ifdef HAVE_NUMERIC_CAST | |
288 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
289 | #else | |
290 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
291 | #endif | |
292 | ||
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 */ | |
305 | ||
306 | ||
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 | |
317 | ||
318 | ||
319 | #include "wx/wxPython/wxPython.h" | |
320 | #include "wx/wxPython/pyclasses.h" | |
321 | ||
322 | ||
323 | static const wxString wxPyEmptyString(wxEmptyString); | |
324 | ||
325 | SWIGSTATICINLINE(bool) | |
326 | SWIG_AsBool(PyObject *obj) | |
327 | { | |
328 | return PyObject_IsTrue(obj) ? true : false; | |
329 | } | |
330 | ||
331 | ||
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 | ||
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 | ||
380 | SWIGSTATICINLINE(unsigned long) | |
381 | SWIG_AsUnsignedLong(PyObject * obj) | |
382 | { | |
383 | if (PyLong_Check(obj)) { | |
384 | return PyLong_AsUnsignedLong(obj); | |
385 | } else { | |
386 | long i = SWIG_AsLong(obj); | |
387 | if ( !PyErr_Occurred() && (i < 0)) { | |
388 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
389 | } | |
390 | return i; | |
391 | } | |
392 | } | |
393 | ||
394 | ||
395 | SWIGSTATICINLINE(unsigned char) | |
396 | SWIG_AsUnsignedChar(PyObject *obj) | |
397 | { | |
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 | } | |
427 | } | |
428 | ||
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 | } | |
444 | unsigned long wxColour_GetRGB(wxColour *self){ | |
445 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); | |
446 | } | |
447 | ||
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 | ||
481 | #if INT_MAX != LONG_MAX | |
482 | SWIGSTATICINLINE(int) | |
483 | SWIG_AsInt(PyObject *obj) | |
484 | { | |
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 | } | |
504 | } | |
505 | ||
506 | ||
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); | |
536 | bool blocked = wxPyBeginBlockThreads(); | |
537 | PyObject* retval = PyList_New(0); | |
538 | for (int x=0; x<count; x++) | |
539 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
540 | wxPyEndBlockThreads(blocked); | |
541 | return retval; | |
542 | } | |
d6c14a4c RD |
543 | void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
544 | bool blocked = wxPyBeginBlockThreads(); | |
545 | int size = PyList_Size(pyDashes); | |
546 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
547 | ||
548 | // black magic warning! The array of wxDashes needs to exist as | |
549 | // long as the pen does because wxPen does not copy the array. So | |
550 | // stick a copy in a Python string object and attach it to _self, | |
551 | // and then call SetDashes with a pointer to that array. Then | |
552 | // when the Python pen object is destroyed the array will be | |
553 | // cleaned up too. | |
554 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
555 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
556 | ||
557 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
558 | delete [] dashes; | |
559 | Py_DECREF(strDashes); | |
560 | wxPyEndBlockThreads(blocked); | |
561 | } | |
d55e5bfc RD |
562 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; } |
563 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; } | |
564 | ||
d55e5bfc RD |
565 | SWIGSTATICINLINE(short) |
566 | SWIG_AsShort(PyObject *obj) | |
567 | { | |
568 | return swig_numeric_cast(short, | |
569 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
570 | "short", SHRT_MIN, SHRT_MAX)); | |
571 | } | |
572 | ||
573 | ||
574 | SWIGSTATICINLINE(int) | |
575 | SWIG_CheckShort(PyObject* obj) | |
576 | { | |
577 | SWIG_AsShort(obj); | |
578 | if (PyErr_Occurred()) { | |
579 | PyErr_Clear(); | |
580 | return 0; | |
581 | } else { | |
582 | return 1; | |
583 | } | |
584 | } | |
585 | ||
586 | ||
587 | #include <wx/image.h> | |
588 | ||
589 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
590 | char** cArray = NULL; | |
591 | int count; | |
592 | ||
593 | if (!PyList_Check(listOfStrings)) { | |
594 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
595 | return NULL; | |
596 | } | |
597 | count = PyList_Size(listOfStrings); | |
598 | cArray = new char*[count]; | |
599 | ||
600 | for(int x=0; x<count; x++) { | |
601 | // TODO: Need some validation and error checking here | |
602 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
603 | } | |
604 | return cArray; | |
605 | } | |
606 | ||
607 | ||
608 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
609 | char** cArray = NULL; | |
610 | wxBitmap* bmp; | |
611 | ||
612 | cArray = ConvertListOfStrings(listOfStrings); | |
613 | if (! cArray) | |
614 | return NULL; | |
615 | bmp = new wxBitmap(cArray); | |
616 | delete [] cArray; | |
617 | return bmp; | |
618 | } | |
619 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
620 | char* buf; | |
621 | int length; | |
622 | PyString_AsStringAndSize(bits, &buf, &length); | |
623 | return new wxBitmap(buf, width, height, depth); | |
624 | } | |
d55e5bfc RD |
625 | wxSize wxBitmap_GetSize(wxBitmap *self){ |
626 | wxSize size(self->GetWidth(), self->GetHeight()); | |
627 | return size; | |
628 | } | |
629 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
630 | wxMask *mask = new wxMask(*self, colour); | |
631 | self->SetMask(mask); | |
632 | } | |
633 | void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
634 | self->SetWidth(size.x); | |
635 | self->SetHeight(size.y); | |
636 | } | |
637 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; } | |
638 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; } | |
639 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ | |
640 | if ( !colour.Ok() ) | |
641 | return new wxMask(bitmap, *wxBLACK); | |
642 | else | |
643 | return new wxMask(bitmap, colour); | |
644 | } | |
645 | ||
646 | #include <wx/iconbndl.h> | |
647 | ||
648 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
649 | wxIcon* icon = new wxIcon(); | |
650 | icon->CopyFromBitmap(bmp); | |
651 | return icon; | |
652 | } | |
653 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
654 | char** cArray = NULL; | |
655 | wxIcon* icon; | |
656 | ||
657 | cArray = ConvertListOfStrings(listOfStrings); | |
658 | if (! cArray) | |
659 | return NULL; | |
660 | icon = new wxIcon(cArray); | |
661 | delete [] cArray; | |
662 | return icon; | |
663 | } | |
664 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
665 | ||
666 | ||
667 | ||
668 | return new wxIconLocation(*filename); | |
669 | ||
670 | } | |
671 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
672 | ||
673 | ||
674 | ||
675 | // do nothing | |
676 | ||
677 | } | |
678 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
679 | ||
680 | ||
681 | ||
682 | return -1; | |
683 | ||
684 | } | |
685 | ||
686 | SWIGSTATICINLINE(int) | |
687 | SWIG_CheckLong(PyObject* obj) | |
688 | { | |
689 | SWIG_AsLong(obj); | |
690 | if (PyErr_Occurred()) { | |
691 | PyErr_Clear(); | |
692 | return 0; | |
693 | } else { | |
694 | return 1; | |
695 | } | |
696 | } | |
697 | ||
698 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ | |
699 | #ifdef __WXGTK__ | |
700 | wxCHECK_MSG(False, NULL, | |
701 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); | |
702 | #else | |
703 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
704 | #endif | |
705 | } | |
706 | ||
707 | ||
708 | wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){ | |
709 | wxPyRaiseNotImplemented(); | |
710 | return NULL; | |
711 | } | |
712 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
713 | (*self) ++; | |
714 | } | |
715 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
716 | return self->operator bool(); | |
717 | } | |
718 | ||
719 | #include <wx/fontutil.h> | |
720 | #include <wx/fontmap.h> | |
721 | #include <wx/fontenum.h> | |
722 | ||
723 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
724 | return self->ToString(); | |
725 | } | |
726 | ||
727 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
728 | static wxNativeEncodingInfo info; | |
729 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
730 | return &info; | |
731 | else | |
732 | return NULL; | |
733 | } | |
734 | ||
735 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
736 | wxFontEncoding alt_enc; | |
737 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
738 | return PyInt_FromLong(alt_enc); | |
739 | else { | |
740 | Py_INCREF(Py_None); | |
741 | return Py_None; | |
742 | } | |
743 | } | |
744 | wxFont *new_wxFont(wxString const &info){ | |
745 | wxNativeFontInfo nfi; | |
746 | nfi.FromString(info); | |
747 | return new wxFont(nfi); | |
748 | } | |
749 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
750 | return wxFont::New(pointSize, family, flags, face, encoding); | |
751 | } | |
752 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } | |
753 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
754 | ||
755 | class wxPyFontEnumerator : public wxFontEnumerator { | |
756 | public: | |
757 | wxPyFontEnumerator() {} | |
758 | ~wxPyFontEnumerator() {} | |
759 | ||
760 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
761 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
762 | ||
763 | PYPRIVATE; | |
764 | }; | |
765 | ||
766 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
767 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
768 | ||
769 | ||
770 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
771 | wxArrayString* arr = self->GetEncodings(); | |
772 | return wxArrayString2PyList_helper(*arr); | |
773 | } | |
774 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
775 | wxArrayString* arr = self->GetFacenames(); | |
776 | return wxArrayString2PyList_helper(*arr); | |
777 | } | |
778 | ||
779 | ||
15817c7e RD |
780 | wxLocale *new_wxLocale(int language,int flags){ |
781 | if (language == -1) | |
782 | return new wxLocale(); | |
783 | else | |
784 | return new wxLocale(language, flags); | |
785 | } | |
d55e5bfc RD |
786 | |
787 | #include "wx/wxPython/pydrawxxx.h" | |
788 | ||
d6c14a4c | 789 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d55e5bfc RD |
790 | wxColour col; |
791 | self->GetPixel(x, y, &col); | |
792 | return col; | |
793 | } | |
d6c14a4c | 794 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d55e5bfc RD |
795 | wxColour col; |
796 | self->GetPixel(pt, &col); | |
797 | return col; | |
798 | } | |
799 | ||
800 | SWIGSTATICINLINE(double) | |
801 | SWIG_AsDouble(PyObject *obj) | |
802 | { | |
803 | if (PyNumber_Check(obj)) | |
804 | return PyFloat_AsDouble(obj); | |
805 | else { | |
806 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
807 | obj->ob_type->tp_name); | |
808 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
809 | Py_DECREF(errmsg); | |
810 | return 0; | |
811 | } | |
812 | } | |
813 | ||
814 | ||
815 | SWIGSTATICINLINE(int) | |
816 | SWIG_CheckDouble(PyObject* obj) | |
817 | { | |
818 | SWIG_AsDouble(obj); | |
819 | if (PyErr_Occurred()) { | |
820 | PyErr_Clear(); | |
821 | return 0; | |
822 | } else { | |
823 | return 1; | |
824 | } | |
825 | } | |
826 | ||
827 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
828 | wxRect rv; | |
829 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
830 | return rv; | |
831 | } | |
832 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
833 | wxRect rect; | |
834 | self->GetClippingBox(rect); | |
835 | return rect; | |
836 | } | |
837 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
838 | wxArrayInt widths; | |
839 | self->GetPartialTextExtents(text, widths); | |
840 | return widths; | |
841 | } | |
d6c14a4c RD |
842 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
843 | self->SetLogicalOrigin(point.x, point.y); | |
844 | } | |
845 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
846 | self->SetDeviceOrigin(point.x, point.y); | |
847 | } | |
848 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
849 | self->CalcBoundingBox(point.x, point.y); | |
850 | } | |
d55e5bfc RD |
851 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
852 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
853 | } | |
854 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
855 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
856 | } | |
857 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
858 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
859 | } | |
860 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
861 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
862 | } | |
863 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
864 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
865 | } | |
866 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
867 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
868 | } | |
869 | ||
870 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
871 | *x1 = dc->MinX(); | |
872 | *y1 = dc->MinY(); | |
873 | *x2 = dc->MaxX(); | |
874 | *y2 = dc->MaxY(); | |
875 | } | |
876 | ||
877 | ||
878 | #include <wx/dcbuffer.h> | |
879 | ||
880 | ||
881 | #include <wx/dcps.h> | |
882 | ||
883 | ||
884 | #include <wx/metafile.h> | |
885 | ||
886 | ||
887 | ||
888 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
889 | self->AddColour(name, wxColour(red, green, blue)); | |
890 | } | |
891 | ||
892 | #include <wx/effects.h> | |
893 | ||
894 | #ifdef __cplusplus | |
895 | extern "C" { | |
896 | #endif | |
897 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
898 | PyObject *resultobj; | |
899 | wxGDIObject *result; | |
900 | char *kwnames[] = { | |
901 | NULL | |
902 | }; | |
903 | ||
904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
905 | { | |
906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
907 | result = (wxGDIObject *)new wxGDIObject(); | |
908 | ||
909 | wxPyEndAllowThreads(__tstate); | |
910 | if (PyErr_Occurred()) SWIG_fail; | |
911 | } | |
912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); | |
913 | return resultobj; | |
914 | fail: | |
915 | return NULL; | |
916 | } | |
917 | ||
918 | ||
919 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
920 | PyObject *resultobj; | |
921 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
922 | PyObject * obj0 = 0 ; | |
923 | char *kwnames[] = { | |
924 | (char *) "self", NULL | |
925 | }; | |
926 | ||
927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
930 | { | |
931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
932 | delete arg1; | |
933 | ||
934 | wxPyEndAllowThreads(__tstate); | |
935 | if (PyErr_Occurred()) SWIG_fail; | |
936 | } | |
937 | Py_INCREF(Py_None); resultobj = Py_None; | |
938 | return resultobj; | |
939 | fail: | |
940 | return NULL; | |
941 | } | |
942 | ||
943 | ||
944 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
945 | PyObject *resultobj; | |
946 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
947 | bool result; | |
948 | PyObject * obj0 = 0 ; | |
949 | char *kwnames[] = { | |
950 | (char *) "self", NULL | |
951 | }; | |
952 | ||
953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
956 | { | |
957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
958 | result = (bool)(arg1)->GetVisible(); | |
959 | ||
960 | wxPyEndAllowThreads(__tstate); | |
961 | if (PyErr_Occurred()) SWIG_fail; | |
962 | } | |
963 | { | |
964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
965 | } | |
966 | return resultobj; | |
967 | fail: | |
968 | return NULL; | |
969 | } | |
970 | ||
971 | ||
972 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
973 | PyObject *resultobj; | |
974 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
975 | bool arg2 ; | |
976 | PyObject * obj0 = 0 ; | |
977 | PyObject * obj1 = 0 ; | |
978 | char *kwnames[] = { | |
979 | (char *) "self",(char *) "visible", NULL | |
980 | }; | |
981 | ||
982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
985 | arg2 = (bool) SWIG_AsBool(obj1); | |
986 | if (PyErr_Occurred()) SWIG_fail; | |
987 | { | |
988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
989 | (arg1)->SetVisible(arg2); | |
990 | ||
991 | wxPyEndAllowThreads(__tstate); | |
992 | if (PyErr_Occurred()) SWIG_fail; | |
993 | } | |
994 | Py_INCREF(Py_None); resultobj = Py_None; | |
995 | return resultobj; | |
996 | fail: | |
997 | return NULL; | |
998 | } | |
999 | ||
1000 | ||
1001 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1002 | PyObject *resultobj; | |
1003 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
1004 | bool result; | |
1005 | PyObject * obj0 = 0 ; | |
1006 | char *kwnames[] = { | |
1007 | (char *) "self", NULL | |
1008 | }; | |
1009 | ||
1010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
1011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
1012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1013 | { | |
1014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1015 | result = (bool)(arg1)->IsNull(); | |
1016 | ||
1017 | wxPyEndAllowThreads(__tstate); | |
1018 | if (PyErr_Occurred()) SWIG_fail; | |
1019 | } | |
1020 | { | |
1021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1022 | } | |
1023 | return resultobj; | |
1024 | fail: | |
1025 | return NULL; | |
1026 | } | |
1027 | ||
1028 | ||
1029 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
1030 | PyObject *obj; | |
1031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1032 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1033 | Py_INCREF(obj); | |
1034 | return Py_BuildValue((char *)""); | |
1035 | } | |
1036 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1037 | PyObject *resultobj; | |
15817c7e RD |
1038 | byte arg1 = (byte) 0 ; |
1039 | byte arg2 = (byte) 0 ; | |
1040 | byte arg3 = (byte) 0 ; | |
d55e5bfc RD |
1041 | wxColour *result; |
1042 | PyObject * obj0 = 0 ; | |
1043 | PyObject * obj1 = 0 ; | |
1044 | PyObject * obj2 = 0 ; | |
1045 | char *kwnames[] = { | |
1046 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1047 | }; | |
1048 | ||
1049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1050 | if (obj0) { | |
15817c7e | 1051 | arg1 = (byte) SWIG_AsUnsignedChar(obj0); |
d55e5bfc RD |
1052 | if (PyErr_Occurred()) SWIG_fail; |
1053 | } | |
1054 | if (obj1) { | |
15817c7e | 1055 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
d55e5bfc RD |
1056 | if (PyErr_Occurred()) SWIG_fail; |
1057 | } | |
1058 | if (obj2) { | |
15817c7e | 1059 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
d55e5bfc RD |
1060 | if (PyErr_Occurred()) SWIG_fail; |
1061 | } | |
1062 | { | |
1063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1064 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1065 | ||
1066 | wxPyEndAllowThreads(__tstate); | |
1067 | if (PyErr_Occurred()) SWIG_fail; | |
1068 | } | |
1069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1070 | return resultobj; | |
1071 | fail: | |
1072 | return NULL; | |
1073 | } | |
1074 | ||
1075 | ||
1076 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1077 | PyObject *resultobj; | |
1078 | wxString *arg1 = 0 ; | |
1079 | wxColour *result; | |
1080 | bool temp1 = False ; | |
1081 | PyObject * obj0 = 0 ; | |
1082 | char *kwnames[] = { | |
1083 | (char *) "colorName", NULL | |
1084 | }; | |
1085 | ||
1086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1087 | { | |
1088 | arg1 = wxString_in_helper(obj0); | |
1089 | if (arg1 == NULL) SWIG_fail; | |
1090 | temp1 = True; | |
1091 | } | |
1092 | { | |
1093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1094 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1095 | ||
1096 | wxPyEndAllowThreads(__tstate); | |
1097 | if (PyErr_Occurred()) SWIG_fail; | |
1098 | } | |
1099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1100 | { | |
1101 | if (temp1) | |
1102 | delete arg1; | |
1103 | } | |
1104 | return resultobj; | |
1105 | fail: | |
1106 | { | |
1107 | if (temp1) | |
1108 | delete arg1; | |
1109 | } | |
1110 | return NULL; | |
1111 | } | |
1112 | ||
1113 | ||
1114 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1115 | PyObject *resultobj; | |
1116 | unsigned long arg1 ; | |
1117 | wxColour *result; | |
1118 | PyObject * obj0 = 0 ; | |
1119 | char *kwnames[] = { | |
1120 | (char *) "colRGB", NULL | |
1121 | }; | |
1122 | ||
1123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
1124 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
1125 | if (PyErr_Occurred()) SWIG_fail; | |
1126 | { | |
1127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1128 | result = (wxColour *)new wxColour(arg1); | |
1129 | ||
1130 | wxPyEndAllowThreads(__tstate); | |
1131 | if (PyErr_Occurred()) SWIG_fail; | |
1132 | } | |
1133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1134 | return resultobj; | |
1135 | fail: | |
1136 | return NULL; | |
1137 | } | |
1138 | ||
1139 | ||
1140 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1141 | PyObject *resultobj; | |
1142 | wxColour *arg1 = (wxColour *) 0 ; | |
1143 | PyObject * obj0 = 0 ; | |
1144 | char *kwnames[] = { | |
1145 | (char *) "self", NULL | |
1146 | }; | |
1147 | ||
1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1151 | { | |
1152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1153 | delete arg1; | |
1154 | ||
1155 | wxPyEndAllowThreads(__tstate); | |
1156 | if (PyErr_Occurred()) SWIG_fail; | |
1157 | } | |
1158 | Py_INCREF(Py_None); resultobj = Py_None; | |
1159 | return resultobj; | |
1160 | fail: | |
1161 | return NULL; | |
1162 | } | |
1163 | ||
1164 | ||
1165 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1166 | PyObject *resultobj; | |
1167 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e | 1168 | byte result; |
d55e5bfc RD |
1169 | PyObject * obj0 = 0 ; |
1170 | char *kwnames[] = { | |
1171 | (char *) "self", NULL | |
1172 | }; | |
1173 | ||
1174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1177 | { | |
1178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 1179 | result = (byte)(arg1)->Red(); |
d55e5bfc RD |
1180 | |
1181 | wxPyEndAllowThreads(__tstate); | |
1182 | if (PyErr_Occurred()) SWIG_fail; | |
1183 | } | |
1184 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1185 | return resultobj; | |
1186 | fail: | |
1187 | return NULL; | |
1188 | } | |
1189 | ||
1190 | ||
1191 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1192 | PyObject *resultobj; | |
1193 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e | 1194 | byte result; |
d55e5bfc RD |
1195 | PyObject * obj0 = 0 ; |
1196 | char *kwnames[] = { | |
1197 | (char *) "self", NULL | |
1198 | }; | |
1199 | ||
1200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1203 | { | |
1204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 1205 | result = (byte)(arg1)->Green(); |
d55e5bfc RD |
1206 | |
1207 | wxPyEndAllowThreads(__tstate); | |
1208 | if (PyErr_Occurred()) SWIG_fail; | |
1209 | } | |
1210 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1211 | return resultobj; | |
1212 | fail: | |
1213 | return NULL; | |
1214 | } | |
1215 | ||
1216 | ||
1217 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1218 | PyObject *resultobj; | |
1219 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e | 1220 | byte result; |
d55e5bfc RD |
1221 | PyObject * obj0 = 0 ; |
1222 | char *kwnames[] = { | |
1223 | (char *) "self", NULL | |
1224 | }; | |
1225 | ||
1226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1229 | { | |
1230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 1231 | result = (byte)(arg1)->Blue(); |
d55e5bfc RD |
1232 | |
1233 | wxPyEndAllowThreads(__tstate); | |
1234 | if (PyErr_Occurred()) SWIG_fail; | |
1235 | } | |
1236 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1237 | return resultobj; | |
1238 | fail: | |
1239 | return NULL; | |
1240 | } | |
1241 | ||
1242 | ||
1243 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject *resultobj; | |
1245 | wxColour *arg1 = (wxColour *) 0 ; | |
1246 | bool result; | |
1247 | PyObject * obj0 = 0 ; | |
1248 | char *kwnames[] = { | |
1249 | (char *) "self", NULL | |
1250 | }; | |
1251 | ||
1252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1255 | { | |
1256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1257 | result = (bool)(arg1)->Ok(); | |
1258 | ||
1259 | wxPyEndAllowThreads(__tstate); | |
1260 | if (PyErr_Occurred()) SWIG_fail; | |
1261 | } | |
1262 | { | |
1263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1264 | } | |
1265 | return resultobj; | |
1266 | fail: | |
1267 | return NULL; | |
1268 | } | |
1269 | ||
1270 | ||
1271 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject *resultobj; | |
1273 | wxColour *arg1 = (wxColour *) 0 ; | |
15817c7e RD |
1274 | byte arg2 ; |
1275 | byte arg3 ; | |
1276 | byte arg4 ; | |
d55e5bfc RD |
1277 | PyObject * obj0 = 0 ; |
1278 | PyObject * obj1 = 0 ; | |
1279 | PyObject * obj2 = 0 ; | |
1280 | PyObject * obj3 = 0 ; | |
1281 | char *kwnames[] = { | |
1282 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1283 | }; | |
1284 | ||
1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15817c7e | 1288 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
d55e5bfc | 1289 | if (PyErr_Occurred()) SWIG_fail; |
15817c7e | 1290 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
d55e5bfc | 1291 | if (PyErr_Occurred()) SWIG_fail; |
15817c7e | 1292 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); |
d55e5bfc RD |
1293 | if (PyErr_Occurred()) SWIG_fail; |
1294 | { | |
1295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1296 | (arg1)->Set(arg2,arg3,arg4); | |
1297 | ||
1298 | wxPyEndAllowThreads(__tstate); | |
1299 | if (PyErr_Occurred()) SWIG_fail; | |
1300 | } | |
1301 | Py_INCREF(Py_None); resultobj = Py_None; | |
1302 | return resultobj; | |
1303 | fail: | |
1304 | return NULL; | |
1305 | } | |
1306 | ||
1307 | ||
1308 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1309 | PyObject *resultobj; | |
1310 | wxColour *arg1 = (wxColour *) 0 ; | |
1311 | unsigned long arg2 ; | |
1312 | PyObject * obj0 = 0 ; | |
1313 | PyObject * obj1 = 0 ; | |
1314 | char *kwnames[] = { | |
1315 | (char *) "self",(char *) "colRGB", NULL | |
1316 | }; | |
1317 | ||
1318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1321 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
1322 | if (PyErr_Occurred()) SWIG_fail; | |
1323 | { | |
1324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1325 | (arg1)->Set(arg2); | |
1326 | ||
1327 | wxPyEndAllowThreads(__tstate); | |
1328 | if (PyErr_Occurred()) SWIG_fail; | |
1329 | } | |
1330 | Py_INCREF(Py_None); resultobj = Py_None; | |
1331 | return resultobj; | |
1332 | fail: | |
1333 | return NULL; | |
1334 | } | |
1335 | ||
1336 | ||
1337 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1338 | PyObject *resultobj; | |
1339 | wxColour *arg1 = (wxColour *) 0 ; | |
1340 | wxString *arg2 = 0 ; | |
1341 | bool temp2 = False ; | |
1342 | PyObject * obj0 = 0 ; | |
1343 | PyObject * obj1 = 0 ; | |
1344 | char *kwnames[] = { | |
1345 | (char *) "self",(char *) "colourName", NULL | |
1346 | }; | |
1347 | ||
1348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1351 | { | |
1352 | arg2 = wxString_in_helper(obj1); | |
1353 | if (arg2 == NULL) SWIG_fail; | |
1354 | temp2 = True; | |
1355 | } | |
1356 | { | |
1357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1358 | (arg1)->InitFromName((wxString const &)*arg2); | |
1359 | ||
1360 | wxPyEndAllowThreads(__tstate); | |
1361 | if (PyErr_Occurred()) SWIG_fail; | |
1362 | } | |
1363 | Py_INCREF(Py_None); resultobj = Py_None; | |
1364 | { | |
1365 | if (temp2) | |
1366 | delete arg2; | |
1367 | } | |
1368 | return resultobj; | |
1369 | fail: | |
1370 | { | |
1371 | if (temp2) | |
1372 | delete arg2; | |
1373 | } | |
1374 | return NULL; | |
1375 | } | |
1376 | ||
1377 | ||
1378 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1379 | PyObject *resultobj; | |
1380 | wxColour *arg1 = (wxColour *) 0 ; | |
1381 | long result; | |
1382 | PyObject * obj0 = 0 ; | |
1383 | char *kwnames[] = { | |
1384 | (char *) "self", NULL | |
1385 | }; | |
1386 | ||
1387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1390 | { | |
1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1392 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1393 | ||
1394 | wxPyEndAllowThreads(__tstate); | |
1395 | if (PyErr_Occurred()) SWIG_fail; | |
1396 | } | |
1397 | resultobj = SWIG_FromLong((long)result); | |
1398 | return resultobj; | |
1399 | fail: | |
1400 | return NULL; | |
1401 | } | |
1402 | ||
1403 | ||
1404 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1405 | PyObject *resultobj; | |
1406 | wxColour *arg1 = (wxColour *) 0 ; | |
1407 | wxColour *arg2 = 0 ; | |
1408 | bool result; | |
1409 | wxColour temp2 ; | |
1410 | PyObject * obj0 = 0 ; | |
1411 | PyObject * obj1 = 0 ; | |
1412 | char *kwnames[] = { | |
1413 | (char *) "self",(char *) "colour", NULL | |
1414 | }; | |
1415 | ||
1416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1419 | { | |
1420 | arg2 = &temp2; | |
1421 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1422 | } | |
1423 | { | |
1424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1425 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1426 | ||
1427 | wxPyEndAllowThreads(__tstate); | |
1428 | if (PyErr_Occurred()) SWIG_fail; | |
1429 | } | |
1430 | { | |
1431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1432 | } | |
1433 | return resultobj; | |
1434 | fail: | |
1435 | return NULL; | |
1436 | } | |
1437 | ||
1438 | ||
1439 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1440 | PyObject *resultobj; | |
1441 | wxColour *arg1 = (wxColour *) 0 ; | |
1442 | wxColour *arg2 = 0 ; | |
1443 | bool result; | |
1444 | wxColour temp2 ; | |
1445 | PyObject * obj0 = 0 ; | |
1446 | PyObject * obj1 = 0 ; | |
1447 | char *kwnames[] = { | |
1448 | (char *) "self",(char *) "colour", NULL | |
1449 | }; | |
1450 | ||
1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1454 | { | |
1455 | arg2 = &temp2; | |
1456 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1457 | } | |
1458 | { | |
1459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1460 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1461 | ||
1462 | wxPyEndAllowThreads(__tstate); | |
1463 | if (PyErr_Occurred()) SWIG_fail; | |
1464 | } | |
1465 | { | |
1466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1467 | } | |
1468 | return resultobj; | |
1469 | fail: | |
1470 | return NULL; | |
1471 | } | |
1472 | ||
1473 | ||
1474 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1475 | PyObject *resultobj; | |
1476 | wxColour *arg1 = (wxColour *) 0 ; | |
1477 | PyObject *result; | |
1478 | PyObject * obj0 = 0 ; | |
1479 | char *kwnames[] = { | |
1480 | (char *) "self", NULL | |
1481 | }; | |
1482 | ||
1483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1486 | { | |
1487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1488 | result = (PyObject *)wxColour_Get(arg1); | |
1489 | ||
1490 | wxPyEndAllowThreads(__tstate); | |
1491 | if (PyErr_Occurred()) SWIG_fail; | |
1492 | } | |
1493 | resultobj = result; | |
1494 | return resultobj; | |
1495 | fail: | |
1496 | return NULL; | |
1497 | } | |
1498 | ||
1499 | ||
1500 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1501 | PyObject *resultobj; | |
1502 | wxColour *arg1 = (wxColour *) 0 ; | |
1503 | unsigned long result; | |
1504 | PyObject * obj0 = 0 ; | |
1505 | char *kwnames[] = { | |
1506 | (char *) "self", NULL | |
1507 | }; | |
1508 | ||
1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; | |
1510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1512 | { | |
1513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1514 | result = (unsigned long)wxColour_GetRGB(arg1); | |
1515 | ||
1516 | wxPyEndAllowThreads(__tstate); | |
1517 | if (PyErr_Occurred()) SWIG_fail; | |
1518 | } | |
1519 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
1520 | return resultobj; | |
1521 | fail: | |
1522 | return NULL; | |
1523 | } | |
1524 | ||
1525 | ||
1526 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1527 | PyObject *obj; | |
1528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1529 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1530 | Py_INCREF(obj); | |
1531 | return Py_BuildValue((char *)""); | |
1532 | } | |
1533 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1534 | PyObject *resultobj; | |
1535 | int arg1 ; | |
1536 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1537 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1538 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1539 | wxPalette *result; | |
1540 | PyObject * obj0 = 0 ; | |
1541 | PyObject * obj1 = 0 ; | |
1542 | PyObject * obj2 = 0 ; | |
1543 | PyObject * obj3 = 0 ; | |
1544 | char *kwnames[] = { | |
1545 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1546 | }; | |
1547 | ||
1548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1549 | arg1 = (int) SWIG_AsInt(obj0); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1553 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1555 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1557 | { | |
1558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1559 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1560 | ||
1561 | wxPyEndAllowThreads(__tstate); | |
1562 | if (PyErr_Occurred()) SWIG_fail; | |
1563 | } | |
1564 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); | |
1565 | return resultobj; | |
1566 | fail: | |
1567 | return NULL; | |
1568 | } | |
1569 | ||
1570 | ||
1571 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1572 | PyObject *resultobj; | |
1573 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1574 | PyObject * obj0 = 0 ; | |
1575 | char *kwnames[] = { | |
1576 | (char *) "self", NULL | |
1577 | }; | |
1578 | ||
1579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1582 | { | |
1583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1584 | delete arg1; | |
1585 | ||
1586 | wxPyEndAllowThreads(__tstate); | |
1587 | if (PyErr_Occurred()) SWIG_fail; | |
1588 | } | |
1589 | Py_INCREF(Py_None); resultobj = Py_None; | |
1590 | return resultobj; | |
1591 | fail: | |
1592 | return NULL; | |
1593 | } | |
1594 | ||
1595 | ||
1596 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject *resultobj; | |
1598 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1599 | byte arg2 ; | |
1600 | byte arg3 ; | |
1601 | byte arg4 ; | |
1602 | int result; | |
1603 | PyObject * obj0 = 0 ; | |
1604 | PyObject * obj1 = 0 ; | |
1605 | PyObject * obj2 = 0 ; | |
1606 | PyObject * obj3 = 0 ; | |
1607 | char *kwnames[] = { | |
1608 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1609 | }; | |
1610 | ||
1611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1614 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
1615 | if (PyErr_Occurred()) SWIG_fail; | |
1616 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
1617 | if (PyErr_Occurred()) SWIG_fail; | |
1618 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
1619 | if (PyErr_Occurred()) SWIG_fail; | |
1620 | { | |
1621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1622 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1623 | ||
1624 | wxPyEndAllowThreads(__tstate); | |
1625 | if (PyErr_Occurred()) SWIG_fail; | |
1626 | } | |
1627 | resultobj = SWIG_FromInt((int)result); | |
1628 | return resultobj; | |
1629 | fail: | |
1630 | return NULL; | |
1631 | } | |
1632 | ||
1633 | ||
1634 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1635 | PyObject *resultobj; | |
1636 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1637 | int arg2 ; | |
1638 | byte *arg3 = (byte *) 0 ; | |
1639 | byte *arg4 = (byte *) 0 ; | |
1640 | byte *arg5 = (byte *) 0 ; | |
1641 | bool result; | |
1642 | byte temp3 ; | |
1643 | byte temp4 ; | |
1644 | byte temp5 ; | |
1645 | PyObject * obj0 = 0 ; | |
1646 | PyObject * obj1 = 0 ; | |
1647 | char *kwnames[] = { | |
1648 | (char *) "self",(char *) "pixel", NULL | |
1649 | }; | |
1650 | ||
1651 | arg3 = &temp3; | |
1652 | arg4 = &temp4; | |
1653 | arg5 = &temp5; | |
1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1657 | arg2 = (int) SWIG_AsInt(obj1); | |
1658 | if (PyErr_Occurred()) SWIG_fail; | |
1659 | { | |
1660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1661 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1662 | ||
1663 | wxPyEndAllowThreads(__tstate); | |
1664 | if (PyErr_Occurred()) SWIG_fail; | |
1665 | } | |
1666 | { | |
1667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1668 | } | |
1669 | { | |
1670 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1671 | resultobj = t_output_helper(resultobj,o); | |
1672 | } | |
1673 | { | |
1674 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1675 | resultobj = t_output_helper(resultobj,o); | |
1676 | } | |
1677 | { | |
1678 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1679 | resultobj = t_output_helper(resultobj,o); | |
1680 | } | |
1681 | return resultobj; | |
1682 | fail: | |
1683 | return NULL; | |
1684 | } | |
1685 | ||
1686 | ||
1687 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1688 | PyObject *resultobj; | |
1689 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1690 | bool result; | |
1691 | PyObject * obj0 = 0 ; | |
1692 | char *kwnames[] = { | |
1693 | (char *) "self", NULL | |
1694 | }; | |
1695 | ||
1696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1699 | { | |
1700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1701 | result = (bool)(arg1)->Ok(); | |
1702 | ||
1703 | wxPyEndAllowThreads(__tstate); | |
1704 | if (PyErr_Occurred()) SWIG_fail; | |
1705 | } | |
1706 | { | |
1707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1708 | } | |
1709 | return resultobj; | |
1710 | fail: | |
1711 | return NULL; | |
1712 | } | |
1713 | ||
1714 | ||
1715 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1716 | PyObject *obj; | |
1717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1718 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1719 | Py_INCREF(obj); | |
1720 | return Py_BuildValue((char *)""); | |
1721 | } | |
1722 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1723 | PyObject *resultobj; | |
1724 | wxColour *arg1 = 0 ; | |
1725 | int arg2 = (int) 1 ; | |
1726 | int arg3 = (int) wxSOLID ; | |
1727 | wxPen *result; | |
1728 | wxColour temp1 ; | |
1729 | PyObject * obj0 = 0 ; | |
1730 | PyObject * obj1 = 0 ; | |
1731 | PyObject * obj2 = 0 ; | |
1732 | char *kwnames[] = { | |
1733 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1734 | }; | |
1735 | ||
1736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1737 | { | |
1738 | arg1 = &temp1; | |
1739 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1740 | } | |
1741 | if (obj1) { | |
1742 | arg2 = (int) SWIG_AsInt(obj1); | |
1743 | if (PyErr_Occurred()) SWIG_fail; | |
1744 | } | |
1745 | if (obj2) { | |
1746 | arg3 = (int) SWIG_AsInt(obj2); | |
1747 | if (PyErr_Occurred()) SWIG_fail; | |
1748 | } | |
1749 | { | |
1750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1751 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1752 | ||
1753 | wxPyEndAllowThreads(__tstate); | |
1754 | if (PyErr_Occurred()) SWIG_fail; | |
1755 | } | |
1756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); | |
1757 | return resultobj; | |
1758 | fail: | |
1759 | return NULL; | |
1760 | } | |
1761 | ||
1762 | ||
1763 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1764 | PyObject *resultobj; | |
1765 | wxPen *arg1 = (wxPen *) 0 ; | |
1766 | PyObject * obj0 = 0 ; | |
1767 | char *kwnames[] = { | |
1768 | (char *) "self", NULL | |
1769 | }; | |
1770 | ||
1771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1774 | { | |
1775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1776 | delete arg1; | |
1777 | ||
1778 | wxPyEndAllowThreads(__tstate); | |
1779 | if (PyErr_Occurred()) SWIG_fail; | |
1780 | } | |
1781 | Py_INCREF(Py_None); resultobj = Py_None; | |
1782 | return resultobj; | |
1783 | fail: | |
1784 | return NULL; | |
1785 | } | |
1786 | ||
1787 | ||
1788 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1789 | PyObject *resultobj; | |
1790 | wxPen *arg1 = (wxPen *) 0 ; | |
1791 | int result; | |
1792 | PyObject * obj0 = 0 ; | |
1793 | char *kwnames[] = { | |
1794 | (char *) "self", NULL | |
1795 | }; | |
1796 | ||
1797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1800 | { | |
1801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1802 | result = (int)(arg1)->GetCap(); | |
1803 | ||
1804 | wxPyEndAllowThreads(__tstate); | |
1805 | if (PyErr_Occurred()) SWIG_fail; | |
1806 | } | |
1807 | resultobj = SWIG_FromInt((int)result); | |
1808 | return resultobj; | |
1809 | fail: | |
1810 | return NULL; | |
1811 | } | |
1812 | ||
1813 | ||
1814 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1815 | PyObject *resultobj; | |
1816 | wxPen *arg1 = (wxPen *) 0 ; | |
1817 | wxColour result; | |
1818 | PyObject * obj0 = 0 ; | |
1819 | char *kwnames[] = { | |
1820 | (char *) "self", NULL | |
1821 | }; | |
1822 | ||
1823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1826 | { | |
1827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1828 | result = (arg1)->GetColour(); | |
1829 | ||
1830 | wxPyEndAllowThreads(__tstate); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
1832 | } | |
1833 | { | |
1834 | wxColour * resultptr; | |
1835 | resultptr = new wxColour((wxColour &) result); | |
1836 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1837 | } | |
1838 | return resultobj; | |
1839 | fail: | |
1840 | return NULL; | |
1841 | } | |
1842 | ||
1843 | ||
1844 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1845 | PyObject *resultobj; | |
1846 | wxPen *arg1 = (wxPen *) 0 ; | |
1847 | int result; | |
1848 | PyObject * obj0 = 0 ; | |
1849 | char *kwnames[] = { | |
1850 | (char *) "self", NULL | |
1851 | }; | |
1852 | ||
1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1856 | { | |
1857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1858 | result = (int)(arg1)->GetJoin(); | |
1859 | ||
1860 | wxPyEndAllowThreads(__tstate); | |
1861 | if (PyErr_Occurred()) SWIG_fail; | |
1862 | } | |
1863 | resultobj = SWIG_FromInt((int)result); | |
1864 | return resultobj; | |
1865 | fail: | |
1866 | return NULL; | |
1867 | } | |
1868 | ||
1869 | ||
1870 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1871 | PyObject *resultobj; | |
1872 | wxPen *arg1 = (wxPen *) 0 ; | |
1873 | int result; | |
1874 | PyObject * obj0 = 0 ; | |
1875 | char *kwnames[] = { | |
1876 | (char *) "self", NULL | |
1877 | }; | |
1878 | ||
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1882 | { | |
1883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1884 | result = (int)(arg1)->GetStyle(); | |
1885 | ||
1886 | wxPyEndAllowThreads(__tstate); | |
1887 | if (PyErr_Occurred()) SWIG_fail; | |
1888 | } | |
1889 | resultobj = SWIG_FromInt((int)result); | |
1890 | return resultobj; | |
1891 | fail: | |
1892 | return NULL; | |
1893 | } | |
1894 | ||
1895 | ||
1896 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject *resultobj; | |
1898 | wxPen *arg1 = (wxPen *) 0 ; | |
1899 | int result; | |
1900 | PyObject * obj0 = 0 ; | |
1901 | char *kwnames[] = { | |
1902 | (char *) "self", NULL | |
1903 | }; | |
1904 | ||
1905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1908 | { | |
1909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1910 | result = (int)(arg1)->GetWidth(); | |
1911 | ||
1912 | wxPyEndAllowThreads(__tstate); | |
1913 | if (PyErr_Occurred()) SWIG_fail; | |
1914 | } | |
1915 | resultobj = SWIG_FromInt((int)result); | |
1916 | return resultobj; | |
1917 | fail: | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
1922 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject *resultobj; | |
1924 | wxPen *arg1 = (wxPen *) 0 ; | |
1925 | bool result; | |
1926 | PyObject * obj0 = 0 ; | |
1927 | char *kwnames[] = { | |
1928 | (char *) "self", NULL | |
1929 | }; | |
1930 | ||
1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1934 | { | |
1935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1936 | result = (bool)(arg1)->Ok(); | |
1937 | ||
1938 | wxPyEndAllowThreads(__tstate); | |
1939 | if (PyErr_Occurred()) SWIG_fail; | |
1940 | } | |
1941 | { | |
1942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1943 | } | |
1944 | return resultobj; | |
1945 | fail: | |
1946 | return NULL; | |
1947 | } | |
1948 | ||
1949 | ||
1950 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1951 | PyObject *resultobj; | |
1952 | wxPen *arg1 = (wxPen *) 0 ; | |
1953 | int arg2 ; | |
1954 | PyObject * obj0 = 0 ; | |
1955 | PyObject * obj1 = 0 ; | |
1956 | char *kwnames[] = { | |
1957 | (char *) "self",(char *) "cap_style", NULL | |
1958 | }; | |
1959 | ||
1960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; | |
1961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1963 | arg2 = (int) SWIG_AsInt(obj1); | |
1964 | if (PyErr_Occurred()) SWIG_fail; | |
1965 | { | |
1966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1967 | (arg1)->SetCap(arg2); | |
1968 | ||
1969 | wxPyEndAllowThreads(__tstate); | |
1970 | if (PyErr_Occurred()) SWIG_fail; | |
1971 | } | |
1972 | Py_INCREF(Py_None); resultobj = Py_None; | |
1973 | return resultobj; | |
1974 | fail: | |
1975 | return NULL; | |
1976 | } | |
1977 | ||
1978 | ||
1979 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1980 | PyObject *resultobj; | |
1981 | wxPen *arg1 = (wxPen *) 0 ; | |
1982 | wxColour *arg2 = 0 ; | |
1983 | wxColour temp2 ; | |
1984 | PyObject * obj0 = 0 ; | |
1985 | PyObject * obj1 = 0 ; | |
1986 | char *kwnames[] = { | |
1987 | (char *) "self",(char *) "colour", NULL | |
1988 | }; | |
1989 | ||
1990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1993 | { | |
1994 | arg2 = &temp2; | |
1995 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1996 | } | |
1997 | { | |
1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1999 | (arg1)->SetColour(*arg2); | |
2000 | ||
2001 | wxPyEndAllowThreads(__tstate); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | } | |
2004 | Py_INCREF(Py_None); resultobj = Py_None; | |
2005 | return resultobj; | |
2006 | fail: | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2012 | PyObject *resultobj; | |
2013 | wxPen *arg1 = (wxPen *) 0 ; | |
2014 | int arg2 ; | |
2015 | PyObject * obj0 = 0 ; | |
2016 | PyObject * obj1 = 0 ; | |
2017 | char *kwnames[] = { | |
2018 | (char *) "self",(char *) "join_style", NULL | |
2019 | }; | |
2020 | ||
2021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; | |
2022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2024 | arg2 = (int) SWIG_AsInt(obj1); | |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
2026 | { | |
2027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2028 | (arg1)->SetJoin(arg2); | |
2029 | ||
2030 | wxPyEndAllowThreads(__tstate); | |
2031 | if (PyErr_Occurred()) SWIG_fail; | |
2032 | } | |
2033 | Py_INCREF(Py_None); resultobj = Py_None; | |
2034 | return resultobj; | |
2035 | fail: | |
2036 | return NULL; | |
2037 | } | |
2038 | ||
2039 | ||
2040 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2041 | PyObject *resultobj; | |
2042 | wxPen *arg1 = (wxPen *) 0 ; | |
2043 | int arg2 ; | |
2044 | PyObject * obj0 = 0 ; | |
2045 | PyObject * obj1 = 0 ; | |
2046 | char *kwnames[] = { | |
2047 | (char *) "self",(char *) "style", NULL | |
2048 | }; | |
2049 | ||
2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2053 | arg2 = (int) SWIG_AsInt(obj1); | |
2054 | if (PyErr_Occurred()) SWIG_fail; | |
2055 | { | |
2056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2057 | (arg1)->SetStyle(arg2); | |
2058 | ||
2059 | wxPyEndAllowThreads(__tstate); | |
2060 | if (PyErr_Occurred()) SWIG_fail; | |
2061 | } | |
2062 | Py_INCREF(Py_None); resultobj = Py_None; | |
2063 | return resultobj; | |
2064 | fail: | |
2065 | return NULL; | |
2066 | } | |
2067 | ||
2068 | ||
2069 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2070 | PyObject *resultobj; | |
2071 | wxPen *arg1 = (wxPen *) 0 ; | |
2072 | int arg2 ; | |
2073 | PyObject * obj0 = 0 ; | |
2074 | PyObject * obj1 = 0 ; | |
2075 | char *kwnames[] = { | |
2076 | (char *) "self",(char *) "width", NULL | |
2077 | }; | |
2078 | ||
2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2082 | arg2 = (int) SWIG_AsInt(obj1); | |
2083 | if (PyErr_Occurred()) SWIG_fail; | |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | (arg1)->SetWidth(arg2); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
2091 | Py_INCREF(Py_None); resultobj = Py_None; | |
2092 | return resultobj; | |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
2098 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2099 | PyObject *resultobj; | |
2100 | wxPen *arg1 = (wxPen *) 0 ; | |
2101 | int arg2 ; | |
2102 | wxDash *arg3 = (wxDash *) 0 ; | |
2103 | PyObject * obj0 = 0 ; | |
2104 | PyObject * obj1 = 0 ; | |
2105 | char *kwnames[] = { | |
2106 | (char *) "self",(char *) "dashes", NULL | |
2107 | }; | |
2108 | ||
2109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2112 | { | |
2113 | arg2 = PyList_Size(obj1); | |
2114 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2115 | if (arg3 == NULL) SWIG_fail; | |
2116 | } | |
2117 | { | |
2118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2119 | (arg1)->SetDashes(arg2,arg3); | |
2120 | ||
2121 | wxPyEndAllowThreads(__tstate); | |
2122 | if (PyErr_Occurred()) SWIG_fail; | |
2123 | } | |
2124 | Py_INCREF(Py_None); resultobj = Py_None; | |
2125 | { | |
2126 | if (arg3) delete [] arg3; | |
2127 | } | |
2128 | return resultobj; | |
2129 | fail: | |
2130 | { | |
2131 | if (arg3) delete [] arg3; | |
2132 | } | |
2133 | return NULL; | |
2134 | } | |
2135 | ||
2136 | ||
2137 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2138 | PyObject *resultobj; | |
2139 | wxPen *arg1 = (wxPen *) 0 ; | |
2140 | PyObject *result; | |
2141 | PyObject * obj0 = 0 ; | |
2142 | char *kwnames[] = { | |
2143 | (char *) "self", NULL | |
2144 | }; | |
2145 | ||
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2149 | { | |
2150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2151 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2152 | ||
2153 | wxPyEndAllowThreads(__tstate); | |
2154 | if (PyErr_Occurred()) SWIG_fail; | |
2155 | } | |
2156 | resultobj = result; | |
2157 | return resultobj; | |
2158 | fail: | |
2159 | return NULL; | |
2160 | } | |
2161 | ||
2162 | ||
d6c14a4c | 2163 | static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2164 | PyObject *resultobj; |
2165 | wxPen *arg1 = (wxPen *) 0 ; | |
d6c14a4c RD |
2166 | PyObject *arg2 = (PyObject *) 0 ; |
2167 | PyObject *arg3 = (PyObject *) 0 ; | |
d55e5bfc RD |
2168 | PyObject * obj0 = 0 ; |
2169 | PyObject * obj1 = 0 ; | |
d6c14a4c | 2170 | PyObject * obj2 = 0 ; |
d55e5bfc | 2171 | char *kwnames[] = { |
d6c14a4c | 2172 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d55e5bfc RD |
2173 | }; |
2174 | ||
d6c14a4c | 2175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
2176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d6c14a4c RD |
2178 | arg2 = obj1; |
2179 | arg3 = obj2; | |
d55e5bfc RD |
2180 | { |
2181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 2182 | wxPen__SetDashes(arg1,arg2,arg3); |
d55e5bfc RD |
2183 | |
2184 | wxPyEndAllowThreads(__tstate); | |
2185 | if (PyErr_Occurred()) SWIG_fail; | |
2186 | } | |
d6c14a4c | 2187 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2188 | return resultobj; |
2189 | fail: | |
2190 | return NULL; | |
2191 | } | |
2192 | ||
2193 | ||
d6c14a4c | 2194 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2195 | PyObject *resultobj; |
2196 | wxPen *arg1 = (wxPen *) 0 ; | |
2197 | wxPen *arg2 = (wxPen *) 0 ; | |
2198 | bool result; | |
2199 | PyObject * obj0 = 0 ; | |
2200 | PyObject * obj1 = 0 ; | |
2201 | char *kwnames[] = { | |
2202 | (char *) "self",(char *) "other", NULL | |
2203 | }; | |
2204 | ||
d6c14a4c | 2205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
2206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2210 | { | |
2211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 2212 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2213 | |
2214 | wxPyEndAllowThreads(__tstate); | |
2215 | if (PyErr_Occurred()) SWIG_fail; | |
2216 | } | |
2217 | { | |
2218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2219 | } | |
2220 | return resultobj; | |
2221 | fail: | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
d6c14a4c | 2226 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2227 | PyObject *resultobj; |
d6c14a4c RD |
2228 | wxPen *arg1 = (wxPen *) 0 ; |
2229 | wxPen *arg2 = (wxPen *) 0 ; | |
2230 | bool result; | |
d55e5bfc RD |
2231 | PyObject * obj0 = 0 ; |
2232 | PyObject * obj1 = 0 ; | |
d55e5bfc | 2233 | char *kwnames[] = { |
d6c14a4c | 2234 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2235 | }; |
2236 | ||
d6c14a4c RD |
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
d55e5bfc | 2239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d6c14a4c | 2240 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, |
d55e5bfc | 2241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d55e5bfc RD |
2242 | { |
2243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 2244 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2245 | |
2246 | wxPyEndAllowThreads(__tstate); | |
2247 | if (PyErr_Occurred()) SWIG_fail; | |
2248 | } | |
d55e5bfc | 2249 | { |
d6c14a4c | 2250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
2251 | } |
2252 | return resultobj; | |
2253 | fail: | |
d55e5bfc RD |
2254 | return NULL; |
2255 | } | |
2256 | ||
2257 | ||
d6c14a4c | 2258 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
d55e5bfc RD |
2259 | PyObject *obj; |
2260 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
d6c14a4c | 2261 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d55e5bfc RD |
2262 | Py_INCREF(obj); |
2263 | return Py_BuildValue((char *)""); | |
2264 | } | |
2265 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2266 | PyObject *resultobj; | |
2267 | wxColour *arg1 = 0 ; | |
2268 | int arg2 = (int) wxSOLID ; | |
2269 | wxBrush *result; | |
2270 | wxColour temp1 ; | |
2271 | PyObject * obj0 = 0 ; | |
2272 | PyObject * obj1 = 0 ; | |
2273 | char *kwnames[] = { | |
2274 | (char *) "colour",(char *) "style", NULL | |
2275 | }; | |
2276 | ||
2277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; | |
2278 | { | |
2279 | arg1 = &temp1; | |
2280 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2281 | } | |
2282 | if (obj1) { | |
2283 | arg2 = (int) SWIG_AsInt(obj1); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | } | |
2286 | { | |
2287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2288 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2289 | ||
2290 | wxPyEndAllowThreads(__tstate); | |
2291 | if (PyErr_Occurred()) SWIG_fail; | |
2292 | } | |
2293 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
2294 | return resultobj; | |
2295 | fail: | |
2296 | return NULL; | |
2297 | } | |
2298 | ||
2299 | ||
2300 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject *resultobj; | |
2302 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2303 | PyObject * obj0 = 0 ; | |
2304 | char *kwnames[] = { | |
2305 | (char *) "self", NULL | |
2306 | }; | |
2307 | ||
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2311 | { | |
2312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2313 | delete arg1; | |
2314 | ||
2315 | wxPyEndAllowThreads(__tstate); | |
2316 | if (PyErr_Occurred()) SWIG_fail; | |
2317 | } | |
2318 | Py_INCREF(Py_None); resultobj = Py_None; | |
2319 | return resultobj; | |
2320 | fail: | |
2321 | return NULL; | |
2322 | } | |
2323 | ||
2324 | ||
2325 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2326 | PyObject *resultobj; | |
2327 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2328 | wxColour *arg2 = 0 ; | |
2329 | wxColour temp2 ; | |
2330 | PyObject * obj0 = 0 ; | |
2331 | PyObject * obj1 = 0 ; | |
2332 | char *kwnames[] = { | |
2333 | (char *) "self",(char *) "col", NULL | |
2334 | }; | |
2335 | ||
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2339 | { | |
2340 | arg2 = &temp2; | |
2341 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2342 | } | |
2343 | { | |
2344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2345 | (arg1)->SetColour((wxColour const &)*arg2); | |
2346 | ||
2347 | wxPyEndAllowThreads(__tstate); | |
2348 | if (PyErr_Occurred()) SWIG_fail; | |
2349 | } | |
2350 | Py_INCREF(Py_None); resultobj = Py_None; | |
2351 | return resultobj; | |
2352 | fail: | |
2353 | return NULL; | |
2354 | } | |
2355 | ||
2356 | ||
2357 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2358 | PyObject *resultobj; | |
2359 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2360 | int arg2 ; | |
2361 | PyObject * obj0 = 0 ; | |
2362 | PyObject * obj1 = 0 ; | |
2363 | char *kwnames[] = { | |
2364 | (char *) "self",(char *) "style", NULL | |
2365 | }; | |
2366 | ||
2367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2370 | arg2 = (int) SWIG_AsInt(obj1); | |
2371 | if (PyErr_Occurred()) SWIG_fail; | |
2372 | { | |
2373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2374 | (arg1)->SetStyle(arg2); | |
2375 | ||
2376 | wxPyEndAllowThreads(__tstate); | |
2377 | if (PyErr_Occurred()) SWIG_fail; | |
2378 | } | |
2379 | Py_INCREF(Py_None); resultobj = Py_None; | |
2380 | return resultobj; | |
2381 | fail: | |
2382 | return NULL; | |
2383 | } | |
2384 | ||
2385 | ||
2386 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2387 | PyObject *resultobj; | |
2388 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2389 | wxBitmap *arg2 = 0 ; | |
2390 | PyObject * obj0 = 0 ; | |
2391 | PyObject * obj1 = 0 ; | |
2392 | char *kwnames[] = { | |
2393 | (char *) "self",(char *) "stipple", NULL | |
2394 | }; | |
2395 | ||
2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2399 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2400 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2401 | SWIG_fail; | |
2402 | if (arg2 == NULL) { | |
2403 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2404 | SWIG_fail; | |
2405 | } | |
2406 | { | |
2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2408 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2409 | ||
2410 | wxPyEndAllowThreads(__tstate); | |
2411 | if (PyErr_Occurred()) SWIG_fail; | |
2412 | } | |
2413 | Py_INCREF(Py_None); resultobj = Py_None; | |
2414 | return resultobj; | |
2415 | fail: | |
2416 | return NULL; | |
2417 | } | |
2418 | ||
2419 | ||
2420 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2421 | PyObject *resultobj; | |
2422 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2423 | wxColour result; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | char *kwnames[] = { | |
2426 | (char *) "self", NULL | |
2427 | }; | |
2428 | ||
2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2432 | { | |
2433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2434 | result = ((wxBrush const *)arg1)->GetColour(); | |
2435 | ||
2436 | wxPyEndAllowThreads(__tstate); | |
2437 | if (PyErr_Occurred()) SWIG_fail; | |
2438 | } | |
2439 | { | |
2440 | wxColour * resultptr; | |
2441 | resultptr = new wxColour((wxColour &) result); | |
2442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2443 | } | |
2444 | return resultobj; | |
2445 | fail: | |
2446 | return NULL; | |
2447 | } | |
2448 | ||
2449 | ||
2450 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject *resultobj; | |
2452 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2453 | int result; | |
2454 | PyObject * obj0 = 0 ; | |
2455 | char *kwnames[] = { | |
2456 | (char *) "self", NULL | |
2457 | }; | |
2458 | ||
2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2462 | { | |
2463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2464 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2465 | ||
2466 | wxPyEndAllowThreads(__tstate); | |
2467 | if (PyErr_Occurred()) SWIG_fail; | |
2468 | } | |
2469 | resultobj = SWIG_FromInt((int)result); | |
2470 | return resultobj; | |
2471 | fail: | |
2472 | return NULL; | |
2473 | } | |
2474 | ||
2475 | ||
2476 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2477 | PyObject *resultobj; | |
2478 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2479 | wxBitmap *result; | |
2480 | PyObject * obj0 = 0 ; | |
2481 | char *kwnames[] = { | |
2482 | (char *) "self", NULL | |
2483 | }; | |
2484 | ||
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2488 | { | |
2489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2490 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2491 | ||
2492 | wxPyEndAllowThreads(__tstate); | |
2493 | if (PyErr_Occurred()) SWIG_fail; | |
2494 | } | |
2495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2496 | return resultobj; | |
2497 | fail: | |
2498 | return NULL; | |
2499 | } | |
2500 | ||
2501 | ||
2502 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject *resultobj; | |
2504 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2505 | bool result; | |
2506 | PyObject * obj0 = 0 ; | |
2507 | char *kwnames[] = { | |
2508 | (char *) "self", NULL | |
2509 | }; | |
2510 | ||
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2514 | { | |
2515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2516 | result = (bool)(arg1)->Ok(); | |
2517 | ||
2518 | wxPyEndAllowThreads(__tstate); | |
2519 | if (PyErr_Occurred()) SWIG_fail; | |
2520 | } | |
2521 | { | |
2522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2523 | } | |
2524 | return resultobj; | |
2525 | fail: | |
2526 | return NULL; | |
2527 | } | |
2528 | ||
2529 | ||
2530 | static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2531 | PyObject *resultobj; | |
2532 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2533 | short result; | |
2534 | PyObject * obj0 = 0 ; | |
2535 | char *kwnames[] = { | |
2536 | (char *) "self", NULL | |
2537 | }; | |
2538 | ||
2539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail; | |
2540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2542 | { | |
2543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2544 | result = (short)(arg1)->MacGetTheme(); | |
2545 | ||
2546 | wxPyEndAllowThreads(__tstate); | |
2547 | if (PyErr_Occurred()) SWIG_fail; | |
2548 | } | |
2549 | resultobj = SWIG_FromShort((short)result); | |
2550 | return resultobj; | |
2551 | fail: | |
2552 | return NULL; | |
2553 | } | |
2554 | ||
2555 | ||
2556 | static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2557 | PyObject *resultobj; | |
2558 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2559 | short arg2 ; | |
2560 | PyObject * obj0 = 0 ; | |
2561 | PyObject * obj1 = 0 ; | |
2562 | char *kwnames[] = { | |
2563 | (char *) "self",(char *) "macThemeBrush", NULL | |
2564 | }; | |
2565 | ||
2566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail; | |
2567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2569 | arg2 = (short) SWIG_AsShort(obj1); | |
2570 | if (PyErr_Occurred()) SWIG_fail; | |
2571 | { | |
2572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2573 | (arg1)->MacSetTheme(arg2); | |
2574 | ||
2575 | wxPyEndAllowThreads(__tstate); | |
2576 | if (PyErr_Occurred()) SWIG_fail; | |
2577 | } | |
2578 | Py_INCREF(Py_None); resultobj = Py_None; | |
2579 | return resultobj; | |
2580 | fail: | |
2581 | return NULL; | |
2582 | } | |
2583 | ||
2584 | ||
2585 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2586 | PyObject *obj; | |
2587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2588 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2589 | Py_INCREF(obj); | |
2590 | return Py_BuildValue((char *)""); | |
2591 | } | |
2592 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2593 | PyObject *resultobj; | |
2594 | wxString *arg1 = 0 ; | |
2595 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2596 | wxBitmap *result; | |
2597 | bool temp1 = False ; | |
2598 | PyObject * obj0 = 0 ; | |
2599 | PyObject * obj1 = 0 ; | |
2600 | char *kwnames[] = { | |
2601 | (char *) "name",(char *) "type", NULL | |
2602 | }; | |
2603 | ||
2604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; | |
2605 | { | |
2606 | arg1 = wxString_in_helper(obj0); | |
2607 | if (arg1 == NULL) SWIG_fail; | |
2608 | temp1 = True; | |
2609 | } | |
2610 | if (obj1) { | |
2611 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); | |
2612 | if (PyErr_Occurred()) SWIG_fail; | |
2613 | } | |
2614 | { | |
2615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2616 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2617 | ||
2618 | wxPyEndAllowThreads(__tstate); | |
2619 | if (PyErr_Occurred()) SWIG_fail; | |
2620 | } | |
2621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2622 | { | |
2623 | if (temp1) | |
2624 | delete arg1; | |
2625 | } | |
2626 | return resultobj; | |
2627 | fail: | |
2628 | { | |
2629 | if (temp1) | |
2630 | delete arg1; | |
2631 | } | |
2632 | return NULL; | |
2633 | } | |
2634 | ||
2635 | ||
2636 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2637 | PyObject *resultobj; | |
2638 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2639 | PyObject * obj0 = 0 ; | |
2640 | char *kwnames[] = { | |
2641 | (char *) "self", NULL | |
2642 | }; | |
2643 | ||
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2647 | { | |
2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2649 | delete arg1; | |
2650 | ||
2651 | wxPyEndAllowThreads(__tstate); | |
2652 | if (PyErr_Occurred()) SWIG_fail; | |
2653 | } | |
2654 | Py_INCREF(Py_None); resultobj = Py_None; | |
2655 | return resultobj; | |
2656 | fail: | |
2657 | return NULL; | |
2658 | } | |
2659 | ||
2660 | ||
d6c14a4c RD |
2661 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
2662 | PyObject *resultobj; | |
2663 | int arg1 ; | |
2664 | int arg2 ; | |
2665 | int arg3 = (int) -1 ; | |
2666 | wxBitmap *result; | |
2667 | PyObject * obj0 = 0 ; | |
2668 | PyObject * obj1 = 0 ; | |
2669 | PyObject * obj2 = 0 ; | |
2670 | char *kwnames[] = { | |
2671 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2672 | }; | |
2673 | ||
2674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2675 | arg1 = (int) SWIG_AsInt(obj0); | |
2676 | if (PyErr_Occurred()) SWIG_fail; | |
2677 | arg2 = (int) SWIG_AsInt(obj1); | |
2678 | if (PyErr_Occurred()) SWIG_fail; | |
2679 | if (obj2) { | |
2680 | arg3 = (int) SWIG_AsInt(obj2); | |
2681 | if (PyErr_Occurred()) SWIG_fail; | |
2682 | } | |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
2690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2691 | return resultobj; | |
2692 | fail: | |
2693 | return NULL; | |
2694 | } | |
2695 | ||
2696 | ||
d55e5bfc RD |
2697 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
2698 | PyObject *resultobj; | |
2699 | wxIcon *arg1 = 0 ; | |
2700 | wxBitmap *result; | |
2701 | PyObject * obj0 = 0 ; | |
2702 | char *kwnames[] = { | |
2703 | (char *) "icon", NULL | |
2704 | }; | |
2705 | ||
2706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
2708 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2709 | SWIG_fail; | |
2710 | if (arg1 == NULL) { | |
2711 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2712 | SWIG_fail; | |
2713 | } | |
2714 | { | |
2715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2716 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2717 | ||
2718 | wxPyEndAllowThreads(__tstate); | |
2719 | if (PyErr_Occurred()) SWIG_fail; | |
2720 | } | |
2721 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2722 | return resultobj; | |
2723 | fail: | |
2724 | return NULL; | |
2725 | } | |
2726 | ||
2727 | ||
2728 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2729 | PyObject *resultobj; | |
2730 | wxImage *arg1 = 0 ; | |
2731 | int arg2 = (int) -1 ; | |
2732 | wxBitmap *result; | |
2733 | PyObject * obj0 = 0 ; | |
2734 | PyObject * obj1 = 0 ; | |
2735 | char *kwnames[] = { | |
2736 | (char *) "image",(char *) "depth", NULL | |
2737 | }; | |
2738 | ||
2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; | |
2740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
2741 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2742 | SWIG_fail; | |
2743 | if (arg1 == NULL) { | |
2744 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2745 | SWIG_fail; | |
2746 | } | |
2747 | if (obj1) { | |
2748 | arg2 = (int) SWIG_AsInt(obj1); | |
2749 | if (PyErr_Occurred()) SWIG_fail; | |
2750 | } | |
2751 | { | |
2752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2753 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2754 | ||
2755 | wxPyEndAllowThreads(__tstate); | |
2756 | if (PyErr_Occurred()) SWIG_fail; | |
2757 | } | |
2758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2759 | return resultobj; | |
2760 | fail: | |
2761 | return NULL; | |
2762 | } | |
2763 | ||
2764 | ||
2765 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2766 | PyObject *resultobj; | |
2767 | PyObject *arg1 = (PyObject *) 0 ; | |
2768 | wxBitmap *result; | |
2769 | PyObject * obj0 = 0 ; | |
2770 | char *kwnames[] = { | |
2771 | (char *) "listOfStrings", NULL | |
2772 | }; | |
2773 | ||
2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2775 | arg1 = obj0; | |
2776 | { | |
2777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2778 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2779 | ||
2780 | wxPyEndAllowThreads(__tstate); | |
2781 | if (PyErr_Occurred()) SWIG_fail; | |
2782 | } | |
2783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2784 | return resultobj; | |
2785 | fail: | |
2786 | return NULL; | |
2787 | } | |
2788 | ||
2789 | ||
2790 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2791 | PyObject *resultobj; | |
2792 | PyObject *arg1 = (PyObject *) 0 ; | |
2793 | int arg2 ; | |
2794 | int arg3 ; | |
2795 | int arg4 = (int) 1 ; | |
2796 | wxBitmap *result; | |
2797 | PyObject * obj0 = 0 ; | |
2798 | PyObject * obj1 = 0 ; | |
2799 | PyObject * obj2 = 0 ; | |
2800 | PyObject * obj3 = 0 ; | |
2801 | char *kwnames[] = { | |
2802 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2803 | }; | |
2804 | ||
2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2806 | arg1 = obj0; | |
2807 | arg2 = (int) SWIG_AsInt(obj1); | |
2808 | if (PyErr_Occurred()) SWIG_fail; | |
2809 | arg3 = (int) SWIG_AsInt(obj2); | |
2810 | if (PyErr_Occurred()) SWIG_fail; | |
2811 | if (obj3) { | |
2812 | arg4 = (int) SWIG_AsInt(obj3); | |
2813 | if (PyErr_Occurred()) SWIG_fail; | |
2814 | } | |
2815 | { | |
2816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2817 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2818 | ||
2819 | wxPyEndAllowThreads(__tstate); | |
2820 | if (PyErr_Occurred()) SWIG_fail; | |
2821 | } | |
2822 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2823 | return resultobj; | |
2824 | fail: | |
2825 | return NULL; | |
2826 | } | |
2827 | ||
2828 | ||
d55e5bfc RD |
2829 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
2830 | PyObject *resultobj; | |
2831 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2832 | bool result; | |
2833 | PyObject * obj0 = 0 ; | |
2834 | char *kwnames[] = { | |
2835 | (char *) "self", NULL | |
2836 | }; | |
2837 | ||
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2841 | { | |
2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2843 | result = (bool)(arg1)->Ok(); | |
2844 | ||
2845 | wxPyEndAllowThreads(__tstate); | |
2846 | if (PyErr_Occurred()) SWIG_fail; | |
2847 | } | |
2848 | { | |
2849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2850 | } | |
2851 | return resultobj; | |
2852 | fail: | |
2853 | return NULL; | |
2854 | } | |
2855 | ||
2856 | ||
2857 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2858 | PyObject *resultobj; | |
2859 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2860 | int result; | |
2861 | PyObject * obj0 = 0 ; | |
2862 | char *kwnames[] = { | |
2863 | (char *) "self", NULL | |
2864 | }; | |
2865 | ||
2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail; | |
2867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2869 | { | |
2870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2871 | result = (int)(arg1)->GetWidth(); | |
2872 | ||
2873 | wxPyEndAllowThreads(__tstate); | |
2874 | if (PyErr_Occurred()) SWIG_fail; | |
2875 | } | |
2876 | resultobj = SWIG_FromInt((int)result); | |
2877 | return resultobj; | |
2878 | fail: | |
2879 | return NULL; | |
2880 | } | |
2881 | ||
2882 | ||
2883 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2884 | PyObject *resultobj; | |
2885 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2886 | int result; | |
2887 | PyObject * obj0 = 0 ; | |
2888 | char *kwnames[] = { | |
2889 | (char *) "self", NULL | |
2890 | }; | |
2891 | ||
2892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
2893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2895 | { | |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2897 | result = (int)(arg1)->GetHeight(); | |
2898 | ||
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) SWIG_fail; | |
2901 | } | |
2902 | resultobj = SWIG_FromInt((int)result); | |
2903 | return resultobj; | |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2912 | int result; | |
2913 | PyObject * obj0 = 0 ; | |
2914 | char *kwnames[] = { | |
2915 | (char *) "self", NULL | |
2916 | }; | |
2917 | ||
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
2919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2921 | { | |
2922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2923 | result = (int)(arg1)->GetDepth(); | |
2924 | ||
2925 | wxPyEndAllowThreads(__tstate); | |
2926 | if (PyErr_Occurred()) SWIG_fail; | |
2927 | } | |
2928 | resultobj = SWIG_FromInt((int)result); | |
2929 | return resultobj; | |
2930 | fail: | |
2931 | return NULL; | |
2932 | } | |
2933 | ||
2934 | ||
2935 | static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2936 | PyObject *resultobj; | |
2937 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2938 | wxSize result; | |
2939 | PyObject * obj0 = 0 ; | |
2940 | char *kwnames[] = { | |
2941 | (char *) "self", NULL | |
2942 | }; | |
2943 | ||
2944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
2945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2947 | { | |
2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2949 | result = wxBitmap_GetSize(arg1); | |
2950 | ||
2951 | wxPyEndAllowThreads(__tstate); | |
2952 | if (PyErr_Occurred()) SWIG_fail; | |
2953 | } | |
2954 | { | |
2955 | wxSize * resultptr; | |
2956 | resultptr = new wxSize((wxSize &) result); | |
2957 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2958 | } | |
2959 | return resultobj; | |
2960 | fail: | |
2961 | return NULL; | |
2962 | } | |
2963 | ||
2964 | ||
2965 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2966 | PyObject *resultobj; | |
2967 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2968 | SwigValueWrapper< wxImage > result; | |
2969 | PyObject * obj0 = 0 ; | |
2970 | char *kwnames[] = { | |
2971 | (char *) "self", NULL | |
2972 | }; | |
2973 | ||
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
2975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2977 | { | |
2978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2979 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | wxImage * resultptr; | |
2986 | resultptr = new wxImage((wxImage &) result); | |
2987 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
2988 | } | |
2989 | return resultobj; | |
2990 | fail: | |
2991 | return NULL; | |
2992 | } | |
2993 | ||
2994 | ||
2995 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2996 | PyObject *resultobj; | |
2997 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2998 | wxMask *result; | |
2999 | PyObject * obj0 = 0 ; | |
3000 | char *kwnames[] = { | |
3001 | (char *) "self", NULL | |
3002 | }; | |
3003 | ||
3004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3007 | { | |
3008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3009 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3010 | ||
3011 | wxPyEndAllowThreads(__tstate); | |
3012 | if (PyErr_Occurred()) SWIG_fail; | |
3013 | } | |
3014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); | |
3015 | return resultobj; | |
3016 | fail: | |
3017 | return NULL; | |
3018 | } | |
3019 | ||
3020 | ||
3021 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3022 | PyObject *resultobj; | |
3023 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3024 | wxMask *arg2 = (wxMask *) 0 ; | |
3025 | PyObject * obj0 = 0 ; | |
3026 | PyObject * obj1 = 0 ; | |
3027 | char *kwnames[] = { | |
3028 | (char *) "self",(char *) "mask", NULL | |
3029 | }; | |
3030 | ||
3031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3036 | { | |
3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3038 | (arg1)->SetMask(arg2); | |
3039 | ||
3040 | wxPyEndAllowThreads(__tstate); | |
3041 | if (PyErr_Occurred()) SWIG_fail; | |
3042 | } | |
3043 | Py_INCREF(Py_None); resultobj = Py_None; | |
3044 | return resultobj; | |
3045 | fail: | |
3046 | return NULL; | |
3047 | } | |
3048 | ||
3049 | ||
3050 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3051 | PyObject *resultobj; | |
3052 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3053 | wxColour *arg2 = 0 ; | |
3054 | wxColour temp2 ; | |
3055 | PyObject * obj0 = 0 ; | |
3056 | PyObject * obj1 = 0 ; | |
3057 | char *kwnames[] = { | |
3058 | (char *) "self",(char *) "colour", NULL | |
3059 | }; | |
3060 | ||
3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3064 | { | |
3065 | arg2 = &temp2; | |
3066 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3067 | } | |
3068 | { | |
3069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3070 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3071 | ||
3072 | wxPyEndAllowThreads(__tstate); | |
3073 | if (PyErr_Occurred()) SWIG_fail; | |
3074 | } | |
3075 | Py_INCREF(Py_None); resultobj = Py_None; | |
3076 | return resultobj; | |
3077 | fail: | |
3078 | return NULL; | |
3079 | } | |
3080 | ||
3081 | ||
3082 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3083 | PyObject *resultobj; | |
3084 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3085 | wxRect *arg2 = 0 ; | |
3086 | SwigValueWrapper< wxBitmap > result; | |
3087 | wxRect temp2 ; | |
3088 | PyObject * obj0 = 0 ; | |
3089 | PyObject * obj1 = 0 ; | |
3090 | char *kwnames[] = { | |
3091 | (char *) "self",(char *) "rect", NULL | |
3092 | }; | |
3093 | ||
3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3097 | { | |
3098 | arg2 = &temp2; | |
3099 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3100 | } | |
3101 | { | |
3102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3103 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3104 | ||
3105 | wxPyEndAllowThreads(__tstate); | |
3106 | if (PyErr_Occurred()) SWIG_fail; | |
3107 | } | |
3108 | { | |
3109 | wxBitmap * resultptr; | |
3110 | resultptr = new wxBitmap((wxBitmap &) result); | |
3111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3112 | } | |
3113 | return resultobj; | |
3114 | fail: | |
3115 | return NULL; | |
3116 | } | |
3117 | ||
3118 | ||
3119 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3120 | PyObject *resultobj; | |
3121 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3122 | wxString *arg2 = 0 ; | |
3123 | int arg3 ; | |
d6c14a4c | 3124 | wxPalette *arg4 = (wxPalette *) NULL ; |
d55e5bfc RD |
3125 | bool result; |
3126 | bool temp2 = False ; | |
3127 | PyObject * obj0 = 0 ; | |
3128 | PyObject * obj1 = 0 ; | |
3129 | PyObject * obj2 = 0 ; | |
3130 | PyObject * obj3 = 0 ; | |
3131 | char *kwnames[] = { | |
3132 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3133 | }; | |
3134 | ||
3135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3138 | { | |
3139 | arg2 = wxString_in_helper(obj1); | |
3140 | if (arg2 == NULL) SWIG_fail; | |
3141 | temp2 = True; | |
3142 | } | |
3143 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3144 | if (PyErr_Occurred()) SWIG_fail; | |
3145 | if (obj3) { | |
3146 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, | |
3147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3148 | } | |
3149 | { | |
3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3151 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3152 | ||
3153 | wxPyEndAllowThreads(__tstate); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
3156 | { | |
3157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3158 | } | |
3159 | { | |
3160 | if (temp2) | |
3161 | delete arg2; | |
3162 | } | |
3163 | return resultobj; | |
3164 | fail: | |
3165 | { | |
3166 | if (temp2) | |
3167 | delete arg2; | |
3168 | } | |
3169 | return NULL; | |
3170 | } | |
3171 | ||
3172 | ||
3173 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3174 | PyObject *resultobj; | |
3175 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3176 | wxString *arg2 = 0 ; | |
3177 | int arg3 ; | |
3178 | bool result; | |
3179 | bool temp2 = False ; | |
3180 | PyObject * obj0 = 0 ; | |
3181 | PyObject * obj1 = 0 ; | |
3182 | PyObject * obj2 = 0 ; | |
3183 | char *kwnames[] = { | |
3184 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3185 | }; | |
3186 | ||
3187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3190 | { | |
3191 | arg2 = wxString_in_helper(obj1); | |
3192 | if (arg2 == NULL) SWIG_fail; | |
3193 | temp2 = True; | |
3194 | } | |
3195 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3196 | if (PyErr_Occurred()) SWIG_fail; | |
3197 | { | |
3198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3199 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3200 | ||
3201 | wxPyEndAllowThreads(__tstate); | |
3202 | if (PyErr_Occurred()) SWIG_fail; | |
3203 | } | |
3204 | { | |
3205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3206 | } | |
3207 | { | |
3208 | if (temp2) | |
3209 | delete arg2; | |
3210 | } | |
3211 | return resultobj; | |
3212 | fail: | |
3213 | { | |
3214 | if (temp2) | |
3215 | delete arg2; | |
3216 | } | |
3217 | return NULL; | |
3218 | } | |
3219 | ||
3220 | ||
3221 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3222 | PyObject *resultobj; | |
3223 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3224 | wxIcon *arg2 = 0 ; | |
3225 | bool result; | |
3226 | PyObject * obj0 = 0 ; | |
3227 | PyObject * obj1 = 0 ; | |
3228 | char *kwnames[] = { | |
3229 | (char *) "self",(char *) "icon", NULL | |
3230 | }; | |
3231 | ||
3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3237 | SWIG_fail; | |
3238 | if (arg2 == NULL) { | |
3239 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3240 | SWIG_fail; | |
3241 | } | |
3242 | { | |
3243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3244 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3245 | ||
3246 | wxPyEndAllowThreads(__tstate); | |
3247 | if (PyErr_Occurred()) SWIG_fail; | |
3248 | } | |
3249 | { | |
3250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3251 | } | |
3252 | return resultobj; | |
3253 | fail: | |
3254 | return NULL; | |
3255 | } | |
3256 | ||
3257 | ||
3258 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3259 | PyObject *resultobj; | |
3260 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3261 | int arg2 ; | |
3262 | PyObject * obj0 = 0 ; | |
3263 | PyObject * obj1 = 0 ; | |
3264 | char *kwnames[] = { | |
3265 | (char *) "self",(char *) "height", NULL | |
3266 | }; | |
3267 | ||
3268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3271 | arg2 = (int) SWIG_AsInt(obj1); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | { | |
3274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3275 | (arg1)->SetHeight(arg2); | |
3276 | ||
3277 | wxPyEndAllowThreads(__tstate); | |
3278 | if (PyErr_Occurred()) SWIG_fail; | |
3279 | } | |
3280 | Py_INCREF(Py_None); resultobj = Py_None; | |
3281 | return resultobj; | |
3282 | fail: | |
3283 | return NULL; | |
3284 | } | |
3285 | ||
3286 | ||
3287 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3288 | PyObject *resultobj; | |
3289 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3290 | int arg2 ; | |
3291 | PyObject * obj0 = 0 ; | |
3292 | PyObject * obj1 = 0 ; | |
3293 | char *kwnames[] = { | |
3294 | (char *) "self",(char *) "width", NULL | |
3295 | }; | |
3296 | ||
3297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3300 | arg2 = (int) SWIG_AsInt(obj1); | |
3301 | if (PyErr_Occurred()) SWIG_fail; | |
3302 | { | |
3303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3304 | (arg1)->SetWidth(arg2); | |
3305 | ||
3306 | wxPyEndAllowThreads(__tstate); | |
3307 | if (PyErr_Occurred()) SWIG_fail; | |
3308 | } | |
3309 | Py_INCREF(Py_None); resultobj = Py_None; | |
3310 | return resultobj; | |
3311 | fail: | |
3312 | return NULL; | |
3313 | } | |
3314 | ||
3315 | ||
3316 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject *resultobj; | |
3318 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3319 | int arg2 ; | |
3320 | PyObject * obj0 = 0 ; | |
3321 | PyObject * obj1 = 0 ; | |
3322 | char *kwnames[] = { | |
3323 | (char *) "self",(char *) "depth", NULL | |
3324 | }; | |
3325 | ||
3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3329 | arg2 = (int) SWIG_AsInt(obj1); | |
3330 | if (PyErr_Occurred()) SWIG_fail; | |
3331 | { | |
3332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3333 | (arg1)->SetDepth(arg2); | |
3334 | ||
3335 | wxPyEndAllowThreads(__tstate); | |
3336 | if (PyErr_Occurred()) SWIG_fail; | |
3337 | } | |
3338 | Py_INCREF(Py_None); resultobj = Py_None; | |
3339 | return resultobj; | |
3340 | fail: | |
3341 | return NULL; | |
3342 | } | |
3343 | ||
3344 | ||
3345 | static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3346 | PyObject *resultobj; | |
3347 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3348 | wxSize *arg2 = 0 ; | |
3349 | wxSize temp2 ; | |
3350 | PyObject * obj0 = 0 ; | |
3351 | PyObject * obj1 = 0 ; | |
3352 | char *kwnames[] = { | |
3353 | (char *) "self",(char *) "size", NULL | |
3354 | }; | |
3355 | ||
3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3359 | { | |
3360 | arg2 = &temp2; | |
3361 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3362 | } | |
3363 | { | |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3365 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3366 | ||
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | Py_INCREF(Py_None); resultobj = Py_None; | |
3371 | return resultobj; | |
3372 | fail: | |
3373 | return NULL; | |
3374 | } | |
3375 | ||
3376 | ||
3377 | static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3378 | PyObject *resultobj; | |
3379 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3380 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3381 | bool result; | |
3382 | PyObject * obj0 = 0 ; | |
3383 | PyObject * obj1 = 0 ; | |
3384 | char *kwnames[] = { | |
3385 | (char *) "self",(char *) "other", NULL | |
3386 | }; | |
3387 | ||
3388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3393 | { | |
3394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3395 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3396 | ||
3397 | wxPyEndAllowThreads(__tstate); | |
3398 | if (PyErr_Occurred()) SWIG_fail; | |
3399 | } | |
3400 | { | |
3401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3402 | } | |
3403 | return resultobj; | |
3404 | fail: | |
3405 | return NULL; | |
3406 | } | |
3407 | ||
3408 | ||
3409 | static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3410 | PyObject *resultobj; | |
3411 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3412 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3413 | bool result; | |
3414 | PyObject * obj0 = 0 ; | |
3415 | PyObject * obj1 = 0 ; | |
3416 | char *kwnames[] = { | |
3417 | (char *) "self",(char *) "other", NULL | |
3418 | }; | |
3419 | ||
3420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3425 | { | |
3426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3427 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3428 | ||
3429 | wxPyEndAllowThreads(__tstate); | |
3430 | if (PyErr_Occurred()) SWIG_fail; | |
3431 | } | |
3432 | { | |
3433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3434 | } | |
3435 | return resultobj; | |
3436 | fail: | |
3437 | return NULL; | |
3438 | } | |
3439 | ||
3440 | ||
3441 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3442 | PyObject *obj; | |
3443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3444 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3445 | Py_INCREF(obj); | |
3446 | return Py_BuildValue((char *)""); | |
3447 | } | |
3448 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3449 | PyObject *resultobj; | |
3450 | wxBitmap *arg1 = 0 ; | |
3451 | wxColour const &arg2_defvalue = wxNullColour ; | |
3452 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3453 | wxMask *result; | |
3454 | wxColour temp2 ; | |
3455 | PyObject * obj0 = 0 ; | |
3456 | PyObject * obj1 = 0 ; | |
3457 | char *kwnames[] = { | |
3458 | (char *) "bitmap",(char *) "colour", NULL | |
3459 | }; | |
3460 | ||
3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; | |
3462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3464 | SWIG_fail; | |
3465 | if (arg1 == NULL) { | |
3466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3467 | SWIG_fail; | |
3468 | } | |
3469 | if (obj1) { | |
3470 | { | |
3471 | arg2 = &temp2; | |
3472 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3473 | } | |
3474 | } | |
3475 | { | |
3476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3477 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3478 | ||
3479 | wxPyEndAllowThreads(__tstate); | |
3480 | if (PyErr_Occurred()) SWIG_fail; | |
3481 | } | |
3482 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); | |
3483 | return resultobj; | |
3484 | fail: | |
3485 | return NULL; | |
3486 | } | |
3487 | ||
3488 | ||
3489 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3490 | PyObject *obj; | |
3491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3492 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3493 | Py_INCREF(obj); | |
3494 | return Py_BuildValue((char *)""); | |
3495 | } | |
3496 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3497 | PyObject *resultobj; | |
3498 | wxString *arg1 = 0 ; | |
3499 | int arg2 ; | |
3500 | int arg3 = (int) -1 ; | |
3501 | int arg4 = (int) -1 ; | |
3502 | wxIcon *result; | |
3503 | bool temp1 = False ; | |
3504 | PyObject * obj0 = 0 ; | |
3505 | PyObject * obj1 = 0 ; | |
3506 | PyObject * obj2 = 0 ; | |
3507 | PyObject * obj3 = 0 ; | |
3508 | char *kwnames[] = { | |
3509 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3510 | }; | |
3511 | ||
3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3513 | { | |
3514 | arg1 = wxString_in_helper(obj0); | |
3515 | if (arg1 == NULL) SWIG_fail; | |
3516 | temp1 = True; | |
3517 | } | |
3518 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); | |
3519 | if (PyErr_Occurred()) SWIG_fail; | |
3520 | if (obj2) { | |
3521 | arg3 = (int) SWIG_AsInt(obj2); | |
3522 | if (PyErr_Occurred()) SWIG_fail; | |
3523 | } | |
3524 | if (obj3) { | |
3525 | arg4 = (int) SWIG_AsInt(obj3); | |
3526 | if (PyErr_Occurred()) SWIG_fail; | |
3527 | } | |
3528 | { | |
3529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3530 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3531 | ||
3532 | wxPyEndAllowThreads(__tstate); | |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
3534 | } | |
3535 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3536 | { | |
3537 | if (temp1) | |
3538 | delete arg1; | |
3539 | } | |
3540 | return resultobj; | |
3541 | fail: | |
3542 | { | |
3543 | if (temp1) | |
3544 | delete arg1; | |
3545 | } | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
3550 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3551 | PyObject *resultobj; | |
3552 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3553 | PyObject * obj0 = 0 ; | |
3554 | char *kwnames[] = { | |
3555 | (char *) "self", NULL | |
3556 | }; | |
3557 | ||
3558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3561 | { | |
3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3563 | delete arg1; | |
3564 | ||
3565 | wxPyEndAllowThreads(__tstate); | |
3566 | if (PyErr_Occurred()) SWIG_fail; | |
3567 | } | |
3568 | Py_INCREF(Py_None); resultobj = Py_None; | |
3569 | return resultobj; | |
3570 | fail: | |
3571 | return NULL; | |
3572 | } | |
3573 | ||
3574 | ||
3575 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3576 | PyObject *resultobj; | |
3577 | wxIcon *result; | |
3578 | char *kwnames[] = { | |
3579 | NULL | |
3580 | }; | |
3581 | ||
3582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3583 | { | |
3584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3585 | result = (wxIcon *)new wxIcon(); | |
3586 | ||
3587 | wxPyEndAllowThreads(__tstate); | |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
3589 | } | |
3590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3591 | return resultobj; | |
3592 | fail: | |
3593 | return NULL; | |
3594 | } | |
3595 | ||
3596 | ||
3597 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3598 | PyObject *resultobj; | |
3599 | wxIconLocation *arg1 = 0 ; | |
3600 | wxIcon *result; | |
3601 | PyObject * obj0 = 0 ; | |
3602 | char *kwnames[] = { | |
3603 | (char *) "loc", NULL | |
3604 | }; | |
3605 | ||
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
3608 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3609 | SWIG_fail; | |
3610 | if (arg1 == NULL) { | |
3611 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3612 | SWIG_fail; | |
3613 | } | |
3614 | { | |
3615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3616 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3617 | ||
3618 | wxPyEndAllowThreads(__tstate); | |
3619 | if (PyErr_Occurred()) SWIG_fail; | |
3620 | } | |
3621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3622 | return resultobj; | |
3623 | fail: | |
3624 | return NULL; | |
3625 | } | |
3626 | ||
3627 | ||
3628 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3629 | PyObject *resultobj; | |
3630 | wxBitmap *arg1 = 0 ; | |
3631 | wxIcon *result; | |
3632 | PyObject * obj0 = 0 ; | |
3633 | char *kwnames[] = { | |
3634 | (char *) "bmp", NULL | |
3635 | }; | |
3636 | ||
3637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3639 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3640 | SWIG_fail; | |
3641 | if (arg1 == NULL) { | |
3642 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3643 | SWIG_fail; | |
3644 | } | |
3645 | { | |
3646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3647 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3648 | ||
3649 | wxPyEndAllowThreads(__tstate); | |
3650 | if (PyErr_Occurred()) SWIG_fail; | |
3651 | } | |
3652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3653 | return resultobj; | |
3654 | fail: | |
3655 | return NULL; | |
3656 | } | |
3657 | ||
3658 | ||
3659 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3660 | PyObject *resultobj; | |
3661 | PyObject *arg1 = (PyObject *) 0 ; | |
3662 | wxIcon *result; | |
3663 | PyObject * obj0 = 0 ; | |
3664 | char *kwnames[] = { | |
3665 | (char *) "listOfStrings", NULL | |
3666 | }; | |
3667 | ||
3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3669 | arg1 = obj0; | |
3670 | { | |
3671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3672 | result = (wxIcon *)new_wxIcon(arg1); | |
3673 | ||
3674 | wxPyEndAllowThreads(__tstate); | |
3675 | if (PyErr_Occurred()) SWIG_fail; | |
3676 | } | |
3677 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3678 | return resultobj; | |
3679 | fail: | |
3680 | return NULL; | |
3681 | } | |
3682 | ||
3683 | ||
3684 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3685 | PyObject *resultobj; | |
3686 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3687 | bool result; | |
3688 | PyObject * obj0 = 0 ; | |
3689 | char *kwnames[] = { | |
3690 | (char *) "self", NULL | |
3691 | }; | |
3692 | ||
3693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
3694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3696 | { | |
3697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3698 | result = (bool)(arg1)->Ok(); | |
3699 | ||
3700 | wxPyEndAllowThreads(__tstate); | |
3701 | if (PyErr_Occurred()) SWIG_fail; | |
3702 | } | |
3703 | { | |
3704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3705 | } | |
3706 | return resultobj; | |
3707 | fail: | |
3708 | return NULL; | |
3709 | } | |
3710 | ||
3711 | ||
3712 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3713 | PyObject *resultobj; | |
3714 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3715 | int result; | |
3716 | PyObject * obj0 = 0 ; | |
3717 | char *kwnames[] = { | |
3718 | (char *) "self", NULL | |
3719 | }; | |
3720 | ||
3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
3722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3724 | { | |
3725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3726 | result = (int)(arg1)->GetWidth(); | |
3727 | ||
3728 | wxPyEndAllowThreads(__tstate); | |
3729 | if (PyErr_Occurred()) SWIG_fail; | |
3730 | } | |
3731 | resultobj = SWIG_FromInt((int)result); | |
3732 | return resultobj; | |
3733 | fail: | |
3734 | return NULL; | |
3735 | } | |
3736 | ||
3737 | ||
3738 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3739 | PyObject *resultobj; | |
3740 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3741 | int result; | |
3742 | PyObject * obj0 = 0 ; | |
3743 | char *kwnames[] = { | |
3744 | (char *) "self", NULL | |
3745 | }; | |
3746 | ||
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
3748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3750 | { | |
3751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3752 | result = (int)(arg1)->GetHeight(); | |
3753 | ||
3754 | wxPyEndAllowThreads(__tstate); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
3756 | } | |
3757 | resultobj = SWIG_FromInt((int)result); | |
3758 | return resultobj; | |
3759 | fail: | |
3760 | return NULL; | |
3761 | } | |
3762 | ||
3763 | ||
3764 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3765 | PyObject *resultobj; | |
3766 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3767 | int result; | |
3768 | PyObject * obj0 = 0 ; | |
3769 | char *kwnames[] = { | |
3770 | (char *) "self", NULL | |
3771 | }; | |
3772 | ||
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
3774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3776 | { | |
3777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3778 | result = (int)(arg1)->GetDepth(); | |
3779 | ||
3780 | wxPyEndAllowThreads(__tstate); | |
3781 | if (PyErr_Occurred()) SWIG_fail; | |
3782 | } | |
3783 | resultobj = SWIG_FromInt((int)result); | |
3784 | return resultobj; | |
3785 | fail: | |
3786 | return NULL; | |
3787 | } | |
3788 | ||
3789 | ||
3790 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3791 | PyObject *resultobj; | |
3792 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3793 | int arg2 ; | |
3794 | PyObject * obj0 = 0 ; | |
3795 | PyObject * obj1 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "self",(char *) "w", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3803 | arg2 = (int) SWIG_AsInt(obj1); | |
3804 | if (PyErr_Occurred()) SWIG_fail; | |
3805 | { | |
3806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3807 | (arg1)->SetWidth(arg2); | |
3808 | ||
3809 | wxPyEndAllowThreads(__tstate); | |
3810 | if (PyErr_Occurred()) SWIG_fail; | |
3811 | } | |
3812 | Py_INCREF(Py_None); resultobj = Py_None; | |
3813 | return resultobj; | |
3814 | fail: | |
3815 | return NULL; | |
3816 | } | |
3817 | ||
3818 | ||
3819 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3820 | PyObject *resultobj; | |
3821 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3822 | int arg2 ; | |
3823 | PyObject * obj0 = 0 ; | |
3824 | PyObject * obj1 = 0 ; | |
3825 | char *kwnames[] = { | |
3826 | (char *) "self",(char *) "h", NULL | |
3827 | }; | |
3828 | ||
3829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3832 | arg2 = (int) SWIG_AsInt(obj1); | |
3833 | if (PyErr_Occurred()) SWIG_fail; | |
3834 | { | |
3835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3836 | (arg1)->SetHeight(arg2); | |
3837 | ||
3838 | wxPyEndAllowThreads(__tstate); | |
3839 | if (PyErr_Occurred()) SWIG_fail; | |
3840 | } | |
3841 | Py_INCREF(Py_None); resultobj = Py_None; | |
3842 | return resultobj; | |
3843 | fail: | |
3844 | return NULL; | |
3845 | } | |
3846 | ||
3847 | ||
3848 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject *resultobj; | |
3850 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3851 | int arg2 ; | |
3852 | PyObject * obj0 = 0 ; | |
3853 | PyObject * obj1 = 0 ; | |
3854 | char *kwnames[] = { | |
3855 | (char *) "self",(char *) "d", NULL | |
3856 | }; | |
3857 | ||
3858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3861 | arg2 = (int) SWIG_AsInt(obj1); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | { | |
3864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3865 | (arg1)->SetDepth(arg2); | |
3866 | ||
3867 | wxPyEndAllowThreads(__tstate); | |
3868 | if (PyErr_Occurred()) SWIG_fail; | |
3869 | } | |
3870 | Py_INCREF(Py_None); resultobj = Py_None; | |
3871 | return resultobj; | |
3872 | fail: | |
3873 | return NULL; | |
3874 | } | |
3875 | ||
3876 | ||
3877 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3878 | PyObject *resultobj; | |
3879 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3880 | wxBitmap *arg2 = 0 ; | |
3881 | PyObject * obj0 = 0 ; | |
3882 | PyObject * obj1 = 0 ; | |
3883 | char *kwnames[] = { | |
3884 | (char *) "self",(char *) "bmp", NULL | |
3885 | }; | |
3886 | ||
3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3891 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3892 | SWIG_fail; | |
3893 | if (arg2 == NULL) { | |
3894 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3895 | SWIG_fail; | |
3896 | } | |
3897 | { | |
3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3899 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
3900 | ||
3901 | wxPyEndAllowThreads(__tstate); | |
3902 | if (PyErr_Occurred()) SWIG_fail; | |
3903 | } | |
3904 | Py_INCREF(Py_None); resultobj = Py_None; | |
3905 | return resultobj; | |
3906 | fail: | |
3907 | return NULL; | |
3908 | } | |
3909 | ||
3910 | ||
3911 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
3912 | PyObject *obj; | |
3913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3914 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
3915 | Py_INCREF(obj); | |
3916 | return Py_BuildValue((char *)""); | |
3917 | } | |
3918 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3919 | PyObject *resultobj; | |
3920 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
3921 | int arg2 = (int) 0 ; | |
3922 | wxIconLocation *result; | |
3923 | bool temp1 = False ; | |
3924 | PyObject * obj0 = 0 ; | |
3925 | PyObject * obj1 = 0 ; | |
3926 | char *kwnames[] = { | |
3927 | (char *) "filename",(char *) "num", NULL | |
3928 | }; | |
3929 | ||
3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; | |
3931 | if (obj0) { | |
3932 | { | |
3933 | arg1 = wxString_in_helper(obj0); | |
3934 | if (arg1 == NULL) SWIG_fail; | |
3935 | temp1 = True; | |
3936 | } | |
3937 | } | |
3938 | if (obj1) { | |
3939 | arg2 = (int) SWIG_AsInt(obj1); | |
3940 | if (PyErr_Occurred()) SWIG_fail; | |
3941 | } | |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
3945 | ||
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); | |
3950 | { | |
3951 | if (temp1) | |
3952 | delete arg1; | |
3953 | } | |
3954 | return resultobj; | |
3955 | fail: | |
3956 | { | |
3957 | if (temp1) | |
3958 | delete arg1; | |
3959 | } | |
3960 | return NULL; | |
3961 | } | |
3962 | ||
3963 | ||
3964 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3965 | PyObject *resultobj; | |
3966 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3967 | PyObject * obj0 = 0 ; | |
3968 | char *kwnames[] = { | |
3969 | (char *) "self", NULL | |
3970 | }; | |
3971 | ||
3972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
3973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
3974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3975 | { | |
3976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3977 | delete arg1; | |
3978 | ||
3979 | wxPyEndAllowThreads(__tstate); | |
3980 | if (PyErr_Occurred()) SWIG_fail; | |
3981 | } | |
3982 | Py_INCREF(Py_None); resultobj = Py_None; | |
3983 | return resultobj; | |
3984 | fail: | |
3985 | return NULL; | |
3986 | } | |
3987 | ||
3988 | ||
3989 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3990 | PyObject *resultobj; | |
3991 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
3992 | bool result; | |
3993 | PyObject * obj0 = 0 ; | |
3994 | char *kwnames[] = { | |
3995 | (char *) "self", NULL | |
3996 | }; | |
3997 | ||
3998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
3999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4001 | { | |
4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4003 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4004 | ||
4005 | wxPyEndAllowThreads(__tstate); | |
4006 | if (PyErr_Occurred()) SWIG_fail; | |
4007 | } | |
4008 | { | |
4009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4010 | } | |
4011 | return resultobj; | |
4012 | fail: | |
4013 | return NULL; | |
4014 | } | |
4015 | ||
4016 | ||
4017 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4018 | PyObject *resultobj; | |
4019 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4020 | wxString *arg2 = 0 ; | |
4021 | bool temp2 = False ; | |
4022 | PyObject * obj0 = 0 ; | |
4023 | PyObject * obj1 = 0 ; | |
4024 | char *kwnames[] = { | |
4025 | (char *) "self",(char *) "filename", NULL | |
4026 | }; | |
4027 | ||
4028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4031 | { | |
4032 | arg2 = wxString_in_helper(obj1); | |
4033 | if (arg2 == NULL) SWIG_fail; | |
4034 | temp2 = True; | |
4035 | } | |
4036 | { | |
4037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4038 | (arg1)->SetFileName((wxString const &)*arg2); | |
4039 | ||
4040 | wxPyEndAllowThreads(__tstate); | |
4041 | if (PyErr_Occurred()) SWIG_fail; | |
4042 | } | |
4043 | Py_INCREF(Py_None); resultobj = Py_None; | |
4044 | { | |
4045 | if (temp2) | |
4046 | delete arg2; | |
4047 | } | |
4048 | return resultobj; | |
4049 | fail: | |
4050 | { | |
4051 | if (temp2) | |
4052 | delete arg2; | |
4053 | } | |
4054 | return NULL; | |
4055 | } | |
4056 | ||
4057 | ||
4058 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4059 | PyObject *resultobj; | |
4060 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4061 | wxString *result; | |
4062 | PyObject * obj0 = 0 ; | |
4063 | char *kwnames[] = { | |
4064 | (char *) "self", NULL | |
4065 | }; | |
4066 | ||
4067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4070 | { | |
4071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4072 | { | |
4073 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4074 | result = (wxString *) &_result_ref; | |
4075 | } | |
4076 | ||
4077 | wxPyEndAllowThreads(__tstate); | |
4078 | if (PyErr_Occurred()) SWIG_fail; | |
4079 | } | |
4080 | { | |
4081 | #if wxUSE_UNICODE | |
4082 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4083 | #else | |
4084 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4085 | #endif | |
4086 | } | |
4087 | return resultobj; | |
4088 | fail: | |
4089 | return NULL; | |
4090 | } | |
4091 | ||
4092 | ||
4093 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4094 | PyObject *resultobj; | |
4095 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4096 | int arg2 ; | |
4097 | PyObject * obj0 = 0 ; | |
4098 | PyObject * obj1 = 0 ; | |
4099 | char *kwnames[] = { | |
4100 | (char *) "self",(char *) "num", NULL | |
4101 | }; | |
4102 | ||
4103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; | |
4104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4106 | arg2 = (int) SWIG_AsInt(obj1); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | { | |
4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4110 | wxIconLocation_SetIndex(arg1,arg2); | |
4111 | ||
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | Py_INCREF(Py_None); resultobj = Py_None; | |
4116 | return resultobj; | |
4117 | fail: | |
4118 | return NULL; | |
4119 | } | |
4120 | ||
4121 | ||
4122 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4123 | PyObject *resultobj; | |
4124 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4125 | int result; | |
4126 | PyObject * obj0 = 0 ; | |
4127 | char *kwnames[] = { | |
4128 | (char *) "self", NULL | |
4129 | }; | |
4130 | ||
4131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4134 | { | |
4135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4136 | result = (int)wxIconLocation_GetIndex(arg1); | |
4137 | ||
4138 | wxPyEndAllowThreads(__tstate); | |
4139 | if (PyErr_Occurred()) SWIG_fail; | |
4140 | } | |
4141 | resultobj = SWIG_FromInt((int)result); | |
4142 | return resultobj; | |
4143 | fail: | |
4144 | return NULL; | |
4145 | } | |
4146 | ||
4147 | ||
4148 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
4149 | PyObject *obj; | |
4150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4151 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4152 | Py_INCREF(obj); | |
4153 | return Py_BuildValue((char *)""); | |
4154 | } | |
4155 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject *resultobj; | |
4157 | wxIconBundle *result; | |
4158 | char *kwnames[] = { | |
4159 | NULL | |
4160 | }; | |
4161 | ||
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4163 | { | |
4164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4165 | result = (wxIconBundle *)new wxIconBundle(); | |
4166 | ||
4167 | wxPyEndAllowThreads(__tstate); | |
4168 | if (PyErr_Occurred()) SWIG_fail; | |
4169 | } | |
4170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4171 | return resultobj; | |
4172 | fail: | |
4173 | return NULL; | |
4174 | } | |
4175 | ||
4176 | ||
4177 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4178 | PyObject *resultobj; | |
4179 | wxString *arg1 = 0 ; | |
4180 | long arg2 ; | |
4181 | wxIconBundle *result; | |
4182 | bool temp1 = False ; | |
4183 | PyObject * obj0 = 0 ; | |
4184 | PyObject * obj1 = 0 ; | |
4185 | char *kwnames[] = { | |
4186 | (char *) "file",(char *) "type", NULL | |
4187 | }; | |
4188 | ||
4189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; | |
4190 | { | |
4191 | arg1 = wxString_in_helper(obj0); | |
4192 | if (arg1 == NULL) SWIG_fail; | |
4193 | temp1 = True; | |
4194 | } | |
4195 | arg2 = (long) SWIG_AsLong(obj1); | |
4196 | if (PyErr_Occurred()) SWIG_fail; | |
4197 | { | |
4198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4199 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4200 | ||
4201 | wxPyEndAllowThreads(__tstate); | |
4202 | if (PyErr_Occurred()) SWIG_fail; | |
4203 | } | |
4204 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4205 | { | |
4206 | if (temp1) | |
4207 | delete arg1; | |
4208 | } | |
4209 | return resultobj; | |
4210 | fail: | |
4211 | { | |
4212 | if (temp1) | |
4213 | delete arg1; | |
4214 | } | |
4215 | return NULL; | |
4216 | } | |
4217 | ||
4218 | ||
4219 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4220 | PyObject *resultobj; | |
4221 | wxIcon *arg1 = 0 ; | |
4222 | wxIconBundle *result; | |
4223 | PyObject * obj0 = 0 ; | |
4224 | char *kwnames[] = { | |
4225 | (char *) "icon", NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4230 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4231 | SWIG_fail; | |
4232 | if (arg1 == NULL) { | |
4233 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4234 | SWIG_fail; | |
4235 | } | |
4236 | { | |
4237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4238 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4239 | ||
4240 | wxPyEndAllowThreads(__tstate); | |
4241 | if (PyErr_Occurred()) SWIG_fail; | |
4242 | } | |
4243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4244 | return resultobj; | |
4245 | fail: | |
4246 | return NULL; | |
4247 | } | |
4248 | ||
4249 | ||
4250 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4251 | PyObject *resultobj; | |
4252 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4253 | PyObject * obj0 = 0 ; | |
4254 | char *kwnames[] = { | |
4255 | (char *) "self", NULL | |
4256 | }; | |
4257 | ||
4258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4261 | { | |
4262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4263 | delete arg1; | |
4264 | ||
4265 | wxPyEndAllowThreads(__tstate); | |
4266 | if (PyErr_Occurred()) SWIG_fail; | |
4267 | } | |
4268 | Py_INCREF(Py_None); resultobj = Py_None; | |
4269 | return resultobj; | |
4270 | fail: | |
4271 | return NULL; | |
4272 | } | |
4273 | ||
4274 | ||
4275 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4276 | PyObject *resultobj; | |
4277 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4278 | wxIcon *arg2 = 0 ; | |
4279 | PyObject * obj0 = 0 ; | |
4280 | PyObject * obj1 = 0 ; | |
4281 | char *kwnames[] = { | |
4282 | (char *) "self",(char *) "icon", NULL | |
4283 | }; | |
4284 | ||
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4288 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4289 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4290 | SWIG_fail; | |
4291 | if (arg2 == NULL) { | |
4292 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4293 | SWIG_fail; | |
4294 | } | |
4295 | { | |
4296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4297 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4298 | ||
4299 | wxPyEndAllowThreads(__tstate); | |
4300 | if (PyErr_Occurred()) SWIG_fail; | |
4301 | } | |
4302 | Py_INCREF(Py_None); resultobj = Py_None; | |
4303 | return resultobj; | |
4304 | fail: | |
4305 | return NULL; | |
4306 | } | |
4307 | ||
4308 | ||
4309 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4310 | PyObject *resultobj; | |
4311 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4312 | wxString *arg2 = 0 ; | |
4313 | long arg3 ; | |
4314 | bool temp2 = False ; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | PyObject * obj1 = 0 ; | |
4317 | PyObject * obj2 = 0 ; | |
4318 | char *kwnames[] = { | |
4319 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4320 | }; | |
4321 | ||
4322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4325 | { | |
4326 | arg2 = wxString_in_helper(obj1); | |
4327 | if (arg2 == NULL) SWIG_fail; | |
4328 | temp2 = True; | |
4329 | } | |
4330 | arg3 = (long) SWIG_AsLong(obj2); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | { | |
4333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4334 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4335 | ||
4336 | wxPyEndAllowThreads(__tstate); | |
4337 | if (PyErr_Occurred()) SWIG_fail; | |
4338 | } | |
4339 | Py_INCREF(Py_None); resultobj = Py_None; | |
4340 | { | |
4341 | if (temp2) | |
4342 | delete arg2; | |
4343 | } | |
4344 | return resultobj; | |
4345 | fail: | |
4346 | { | |
4347 | if (temp2) | |
4348 | delete arg2; | |
4349 | } | |
4350 | return NULL; | |
4351 | } | |
4352 | ||
4353 | ||
4354 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4355 | PyObject *resultobj; | |
4356 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4357 | wxSize *arg2 = 0 ; | |
4358 | wxIcon *result; | |
4359 | wxSize temp2 ; | |
4360 | PyObject * obj0 = 0 ; | |
4361 | PyObject * obj1 = 0 ; | |
4362 | char *kwnames[] = { | |
4363 | (char *) "self",(char *) "size", NULL | |
4364 | }; | |
4365 | ||
4366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4369 | { | |
4370 | arg2 = &temp2; | |
4371 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4372 | } | |
4373 | { | |
4374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4375 | { | |
4376 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4377 | result = (wxIcon *) &_result_ref; | |
4378 | } | |
4379 | ||
4380 | wxPyEndAllowThreads(__tstate); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | } | |
4383 | { | |
4384 | wxIcon* resultptr = new wxIcon(*result); | |
4385 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4386 | } | |
4387 | return resultobj; | |
4388 | fail: | |
4389 | return NULL; | |
4390 | } | |
4391 | ||
4392 | ||
4393 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4394 | PyObject *obj; | |
4395 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4396 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4397 | Py_INCREF(obj); | |
4398 | return Py_BuildValue((char *)""); | |
4399 | } | |
4400 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4401 | PyObject *resultobj; | |
4402 | wxString *arg1 = (wxString *) 0 ; | |
4403 | long arg2 ; | |
4404 | int arg3 = (int) 0 ; | |
4405 | int arg4 = (int) 0 ; | |
4406 | wxCursor *result; | |
4407 | bool temp1 = False ; | |
4408 | PyObject * obj0 = 0 ; | |
4409 | PyObject * obj1 = 0 ; | |
4410 | PyObject * obj2 = 0 ; | |
4411 | PyObject * obj3 = 0 ; | |
4412 | char *kwnames[] = { | |
4413 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4414 | }; | |
4415 | ||
4416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4417 | { | |
4418 | arg1 = wxString_in_helper(obj0); | |
4419 | if (arg1 == NULL) SWIG_fail; | |
4420 | temp1 = True; | |
4421 | } | |
4422 | arg2 = (long) SWIG_AsLong(obj1); | |
4423 | if (PyErr_Occurred()) SWIG_fail; | |
4424 | if (obj2) { | |
4425 | arg3 = (int) SWIG_AsInt(obj2); | |
4426 | if (PyErr_Occurred()) SWIG_fail; | |
4427 | } | |
4428 | if (obj3) { | |
4429 | arg4 = (int) SWIG_AsInt(obj3); | |
4430 | if (PyErr_Occurred()) SWIG_fail; | |
4431 | } | |
4432 | { | |
4433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4434 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4435 | ||
4436 | wxPyEndAllowThreads(__tstate); | |
4437 | if (PyErr_Occurred()) SWIG_fail; | |
4438 | } | |
4439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4440 | { | |
4441 | if (temp1) | |
4442 | delete arg1; | |
4443 | } | |
4444 | return resultobj; | |
4445 | fail: | |
4446 | { | |
4447 | if (temp1) | |
4448 | delete arg1; | |
4449 | } | |
4450 | return NULL; | |
4451 | } | |
4452 | ||
4453 | ||
4454 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4455 | PyObject *resultobj; | |
4456 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4457 | PyObject * obj0 = 0 ; | |
4458 | char *kwnames[] = { | |
4459 | (char *) "self", NULL | |
4460 | }; | |
4461 | ||
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4465 | { | |
4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4467 | delete arg1; | |
4468 | ||
4469 | wxPyEndAllowThreads(__tstate); | |
4470 | if (PyErr_Occurred()) SWIG_fail; | |
4471 | } | |
4472 | Py_INCREF(Py_None); resultobj = Py_None; | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
4479 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4480 | PyObject *resultobj; | |
4481 | int arg1 ; | |
4482 | wxCursor *result; | |
4483 | PyObject * obj0 = 0 ; | |
4484 | char *kwnames[] = { | |
4485 | (char *) "id", NULL | |
4486 | }; | |
4487 | ||
4488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; | |
4489 | arg1 = (int) SWIG_AsInt(obj0); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | { | |
4492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4493 | result = (wxCursor *)new wxCursor(arg1); | |
4494 | ||
4495 | wxPyEndAllowThreads(__tstate); | |
4496 | if (PyErr_Occurred()) SWIG_fail; | |
4497 | } | |
4498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4499 | return resultobj; | |
4500 | fail: | |
4501 | return NULL; | |
4502 | } | |
4503 | ||
4504 | ||
4505 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4506 | PyObject *resultobj; | |
4507 | wxImage *arg1 = 0 ; | |
4508 | wxCursor *result; | |
4509 | PyObject * obj0 = 0 ; | |
4510 | char *kwnames[] = { | |
4511 | (char *) "image", NULL | |
4512 | }; | |
4513 | ||
4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
4516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4517 | SWIG_fail; | |
4518 | if (arg1 == NULL) { | |
4519 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4520 | SWIG_fail; | |
4521 | } | |
4522 | { | |
4523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4524 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4525 | ||
4526 | wxPyEndAllowThreads(__tstate); | |
4527 | if (PyErr_Occurred()) SWIG_fail; | |
4528 | } | |
4529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4530 | return resultobj; | |
4531 | fail: | |
4532 | return NULL; | |
4533 | } | |
4534 | ||
4535 | ||
4536 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4537 | PyObject *resultobj; | |
4538 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4539 | bool result; | |
4540 | PyObject * obj0 = 0 ; | |
4541 | char *kwnames[] = { | |
4542 | (char *) "self", NULL | |
4543 | }; | |
4544 | ||
4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4548 | { | |
4549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4550 | result = (bool)(arg1)->Ok(); | |
4551 | ||
4552 | wxPyEndAllowThreads(__tstate); | |
4553 | if (PyErr_Occurred()) SWIG_fail; | |
4554 | } | |
4555 | { | |
4556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4557 | } | |
4558 | return resultobj; | |
4559 | fail: | |
4560 | return NULL; | |
4561 | } | |
4562 | ||
4563 | ||
4564 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
4565 | PyObject *obj; | |
4566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4567 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
4568 | Py_INCREF(obj); | |
4569 | return Py_BuildValue((char *)""); | |
4570 | } | |
4571 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4572 | PyObject *resultobj; | |
4573 | int arg1 = (int) 0 ; | |
4574 | int arg2 = (int) 0 ; | |
4575 | int arg3 = (int) 0 ; | |
4576 | int arg4 = (int) 0 ; | |
4577 | wxRegion *result; | |
4578 | PyObject * obj0 = 0 ; | |
4579 | PyObject * obj1 = 0 ; | |
4580 | PyObject * obj2 = 0 ; | |
4581 | PyObject * obj3 = 0 ; | |
4582 | char *kwnames[] = { | |
4583 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4584 | }; | |
4585 | ||
4586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4587 | if (obj0) { | |
4588 | arg1 = (int) SWIG_AsInt(obj0); | |
4589 | if (PyErr_Occurred()) SWIG_fail; | |
4590 | } | |
4591 | if (obj1) { | |
4592 | arg2 = (int) SWIG_AsInt(obj1); | |
4593 | if (PyErr_Occurred()) SWIG_fail; | |
4594 | } | |
4595 | if (obj2) { | |
4596 | arg3 = (int) SWIG_AsInt(obj2); | |
4597 | if (PyErr_Occurred()) SWIG_fail; | |
4598 | } | |
4599 | if (obj3) { | |
4600 | arg4 = (int) SWIG_AsInt(obj3); | |
4601 | if (PyErr_Occurred()) SWIG_fail; | |
4602 | } | |
4603 | { | |
4604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4605 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
4606 | ||
4607 | wxPyEndAllowThreads(__tstate); | |
4608 | if (PyErr_Occurred()) SWIG_fail; | |
4609 | } | |
4610 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4611 | return resultobj; | |
4612 | fail: | |
4613 | return NULL; | |
4614 | } | |
4615 | ||
4616 | ||
4617 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4618 | PyObject *resultobj; | |
4619 | wxBitmap *arg1 = 0 ; | |
4620 | wxColour const &arg2_defvalue = wxNullColour ; | |
4621 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
4622 | int arg3 = (int) 0 ; | |
4623 | wxRegion *result; | |
4624 | wxColour temp2 ; | |
4625 | PyObject * obj0 = 0 ; | |
4626 | PyObject * obj1 = 0 ; | |
4627 | PyObject * obj2 = 0 ; | |
4628 | char *kwnames[] = { | |
4629 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
4630 | }; | |
4631 | ||
4632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4635 | SWIG_fail; | |
4636 | if (arg1 == NULL) { | |
4637 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4638 | SWIG_fail; | |
4639 | } | |
4640 | if (obj1) { | |
4641 | { | |
4642 | arg2 = &temp2; | |
4643 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4644 | } | |
4645 | } | |
4646 | if (obj2) { | |
4647 | arg3 = (int) SWIG_AsInt(obj2); | |
4648 | if (PyErr_Occurred()) SWIG_fail; | |
4649 | } | |
4650 | { | |
4651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4652 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
4653 | ||
4654 | wxPyEndAllowThreads(__tstate); | |
4655 | if (PyErr_Occurred()) SWIG_fail; | |
4656 | } | |
4657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4658 | return resultobj; | |
4659 | fail: | |
4660 | return NULL; | |
4661 | } | |
4662 | ||
4663 | ||
4664 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj; | |
4666 | int arg1 ; | |
4667 | wxPoint *arg2 = (wxPoint *) 0 ; | |
4668 | int arg3 = (int) wxWINDING_RULE ; | |
4669 | wxRegion *result; | |
4670 | PyObject * obj0 = 0 ; | |
4671 | PyObject * obj1 = 0 ; | |
4672 | char *kwnames[] = { | |
4673 | (char *) "points",(char *) "fillStyle", NULL | |
4674 | }; | |
4675 | ||
4676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; | |
4677 | { | |
4678 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
4679 | if (arg2 == NULL) SWIG_fail; | |
4680 | } | |
4681 | if (obj1) { | |
4682 | arg3 = (int) SWIG_AsInt(obj1); | |
4683 | if (PyErr_Occurred()) SWIG_fail; | |
4684 | } | |
4685 | { | |
4686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4687 | result = (wxRegion *)new_wxRegion(arg1,arg2,arg3); | |
4688 | ||
4689 | wxPyEndAllowThreads(__tstate); | |
4690 | if (PyErr_Occurred()) SWIG_fail; | |
4691 | } | |
4692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
4693 | { | |
4694 | if (arg2) delete [] arg2; | |
4695 | } | |
4696 | return resultobj; | |
4697 | fail: | |
4698 | { | |
4699 | if (arg2) delete [] arg2; | |
4700 | } | |
4701 | return NULL; | |
4702 | } | |
4703 | ||
4704 | ||
4705 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4706 | PyObject *resultobj; | |
4707 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4708 | PyObject * obj0 = 0 ; | |
4709 | char *kwnames[] = { | |
4710 | (char *) "self", NULL | |
4711 | }; | |
4712 | ||
4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
4714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4716 | { | |
4717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4718 | delete arg1; | |
4719 | ||
4720 | wxPyEndAllowThreads(__tstate); | |
4721 | if (PyErr_Occurred()) SWIG_fail; | |
4722 | } | |
4723 | Py_INCREF(Py_None); resultobj = Py_None; | |
4724 | return resultobj; | |
4725 | fail: | |
4726 | return NULL; | |
4727 | } | |
4728 | ||
4729 | ||
4730 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4731 | PyObject *resultobj; | |
4732 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4733 | PyObject * obj0 = 0 ; | |
4734 | char *kwnames[] = { | |
4735 | (char *) "self", NULL | |
4736 | }; | |
4737 | ||
4738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
4739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4741 | { | |
4742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4743 | (arg1)->Clear(); | |
4744 | ||
4745 | wxPyEndAllowThreads(__tstate); | |
4746 | if (PyErr_Occurred()) SWIG_fail; | |
4747 | } | |
4748 | Py_INCREF(Py_None); resultobj = Py_None; | |
4749 | return resultobj; | |
4750 | fail: | |
4751 | return NULL; | |
4752 | } | |
4753 | ||
4754 | ||
4755 | static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4756 | PyObject *resultobj; | |
4757 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4758 | int arg2 ; | |
4759 | int arg3 ; | |
4760 | int result; | |
4761 | PyObject * obj0 = 0 ; | |
4762 | PyObject * obj1 = 0 ; | |
4763 | PyObject * obj2 = 0 ; | |
4764 | char *kwnames[] = { | |
4765 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4766 | }; | |
4767 | ||
4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4771 | arg2 = (int) SWIG_AsInt(obj1); | |
4772 | if (PyErr_Occurred()) SWIG_fail; | |
4773 | arg3 = (int) SWIG_AsInt(obj2); | |
4774 | if (PyErr_Occurred()) SWIG_fail; | |
4775 | { | |
4776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4777 | result = (int)(arg1)->Contains(arg2,arg3); | |
4778 | ||
4779 | wxPyEndAllowThreads(__tstate); | |
4780 | if (PyErr_Occurred()) SWIG_fail; | |
4781 | } | |
4782 | resultobj = SWIG_FromInt((int)result); | |
4783 | return resultobj; | |
4784 | fail: | |
4785 | return NULL; | |
4786 | } | |
4787 | ||
4788 | ||
4789 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4790 | PyObject *resultobj; | |
4791 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4792 | wxPoint *arg2 = 0 ; | |
4793 | int result; | |
4794 | wxPoint temp2 ; | |
4795 | PyObject * obj0 = 0 ; | |
4796 | PyObject * obj1 = 0 ; | |
4797 | char *kwnames[] = { | |
4798 | (char *) "self",(char *) "pt", NULL | |
4799 | }; | |
4800 | ||
4801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
4802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4804 | { | |
4805 | arg2 = &temp2; | |
4806 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4807 | } | |
4808 | { | |
4809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4810 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
4811 | ||
4812 | wxPyEndAllowThreads(__tstate); | |
4813 | if (PyErr_Occurred()) SWIG_fail; | |
4814 | } | |
4815 | resultobj = SWIG_FromInt((int)result); | |
4816 | return resultobj; | |
4817 | fail: | |
4818 | return NULL; | |
4819 | } | |
4820 | ||
4821 | ||
4822 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4823 | PyObject *resultobj; | |
4824 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4825 | wxRect *arg2 = 0 ; | |
4826 | int result; | |
4827 | wxRect temp2 ; | |
4828 | PyObject * obj0 = 0 ; | |
4829 | PyObject * obj1 = 0 ; | |
4830 | char *kwnames[] = { | |
4831 | (char *) "self",(char *) "rect", NULL | |
4832 | }; | |
4833 | ||
4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
4835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4837 | { | |
4838 | arg2 = &temp2; | |
4839 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4840 | } | |
4841 | { | |
4842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4843 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
4844 | ||
4845 | wxPyEndAllowThreads(__tstate); | |
4846 | if (PyErr_Occurred()) SWIG_fail; | |
4847 | } | |
4848 | resultobj = SWIG_FromInt((int)result); | |
4849 | return resultobj; | |
4850 | fail: | |
4851 | return NULL; | |
4852 | } | |
4853 | ||
4854 | ||
4855 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4856 | PyObject *resultobj; | |
4857 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4858 | int arg2 ; | |
4859 | int arg3 ; | |
4860 | int arg4 ; | |
4861 | int arg5 ; | |
4862 | int result; | |
4863 | PyObject * obj0 = 0 ; | |
4864 | PyObject * obj1 = 0 ; | |
4865 | PyObject * obj2 = 0 ; | |
4866 | PyObject * obj3 = 0 ; | |
4867 | PyObject * obj4 = 0 ; | |
4868 | char *kwnames[] = { | |
4869 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
4870 | }; | |
4871 | ||
4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4875 | arg2 = (int) SWIG_AsInt(obj1); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | arg3 = (int) SWIG_AsInt(obj2); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | arg4 = (int) SWIG_AsInt(obj3); | |
4880 | if (PyErr_Occurred()) SWIG_fail; | |
4881 | arg5 = (int) SWIG_AsInt(obj4); | |
4882 | if (PyErr_Occurred()) SWIG_fail; | |
4883 | { | |
4884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4885 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
4886 | ||
4887 | wxPyEndAllowThreads(__tstate); | |
4888 | if (PyErr_Occurred()) SWIG_fail; | |
4889 | } | |
4890 | resultobj = SWIG_FromInt((int)result); | |
4891 | return resultobj; | |
4892 | fail: | |
4893 | return NULL; | |
4894 | } | |
4895 | ||
4896 | ||
4897 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4898 | PyObject *resultobj; | |
4899 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4900 | wxRect result; | |
4901 | PyObject * obj0 = 0 ; | |
4902 | char *kwnames[] = { | |
4903 | (char *) "self", NULL | |
4904 | }; | |
4905 | ||
4906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
4907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4909 | { | |
4910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4911 | result = (arg1)->GetBox(); | |
4912 | ||
4913 | wxPyEndAllowThreads(__tstate); | |
4914 | if (PyErr_Occurred()) SWIG_fail; | |
4915 | } | |
4916 | { | |
4917 | wxRect * resultptr; | |
4918 | resultptr = new wxRect((wxRect &) result); | |
4919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4920 | } | |
4921 | return resultobj; | |
4922 | fail: | |
4923 | return NULL; | |
4924 | } | |
4925 | ||
4926 | ||
4927 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4928 | PyObject *resultobj; | |
4929 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4930 | int arg2 ; | |
4931 | int arg3 ; | |
4932 | int arg4 ; | |
4933 | int arg5 ; | |
4934 | bool result; | |
4935 | PyObject * obj0 = 0 ; | |
4936 | PyObject * obj1 = 0 ; | |
4937 | PyObject * obj2 = 0 ; | |
4938 | PyObject * obj3 = 0 ; | |
4939 | PyObject * obj4 = 0 ; | |
4940 | char *kwnames[] = { | |
4941 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4942 | }; | |
4943 | ||
4944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4947 | arg2 = (int) SWIG_AsInt(obj1); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | arg3 = (int) SWIG_AsInt(obj2); | |
4950 | if (PyErr_Occurred()) SWIG_fail; | |
4951 | arg4 = (int) SWIG_AsInt(obj3); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
4953 | arg5 = (int) SWIG_AsInt(obj4); | |
4954 | if (PyErr_Occurred()) SWIG_fail; | |
4955 | { | |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
4958 | ||
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | { | |
4963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4964 | } | |
4965 | return resultobj; | |
4966 | fail: | |
4967 | return NULL; | |
4968 | } | |
4969 | ||
4970 | ||
4971 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4972 | PyObject *resultobj; | |
4973 | wxRegion *arg1 = (wxRegion *) 0 ; | |
4974 | wxRect *arg2 = 0 ; | |
4975 | bool result; | |
4976 | wxRect temp2 ; | |
4977 | PyObject * obj0 = 0 ; | |
4978 | PyObject * obj1 = 0 ; | |
4979 | char *kwnames[] = { | |
4980 | (char *) "self",(char *) "rect", NULL | |
4981 | }; | |
4982 | ||
4983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
4985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4986 | { | |
4987 | arg2 = &temp2; | |
4988 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4989 | } | |
4990 | { | |
4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4992 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
4993 | ||
4994 | wxPyEndAllowThreads(__tstate); | |
4995 | if (PyErr_Occurred()) SWIG_fail; | |
4996 | } | |
4997 | { | |
4998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4999 | } | |
5000 | return resultobj; | |
5001 | fail: | |
5002 | return NULL; | |
5003 | } | |
5004 | ||
5005 | ||
5006 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5007 | PyObject *resultobj; | |
5008 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5009 | wxRegion *arg2 = 0 ; | |
5010 | bool result; | |
5011 | PyObject * obj0 = 0 ; | |
5012 | PyObject * obj1 = 0 ; | |
5013 | char *kwnames[] = { | |
5014 | (char *) "self",(char *) "region", NULL | |
5015 | }; | |
5016 | ||
5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5020 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5021 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5022 | SWIG_fail; | |
5023 | if (arg2 == NULL) { | |
5024 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5025 | SWIG_fail; | |
5026 | } | |
5027 | { | |
5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5029 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5030 | ||
5031 | wxPyEndAllowThreads(__tstate); | |
5032 | if (PyErr_Occurred()) SWIG_fail; | |
5033 | } | |
5034 | { | |
5035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5036 | } | |
5037 | return resultobj; | |
5038 | fail: | |
5039 | return NULL; | |
5040 | } | |
5041 | ||
5042 | ||
5043 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject *resultobj; | |
5045 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5046 | bool result; | |
5047 | PyObject * obj0 = 0 ; | |
5048 | char *kwnames[] = { | |
5049 | (char *) "self", NULL | |
5050 | }; | |
5051 | ||
5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5055 | { | |
5056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5057 | result = (bool)(arg1)->IsEmpty(); | |
5058 | ||
5059 | wxPyEndAllowThreads(__tstate); | |
5060 | if (PyErr_Occurred()) SWIG_fail; | |
5061 | } | |
5062 | { | |
5063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5064 | } | |
5065 | return resultobj; | |
5066 | fail: | |
5067 | return NULL; | |
5068 | } | |
5069 | ||
5070 | ||
5071 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5072 | PyObject *resultobj; | |
5073 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5074 | int arg2 ; | |
5075 | int arg3 ; | |
5076 | int arg4 ; | |
5077 | int arg5 ; | |
5078 | bool result; | |
5079 | PyObject * obj0 = 0 ; | |
5080 | PyObject * obj1 = 0 ; | |
5081 | PyObject * obj2 = 0 ; | |
5082 | PyObject * obj3 = 0 ; | |
5083 | PyObject * obj4 = 0 ; | |
5084 | char *kwnames[] = { | |
5085 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5086 | }; | |
5087 | ||
5088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5091 | arg2 = (int) SWIG_AsInt(obj1); | |
5092 | if (PyErr_Occurred()) SWIG_fail; | |
5093 | arg3 = (int) SWIG_AsInt(obj2); | |
5094 | if (PyErr_Occurred()) SWIG_fail; | |
5095 | arg4 = (int) SWIG_AsInt(obj3); | |
5096 | if (PyErr_Occurred()) SWIG_fail; | |
5097 | arg5 = (int) SWIG_AsInt(obj4); | |
5098 | if (PyErr_Occurred()) SWIG_fail; | |
5099 | { | |
5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5101 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
5102 | ||
5103 | wxPyEndAllowThreads(__tstate); | |
5104 | if (PyErr_Occurred()) SWIG_fail; | |
5105 | } | |
5106 | { | |
5107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5108 | } | |
5109 | return resultobj; | |
5110 | fail: | |
5111 | return NULL; | |
5112 | } | |
5113 | ||
5114 | ||
5115 | static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5116 | PyObject *resultobj; | |
5117 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5118 | wxRect *arg2 = 0 ; | |
5119 | bool result; | |
5120 | wxRect temp2 ; | |
5121 | PyObject * obj0 = 0 ; | |
5122 | PyObject * obj1 = 0 ; | |
5123 | char *kwnames[] = { | |
5124 | (char *) "self",(char *) "rect", NULL | |
5125 | }; | |
5126 | ||
5127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5130 | { | |
5131 | arg2 = &temp2; | |
5132 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5133 | } | |
5134 | { | |
5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5136 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5137 | ||
5138 | wxPyEndAllowThreads(__tstate); | |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
5140 | } | |
5141 | { | |
5142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5143 | } | |
5144 | return resultobj; | |
5145 | fail: | |
5146 | return NULL; | |
5147 | } | |
5148 | ||
5149 | ||
5150 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5151 | PyObject *resultobj; | |
5152 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5153 | wxRegion *arg2 = 0 ; | |
5154 | bool result; | |
5155 | PyObject * obj0 = 0 ; | |
5156 | PyObject * obj1 = 0 ; | |
5157 | char *kwnames[] = { | |
5158 | (char *) "self",(char *) "region", NULL | |
5159 | }; | |
5160 | ||
5161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5165 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5166 | SWIG_fail; | |
5167 | if (arg2 == NULL) { | |
5168 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5169 | SWIG_fail; | |
5170 | } | |
5171 | { | |
5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5173 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5174 | ||
5175 | wxPyEndAllowThreads(__tstate); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | } | |
5178 | { | |
5179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5180 | } | |
5181 | return resultobj; | |
5182 | fail: | |
5183 | return NULL; | |
5184 | } | |
5185 | ||
5186 | ||
5187 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject *resultobj; | |
5189 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5190 | int arg2 ; | |
5191 | int arg3 ; | |
5192 | int arg4 ; | |
5193 | int arg5 ; | |
5194 | bool result; | |
5195 | PyObject * obj0 = 0 ; | |
5196 | PyObject * obj1 = 0 ; | |
5197 | PyObject * obj2 = 0 ; | |
5198 | PyObject * obj3 = 0 ; | |
5199 | PyObject * obj4 = 0 ; | |
5200 | char *kwnames[] = { | |
5201 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5202 | }; | |
5203 | ||
5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5207 | arg2 = (int) SWIG_AsInt(obj1); | |
5208 | if (PyErr_Occurred()) SWIG_fail; | |
5209 | arg3 = (int) SWIG_AsInt(obj2); | |
5210 | if (PyErr_Occurred()) SWIG_fail; | |
5211 | arg4 = (int) SWIG_AsInt(obj3); | |
5212 | if (PyErr_Occurred()) SWIG_fail; | |
5213 | arg5 = (int) SWIG_AsInt(obj4); | |
5214 | if (PyErr_Occurred()) SWIG_fail; | |
5215 | { | |
5216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5217 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5218 | ||
5219 | wxPyEndAllowThreads(__tstate); | |
5220 | if (PyErr_Occurred()) SWIG_fail; | |
5221 | } | |
5222 | { | |
5223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5224 | } | |
5225 | return resultobj; | |
5226 | fail: | |
5227 | return NULL; | |
5228 | } | |
5229 | ||
5230 | ||
5231 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5232 | PyObject *resultobj; | |
5233 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5234 | wxRect *arg2 = 0 ; | |
5235 | bool result; | |
5236 | wxRect temp2 ; | |
5237 | PyObject * obj0 = 0 ; | |
5238 | PyObject * obj1 = 0 ; | |
5239 | char *kwnames[] = { | |
5240 | (char *) "self",(char *) "rect", NULL | |
5241 | }; | |
5242 | ||
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5246 | { | |
5247 | arg2 = &temp2; | |
5248 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5249 | } | |
5250 | { | |
5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5252 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5253 | ||
5254 | wxPyEndAllowThreads(__tstate); | |
5255 | if (PyErr_Occurred()) SWIG_fail; | |
5256 | } | |
5257 | { | |
5258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5259 | } | |
5260 | return resultobj; | |
5261 | fail: | |
5262 | return NULL; | |
5263 | } | |
5264 | ||
5265 | ||
5266 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5267 | PyObject *resultobj; | |
5268 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5269 | wxRegion *arg2 = 0 ; | |
5270 | bool result; | |
5271 | PyObject * obj0 = 0 ; | |
5272 | PyObject * obj1 = 0 ; | |
5273 | char *kwnames[] = { | |
5274 | (char *) "self",(char *) "region", NULL | |
5275 | }; | |
5276 | ||
5277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5281 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5282 | SWIG_fail; | |
5283 | if (arg2 == NULL) { | |
5284 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5285 | SWIG_fail; | |
5286 | } | |
5287 | { | |
5288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5289 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5290 | ||
5291 | wxPyEndAllowThreads(__tstate); | |
5292 | if (PyErr_Occurred()) SWIG_fail; | |
5293 | } | |
5294 | { | |
5295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5296 | } | |
5297 | return resultobj; | |
5298 | fail: | |
5299 | return NULL; | |
5300 | } | |
5301 | ||
5302 | ||
5303 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5304 | PyObject *resultobj; | |
5305 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5306 | int arg2 ; | |
5307 | int arg3 ; | |
5308 | int arg4 ; | |
5309 | int arg5 ; | |
5310 | bool result; | |
5311 | PyObject * obj0 = 0 ; | |
5312 | PyObject * obj1 = 0 ; | |
5313 | PyObject * obj2 = 0 ; | |
5314 | PyObject * obj3 = 0 ; | |
5315 | PyObject * obj4 = 0 ; | |
5316 | char *kwnames[] = { | |
5317 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5318 | }; | |
5319 | ||
5320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5323 | arg2 = (int) SWIG_AsInt(obj1); | |
5324 | if (PyErr_Occurred()) SWIG_fail; | |
5325 | arg3 = (int) SWIG_AsInt(obj2); | |
5326 | if (PyErr_Occurred()) SWIG_fail; | |
5327 | arg4 = (int) SWIG_AsInt(obj3); | |
5328 | if (PyErr_Occurred()) SWIG_fail; | |
5329 | arg5 = (int) SWIG_AsInt(obj4); | |
5330 | if (PyErr_Occurred()) SWIG_fail; | |
5331 | { | |
5332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5333 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5334 | ||
5335 | wxPyEndAllowThreads(__tstate); | |
5336 | if (PyErr_Occurred()) SWIG_fail; | |
5337 | } | |
5338 | { | |
5339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5340 | } | |
5341 | return resultobj; | |
5342 | fail: | |
5343 | return NULL; | |
5344 | } | |
5345 | ||
5346 | ||
5347 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5348 | PyObject *resultobj; | |
5349 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5350 | wxRect *arg2 = 0 ; | |
5351 | bool result; | |
5352 | wxRect temp2 ; | |
5353 | PyObject * obj0 = 0 ; | |
5354 | PyObject * obj1 = 0 ; | |
5355 | char *kwnames[] = { | |
5356 | (char *) "self",(char *) "rect", NULL | |
5357 | }; | |
5358 | ||
5359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
5360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5362 | { | |
5363 | arg2 = &temp2; | |
5364 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5365 | } | |
5366 | { | |
5367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5368 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
5369 | ||
5370 | wxPyEndAllowThreads(__tstate); | |
5371 | if (PyErr_Occurred()) SWIG_fail; | |
5372 | } | |
5373 | { | |
5374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5375 | } | |
5376 | return resultobj; | |
5377 | fail: | |
5378 | return NULL; | |
5379 | } | |
5380 | ||
5381 | ||
5382 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5383 | PyObject *resultobj; | |
5384 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5385 | wxRegion *arg2 = 0 ; | |
5386 | bool result; | |
5387 | PyObject * obj0 = 0 ; | |
5388 | PyObject * obj1 = 0 ; | |
5389 | char *kwnames[] = { | |
5390 | (char *) "self",(char *) "region", NULL | |
5391 | }; | |
5392 | ||
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
5394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5398 | SWIG_fail; | |
5399 | if (arg2 == NULL) { | |
5400 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5401 | SWIG_fail; | |
5402 | } | |
5403 | { | |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
5406 | ||
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | { | |
5411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5412 | } | |
5413 | return resultobj; | |
5414 | fail: | |
5415 | return NULL; | |
5416 | } | |
5417 | ||
5418 | ||
5419 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5420 | PyObject *resultobj; | |
5421 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5422 | SwigValueWrapper< wxBitmap > result; | |
5423 | PyObject * obj0 = 0 ; | |
5424 | char *kwnames[] = { | |
5425 | (char *) "self", NULL | |
5426 | }; | |
5427 | ||
5428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
5429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5431 | { | |
5432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5433 | result = (arg1)->ConvertToBitmap(); | |
5434 | ||
5435 | wxPyEndAllowThreads(__tstate); | |
5436 | if (PyErr_Occurred()) SWIG_fail; | |
5437 | } | |
5438 | { | |
5439 | wxBitmap * resultptr; | |
5440 | resultptr = new wxBitmap((wxBitmap &) result); | |
5441 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5442 | } | |
5443 | return resultobj; | |
5444 | fail: | |
5445 | return NULL; | |
5446 | } | |
5447 | ||
5448 | ||
5449 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject *resultobj; | |
5451 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5452 | wxBitmap *arg2 = 0 ; | |
5453 | wxColour const &arg3_defvalue = wxNullColour ; | |
5454 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
5455 | int arg4 = (int) 0 ; | |
5456 | bool result; | |
5457 | wxColour temp3 ; | |
5458 | PyObject * obj0 = 0 ; | |
5459 | PyObject * obj1 = 0 ; | |
5460 | PyObject * obj2 = 0 ; | |
5461 | PyObject * obj3 = 0 ; | |
5462 | char *kwnames[] = { | |
5463 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5464 | }; | |
5465 | ||
5466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5470 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5471 | SWIG_fail; | |
5472 | if (arg2 == NULL) { | |
5473 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5474 | SWIG_fail; | |
5475 | } | |
5476 | if (obj2) { | |
5477 | { | |
5478 | arg3 = &temp3; | |
5479 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5480 | } | |
5481 | } | |
5482 | if (obj3) { | |
5483 | arg4 = (int) SWIG_AsInt(obj3); | |
5484 | if (PyErr_Occurred()) SWIG_fail; | |
5485 | } | |
5486 | { | |
5487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5488 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
5489 | ||
5490 | wxPyEndAllowThreads(__tstate); | |
5491 | if (PyErr_Occurred()) SWIG_fail; | |
5492 | } | |
5493 | { | |
5494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5495 | } | |
5496 | return resultobj; | |
5497 | fail: | |
5498 | return NULL; | |
5499 | } | |
5500 | ||
5501 | ||
5502 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
5503 | PyObject *obj; | |
5504 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5505 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
5506 | Py_INCREF(obj); | |
5507 | return Py_BuildValue((char *)""); | |
5508 | } | |
5509 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5510 | PyObject *resultobj; | |
5511 | wxRegion *arg1 = 0 ; | |
5512 | wxRegionIterator *result; | |
5513 | PyObject * obj0 = 0 ; | |
5514 | char *kwnames[] = { | |
5515 | (char *) "region", NULL | |
5516 | }; | |
5517 | ||
5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
5519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5520 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5521 | SWIG_fail; | |
5522 | if (arg1 == NULL) { | |
5523 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5524 | SWIG_fail; | |
5525 | } | |
5526 | { | |
5527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5528 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
5529 | ||
5530 | wxPyEndAllowThreads(__tstate); | |
5531 | if (PyErr_Occurred()) SWIG_fail; | |
5532 | } | |
5533 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); | |
5534 | return resultobj; | |
5535 | fail: | |
5536 | return NULL; | |
5537 | } | |
5538 | ||
5539 | ||
5540 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject *resultobj; | |
5542 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5543 | PyObject * obj0 = 0 ; | |
5544 | char *kwnames[] = { | |
5545 | (char *) "self", NULL | |
5546 | }; | |
5547 | ||
5548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
5549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5551 | { | |
5552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5553 | delete arg1; | |
5554 | ||
5555 | wxPyEndAllowThreads(__tstate); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
5558 | Py_INCREF(Py_None); resultobj = Py_None; | |
5559 | return resultobj; | |
5560 | fail: | |
5561 | return NULL; | |
5562 | } | |
5563 | ||
5564 | ||
5565 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5566 | PyObject *resultobj; | |
5567 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5568 | int result; | |
5569 | PyObject * obj0 = 0 ; | |
5570 | char *kwnames[] = { | |
5571 | (char *) "self", NULL | |
5572 | }; | |
5573 | ||
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
5575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | result = (int)(arg1)->GetX(); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | resultobj = SWIG_FromInt((int)result); | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5592 | PyObject *resultobj; | |
5593 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5594 | int result; | |
5595 | PyObject * obj0 = 0 ; | |
5596 | char *kwnames[] = { | |
5597 | (char *) "self", NULL | |
5598 | }; | |
5599 | ||
5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
5601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5603 | { | |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | result = (int)(arg1)->GetY(); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) SWIG_fail; | |
5609 | } | |
5610 | resultobj = SWIG_FromInt((int)result); | |
5611 | return resultobj; | |
5612 | fail: | |
5613 | return NULL; | |
5614 | } | |
5615 | ||
5616 | ||
5617 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5618 | PyObject *resultobj; | |
5619 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5620 | int result; | |
5621 | PyObject * obj0 = 0 ; | |
5622 | char *kwnames[] = { | |
5623 | (char *) "self", NULL | |
5624 | }; | |
5625 | ||
5626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
5627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5629 | { | |
5630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5631 | result = (int)(arg1)->GetW(); | |
5632 | ||
5633 | wxPyEndAllowThreads(__tstate); | |
5634 | if (PyErr_Occurred()) SWIG_fail; | |
5635 | } | |
5636 | resultobj = SWIG_FromInt((int)result); | |
5637 | return resultobj; | |
5638 | fail: | |
5639 | return NULL; | |
5640 | } | |
5641 | ||
5642 | ||
5643 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5644 | PyObject *resultobj; | |
5645 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5646 | int result; | |
5647 | PyObject * obj0 = 0 ; | |
5648 | char *kwnames[] = { | |
5649 | (char *) "self", NULL | |
5650 | }; | |
5651 | ||
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
5653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5655 | { | |
5656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5657 | result = (int)(arg1)->GetWidth(); | |
5658 | ||
5659 | wxPyEndAllowThreads(__tstate); | |
5660 | if (PyErr_Occurred()) SWIG_fail; | |
5661 | } | |
5662 | resultobj = SWIG_FromInt((int)result); | |
5663 | return resultobj; | |
5664 | fail: | |
5665 | return NULL; | |
5666 | } | |
5667 | ||
5668 | ||
5669 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5670 | PyObject *resultobj; | |
5671 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5672 | int result; | |
5673 | PyObject * obj0 = 0 ; | |
5674 | char *kwnames[] = { | |
5675 | (char *) "self", NULL | |
5676 | }; | |
5677 | ||
5678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
5679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5681 | { | |
5682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5683 | result = (int)(arg1)->GetH(); | |
5684 | ||
5685 | wxPyEndAllowThreads(__tstate); | |
5686 | if (PyErr_Occurred()) SWIG_fail; | |
5687 | } | |
5688 | resultobj = SWIG_FromInt((int)result); | |
5689 | return resultobj; | |
5690 | fail: | |
5691 | return NULL; | |
5692 | } | |
5693 | ||
5694 | ||
5695 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5696 | PyObject *resultobj; | |
5697 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5698 | int result; | |
5699 | PyObject * obj0 = 0 ; | |
5700 | char *kwnames[] = { | |
5701 | (char *) "self", NULL | |
5702 | }; | |
5703 | ||
5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
5705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5707 | { | |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | result = (int)(arg1)->GetHeight(); | |
5710 | ||
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
5714 | resultobj = SWIG_FromInt((int)result); | |
5715 | return resultobj; | |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5722 | PyObject *resultobj; | |
5723 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5724 | wxRect result; | |
5725 | PyObject * obj0 = 0 ; | |
5726 | char *kwnames[] = { | |
5727 | (char *) "self", NULL | |
5728 | }; | |
5729 | ||
5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
5731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5733 | { | |
5734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5735 | result = (arg1)->GetRect(); | |
5736 | ||
5737 | wxPyEndAllowThreads(__tstate); | |
5738 | if (PyErr_Occurred()) SWIG_fail; | |
5739 | } | |
5740 | { | |
5741 | wxRect * resultptr; | |
5742 | resultptr = new wxRect((wxRect &) result); | |
5743 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5744 | } | |
5745 | return resultobj; | |
5746 | fail: | |
5747 | return NULL; | |
5748 | } | |
5749 | ||
5750 | ||
5751 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5752 | PyObject *resultobj; | |
5753 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5754 | bool result; | |
5755 | PyObject * obj0 = 0 ; | |
5756 | char *kwnames[] = { | |
5757 | (char *) "self", NULL | |
5758 | }; | |
5759 | ||
5760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
5761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5763 | { | |
5764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5765 | result = (bool)(arg1)->HaveRects(); | |
5766 | ||
5767 | wxPyEndAllowThreads(__tstate); | |
5768 | if (PyErr_Occurred()) SWIG_fail; | |
5769 | } | |
5770 | { | |
5771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5772 | } | |
5773 | return resultobj; | |
5774 | fail: | |
5775 | return NULL; | |
5776 | } | |
5777 | ||
5778 | ||
5779 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject *resultobj; | |
5781 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5782 | PyObject * obj0 = 0 ; | |
5783 | char *kwnames[] = { | |
5784 | (char *) "self", NULL | |
5785 | }; | |
5786 | ||
5787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
5788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5790 | { | |
5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5792 | (arg1)->Reset(); | |
5793 | ||
5794 | wxPyEndAllowThreads(__tstate); | |
5795 | if (PyErr_Occurred()) SWIG_fail; | |
5796 | } | |
5797 | Py_INCREF(Py_None); resultobj = Py_None; | |
5798 | return resultobj; | |
5799 | fail: | |
5800 | return NULL; | |
5801 | } | |
5802 | ||
5803 | ||
5804 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5805 | PyObject *resultobj; | |
5806 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5807 | PyObject * obj0 = 0 ; | |
5808 | char *kwnames[] = { | |
5809 | (char *) "self", NULL | |
5810 | }; | |
5811 | ||
5812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
5813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5815 | { | |
5816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5817 | wxRegionIterator_Next(arg1); | |
5818 | ||
5819 | wxPyEndAllowThreads(__tstate); | |
5820 | if (PyErr_Occurred()) SWIG_fail; | |
5821 | } | |
5822 | Py_INCREF(Py_None); resultobj = Py_None; | |
5823 | return resultobj; | |
5824 | fail: | |
5825 | return NULL; | |
5826 | } | |
5827 | ||
5828 | ||
5829 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5830 | PyObject *resultobj; | |
5831 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
5832 | bool result; | |
5833 | PyObject * obj0 = 0 ; | |
5834 | char *kwnames[] = { | |
5835 | (char *) "self", NULL | |
5836 | }; | |
5837 | ||
5838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
5839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
5840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5841 | { | |
5842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5843 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
5844 | ||
5845 | wxPyEndAllowThreads(__tstate); | |
5846 | if (PyErr_Occurred()) SWIG_fail; | |
5847 | } | |
5848 | { | |
5849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5850 | } | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
5858 | PyObject *obj; | |
5859 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5860 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
5861 | Py_INCREF(obj); | |
5862 | return Py_BuildValue((char *)""); | |
5863 | } | |
5864 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject *resultobj; | |
5866 | wxNativeFontInfo *result; | |
5867 | char *kwnames[] = { | |
5868 | NULL | |
5869 | }; | |
5870 | ||
5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
5872 | { | |
5873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5874 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
5875 | ||
5876 | wxPyEndAllowThreads(__tstate); | |
5877 | if (PyErr_Occurred()) SWIG_fail; | |
5878 | } | |
5879 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); | |
5880 | return resultobj; | |
5881 | fail: | |
5882 | return NULL; | |
5883 | } | |
5884 | ||
5885 | ||
5886 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5887 | PyObject *resultobj; | |
5888 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5889 | PyObject * obj0 = 0 ; | |
5890 | char *kwnames[] = { | |
5891 | (char *) "self", NULL | |
5892 | }; | |
5893 | ||
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
5895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
5896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5897 | { | |
5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5899 | delete arg1; | |
5900 | ||
5901 | wxPyEndAllowThreads(__tstate); | |
5902 | if (PyErr_Occurred()) SWIG_fail; | |
5903 | } | |
5904 | Py_INCREF(Py_None); resultobj = Py_None; | |
5905 | return resultobj; | |
5906 | fail: | |
5907 | return NULL; | |
5908 | } | |
5909 | ||
5910 | ||
5911 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5912 | PyObject *resultobj; | |
5913 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5914 | PyObject * obj0 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "self", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
5920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
5921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5922 | { | |
5923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5924 | (arg1)->Init(); | |
5925 | ||
5926 | wxPyEndAllowThreads(__tstate); | |
5927 | if (PyErr_Occurred()) SWIG_fail; | |
5928 | } | |
5929 | Py_INCREF(Py_None); resultobj = Py_None; | |
5930 | return resultobj; | |
5931 | fail: | |
5932 | return NULL; | |
5933 | } | |
5934 | ||
5935 | ||
5936 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5937 | PyObject *resultobj; | |
5938 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5939 | wxFont *arg2 = 0 ; | |
5940 | PyObject * obj0 = 0 ; | |
5941 | PyObject * obj1 = 0 ; | |
5942 | char *kwnames[] = { | |
5943 | (char *) "self",(char *) "font", NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
5947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
5948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
5950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5951 | SWIG_fail; | |
5952 | if (arg2 == NULL) { | |
5953 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5954 | SWIG_fail; | |
5955 | } | |
5956 | { | |
5957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5958 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
5959 | ||
5960 | wxPyEndAllowThreads(__tstate); | |
5961 | if (PyErr_Occurred()) SWIG_fail; | |
5962 | } | |
5963 | Py_INCREF(Py_None); resultobj = Py_None; | |
5964 | return resultobj; | |
5965 | fail: | |
5966 | return NULL; | |
5967 | } | |
5968 | ||
5969 | ||
5970 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5971 | PyObject *resultobj; | |
5972 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5973 | int result; | |
5974 | PyObject * obj0 = 0 ; | |
5975 | char *kwnames[] = { | |
5976 | (char *) "self", NULL | |
5977 | }; | |
5978 | ||
5979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
5980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
5981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5982 | { | |
5983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5984 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
5985 | ||
5986 | wxPyEndAllowThreads(__tstate); | |
5987 | if (PyErr_Occurred()) SWIG_fail; | |
5988 | } | |
5989 | resultobj = SWIG_FromInt((int)result); | |
5990 | return resultobj; | |
5991 | fail: | |
5992 | return NULL; | |
5993 | } | |
5994 | ||
5995 | ||
5996 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5997 | PyObject *resultobj; | |
5998 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
5999 | int result; | |
6000 | PyObject * obj0 = 0 ; | |
6001 | char *kwnames[] = { | |
6002 | (char *) "self", NULL | |
6003 | }; | |
6004 | ||
6005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6008 | { | |
6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6010 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6011 | ||
6012 | wxPyEndAllowThreads(__tstate); | |
6013 | if (PyErr_Occurred()) SWIG_fail; | |
6014 | } | |
6015 | resultobj = SWIG_FromInt((int)result); | |
6016 | return resultobj; | |
6017 | fail: | |
6018 | return NULL; | |
6019 | } | |
6020 | ||
6021 | ||
6022 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6023 | PyObject *resultobj; | |
6024 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6025 | int result; | |
6026 | PyObject * obj0 = 0 ; | |
6027 | char *kwnames[] = { | |
6028 | (char *) "self", NULL | |
6029 | }; | |
6030 | ||
6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6034 | { | |
6035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6036 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6037 | ||
6038 | wxPyEndAllowThreads(__tstate); | |
6039 | if (PyErr_Occurred()) SWIG_fail; | |
6040 | } | |
6041 | resultobj = SWIG_FromInt((int)result); | |
6042 | return resultobj; | |
6043 | fail: | |
6044 | return NULL; | |
6045 | } | |
6046 | ||
6047 | ||
6048 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6049 | PyObject *resultobj; | |
6050 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6051 | bool result; | |
6052 | PyObject * obj0 = 0 ; | |
6053 | char *kwnames[] = { | |
6054 | (char *) "self", NULL | |
6055 | }; | |
6056 | ||
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6060 | { | |
6061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6062 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6063 | ||
6064 | wxPyEndAllowThreads(__tstate); | |
6065 | if (PyErr_Occurred()) SWIG_fail; | |
6066 | } | |
6067 | { | |
6068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6069 | } | |
6070 | return resultobj; | |
6071 | fail: | |
6072 | return NULL; | |
6073 | } | |
6074 | ||
6075 | ||
6076 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6077 | PyObject *resultobj; | |
6078 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6079 | wxString result; | |
6080 | PyObject * obj0 = 0 ; | |
6081 | char *kwnames[] = { | |
6082 | (char *) "self", NULL | |
6083 | }; | |
6084 | ||
6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
6086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6088 | { | |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6091 | ||
6092 | wxPyEndAllowThreads(__tstate); | |
6093 | if (PyErr_Occurred()) SWIG_fail; | |
6094 | } | |
6095 | { | |
6096 | #if wxUSE_UNICODE | |
6097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6098 | #else | |
6099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6100 | #endif | |
6101 | } | |
6102 | return resultobj; | |
6103 | fail: | |
6104 | return NULL; | |
6105 | } | |
6106 | ||
6107 | ||
6108 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6109 | PyObject *resultobj; | |
6110 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6111 | int result; | |
6112 | PyObject * obj0 = 0 ; | |
6113 | char *kwnames[] = { | |
6114 | (char *) "self", NULL | |
6115 | }; | |
6116 | ||
6117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6120 | { | |
6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6122 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6123 | ||
6124 | wxPyEndAllowThreads(__tstate); | |
6125 | if (PyErr_Occurred()) SWIG_fail; | |
6126 | } | |
6127 | resultobj = SWIG_FromInt((int)result); | |
6128 | return resultobj; | |
6129 | fail: | |
6130 | return NULL; | |
6131 | } | |
6132 | ||
6133 | ||
6134 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6135 | PyObject *resultobj; | |
6136 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6137 | int result; | |
6138 | PyObject * obj0 = 0 ; | |
6139 | char *kwnames[] = { | |
6140 | (char *) "self", NULL | |
6141 | }; | |
6142 | ||
6143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6146 | { | |
6147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6148 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6149 | ||
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
6153 | resultobj = SWIG_FromInt((int)result); | |
6154 | return resultobj; | |
6155 | fail: | |
6156 | return NULL; | |
6157 | } | |
6158 | ||
6159 | ||
6160 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject *resultobj; | |
6162 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6163 | int arg2 ; | |
6164 | PyObject * obj0 = 0 ; | |
6165 | PyObject * obj1 = 0 ; | |
6166 | char *kwnames[] = { | |
6167 | (char *) "self",(char *) "pointsize", NULL | |
6168 | }; | |
6169 | ||
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
6171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6173 | arg2 = (int) SWIG_AsInt(obj1); | |
6174 | if (PyErr_Occurred()) SWIG_fail; | |
6175 | { | |
6176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6177 | (arg1)->SetPointSize(arg2); | |
6178 | ||
6179 | wxPyEndAllowThreads(__tstate); | |
6180 | if (PyErr_Occurred()) SWIG_fail; | |
6181 | } | |
6182 | Py_INCREF(Py_None); resultobj = Py_None; | |
6183 | return resultobj; | |
6184 | fail: | |
6185 | return NULL; | |
6186 | } | |
6187 | ||
6188 | ||
6189 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6190 | PyObject *resultobj; | |
6191 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6192 | int arg2 ; | |
6193 | PyObject * obj0 = 0 ; | |
6194 | PyObject * obj1 = 0 ; | |
6195 | char *kwnames[] = { | |
6196 | (char *) "self",(char *) "style", NULL | |
6197 | }; | |
6198 | ||
6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
6200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6202 | arg2 = (wxFontStyle) SWIG_AsInt(obj1); | |
6203 | if (PyErr_Occurred()) SWIG_fail; | |
6204 | { | |
6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6206 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6207 | ||
6208 | wxPyEndAllowThreads(__tstate); | |
6209 | if (PyErr_Occurred()) SWIG_fail; | |
6210 | } | |
6211 | Py_INCREF(Py_None); resultobj = Py_None; | |
6212 | return resultobj; | |
6213 | fail: | |
6214 | return NULL; | |
6215 | } | |
6216 | ||
6217 | ||
6218 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6219 | PyObject *resultobj; | |
6220 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6221 | int arg2 ; | |
6222 | PyObject * obj0 = 0 ; | |
6223 | PyObject * obj1 = 0 ; | |
6224 | char *kwnames[] = { | |
6225 | (char *) "self",(char *) "weight", NULL | |
6226 | }; | |
6227 | ||
6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
6229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6231 | arg2 = (wxFontWeight) SWIG_AsInt(obj1); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | { | |
6234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6235 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6236 | ||
6237 | wxPyEndAllowThreads(__tstate); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
6240 | Py_INCREF(Py_None); resultobj = Py_None; | |
6241 | return resultobj; | |
6242 | fail: | |
6243 | return NULL; | |
6244 | } | |
6245 | ||
6246 | ||
6247 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6248 | PyObject *resultobj; | |
6249 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6250 | bool arg2 ; | |
6251 | PyObject * obj0 = 0 ; | |
6252 | PyObject * obj1 = 0 ; | |
6253 | char *kwnames[] = { | |
6254 | (char *) "self",(char *) "underlined", NULL | |
6255 | }; | |
6256 | ||
6257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6260 | arg2 = (bool) SWIG_AsBool(obj1); | |
6261 | if (PyErr_Occurred()) SWIG_fail; | |
6262 | { | |
6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6264 | (arg1)->SetUnderlined(arg2); | |
6265 | ||
6266 | wxPyEndAllowThreads(__tstate); | |
6267 | if (PyErr_Occurred()) SWIG_fail; | |
6268 | } | |
6269 | Py_INCREF(Py_None); resultobj = Py_None; | |
6270 | return resultobj; | |
6271 | fail: | |
6272 | return NULL; | |
6273 | } | |
6274 | ||
6275 | ||
6276 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6277 | PyObject *resultobj; | |
6278 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6279 | wxString arg2 ; | |
6280 | PyObject * obj0 = 0 ; | |
6281 | PyObject * obj1 = 0 ; | |
6282 | char *kwnames[] = { | |
6283 | (char *) "self",(char *) "facename", NULL | |
6284 | }; | |
6285 | ||
6286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6289 | { | |
6290 | wxString* sptr = wxString_in_helper(obj1); | |
6291 | if (sptr == NULL) SWIG_fail; | |
6292 | arg2 = *sptr; | |
6293 | delete sptr; | |
6294 | } | |
6295 | { | |
6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6297 | (arg1)->SetFaceName(arg2); | |
6298 | ||
6299 | wxPyEndAllowThreads(__tstate); | |
6300 | if (PyErr_Occurred()) SWIG_fail; | |
6301 | } | |
6302 | Py_INCREF(Py_None); resultobj = Py_None; | |
6303 | return resultobj; | |
6304 | fail: | |
6305 | return NULL; | |
6306 | } | |
6307 | ||
6308 | ||
6309 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6310 | PyObject *resultobj; | |
6311 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6312 | int arg2 ; | |
6313 | PyObject * obj0 = 0 ; | |
6314 | PyObject * obj1 = 0 ; | |
6315 | char *kwnames[] = { | |
6316 | (char *) "self",(char *) "family", NULL | |
6317 | }; | |
6318 | ||
6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
6320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6322 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
6323 | if (PyErr_Occurred()) SWIG_fail; | |
6324 | { | |
6325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6326 | (arg1)->SetFamily((wxFontFamily )arg2); | |
6327 | ||
6328 | wxPyEndAllowThreads(__tstate); | |
6329 | if (PyErr_Occurred()) SWIG_fail; | |
6330 | } | |
6331 | Py_INCREF(Py_None); resultobj = Py_None; | |
6332 | return resultobj; | |
6333 | fail: | |
6334 | return NULL; | |
6335 | } | |
6336 | ||
6337 | ||
6338 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6339 | PyObject *resultobj; | |
6340 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6341 | int arg2 ; | |
6342 | PyObject * obj0 = 0 ; | |
6343 | PyObject * obj1 = 0 ; | |
6344 | char *kwnames[] = { | |
6345 | (char *) "self",(char *) "encoding", NULL | |
6346 | }; | |
6347 | ||
6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
6349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6351 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6352 | if (PyErr_Occurred()) SWIG_fail; | |
6353 | { | |
6354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6355 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
6356 | ||
6357 | wxPyEndAllowThreads(__tstate); | |
6358 | if (PyErr_Occurred()) SWIG_fail; | |
6359 | } | |
6360 | Py_INCREF(Py_None); resultobj = Py_None; | |
6361 | return resultobj; | |
6362 | fail: | |
6363 | return NULL; | |
6364 | } | |
6365 | ||
6366 | ||
6367 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6368 | PyObject *resultobj; | |
6369 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6370 | wxString *arg2 = 0 ; | |
6371 | bool result; | |
6372 | bool temp2 = False ; | |
6373 | PyObject * obj0 = 0 ; | |
6374 | PyObject * obj1 = 0 ; | |
6375 | char *kwnames[] = { | |
6376 | (char *) "self",(char *) "s", NULL | |
6377 | }; | |
6378 | ||
6379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6382 | { | |
6383 | arg2 = wxString_in_helper(obj1); | |
6384 | if (arg2 == NULL) SWIG_fail; | |
6385 | temp2 = True; | |
6386 | } | |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6390 | ||
6391 | wxPyEndAllowThreads(__tstate); | |
6392 | if (PyErr_Occurred()) SWIG_fail; | |
6393 | } | |
6394 | { | |
6395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6396 | } | |
6397 | { | |
6398 | if (temp2) | |
6399 | delete arg2; | |
6400 | } | |
6401 | return resultobj; | |
6402 | fail: | |
6403 | { | |
6404 | if (temp2) | |
6405 | delete arg2; | |
6406 | } | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
6411 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6412 | PyObject *resultobj; | |
6413 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6414 | wxString result; | |
6415 | PyObject * obj0 = 0 ; | |
6416 | char *kwnames[] = { | |
6417 | (char *) "self", NULL | |
6418 | }; | |
6419 | ||
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
6421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
6430 | { | |
6431 | #if wxUSE_UNICODE | |
6432 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6433 | #else | |
6434 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6435 | #endif | |
6436 | } | |
6437 | return resultobj; | |
6438 | fail: | |
6439 | return NULL; | |
6440 | } | |
6441 | ||
6442 | ||
6443 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6444 | PyObject *resultobj; | |
6445 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6446 | wxString result; | |
6447 | PyObject * obj0 = 0 ; | |
6448 | char *kwnames[] = { | |
6449 | (char *) "self", NULL | |
6450 | }; | |
6451 | ||
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
6453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6455 | { | |
6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6457 | result = wxNativeFontInfo___str__(arg1); | |
6458 | ||
6459 | wxPyEndAllowThreads(__tstate); | |
6460 | if (PyErr_Occurred()) SWIG_fail; | |
6461 | } | |
6462 | { | |
6463 | #if wxUSE_UNICODE | |
6464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6465 | #else | |
6466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6467 | #endif | |
6468 | } | |
6469 | return resultobj; | |
6470 | fail: | |
6471 | return NULL; | |
6472 | } | |
6473 | ||
6474 | ||
6475 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6476 | PyObject *resultobj; | |
6477 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6478 | wxString *arg2 = 0 ; | |
6479 | bool result; | |
6480 | bool temp2 = False ; | |
6481 | PyObject * obj0 = 0 ; | |
6482 | PyObject * obj1 = 0 ; | |
6483 | char *kwnames[] = { | |
6484 | (char *) "self",(char *) "s", NULL | |
6485 | }; | |
6486 | ||
6487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
6488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6490 | { | |
6491 | arg2 = wxString_in_helper(obj1); | |
6492 | if (arg2 == NULL) SWIG_fail; | |
6493 | temp2 = True; | |
6494 | } | |
6495 | { | |
6496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6497 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
6498 | ||
6499 | wxPyEndAllowThreads(__tstate); | |
6500 | if (PyErr_Occurred()) SWIG_fail; | |
6501 | } | |
6502 | { | |
6503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6504 | } | |
6505 | { | |
6506 | if (temp2) | |
6507 | delete arg2; | |
6508 | } | |
6509 | return resultobj; | |
6510 | fail: | |
6511 | { | |
6512 | if (temp2) | |
6513 | delete arg2; | |
6514 | } | |
6515 | return NULL; | |
6516 | } | |
6517 | ||
6518 | ||
6519 | static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6520 | PyObject *resultobj; | |
6521 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6522 | wxString result; | |
6523 | PyObject * obj0 = 0 ; | |
6524 | char *kwnames[] = { | |
6525 | (char *) "self", NULL | |
6526 | }; | |
6527 | ||
6528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
6529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6531 | { | |
6532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6533 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
6534 | ||
6535 | wxPyEndAllowThreads(__tstate); | |
6536 | if (PyErr_Occurred()) SWIG_fail; | |
6537 | } | |
6538 | { | |
6539 | #if wxUSE_UNICODE | |
6540 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6541 | #else | |
6542 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6543 | #endif | |
6544 | } | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | return NULL; | |
6548 | } | |
6549 | ||
6550 | ||
6551 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
6552 | PyObject *obj; | |
6553 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6554 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
6555 | Py_INCREF(obj); | |
6556 | return Py_BuildValue((char *)""); | |
6557 | } | |
6558 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6559 | PyObject *resultobj; | |
6560 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6561 | wxString *arg2 = (wxString *) 0 ; | |
6562 | bool temp2 = False ; | |
6563 | PyObject * obj0 = 0 ; | |
6564 | PyObject * obj1 = 0 ; | |
6565 | char *kwnames[] = { | |
6566 | (char *) "self",(char *) "facename", NULL | |
6567 | }; | |
6568 | ||
6569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
6570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6572 | { | |
6573 | arg2 = wxString_in_helper(obj1); | |
6574 | if (arg2 == NULL) SWIG_fail; | |
6575 | temp2 = True; | |
6576 | } | |
6577 | if (arg1) (arg1)->facename = *arg2; | |
6578 | ||
6579 | Py_INCREF(Py_None); resultobj = Py_None; | |
6580 | { | |
6581 | if (temp2) | |
6582 | delete arg2; | |
6583 | } | |
6584 | return resultobj; | |
6585 | fail: | |
6586 | { | |
6587 | if (temp2) | |
6588 | delete arg2; | |
6589 | } | |
6590 | return NULL; | |
6591 | } | |
6592 | ||
6593 | ||
6594 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6595 | PyObject *resultobj; | |
6596 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6597 | wxString *result; | |
6598 | PyObject * obj0 = 0 ; | |
6599 | char *kwnames[] = { | |
6600 | (char *) "self", NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
6604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6606 | result = (wxString *)& ((arg1)->facename); | |
6607 | ||
6608 | { | |
6609 | #if wxUSE_UNICODE | |
6610 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6611 | #else | |
6612 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6613 | #endif | |
6614 | } | |
6615 | return resultobj; | |
6616 | fail: | |
6617 | return NULL; | |
6618 | } | |
6619 | ||
6620 | ||
6621 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6622 | PyObject *resultobj; | |
6623 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6624 | int arg2 ; | |
6625 | PyObject * obj0 = 0 ; | |
6626 | PyObject * obj1 = 0 ; | |
6627 | char *kwnames[] = { | |
6628 | (char *) "self",(char *) "encoding", NULL | |
6629 | }; | |
6630 | ||
6631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; | |
6632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6634 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
6635 | if (PyErr_Occurred()) SWIG_fail; | |
6636 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
6637 | ||
6638 | Py_INCREF(Py_None); resultobj = Py_None; | |
6639 | return resultobj; | |
6640 | fail: | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
6645 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6646 | PyObject *resultobj; | |
6647 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6648 | int result; | |
6649 | PyObject * obj0 = 0 ; | |
6650 | char *kwnames[] = { | |
6651 | (char *) "self", NULL | |
6652 | }; | |
6653 | ||
6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
6655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6657 | result = (int) ((arg1)->encoding); | |
6658 | ||
6659 | resultobj = SWIG_FromInt((int)result); | |
6660 | return resultobj; | |
6661 | fail: | |
6662 | return NULL; | |
6663 | } | |
6664 | ||
6665 | ||
6666 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6667 | PyObject *resultobj; | |
6668 | wxNativeEncodingInfo *result; | |
6669 | char *kwnames[] = { | |
6670 | NULL | |
6671 | }; | |
6672 | ||
6673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
6674 | { | |
6675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6676 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
6677 | ||
6678 | wxPyEndAllowThreads(__tstate); | |
6679 | if (PyErr_Occurred()) SWIG_fail; | |
6680 | } | |
6681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
6682 | return resultobj; | |
6683 | fail: | |
6684 | return NULL; | |
6685 | } | |
6686 | ||
6687 | ||
6688 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6689 | PyObject *resultobj; | |
6690 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6691 | PyObject * obj0 = 0 ; | |
6692 | char *kwnames[] = { | |
6693 | (char *) "self", NULL | |
6694 | }; | |
6695 | ||
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
6697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | delete arg1; | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | Py_INCREF(Py_None); resultobj = Py_None; | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
6713 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject *resultobj; | |
6715 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6716 | wxString *arg2 = 0 ; | |
6717 | bool result; | |
6718 | bool temp2 = False ; | |
6719 | PyObject * obj0 = 0 ; | |
6720 | PyObject * obj1 = 0 ; | |
6721 | char *kwnames[] = { | |
6722 | (char *) "self",(char *) "s", NULL | |
6723 | }; | |
6724 | ||
6725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
6726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6728 | { | |
6729 | arg2 = wxString_in_helper(obj1); | |
6730 | if (arg2 == NULL) SWIG_fail; | |
6731 | temp2 = True; | |
6732 | } | |
6733 | { | |
6734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6735 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
6736 | ||
6737 | wxPyEndAllowThreads(__tstate); | |
6738 | if (PyErr_Occurred()) SWIG_fail; | |
6739 | } | |
6740 | { | |
6741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6742 | } | |
6743 | { | |
6744 | if (temp2) | |
6745 | delete arg2; | |
6746 | } | |
6747 | return resultobj; | |
6748 | fail: | |
6749 | { | |
6750 | if (temp2) | |
6751 | delete arg2; | |
6752 | } | |
6753 | return NULL; | |
6754 | } | |
6755 | ||
6756 | ||
6757 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6758 | PyObject *resultobj; | |
6759 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
6760 | wxString result; | |
6761 | PyObject * obj0 = 0 ; | |
6762 | char *kwnames[] = { | |
6763 | (char *) "self", NULL | |
6764 | }; | |
6765 | ||
6766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
6767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6769 | { | |
6770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6771 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
6772 | ||
6773 | wxPyEndAllowThreads(__tstate); | |
6774 | if (PyErr_Occurred()) SWIG_fail; | |
6775 | } | |
6776 | { | |
6777 | #if wxUSE_UNICODE | |
6778 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6779 | #else | |
6780 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6781 | #endif | |
6782 | } | |
6783 | return resultobj; | |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
6789 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
6790 | PyObject *obj; | |
6791 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6792 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
6793 | Py_INCREF(obj); | |
6794 | return Py_BuildValue((char *)""); | |
6795 | } | |
6796 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6797 | PyObject *resultobj; | |
6798 | int arg1 ; | |
6799 | wxNativeEncodingInfo *result; | |
6800 | PyObject * obj0 = 0 ; | |
6801 | char *kwnames[] = { | |
6802 | (char *) "encoding", NULL | |
6803 | }; | |
6804 | ||
6805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; | |
6806 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
6807 | if (PyErr_Occurred()) SWIG_fail; | |
6808 | { | |
6809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6810 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
6811 | ||
6812 | wxPyEndAllowThreads(__tstate); | |
6813 | if (PyErr_Occurred()) SWIG_fail; | |
6814 | } | |
6815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
6816 | return resultobj; | |
6817 | fail: | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
6822 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6823 | PyObject *resultobj; | |
6824 | wxNativeEncodingInfo *arg1 = 0 ; | |
6825 | bool result; | |
6826 | PyObject * obj0 = 0 ; | |
6827 | char *kwnames[] = { | |
6828 | (char *) "info", NULL | |
6829 | }; | |
6830 | ||
6831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
6832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
6833 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6834 | SWIG_fail; | |
6835 | if (arg1 == NULL) { | |
6836 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6837 | SWIG_fail; | |
6838 | } | |
6839 | { | |
6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6841 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
6842 | ||
6843 | wxPyEndAllowThreads(__tstate); | |
6844 | if (PyErr_Occurred()) SWIG_fail; | |
6845 | } | |
6846 | { | |
6847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6848 | } | |
6849 | return resultobj; | |
6850 | fail: | |
6851 | return NULL; | |
6852 | } | |
6853 | ||
6854 | ||
6855 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6856 | PyObject *resultobj; | |
6857 | wxFontMapper *result; | |
6858 | char *kwnames[] = { | |
6859 | NULL | |
6860 | }; | |
6861 | ||
6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
6863 | { | |
6864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6865 | result = (wxFontMapper *)new wxFontMapper(); | |
6866 | ||
6867 | wxPyEndAllowThreads(__tstate); | |
6868 | if (PyErr_Occurred()) SWIG_fail; | |
6869 | } | |
6870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); | |
6871 | return resultobj; | |
6872 | fail: | |
6873 | return NULL; | |
6874 | } | |
6875 | ||
6876 | ||
6877 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6878 | PyObject *resultobj; | |
6879 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6880 | PyObject * obj0 = 0 ; | |
6881 | char *kwnames[] = { | |
6882 | (char *) "self", NULL | |
6883 | }; | |
6884 | ||
6885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
6886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
6887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6888 | { | |
6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6890 | delete arg1; | |
6891 | ||
6892 | wxPyEndAllowThreads(__tstate); | |
6893 | if (PyErr_Occurred()) SWIG_fail; | |
6894 | } | |
6895 | Py_INCREF(Py_None); resultobj = Py_None; | |
6896 | return resultobj; | |
6897 | fail: | |
6898 | return NULL; | |
6899 | } | |
6900 | ||
6901 | ||
6902 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject *resultobj; | |
6904 | wxFontMapper *result; | |
6905 | char *kwnames[] = { | |
6906 | NULL | |
6907 | }; | |
6908 | ||
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
6910 | { | |
6911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6912 | result = (wxFontMapper *)wxFontMapper::Get(); | |
6913 | ||
6914 | wxPyEndAllowThreads(__tstate); | |
6915 | if (PyErr_Occurred()) SWIG_fail; | |
6916 | } | |
6917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
6918 | return resultobj; | |
6919 | fail: | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
6924 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6925 | PyObject *resultobj; | |
6926 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6927 | wxFontMapper *result; | |
6928 | PyObject * obj0 = 0 ; | |
6929 | char *kwnames[] = { | |
6930 | (char *) "mapper", NULL | |
6931 | }; | |
6932 | ||
6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
6934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
6935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6936 | { | |
6937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6938 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
6939 | ||
6940 | wxPyEndAllowThreads(__tstate); | |
6941 | if (PyErr_Occurred()) SWIG_fail; | |
6942 | } | |
6943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
6944 | return resultobj; | |
6945 | fail: | |
6946 | return NULL; | |
6947 | } | |
6948 | ||
6949 | ||
6950 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6951 | PyObject *resultobj; | |
6952 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
6953 | wxString *arg2 = 0 ; | |
6954 | bool arg3 = (bool) True ; | |
6955 | int result; | |
6956 | bool temp2 = False ; | |
6957 | PyObject * obj0 = 0 ; | |
6958 | PyObject * obj1 = 0 ; | |
6959 | PyObject * obj2 = 0 ; | |
6960 | char *kwnames[] = { | |
6961 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
6962 | }; | |
6963 | ||
6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
6966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6967 | { | |
6968 | arg2 = wxString_in_helper(obj1); | |
6969 | if (arg2 == NULL) SWIG_fail; | |
6970 | temp2 = True; | |
6971 | } | |
6972 | if (obj2) { | |
6973 | arg3 = (bool) SWIG_AsBool(obj2); | |
6974 | if (PyErr_Occurred()) SWIG_fail; | |
6975 | } | |
6976 | { | |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
6979 | ||
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
6983 | resultobj = SWIG_FromInt((int)result); | |
6984 | { | |
6985 | if (temp2) | |
6986 | delete arg2; | |
6987 | } | |
6988 | return resultobj; | |
6989 | fail: | |
6990 | { | |
6991 | if (temp2) | |
6992 | delete arg2; | |
6993 | } | |
6994 | return NULL; | |
6995 | } | |
6996 | ||
6997 | ||
6998 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6999 | PyObject *resultobj; | |
7000 | size_t result; | |
7001 | char *kwnames[] = { | |
7002 | NULL | |
7003 | }; | |
7004 | ||
7005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7006 | { | |
7007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7008 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7009 | ||
7010 | wxPyEndAllowThreads(__tstate); | |
7011 | if (PyErr_Occurred()) SWIG_fail; | |
7012 | } | |
7013 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7014 | return resultobj; | |
7015 | fail: | |
7016 | return NULL; | |
7017 | } | |
7018 | ||
7019 | ||
7020 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject *resultobj; | |
7022 | size_t arg1 ; | |
7023 | int result; | |
7024 | PyObject * obj0 = 0 ; | |
7025 | char *kwnames[] = { | |
7026 | (char *) "n", NULL | |
7027 | }; | |
7028 | ||
7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
7030 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
7031 | if (PyErr_Occurred()) SWIG_fail; | |
7032 | { | |
7033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7034 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7035 | ||
7036 | wxPyEndAllowThreads(__tstate); | |
7037 | if (PyErr_Occurred()) SWIG_fail; | |
7038 | } | |
7039 | resultobj = SWIG_FromInt((int)result); | |
7040 | return resultobj; | |
7041 | fail: | |
7042 | return NULL; | |
7043 | } | |
7044 | ||
7045 | ||
7046 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7047 | PyObject *resultobj; | |
7048 | int arg1 ; | |
7049 | wxString result; | |
7050 | PyObject * obj0 = 0 ; | |
7051 | char *kwnames[] = { | |
7052 | (char *) "encoding", NULL | |
7053 | }; | |
7054 | ||
7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; | |
7056 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7057 | if (PyErr_Occurred()) SWIG_fail; | |
7058 | { | |
7059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7060 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7061 | ||
7062 | wxPyEndAllowThreads(__tstate); | |
7063 | if (PyErr_Occurred()) SWIG_fail; | |
7064 | } | |
7065 | { | |
7066 | #if wxUSE_UNICODE | |
7067 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7068 | #else | |
7069 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7070 | #endif | |
7071 | } | |
7072 | return resultobj; | |
7073 | fail: | |
7074 | return NULL; | |
7075 | } | |
7076 | ||
7077 | ||
7078 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7079 | PyObject *resultobj; | |
7080 | int arg1 ; | |
7081 | wxString result; | |
7082 | PyObject * obj0 = 0 ; | |
7083 | char *kwnames[] = { | |
7084 | (char *) "encoding", NULL | |
7085 | }; | |
7086 | ||
7087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; | |
7088 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7089 | if (PyErr_Occurred()) SWIG_fail; | |
7090 | { | |
7091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7092 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7093 | ||
7094 | wxPyEndAllowThreads(__tstate); | |
7095 | if (PyErr_Occurred()) SWIG_fail; | |
7096 | } | |
7097 | { | |
7098 | #if wxUSE_UNICODE | |
7099 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7100 | #else | |
7101 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7102 | #endif | |
7103 | } | |
7104 | return resultobj; | |
7105 | fail: | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj; | |
7112 | wxString *arg1 = 0 ; | |
7113 | int result; | |
7114 | bool temp1 = False ; | |
7115 | PyObject * obj0 = 0 ; | |
7116 | char *kwnames[] = { | |
7117 | (char *) "name", NULL | |
7118 | }; | |
7119 | ||
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7121 | { | |
7122 | arg1 = wxString_in_helper(obj0); | |
7123 | if (arg1 == NULL) SWIG_fail; | |
7124 | temp1 = True; | |
7125 | } | |
7126 | { | |
7127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7128 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7129 | ||
7130 | wxPyEndAllowThreads(__tstate); | |
7131 | if (PyErr_Occurred()) SWIG_fail; | |
7132 | } | |
7133 | resultobj = SWIG_FromInt((int)result); | |
7134 | { | |
7135 | if (temp1) | |
7136 | delete arg1; | |
7137 | } | |
7138 | return resultobj; | |
7139 | fail: | |
7140 | { | |
7141 | if (temp1) | |
7142 | delete arg1; | |
7143 | } | |
7144 | return NULL; | |
7145 | } | |
7146 | ||
7147 | ||
7148 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7149 | PyObject *resultobj; | |
7150 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7151 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7152 | PyObject * obj0 = 0 ; | |
7153 | PyObject * obj1 = 0 ; | |
7154 | char *kwnames[] = { | |
7155 | (char *) "self",(char *) "config", NULL | |
7156 | }; | |
7157 | ||
7158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7163 | { | |
7164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7165 | (arg1)->SetConfig(arg2); | |
7166 | ||
7167 | wxPyEndAllowThreads(__tstate); | |
7168 | if (PyErr_Occurred()) SWIG_fail; | |
7169 | } | |
7170 | Py_INCREF(Py_None); resultobj = Py_None; | |
7171 | return resultobj; | |
7172 | fail: | |
7173 | return NULL; | |
7174 | } | |
7175 | ||
7176 | ||
7177 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7178 | PyObject *resultobj; | |
7179 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7180 | wxString *arg2 = 0 ; | |
7181 | bool temp2 = False ; | |
7182 | PyObject * obj0 = 0 ; | |
7183 | PyObject * obj1 = 0 ; | |
7184 | char *kwnames[] = { | |
7185 | (char *) "self",(char *) "prefix", NULL | |
7186 | }; | |
7187 | ||
7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
7189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7191 | { | |
7192 | arg2 = wxString_in_helper(obj1); | |
7193 | if (arg2 == NULL) SWIG_fail; | |
7194 | temp2 = True; | |
7195 | } | |
7196 | { | |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | Py_INCREF(Py_None); resultobj = Py_None; | |
7204 | { | |
7205 | if (temp2) | |
7206 | delete arg2; | |
7207 | } | |
7208 | return resultobj; | |
7209 | fail: | |
7210 | { | |
7211 | if (temp2) | |
7212 | delete arg2; | |
7213 | } | |
7214 | return NULL; | |
7215 | } | |
7216 | ||
7217 | ||
7218 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7219 | PyObject *resultobj; | |
7220 | wxString result; | |
7221 | char *kwnames[] = { | |
7222 | NULL | |
7223 | }; | |
7224 | ||
7225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7226 | { | |
7227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7228 | result = wxFontMapper::GetDefaultConfigPath(); | |
7229 | ||
7230 | wxPyEndAllowThreads(__tstate); | |
7231 | if (PyErr_Occurred()) SWIG_fail; | |
7232 | } | |
7233 | { | |
7234 | #if wxUSE_UNICODE | |
7235 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7236 | #else | |
7237 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7238 | #endif | |
7239 | } | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
7246 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7247 | PyObject *resultobj; | |
7248 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7249 | int arg2 ; | |
7250 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7251 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7252 | bool arg4 = (bool) True ; | |
7253 | PyObject *result; | |
7254 | bool temp3 = False ; | |
7255 | PyObject * obj0 = 0 ; | |
7256 | PyObject * obj1 = 0 ; | |
7257 | PyObject * obj2 = 0 ; | |
7258 | PyObject * obj3 = 0 ; | |
7259 | char *kwnames[] = { | |
7260 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7261 | }; | |
7262 | ||
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7266 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7267 | if (PyErr_Occurred()) SWIG_fail; | |
7268 | if (obj2) { | |
7269 | { | |
7270 | arg3 = wxString_in_helper(obj2); | |
7271 | if (arg3 == NULL) SWIG_fail; | |
7272 | temp3 = True; | |
7273 | } | |
7274 | } | |
7275 | if (obj3) { | |
7276 | arg4 = (bool) SWIG_AsBool(obj3); | |
7277 | if (PyErr_Occurred()) SWIG_fail; | |
7278 | } | |
7279 | { | |
7280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7281 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7282 | ||
7283 | wxPyEndAllowThreads(__tstate); | |
7284 | if (PyErr_Occurred()) SWIG_fail; | |
7285 | } | |
7286 | resultobj = result; | |
7287 | { | |
7288 | if (temp3) | |
7289 | delete arg3; | |
7290 | } | |
7291 | return resultobj; | |
7292 | fail: | |
7293 | { | |
7294 | if (temp3) | |
7295 | delete arg3; | |
7296 | } | |
7297 | return NULL; | |
7298 | } | |
7299 | ||
7300 | ||
7301 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7302 | PyObject *resultobj; | |
7303 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7304 | int arg2 ; | |
7305 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7306 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7307 | bool result; | |
7308 | bool temp3 = False ; | |
7309 | PyObject * obj0 = 0 ; | |
7310 | PyObject * obj1 = 0 ; | |
7311 | PyObject * obj2 = 0 ; | |
7312 | char *kwnames[] = { | |
7313 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
7314 | }; | |
7315 | ||
7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
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; | |
7321 | if (obj2) { | |
7322 | { | |
7323 | arg3 = wxString_in_helper(obj2); | |
7324 | if (arg3 == NULL) SWIG_fail; | |
7325 | temp3 = True; | |
7326 | } | |
7327 | } | |
7328 | { | |
7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7330 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
7331 | ||
7332 | wxPyEndAllowThreads(__tstate); | |
7333 | if (PyErr_Occurred()) SWIG_fail; | |
7334 | } | |
7335 | { | |
7336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7337 | } | |
7338 | { | |
7339 | if (temp3) | |
7340 | delete arg3; | |
7341 | } | |
7342 | return resultobj; | |
7343 | fail: | |
7344 | { | |
7345 | if (temp3) | |
7346 | delete arg3; | |
7347 | } | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7355 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7356 | PyObject * obj0 = 0 ; | |
7357 | PyObject * obj1 = 0 ; | |
7358 | char *kwnames[] = { | |
7359 | (char *) "self",(char *) "parent", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
7363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7367 | { | |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | (arg1)->SetDialogParent(arg2); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
7374 | Py_INCREF(Py_None); resultobj = Py_None; | |
7375 | return resultobj; | |
7376 | fail: | |
7377 | return NULL; | |
7378 | } | |
7379 | ||
7380 | ||
7381 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7382 | PyObject *resultobj; | |
7383 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7384 | wxString *arg2 = 0 ; | |
7385 | bool temp2 = False ; | |
7386 | PyObject * obj0 = 0 ; | |
7387 | PyObject * obj1 = 0 ; | |
7388 | char *kwnames[] = { | |
7389 | (char *) "self",(char *) "title", NULL | |
7390 | }; | |
7391 | ||
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
7393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7395 | { | |
7396 | arg2 = wxString_in_helper(obj1); | |
7397 | if (arg2 == NULL) SWIG_fail; | |
7398 | temp2 = True; | |
7399 | } | |
7400 | { | |
7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7402 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
7403 | ||
7404 | wxPyEndAllowThreads(__tstate); | |
7405 | if (PyErr_Occurred()) SWIG_fail; | |
7406 | } | |
7407 | Py_INCREF(Py_None); resultobj = Py_None; | |
7408 | { | |
7409 | if (temp2) | |
7410 | delete arg2; | |
7411 | } | |
7412 | return resultobj; | |
7413 | fail: | |
7414 | { | |
7415 | if (temp2) | |
7416 | delete arg2; | |
7417 | } | |
7418 | return NULL; | |
7419 | } | |
7420 | ||
7421 | ||
7422 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
7423 | PyObject *obj; | |
7424 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7425 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
7426 | Py_INCREF(obj); | |
7427 | return Py_BuildValue((char *)""); | |
7428 | } | |
7429 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7430 | PyObject *resultobj; | |
7431 | int arg1 ; | |
7432 | int arg2 ; | |
7433 | int arg3 ; | |
7434 | int arg4 ; | |
7435 | bool arg5 = (bool) False ; | |
7436 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
7437 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7438 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
7439 | wxFont *result; | |
7440 | bool temp6 = False ; | |
7441 | PyObject * obj0 = 0 ; | |
7442 | PyObject * obj1 = 0 ; | |
7443 | PyObject * obj2 = 0 ; | |
7444 | PyObject * obj3 = 0 ; | |
7445 | PyObject * obj4 = 0 ; | |
7446 | PyObject * obj5 = 0 ; | |
7447 | PyObject * obj6 = 0 ; | |
7448 | char *kwnames[] = { | |
7449 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
7450 | }; | |
7451 | ||
7452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
7453 | arg1 = (int) SWIG_AsInt(obj0); | |
7454 | if (PyErr_Occurred()) SWIG_fail; | |
7455 | arg2 = (int) SWIG_AsInt(obj1); | |
7456 | if (PyErr_Occurred()) SWIG_fail; | |
7457 | arg3 = (int) SWIG_AsInt(obj2); | |
7458 | if (PyErr_Occurred()) SWIG_fail; | |
7459 | arg4 = (int) SWIG_AsInt(obj3); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | if (obj4) { | |
7462 | arg5 = (bool) SWIG_AsBool(obj4); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | if (obj5) { | |
7466 | { | |
7467 | arg6 = wxString_in_helper(obj5); | |
7468 | if (arg6 == NULL) SWIG_fail; | |
7469 | temp6 = True; | |
7470 | } | |
7471 | } | |
7472 | if (obj6) { | |
7473 | arg7 = (wxFontEncoding) SWIG_AsInt(obj6); | |
7474 | if (PyErr_Occurred()) SWIG_fail; | |
7475 | } | |
7476 | { | |
7477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7478 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
7479 | ||
7480 | wxPyEndAllowThreads(__tstate); | |
7481 | if (PyErr_Occurred()) SWIG_fail; | |
7482 | } | |
7483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7484 | { | |
7485 | if (temp6) | |
7486 | delete arg6; | |
7487 | } | |
7488 | return resultobj; | |
7489 | fail: | |
7490 | { | |
7491 | if (temp6) | |
7492 | delete arg6; | |
7493 | } | |
7494 | return NULL; | |
7495 | } | |
7496 | ||
7497 | ||
7498 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7499 | PyObject *resultobj; | |
7500 | wxFont *arg1 = (wxFont *) 0 ; | |
7501 | PyObject * obj0 = 0 ; | |
7502 | char *kwnames[] = { | |
7503 | (char *) "self", NULL | |
7504 | }; | |
7505 | ||
7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
7507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7509 | { | |
7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7511 | delete arg1; | |
7512 | ||
7513 | wxPyEndAllowThreads(__tstate); | |
7514 | if (PyErr_Occurred()) SWIG_fail; | |
7515 | } | |
7516 | Py_INCREF(Py_None); resultobj = Py_None; | |
7517 | return resultobj; | |
7518 | fail: | |
7519 | return NULL; | |
7520 | } | |
7521 | ||
7522 | ||
7523 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7524 | PyObject *resultobj; | |
7525 | wxNativeFontInfo *arg1 = 0 ; | |
7526 | wxFont *result; | |
7527 | PyObject * obj0 = 0 ; | |
7528 | char *kwnames[] = { | |
7529 | (char *) "info", NULL | |
7530 | }; | |
7531 | ||
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
7533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7534 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7535 | SWIG_fail; | |
7536 | if (arg1 == NULL) { | |
7537 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7538 | SWIG_fail; | |
7539 | } | |
7540 | { | |
7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7542 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
7543 | ||
7544 | wxPyEndAllowThreads(__tstate); | |
7545 | if (PyErr_Occurred()) SWIG_fail; | |
7546 | } | |
7547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7548 | return resultobj; | |
7549 | fail: | |
7550 | return NULL; | |
7551 | } | |
7552 | ||
7553 | ||
7554 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7555 | PyObject *resultobj; | |
7556 | wxString *arg1 = 0 ; | |
7557 | wxFont *result; | |
7558 | bool temp1 = False ; | |
7559 | PyObject * obj0 = 0 ; | |
7560 | char *kwnames[] = { | |
7561 | (char *) "info", NULL | |
7562 | }; | |
7563 | ||
7564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
7565 | { | |
7566 | arg1 = wxString_in_helper(obj0); | |
7567 | if (arg1 == NULL) SWIG_fail; | |
7568 | temp1 = True; | |
7569 | } | |
7570 | { | |
7571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7572 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
7573 | ||
7574 | wxPyEndAllowThreads(__tstate); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
7577 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7578 | { | |
7579 | if (temp1) | |
7580 | delete arg1; | |
7581 | } | |
7582 | return resultobj; | |
7583 | fail: | |
7584 | { | |
7585 | if (temp1) | |
7586 | delete arg1; | |
7587 | } | |
7588 | return NULL; | |
7589 | } | |
7590 | ||
7591 | ||
7592 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7593 | PyObject *resultobj; | |
7594 | int arg1 ; | |
7595 | int arg2 ; | |
7596 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
7597 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7598 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7599 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
7600 | wxFont *result; | |
7601 | bool temp4 = False ; | |
7602 | PyObject * obj0 = 0 ; | |
7603 | PyObject * obj1 = 0 ; | |
7604 | PyObject * obj2 = 0 ; | |
7605 | PyObject * obj3 = 0 ; | |
7606 | PyObject * obj4 = 0 ; | |
7607 | char *kwnames[] = { | |
7608 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
7609 | }; | |
7610 | ||
7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
7612 | arg1 = (int) SWIG_AsInt(obj0); | |
7613 | if (PyErr_Occurred()) SWIG_fail; | |
7614 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
7615 | if (PyErr_Occurred()) SWIG_fail; | |
7616 | if (obj2) { | |
7617 | arg3 = (int) SWIG_AsInt(obj2); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | if (obj3) { | |
7621 | { | |
7622 | arg4 = wxString_in_helper(obj3); | |
7623 | if (arg4 == NULL) SWIG_fail; | |
7624 | temp4 = True; | |
7625 | } | |
7626 | } | |
7627 | if (obj4) { | |
7628 | arg5 = (wxFontEncoding) SWIG_AsInt(obj4); | |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
7630 | } | |
7631 | { | |
7632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7633 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
7634 | ||
7635 | wxPyEndAllowThreads(__tstate); | |
7636 | if (PyErr_Occurred()) SWIG_fail; | |
7637 | } | |
7638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
7639 | { | |
7640 | if (temp4) | |
7641 | delete arg4; | |
7642 | } | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | { | |
7646 | if (temp4) | |
7647 | delete arg4; | |
7648 | } | |
7649 | return NULL; | |
7650 | } | |
7651 | ||
7652 | ||
7653 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7654 | PyObject *resultobj; | |
7655 | wxFont *arg1 = (wxFont *) 0 ; | |
7656 | bool result; | |
7657 | PyObject * obj0 = 0 ; | |
7658 | char *kwnames[] = { | |
7659 | (char *) "self", NULL | |
7660 | }; | |
7661 | ||
7662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
7663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | result = (bool)((wxFont const *)arg1)->Ok(); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) SWIG_fail; | |
7671 | } | |
7672 | { | |
7673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7674 | } | |
7675 | return resultobj; | |
7676 | fail: | |
7677 | return NULL; | |
7678 | } | |
7679 | ||
7680 | ||
7681 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7682 | PyObject *resultobj; | |
7683 | wxFont *arg1 = (wxFont *) 0 ; | |
7684 | wxFont *arg2 = (wxFont *) 0 ; | |
7685 | bool result; | |
7686 | PyObject * obj0 = 0 ; | |
7687 | PyObject * obj1 = 0 ; | |
7688 | char *kwnames[] = { | |
7689 | (char *) "self",(char *) "other", NULL | |
7690 | }; | |
7691 | ||
7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
7693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7697 | { | |
7698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7699 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
7700 | ||
7701 | wxPyEndAllowThreads(__tstate); | |
7702 | if (PyErr_Occurred()) SWIG_fail; | |
7703 | } | |
7704 | { | |
7705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7706 | } | |
7707 | return resultobj; | |
7708 | fail: | |
7709 | return NULL; | |
7710 | } | |
7711 | ||
7712 | ||
7713 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject *resultobj; | |
7715 | wxFont *arg1 = (wxFont *) 0 ; | |
7716 | wxFont *arg2 = (wxFont *) 0 ; | |
7717 | bool result; | |
7718 | PyObject * obj0 = 0 ; | |
7719 | PyObject * obj1 = 0 ; | |
7720 | char *kwnames[] = { | |
7721 | (char *) "self",(char *) "other", NULL | |
7722 | }; | |
7723 | ||
7724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
7725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7729 | { | |
7730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7731 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
7732 | ||
7733 | wxPyEndAllowThreads(__tstate); | |
7734 | if (PyErr_Occurred()) SWIG_fail; | |
7735 | } | |
7736 | { | |
7737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7738 | } | |
7739 | return resultobj; | |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
7745 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7746 | PyObject *resultobj; | |
7747 | wxFont *arg1 = (wxFont *) 0 ; | |
7748 | int result; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | char *kwnames[] = { | |
7751 | (char *) "self", NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail; | |
7755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | resultobj = SWIG_FromInt((int)result); | |
7765 | return resultobj; | |
7766 | fail: | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
7771 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject *resultobj; | |
7773 | wxFont *arg1 = (wxFont *) 0 ; | |
7774 | int result; | |
7775 | PyObject * obj0 = 0 ; | |
7776 | char *kwnames[] = { | |
7777 | (char *) "self", NULL | |
7778 | }; | |
7779 | ||
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
7781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7783 | { | |
7784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7785 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
7786 | ||
7787 | wxPyEndAllowThreads(__tstate); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | } | |
7790 | resultobj = SWIG_FromInt((int)result); | |
7791 | return resultobj; | |
7792 | fail: | |
7793 | return NULL; | |
7794 | } | |
7795 | ||
7796 | ||
7797 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7798 | PyObject *resultobj; | |
7799 | wxFont *arg1 = (wxFont *) 0 ; | |
7800 | int result; | |
7801 | PyObject * obj0 = 0 ; | |
7802 | char *kwnames[] = { | |
7803 | (char *) "self", NULL | |
7804 | }; | |
7805 | ||
7806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
7807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7809 | { | |
7810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7811 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
7812 | ||
7813 | wxPyEndAllowThreads(__tstate); | |
7814 | if (PyErr_Occurred()) SWIG_fail; | |
7815 | } | |
7816 | resultobj = SWIG_FromInt((int)result); | |
7817 | return resultobj; | |
7818 | fail: | |
7819 | return NULL; | |
7820 | } | |
7821 | ||
7822 | ||
7823 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7824 | PyObject *resultobj; | |
7825 | wxFont *arg1 = (wxFont *) 0 ; | |
7826 | int result; | |
7827 | PyObject * obj0 = 0 ; | |
7828 | char *kwnames[] = { | |
7829 | (char *) "self", NULL | |
7830 | }; | |
7831 | ||
7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
7833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7835 | { | |
7836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7837 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
7838 | ||
7839 | wxPyEndAllowThreads(__tstate); | |
7840 | if (PyErr_Occurred()) SWIG_fail; | |
7841 | } | |
7842 | resultobj = SWIG_FromInt((int)result); | |
7843 | return resultobj; | |
7844 | fail: | |
7845 | return NULL; | |
7846 | } | |
7847 | ||
7848 | ||
7849 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7850 | PyObject *resultobj; | |
7851 | wxFont *arg1 = (wxFont *) 0 ; | |
7852 | bool result; | |
7853 | PyObject * obj0 = 0 ; | |
7854 | char *kwnames[] = { | |
7855 | (char *) "self", NULL | |
7856 | }; | |
7857 | ||
7858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
7859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7861 | { | |
7862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7863 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
7864 | ||
7865 | wxPyEndAllowThreads(__tstate); | |
7866 | if (PyErr_Occurred()) SWIG_fail; | |
7867 | } | |
7868 | { | |
7869 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7870 | } | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
7877 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7878 | PyObject *resultobj; | |
7879 | wxFont *arg1 = (wxFont *) 0 ; | |
7880 | wxString result; | |
7881 | PyObject * obj0 = 0 ; | |
7882 | char *kwnames[] = { | |
7883 | (char *) "self", NULL | |
7884 | }; | |
7885 | ||
7886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
7887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7889 | { | |
7890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7891 | result = ((wxFont const *)arg1)->GetFaceName(); | |
7892 | ||
7893 | wxPyEndAllowThreads(__tstate); | |
7894 | if (PyErr_Occurred()) SWIG_fail; | |
7895 | } | |
7896 | { | |
7897 | #if wxUSE_UNICODE | |
7898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7899 | #else | |
7900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7901 | #endif | |
7902 | } | |
7903 | return resultobj; | |
7904 | fail: | |
7905 | return NULL; | |
7906 | } | |
7907 | ||
7908 | ||
7909 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7910 | PyObject *resultobj; | |
7911 | wxFont *arg1 = (wxFont *) 0 ; | |
7912 | int result; | |
7913 | PyObject * obj0 = 0 ; | |
7914 | char *kwnames[] = { | |
7915 | (char *) "self", NULL | |
7916 | }; | |
7917 | ||
7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
7919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7921 | { | |
7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7923 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
7924 | ||
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
7928 | resultobj = SWIG_FromInt((int)result); | |
7929 | return resultobj; | |
7930 | fail: | |
7931 | return NULL; | |
7932 | } | |
7933 | ||
7934 | ||
7935 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7936 | PyObject *resultobj; | |
7937 | wxFont *arg1 = (wxFont *) 0 ; | |
7938 | wxNativeFontInfo *result; | |
7939 | PyObject * obj0 = 0 ; | |
7940 | char *kwnames[] = { | |
7941 | (char *) "self", NULL | |
7942 | }; | |
7943 | ||
7944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
7945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7947 | { | |
7948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7949 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
7950 | ||
7951 | wxPyEndAllowThreads(__tstate); | |
7952 | if (PyErr_Occurred()) SWIG_fail; | |
7953 | } | |
7954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); | |
7955 | return resultobj; | |
7956 | fail: | |
7957 | return NULL; | |
7958 | } | |
7959 | ||
7960 | ||
7961 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7962 | PyObject *resultobj; | |
7963 | wxFont *arg1 = (wxFont *) 0 ; | |
7964 | bool result; | |
7965 | PyObject * obj0 = 0 ; | |
7966 | char *kwnames[] = { | |
7967 | (char *) "self", NULL | |
7968 | }; | |
7969 | ||
7970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
7971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
7972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7973 | { | |
7974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7975 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
7976 | ||
7977 | wxPyEndAllowThreads(__tstate); | |
7978 | if (PyErr_Occurred()) SWIG_fail; | |
7979 | } | |
7980 | { | |
7981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7982 | } | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | return NULL; | |
7986 | } | |
7987 | ||
7988 | ||
7989 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7990 | PyObject *resultobj; | |
7991 | wxFont *arg1 = (wxFont *) 0 ; | |
7992 | wxString result; | |
7993 | PyObject * obj0 = 0 ; | |
7994 | char *kwnames[] = { | |
7995 | (char *) "self", NULL | |
7996 | }; | |
7997 | ||
7998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
7999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8001 | { | |
8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8003 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8004 | ||
8005 | wxPyEndAllowThreads(__tstate); | |
8006 | if (PyErr_Occurred()) SWIG_fail; | |
8007 | } | |
8008 | { | |
8009 | #if wxUSE_UNICODE | |
8010 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8011 | #else | |
8012 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8013 | #endif | |
8014 | } | |
8015 | return resultobj; | |
8016 | fail: | |
8017 | return NULL; | |
8018 | } | |
8019 | ||
8020 | ||
8021 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8022 | PyObject *resultobj; | |
8023 | wxFont *arg1 = (wxFont *) 0 ; | |
8024 | wxString result; | |
8025 | PyObject * obj0 = 0 ; | |
8026 | char *kwnames[] = { | |
8027 | (char *) "self", NULL | |
8028 | }; | |
8029 | ||
8030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
8031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8033 | { | |
8034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8035 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8036 | ||
8037 | wxPyEndAllowThreads(__tstate); | |
8038 | if (PyErr_Occurred()) SWIG_fail; | |
8039 | } | |
8040 | { | |
8041 | #if wxUSE_UNICODE | |
8042 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8043 | #else | |
8044 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8045 | #endif | |
8046 | } | |
8047 | return resultobj; | |
8048 | fail: | |
8049 | return NULL; | |
8050 | } | |
8051 | ||
8052 | ||
8053 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8054 | PyObject *resultobj; | |
8055 | wxFont *arg1 = (wxFont *) 0 ; | |
8056 | int arg2 ; | |
8057 | PyObject * obj0 = 0 ; | |
8058 | PyObject * obj1 = 0 ; | |
8059 | char *kwnames[] = { | |
8060 | (char *) "self",(char *) "pointSize", NULL | |
8061 | }; | |
8062 | ||
8063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
8064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8066 | arg2 = (int) SWIG_AsInt(obj1); | |
8067 | if (PyErr_Occurred()) SWIG_fail; | |
8068 | { | |
8069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8070 | (arg1)->SetPointSize(arg2); | |
8071 | ||
8072 | wxPyEndAllowThreads(__tstate); | |
8073 | if (PyErr_Occurred()) SWIG_fail; | |
8074 | } | |
8075 | Py_INCREF(Py_None); resultobj = Py_None; | |
8076 | return resultobj; | |
8077 | fail: | |
8078 | return NULL; | |
8079 | } | |
8080 | ||
8081 | ||
8082 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8083 | PyObject *resultobj; | |
8084 | wxFont *arg1 = (wxFont *) 0 ; | |
8085 | int arg2 ; | |
8086 | PyObject * obj0 = 0 ; | |
8087 | PyObject * obj1 = 0 ; | |
8088 | char *kwnames[] = { | |
8089 | (char *) "self",(char *) "family", NULL | |
8090 | }; | |
8091 | ||
8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
8093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8095 | arg2 = (int) SWIG_AsInt(obj1); | |
8096 | if (PyErr_Occurred()) SWIG_fail; | |
8097 | { | |
8098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8099 | (arg1)->SetFamily(arg2); | |
8100 | ||
8101 | wxPyEndAllowThreads(__tstate); | |
8102 | if (PyErr_Occurred()) SWIG_fail; | |
8103 | } | |
8104 | Py_INCREF(Py_None); resultobj = Py_None; | |
8105 | return resultobj; | |
8106 | fail: | |
8107 | return NULL; | |
8108 | } | |
8109 | ||
8110 | ||
8111 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8112 | PyObject *resultobj; | |
8113 | wxFont *arg1 = (wxFont *) 0 ; | |
8114 | int arg2 ; | |
8115 | PyObject * obj0 = 0 ; | |
8116 | PyObject * obj1 = 0 ; | |
8117 | char *kwnames[] = { | |
8118 | (char *) "self",(char *) "style", NULL | |
8119 | }; | |
8120 | ||
8121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
8122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8124 | arg2 = (int) SWIG_AsInt(obj1); | |
8125 | if (PyErr_Occurred()) SWIG_fail; | |
8126 | { | |
8127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8128 | (arg1)->SetStyle(arg2); | |
8129 | ||
8130 | wxPyEndAllowThreads(__tstate); | |
8131 | if (PyErr_Occurred()) SWIG_fail; | |
8132 | } | |
8133 | Py_INCREF(Py_None); resultobj = Py_None; | |
8134 | return resultobj; | |
8135 | fail: | |
8136 | return NULL; | |
8137 | } | |
8138 | ||
8139 | ||
8140 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8141 | PyObject *resultobj; | |
8142 | wxFont *arg1 = (wxFont *) 0 ; | |
8143 | int arg2 ; | |
8144 | PyObject * obj0 = 0 ; | |
8145 | PyObject * obj1 = 0 ; | |
8146 | char *kwnames[] = { | |
8147 | (char *) "self",(char *) "weight", NULL | |
8148 | }; | |
8149 | ||
8150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
8151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8153 | arg2 = (int) SWIG_AsInt(obj1); | |
8154 | if (PyErr_Occurred()) SWIG_fail; | |
8155 | { | |
8156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8157 | (arg1)->SetWeight(arg2); | |
8158 | ||
8159 | wxPyEndAllowThreads(__tstate); | |
8160 | if (PyErr_Occurred()) SWIG_fail; | |
8161 | } | |
8162 | Py_INCREF(Py_None); resultobj = Py_None; | |
8163 | return resultobj; | |
8164 | fail: | |
8165 | return NULL; | |
8166 | } | |
8167 | ||
8168 | ||
8169 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8170 | PyObject *resultobj; | |
8171 | wxFont *arg1 = (wxFont *) 0 ; | |
8172 | wxString *arg2 = 0 ; | |
8173 | bool temp2 = False ; | |
8174 | PyObject * obj0 = 0 ; | |
8175 | PyObject * obj1 = 0 ; | |
8176 | char *kwnames[] = { | |
8177 | (char *) "self",(char *) "faceName", NULL | |
8178 | }; | |
8179 | ||
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
8181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8183 | { | |
8184 | arg2 = wxString_in_helper(obj1); | |
8185 | if (arg2 == NULL) SWIG_fail; | |
8186 | temp2 = True; | |
8187 | } | |
8188 | { | |
8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8190 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8191 | ||
8192 | wxPyEndAllowThreads(__tstate); | |
8193 | if (PyErr_Occurred()) SWIG_fail; | |
8194 | } | |
8195 | Py_INCREF(Py_None); resultobj = Py_None; | |
8196 | { | |
8197 | if (temp2) | |
8198 | delete arg2; | |
8199 | } | |
8200 | return resultobj; | |
8201 | fail: | |
8202 | { | |
8203 | if (temp2) | |
8204 | delete arg2; | |
8205 | } | |
8206 | return NULL; | |
8207 | } | |
8208 | ||
8209 | ||
8210 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8211 | PyObject *resultobj; | |
8212 | wxFont *arg1 = (wxFont *) 0 ; | |
8213 | bool arg2 ; | |
8214 | PyObject * obj0 = 0 ; | |
8215 | PyObject * obj1 = 0 ; | |
8216 | char *kwnames[] = { | |
8217 | (char *) "self",(char *) "underlined", NULL | |
8218 | }; | |
8219 | ||
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8223 | arg2 = (bool) SWIG_AsBool(obj1); | |
8224 | if (PyErr_Occurred()) SWIG_fail; | |
8225 | { | |
8226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8227 | (arg1)->SetUnderlined(arg2); | |
8228 | ||
8229 | wxPyEndAllowThreads(__tstate); | |
8230 | if (PyErr_Occurred()) SWIG_fail; | |
8231 | } | |
8232 | Py_INCREF(Py_None); resultobj = Py_None; | |
8233 | return resultobj; | |
8234 | fail: | |
8235 | return NULL; | |
8236 | } | |
8237 | ||
8238 | ||
8239 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8240 | PyObject *resultobj; | |
8241 | wxFont *arg1 = (wxFont *) 0 ; | |
8242 | int arg2 ; | |
8243 | PyObject * obj0 = 0 ; | |
8244 | PyObject * obj1 = 0 ; | |
8245 | char *kwnames[] = { | |
8246 | (char *) "self",(char *) "encoding", NULL | |
8247 | }; | |
8248 | ||
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
8250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8252 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8253 | if (PyErr_Occurred()) SWIG_fail; | |
8254 | { | |
8255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8256 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8257 | ||
8258 | wxPyEndAllowThreads(__tstate); | |
8259 | if (PyErr_Occurred()) SWIG_fail; | |
8260 | } | |
8261 | Py_INCREF(Py_None); resultobj = Py_None; | |
8262 | return resultobj; | |
8263 | fail: | |
8264 | return NULL; | |
8265 | } | |
8266 | ||
8267 | ||
8268 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8269 | PyObject *resultobj; | |
8270 | wxFont *arg1 = (wxFont *) 0 ; | |
8271 | wxNativeFontInfo *arg2 = 0 ; | |
8272 | PyObject * obj0 = 0 ; | |
8273 | PyObject * obj1 = 0 ; | |
8274 | char *kwnames[] = { | |
8275 | (char *) "self",(char *) "info", NULL | |
8276 | }; | |
8277 | ||
8278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
8279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8282 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8283 | SWIG_fail; | |
8284 | if (arg2 == NULL) { | |
8285 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8286 | SWIG_fail; | |
8287 | } | |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | } | |
8295 | Py_INCREF(Py_None); resultobj = Py_None; | |
8296 | return resultobj; | |
8297 | fail: | |
8298 | return NULL; | |
8299 | } | |
8300 | ||
8301 | ||
8302 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8303 | PyObject *resultobj; | |
8304 | wxFont *arg1 = (wxFont *) 0 ; | |
8305 | wxString *arg2 = 0 ; | |
8306 | bool temp2 = False ; | |
8307 | PyObject * obj0 = 0 ; | |
8308 | PyObject * obj1 = 0 ; | |
8309 | char *kwnames[] = { | |
8310 | (char *) "self",(char *) "info", NULL | |
8311 | }; | |
8312 | ||
8313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
8314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8316 | { | |
8317 | arg2 = wxString_in_helper(obj1); | |
8318 | if (arg2 == NULL) SWIG_fail; | |
8319 | temp2 = True; | |
8320 | } | |
8321 | { | |
8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8323 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
8324 | ||
8325 | wxPyEndAllowThreads(__tstate); | |
8326 | if (PyErr_Occurred()) SWIG_fail; | |
8327 | } | |
8328 | Py_INCREF(Py_None); resultobj = Py_None; | |
8329 | { | |
8330 | if (temp2) | |
8331 | delete arg2; | |
8332 | } | |
8333 | return resultobj; | |
8334 | fail: | |
8335 | { | |
8336 | if (temp2) | |
8337 | delete arg2; | |
8338 | } | |
8339 | return NULL; | |
8340 | } | |
8341 | ||
8342 | ||
8343 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8344 | PyObject *resultobj; | |
8345 | wxFont *arg1 = (wxFont *) 0 ; | |
8346 | wxString *arg2 = 0 ; | |
8347 | bool temp2 = False ; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | PyObject * obj1 = 0 ; | |
8350 | char *kwnames[] = { | |
8351 | (char *) "self",(char *) "info", NULL | |
8352 | }; | |
8353 | ||
8354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
8355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8357 | { | |
8358 | arg2 = wxString_in_helper(obj1); | |
8359 | if (arg2 == NULL) SWIG_fail; | |
8360 | temp2 = True; | |
8361 | } | |
8362 | { | |
8363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8364 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
8365 | ||
8366 | wxPyEndAllowThreads(__tstate); | |
8367 | if (PyErr_Occurred()) SWIG_fail; | |
8368 | } | |
8369 | Py_INCREF(Py_None); resultobj = Py_None; | |
8370 | { | |
8371 | if (temp2) | |
8372 | delete arg2; | |
8373 | } | |
8374 | return resultobj; | |
8375 | fail: | |
8376 | { | |
8377 | if (temp2) | |
8378 | delete arg2; | |
8379 | } | |
8380 | return NULL; | |
8381 | } | |
8382 | ||
8383 | ||
8384 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8385 | PyObject *resultobj; | |
8386 | wxFont *arg1 = (wxFont *) 0 ; | |
8387 | wxString result; | |
8388 | PyObject * obj0 = 0 ; | |
8389 | char *kwnames[] = { | |
8390 | (char *) "self", NULL | |
8391 | }; | |
8392 | ||
8393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
8394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8396 | { | |
8397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8398 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
8399 | ||
8400 | wxPyEndAllowThreads(__tstate); | |
8401 | if (PyErr_Occurred()) SWIG_fail; | |
8402 | } | |
8403 | { | |
8404 | #if wxUSE_UNICODE | |
8405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8406 | #else | |
8407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8408 | #endif | |
8409 | } | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8417 | PyObject *resultobj; | |
8418 | wxFont *arg1 = (wxFont *) 0 ; | |
8419 | wxString result; | |
8420 | PyObject * obj0 = 0 ; | |
8421 | char *kwnames[] = { | |
8422 | (char *) "self", NULL | |
8423 | }; | |
8424 | ||
8425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
8426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8428 | { | |
8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8430 | result = ((wxFont const *)arg1)->GetStyleString(); | |
8431 | ||
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
8434 | } | |
8435 | { | |
8436 | #if wxUSE_UNICODE | |
8437 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8438 | #else | |
8439 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8440 | #endif | |
8441 | } | |
8442 | return resultobj; | |
8443 | fail: | |
8444 | return NULL; | |
8445 | } | |
8446 | ||
8447 | ||
8448 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8449 | PyObject *resultobj; | |
8450 | wxFont *arg1 = (wxFont *) 0 ; | |
8451 | wxString result; | |
8452 | PyObject * obj0 = 0 ; | |
8453 | char *kwnames[] = { | |
8454 | (char *) "self", NULL | |
8455 | }; | |
8456 | ||
8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
8458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8460 | { | |
8461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8462 | result = ((wxFont const *)arg1)->GetWeightString(); | |
8463 | ||
8464 | wxPyEndAllowThreads(__tstate); | |
8465 | if (PyErr_Occurred()) SWIG_fail; | |
8466 | } | |
8467 | { | |
8468 | #if wxUSE_UNICODE | |
8469 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8470 | #else | |
8471 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8472 | #endif | |
8473 | } | |
8474 | return resultobj; | |
8475 | fail: | |
8476 | return NULL; | |
8477 | } | |
8478 | ||
8479 | ||
8480 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8481 | PyObject *resultobj; | |
8482 | wxFont *arg1 = (wxFont *) 0 ; | |
8483 | bool arg2 = (bool) True ; | |
8484 | PyObject * obj0 = 0 ; | |
8485 | PyObject * obj1 = 0 ; | |
8486 | char *kwnames[] = { | |
8487 | (char *) "self",(char *) "no", NULL | |
8488 | }; | |
8489 | ||
8490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
8491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8493 | if (obj1) { | |
8494 | arg2 = (bool) SWIG_AsBool(obj1); | |
8495 | if (PyErr_Occurred()) SWIG_fail; | |
8496 | } | |
8497 | { | |
8498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8499 | (arg1)->SetNoAntiAliasing(arg2); | |
8500 | ||
8501 | wxPyEndAllowThreads(__tstate); | |
8502 | if (PyErr_Occurred()) SWIG_fail; | |
8503 | } | |
8504 | Py_INCREF(Py_None); resultobj = Py_None; | |
8505 | return resultobj; | |
8506 | fail: | |
8507 | return NULL; | |
8508 | } | |
8509 | ||
8510 | ||
8511 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8512 | PyObject *resultobj; | |
8513 | wxFont *arg1 = (wxFont *) 0 ; | |
8514 | bool result; | |
8515 | PyObject * obj0 = 0 ; | |
8516 | char *kwnames[] = { | |
8517 | (char *) "self", NULL | |
8518 | }; | |
8519 | ||
8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
8521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8523 | { | |
8524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8525 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
8526 | ||
8527 | wxPyEndAllowThreads(__tstate); | |
8528 | if (PyErr_Occurred()) SWIG_fail; | |
8529 | } | |
8530 | { | |
8531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8532 | } | |
8533 | return resultobj; | |
8534 | fail: | |
8535 | return NULL; | |
8536 | } | |
8537 | ||
8538 | ||
8539 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8540 | PyObject *resultobj; | |
8541 | int result; | |
8542 | char *kwnames[] = { | |
8543 | NULL | |
8544 | }; | |
8545 | ||
8546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
8547 | { | |
8548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8549 | result = (int)wxFont::GetDefaultEncoding(); | |
8550 | ||
8551 | wxPyEndAllowThreads(__tstate); | |
8552 | if (PyErr_Occurred()) SWIG_fail; | |
8553 | } | |
8554 | resultobj = SWIG_FromInt((int)result); | |
8555 | return resultobj; | |
8556 | fail: | |
8557 | return NULL; | |
8558 | } | |
8559 | ||
8560 | ||
8561 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8562 | PyObject *resultobj; | |
8563 | int arg1 ; | |
8564 | PyObject * obj0 = 0 ; | |
8565 | char *kwnames[] = { | |
8566 | (char *) "encoding", NULL | |
8567 | }; | |
8568 | ||
8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; | |
8570 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | { | |
8573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8574 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
8575 | ||
8576 | wxPyEndAllowThreads(__tstate); | |
8577 | if (PyErr_Occurred()) SWIG_fail; | |
8578 | } | |
8579 | Py_INCREF(Py_None); resultobj = Py_None; | |
8580 | return resultobj; | |
8581 | fail: | |
8582 | return NULL; | |
8583 | } | |
8584 | ||
8585 | ||
8586 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
8587 | PyObject *obj; | |
8588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8589 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
8590 | Py_INCREF(obj); | |
8591 | return Py_BuildValue((char *)""); | |
8592 | } | |
8593 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8594 | PyObject *resultobj; | |
8595 | wxPyFontEnumerator *result; | |
8596 | char *kwnames[] = { | |
8597 | NULL | |
8598 | }; | |
8599 | ||
8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
8601 | { | |
8602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8603 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
8604 | ||
8605 | wxPyEndAllowThreads(__tstate); | |
8606 | if (PyErr_Occurred()) SWIG_fail; | |
8607 | } | |
8608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); | |
8609 | return resultobj; | |
8610 | fail: | |
8611 | return NULL; | |
8612 | } | |
8613 | ||
8614 | ||
8615 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8616 | PyObject *resultobj; | |
8617 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8618 | PyObject * obj0 = 0 ; | |
8619 | char *kwnames[] = { | |
8620 | (char *) "self", NULL | |
8621 | }; | |
8622 | ||
8623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
8624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
8625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8626 | { | |
8627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8628 | delete arg1; | |
8629 | ||
8630 | wxPyEndAllowThreads(__tstate); | |
8631 | if (PyErr_Occurred()) SWIG_fail; | |
8632 | } | |
8633 | Py_INCREF(Py_None); resultobj = Py_None; | |
8634 | return resultobj; | |
8635 | fail: | |
8636 | return NULL; | |
8637 | } | |
8638 | ||
8639 | ||
8640 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8641 | PyObject *resultobj; | |
8642 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8643 | PyObject *arg2 = (PyObject *) 0 ; | |
8644 | PyObject *arg3 = (PyObject *) 0 ; | |
8645 | bool arg4 ; | |
8646 | PyObject * obj0 = 0 ; | |
8647 | PyObject * obj1 = 0 ; | |
8648 | PyObject * obj2 = 0 ; | |
8649 | PyObject * obj3 = 0 ; | |
8650 | char *kwnames[] = { | |
8651 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
8652 | }; | |
8653 | ||
8654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
8656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8657 | arg2 = obj1; | |
8658 | arg3 = obj2; | |
8659 | arg4 = (bool) SWIG_AsBool(obj3); | |
8660 | if (PyErr_Occurred()) SWIG_fail; | |
8661 | { | |
8662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8663 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
8664 | ||
8665 | wxPyEndAllowThreads(__tstate); | |
8666 | if (PyErr_Occurred()) SWIG_fail; | |
8667 | } | |
8668 | Py_INCREF(Py_None); resultobj = Py_None; | |
8669 | return resultobj; | |
8670 | fail: | |
8671 | return NULL; | |
8672 | } | |
8673 | ||
8674 | ||
8675 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8676 | PyObject *resultobj; | |
8677 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8678 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
8679 | bool arg3 = (bool) False ; | |
8680 | bool result; | |
8681 | PyObject * obj0 = 0 ; | |
8682 | PyObject * obj1 = 0 ; | |
8683 | PyObject * obj2 = 0 ; | |
8684 | char *kwnames[] = { | |
8685 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
8686 | }; | |
8687 | ||
8688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
8690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8691 | if (obj1) { | |
8692 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8693 | if (PyErr_Occurred()) SWIG_fail; | |
8694 | } | |
8695 | if (obj2) { | |
8696 | arg3 = (bool) SWIG_AsBool(obj2); | |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
8698 | } | |
8699 | { | |
8700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8701 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
8702 | ||
8703 | wxPyEndAllowThreads(__tstate); | |
8704 | if (PyErr_Occurred()) SWIG_fail; | |
8705 | } | |
8706 | { | |
8707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8708 | } | |
8709 | return resultobj; | |
8710 | fail: | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
8715 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8716 | PyObject *resultobj; | |
8717 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8718 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8719 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8720 | bool result; | |
8721 | bool temp2 = False ; | |
8722 | PyObject * obj0 = 0 ; | |
8723 | PyObject * obj1 = 0 ; | |
8724 | char *kwnames[] = { | |
8725 | (char *) "self",(char *) "facename", NULL | |
8726 | }; | |
8727 | ||
8728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
8729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
8730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8731 | if (obj1) { | |
8732 | { | |
8733 | arg2 = wxString_in_helper(obj1); | |
8734 | if (arg2 == NULL) SWIG_fail; | |
8735 | temp2 = True; | |
8736 | } | |
8737 | } | |
8738 | { | |
8739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8740 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
8741 | ||
8742 | wxPyEndAllowThreads(__tstate); | |
8743 | if (PyErr_Occurred()) SWIG_fail; | |
8744 | } | |
8745 | { | |
8746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8747 | } | |
8748 | { | |
8749 | if (temp2) | |
8750 | delete arg2; | |
8751 | } | |
8752 | return resultobj; | |
8753 | fail: | |
8754 | { | |
8755 | if (temp2) | |
8756 | delete arg2; | |
8757 | } | |
8758 | return NULL; | |
8759 | } | |
8760 | ||
8761 | ||
8762 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8763 | PyObject *resultobj; | |
8764 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8765 | PyObject *result; | |
8766 | PyObject * obj0 = 0 ; | |
8767 | char *kwnames[] = { | |
8768 | (char *) "self", NULL | |
8769 | }; | |
8770 | ||
8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
8772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
8773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8774 | { | |
8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8776 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
8777 | ||
8778 | wxPyEndAllowThreads(__tstate); | |
8779 | if (PyErr_Occurred()) SWIG_fail; | |
8780 | } | |
8781 | resultobj = result; | |
8782 | return resultobj; | |
8783 | fail: | |
8784 | return NULL; | |
8785 | } | |
8786 | ||
8787 | ||
8788 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8789 | PyObject *resultobj; | |
8790 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
8791 | PyObject *result; | |
8792 | PyObject * obj0 = 0 ; | |
8793 | char *kwnames[] = { | |
8794 | (char *) "self", NULL | |
8795 | }; | |
8796 | ||
8797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
8798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
8799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8800 | { | |
8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8802 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
8803 | ||
8804 | wxPyEndAllowThreads(__tstate); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
8807 | resultobj = result; | |
8808 | return resultobj; | |
8809 | fail: | |
8810 | return NULL; | |
8811 | } | |
8812 | ||
8813 | ||
8814 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
8815 | PyObject *obj; | |
8816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8817 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
8818 | Py_INCREF(obj); | |
8819 | return Py_BuildValue((char *)""); | |
8820 | } | |
8821 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8822 | PyObject *resultobj; | |
8823 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8824 | int arg2 ; | |
8825 | PyObject * obj0 = 0 ; | |
8826 | PyObject * obj1 = 0 ; | |
8827 | char *kwnames[] = { | |
8828 | (char *) "self",(char *) "Language", NULL | |
8829 | }; | |
8830 | ||
8831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
8832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
8833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8834 | arg2 = (int) SWIG_AsInt(obj1); | |
8835 | if (PyErr_Occurred()) SWIG_fail; | |
8836 | if (arg1) (arg1)->Language = arg2; | |
8837 | ||
8838 | Py_INCREF(Py_None); resultobj = Py_None; | |
8839 | return resultobj; | |
8840 | fail: | |
8841 | return NULL; | |
8842 | } | |
8843 | ||
8844 | ||
8845 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8846 | PyObject *resultobj; | |
8847 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8848 | int result; | |
8849 | PyObject * obj0 = 0 ; | |
8850 | char *kwnames[] = { | |
8851 | (char *) "self", NULL | |
8852 | }; | |
8853 | ||
8854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
8855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
8856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8857 | result = (int) ((arg1)->Language); | |
8858 | ||
8859 | resultobj = SWIG_FromInt((int)result); | |
8860 | return resultobj; | |
8861 | fail: | |
8862 | return NULL; | |
8863 | } | |
8864 | ||
8865 | ||
8866 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8867 | PyObject *resultobj; | |
8868 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8869 | wxString *arg2 = (wxString *) 0 ; | |
8870 | bool temp2 = False ; | |
8871 | PyObject * obj0 = 0 ; | |
8872 | PyObject * obj1 = 0 ; | |
8873 | char *kwnames[] = { | |
8874 | (char *) "self",(char *) "CanonicalName", NULL | |
8875 | }; | |
8876 | ||
8877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
8878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
8879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8880 | { | |
8881 | arg2 = wxString_in_helper(obj1); | |
8882 | if (arg2 == NULL) SWIG_fail; | |
8883 | temp2 = True; | |
8884 | } | |
8885 | if (arg1) (arg1)->CanonicalName = *arg2; | |
8886 | ||
8887 | Py_INCREF(Py_None); resultobj = Py_None; | |
8888 | { | |
8889 | if (temp2) | |
8890 | delete arg2; | |
8891 | } | |
8892 | return resultobj; | |
8893 | fail: | |
8894 | { | |
8895 | if (temp2) | |
8896 | delete arg2; | |
8897 | } | |
8898 | return NULL; | |
8899 | } | |
8900 | ||
8901 | ||
8902 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8903 | PyObject *resultobj; | |
8904 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8905 | wxString *result; | |
8906 | PyObject * obj0 = 0 ; | |
8907 | char *kwnames[] = { | |
8908 | (char *) "self", NULL | |
8909 | }; | |
8910 | ||
8911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
8912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
8913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8914 | result = (wxString *)& ((arg1)->CanonicalName); | |
8915 | ||
8916 | { | |
8917 | #if wxUSE_UNICODE | |
8918 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8919 | #else | |
8920 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8921 | #endif | |
8922 | } | |
8923 | return resultobj; | |
8924 | fail: | |
8925 | return NULL; | |
8926 | } | |
8927 | ||
8928 | ||
8929 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8930 | PyObject *resultobj; | |
8931 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8932 | wxString *arg2 = (wxString *) 0 ; | |
8933 | bool temp2 = False ; | |
8934 | PyObject * obj0 = 0 ; | |
8935 | PyObject * obj1 = 0 ; | |
8936 | char *kwnames[] = { | |
8937 | (char *) "self",(char *) "Description", NULL | |
8938 | }; | |
8939 | ||
8940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
8941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
8942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8943 | { | |
8944 | arg2 = wxString_in_helper(obj1); | |
8945 | if (arg2 == NULL) SWIG_fail; | |
8946 | temp2 = True; | |
8947 | } | |
8948 | if (arg1) (arg1)->Description = *arg2; | |
8949 | ||
8950 | Py_INCREF(Py_None); resultobj = Py_None; | |
8951 | { | |
8952 | if (temp2) | |
8953 | delete arg2; | |
8954 | } | |
8955 | return resultobj; | |
8956 | fail: | |
8957 | { | |
8958 | if (temp2) | |
8959 | delete arg2; | |
8960 | } | |
8961 | return NULL; | |
8962 | } | |
8963 | ||
8964 | ||
8965 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8966 | PyObject *resultobj; | |
8967 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
8968 | wxString *result; | |
8969 | PyObject * obj0 = 0 ; | |
8970 | char *kwnames[] = { | |
8971 | (char *) "self", NULL | |
8972 | }; | |
8973 | ||
8974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
8975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
8976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8977 | result = (wxString *)& ((arg1)->Description); | |
8978 | ||
8979 | { | |
8980 | #if wxUSE_UNICODE | |
8981 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
8982 | #else | |
8983 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
8984 | #endif | |
8985 | } | |
8986 | return resultobj; | |
8987 | fail: | |
8988 | return NULL; | |
8989 | } | |
8990 | ||
8991 | ||
8992 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
8993 | PyObject *obj; | |
8994 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8995 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
8996 | Py_INCREF(obj); | |
8997 | return Py_BuildValue((char *)""); | |
8998 | } | |
8999 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9000 | PyObject *resultobj; | |
15817c7e | 9001 | int arg1 = (int) -1 ; |
d55e5bfc RD |
9002 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9003 | wxLocale *result; | |
9004 | PyObject * obj0 = 0 ; | |
9005 | PyObject * obj1 = 0 ; | |
9006 | char *kwnames[] = { | |
9007 | (char *) "language",(char *) "flags", NULL | |
9008 | }; | |
9009 | ||
9010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; | |
9011 | if (obj0) { | |
9012 | arg1 = (int) SWIG_AsInt(obj0); | |
9013 | if (PyErr_Occurred()) SWIG_fail; | |
9014 | } | |
9015 | if (obj1) { | |
9016 | arg2 = (int) SWIG_AsInt(obj1); | |
9017 | if (PyErr_Occurred()) SWIG_fail; | |
9018 | } | |
9019 | { | |
9020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15817c7e | 9021 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d55e5bfc RD |
9022 | |
9023 | wxPyEndAllowThreads(__tstate); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | } | |
9026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); | |
9027 | return resultobj; | |
9028 | fail: | |
9029 | return NULL; | |
9030 | } | |
9031 | ||
9032 | ||
9033 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9034 | PyObject *resultobj; | |
9035 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9036 | PyObject * obj0 = 0 ; | |
9037 | char *kwnames[] = { | |
9038 | (char *) "self", NULL | |
9039 | }; | |
9040 | ||
9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
9042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9044 | { | |
9045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9046 | delete arg1; | |
9047 | ||
9048 | wxPyEndAllowThreads(__tstate); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | } | |
9051 | Py_INCREF(Py_None); resultobj = Py_None; | |
9052 | return resultobj; | |
9053 | fail: | |
9054 | return NULL; | |
9055 | } | |
9056 | ||
9057 | ||
9058 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9059 | PyObject *resultobj; | |
9060 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9061 | wxString *arg2 = 0 ; | |
9062 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9063 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9064 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9065 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9066 | bool arg5 = (bool) True ; | |
9067 | bool arg6 = (bool) False ; | |
9068 | bool result; | |
9069 | bool temp2 = False ; | |
9070 | bool temp3 = False ; | |
9071 | bool temp4 = False ; | |
9072 | PyObject * obj0 = 0 ; | |
9073 | PyObject * obj1 = 0 ; | |
9074 | PyObject * obj2 = 0 ; | |
9075 | PyObject * obj3 = 0 ; | |
9076 | PyObject * obj4 = 0 ; | |
9077 | PyObject * obj5 = 0 ; | |
9078 | char *kwnames[] = { | |
9079 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9080 | }; | |
9081 | ||
9082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9085 | { | |
9086 | arg2 = wxString_in_helper(obj1); | |
9087 | if (arg2 == NULL) SWIG_fail; | |
9088 | temp2 = True; | |
9089 | } | |
9090 | if (obj2) { | |
9091 | { | |
9092 | arg3 = wxString_in_helper(obj2); | |
9093 | if (arg3 == NULL) SWIG_fail; | |
9094 | temp3 = True; | |
9095 | } | |
9096 | } | |
9097 | if (obj3) { | |
9098 | { | |
9099 | arg4 = wxString_in_helper(obj3); | |
9100 | if (arg4 == NULL) SWIG_fail; | |
9101 | temp4 = True; | |
9102 | } | |
9103 | } | |
9104 | if (obj4) { | |
9105 | arg5 = (bool) SWIG_AsBool(obj4); | |
9106 | if (PyErr_Occurred()) SWIG_fail; | |
9107 | } | |
9108 | if (obj5) { | |
9109 | arg6 = (bool) SWIG_AsBool(obj5); | |
9110 | if (PyErr_Occurred()) SWIG_fail; | |
9111 | } | |
9112 | { | |
9113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9114 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9115 | ||
9116 | wxPyEndAllowThreads(__tstate); | |
9117 | if (PyErr_Occurred()) SWIG_fail; | |
9118 | } | |
9119 | { | |
9120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9121 | } | |
9122 | { | |
9123 | if (temp2) | |
9124 | delete arg2; | |
9125 | } | |
9126 | { | |
9127 | if (temp3) | |
9128 | delete arg3; | |
9129 | } | |
9130 | { | |
9131 | if (temp4) | |
9132 | delete arg4; | |
9133 | } | |
9134 | return resultobj; | |
9135 | fail: | |
9136 | { | |
9137 | if (temp2) | |
9138 | delete arg2; | |
9139 | } | |
9140 | { | |
9141 | if (temp3) | |
9142 | delete arg3; | |
9143 | } | |
9144 | { | |
9145 | if (temp4) | |
9146 | delete arg4; | |
9147 | } | |
9148 | return NULL; | |
9149 | } | |
9150 | ||
9151 | ||
9152 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9153 | PyObject *resultobj; | |
9154 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9155 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9156 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9157 | bool result; | |
9158 | PyObject * obj0 = 0 ; | |
9159 | PyObject * obj1 = 0 ; | |
9160 | PyObject * obj2 = 0 ; | |
9161 | char *kwnames[] = { | |
9162 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9163 | }; | |
9164 | ||
9165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9168 | if (obj1) { | |
9169 | arg2 = (int) SWIG_AsInt(obj1); | |
9170 | if (PyErr_Occurred()) SWIG_fail; | |
9171 | } | |
9172 | if (obj2) { | |
9173 | arg3 = (int) SWIG_AsInt(obj2); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | } | |
9176 | { | |
9177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9178 | result = (bool)(arg1)->Init(arg2,arg3); | |
9179 | ||
9180 | wxPyEndAllowThreads(__tstate); | |
9181 | if (PyErr_Occurred()) SWIG_fail; | |
9182 | } | |
9183 | { | |
9184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9185 | } | |
9186 | return resultobj; | |
9187 | fail: | |
9188 | return NULL; | |
9189 | } | |
9190 | ||
9191 | ||
9192 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9193 | PyObject *resultobj; | |
9194 | int result; | |
9195 | char *kwnames[] = { | |
9196 | NULL | |
9197 | }; | |
9198 | ||
9199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9200 | { | |
9201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9202 | result = (int)wxLocale::GetSystemLanguage(); | |
9203 | ||
9204 | wxPyEndAllowThreads(__tstate); | |
9205 | if (PyErr_Occurred()) SWIG_fail; | |
9206 | } | |
9207 | resultobj = SWIG_FromInt((int)result); | |
9208 | return resultobj; | |
9209 | fail: | |
9210 | return NULL; | |
9211 | } | |
9212 | ||
9213 | ||
9214 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9215 | PyObject *resultobj; | |
9216 | int result; | |
9217 | char *kwnames[] = { | |
9218 | NULL | |
9219 | }; | |
9220 | ||
9221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9222 | { | |
9223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9224 | result = (int)wxLocale::GetSystemEncoding(); | |
9225 | ||
9226 | wxPyEndAllowThreads(__tstate); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | } | |
9229 | resultobj = SWIG_FromInt((int)result); | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | return NULL; | |
9233 | } | |
9234 | ||
9235 | ||
9236 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9237 | PyObject *resultobj; | |
9238 | wxString result; | |
9239 | char *kwnames[] = { | |
9240 | NULL | |
9241 | }; | |
9242 | ||
9243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9244 | { | |
9245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9246 | result = wxLocale::GetSystemEncodingName(); | |
9247 | ||
9248 | wxPyEndAllowThreads(__tstate); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
9251 | { | |
9252 | #if wxUSE_UNICODE | |
9253 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9254 | #else | |
9255 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9256 | #endif | |
9257 | } | |
9258 | return resultobj; | |
9259 | fail: | |
9260 | return NULL; | |
9261 | } | |
9262 | ||
9263 | ||
9264 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9265 | PyObject *resultobj; | |
9266 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9267 | bool result; | |
9268 | PyObject * obj0 = 0 ; | |
9269 | char *kwnames[] = { | |
9270 | (char *) "self", NULL | |
9271 | }; | |
9272 | ||
9273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9276 | { | |
9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9278 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9279 | ||
9280 | wxPyEndAllowThreads(__tstate); | |
9281 | if (PyErr_Occurred()) SWIG_fail; | |
9282 | } | |
9283 | { | |
9284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9285 | } | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
9292 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9293 | PyObject *resultobj; | |
9294 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9295 | wxString result; | |
9296 | PyObject * obj0 = 0 ; | |
9297 | char *kwnames[] = { | |
9298 | (char *) "self", NULL | |
9299 | }; | |
9300 | ||
9301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
9302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9304 | { | |
9305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9306 | result = ((wxLocale const *)arg1)->GetLocale(); | |
9307 | ||
9308 | wxPyEndAllowThreads(__tstate); | |
9309 | if (PyErr_Occurred()) SWIG_fail; | |
9310 | } | |
9311 | { | |
9312 | #if wxUSE_UNICODE | |
9313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9314 | #else | |
9315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9316 | #endif | |
9317 | } | |
9318 | return resultobj; | |
9319 | fail: | |
9320 | return NULL; | |
9321 | } | |
9322 | ||
9323 | ||
9324 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9325 | PyObject *resultobj; | |
9326 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9327 | int result; | |
9328 | PyObject * obj0 = 0 ; | |
9329 | char *kwnames[] = { | |
9330 | (char *) "self", NULL | |
9331 | }; | |
9332 | ||
9333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
9334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9336 | { | |
9337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9338 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
9339 | ||
9340 | wxPyEndAllowThreads(__tstate); | |
9341 | if (PyErr_Occurred()) SWIG_fail; | |
9342 | } | |
9343 | resultobj = SWIG_FromInt((int)result); | |
9344 | return resultobj; | |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
9350 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9351 | PyObject *resultobj; | |
9352 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9353 | wxString result; | |
9354 | PyObject * obj0 = 0 ; | |
9355 | char *kwnames[] = { | |
9356 | (char *) "self", NULL | |
9357 | }; | |
9358 | ||
9359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
9360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9362 | { | |
9363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9364 | result = ((wxLocale const *)arg1)->GetSysName(); | |
9365 | ||
9366 | wxPyEndAllowThreads(__tstate); | |
9367 | if (PyErr_Occurred()) SWIG_fail; | |
9368 | } | |
9369 | { | |
9370 | #if wxUSE_UNICODE | |
9371 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9372 | #else | |
9373 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9374 | #endif | |
9375 | } | |
9376 | return resultobj; | |
9377 | fail: | |
9378 | return NULL; | |
9379 | } | |
9380 | ||
9381 | ||
9382 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9383 | PyObject *resultobj; | |
9384 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9385 | wxString result; | |
9386 | PyObject * obj0 = 0 ; | |
9387 | char *kwnames[] = { | |
9388 | (char *) "self", NULL | |
9389 | }; | |
9390 | ||
9391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
9392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9394 | { | |
9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9396 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | { | |
9402 | #if wxUSE_UNICODE | |
9403 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9404 | #else | |
9405 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9406 | #endif | |
9407 | } | |
9408 | return resultobj; | |
9409 | fail: | |
9410 | return NULL; | |
9411 | } | |
9412 | ||
9413 | ||
9414 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9415 | PyObject *resultobj; | |
9416 | wxString *arg1 = 0 ; | |
9417 | bool temp1 = False ; | |
9418 | PyObject * obj0 = 0 ; | |
9419 | char *kwnames[] = { | |
9420 | (char *) "prefix", NULL | |
9421 | }; | |
9422 | ||
9423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
9424 | { | |
9425 | arg1 = wxString_in_helper(obj0); | |
9426 | if (arg1 == NULL) SWIG_fail; | |
9427 | temp1 = True; | |
9428 | } | |
9429 | { | |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | Py_INCREF(Py_None); resultobj = Py_None; | |
9437 | { | |
9438 | if (temp1) | |
9439 | delete arg1; | |
9440 | } | |
9441 | return resultobj; | |
9442 | fail: | |
9443 | { | |
9444 | if (temp1) | |
9445 | delete arg1; | |
9446 | } | |
9447 | return NULL; | |
9448 | } | |
9449 | ||
9450 | ||
9451 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9452 | PyObject *resultobj; | |
9453 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9454 | wxString *arg2 = 0 ; | |
9455 | bool result; | |
9456 | bool temp2 = False ; | |
9457 | PyObject * obj0 = 0 ; | |
9458 | PyObject * obj1 = 0 ; | |
9459 | char *kwnames[] = { | |
9460 | (char *) "self",(char *) "szDomain", NULL | |
9461 | }; | |
9462 | ||
9463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
9464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9466 | { | |
9467 | arg2 = wxString_in_helper(obj1); | |
9468 | if (arg2 == NULL) SWIG_fail; | |
9469 | temp2 = True; | |
9470 | } | |
9471 | { | |
9472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9473 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
9474 | ||
9475 | wxPyEndAllowThreads(__tstate); | |
9476 | if (PyErr_Occurred()) SWIG_fail; | |
9477 | } | |
9478 | { | |
9479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9480 | } | |
9481 | { | |
9482 | if (temp2) | |
9483 | delete arg2; | |
9484 | } | |
9485 | return resultobj; | |
9486 | fail: | |
9487 | { | |
9488 | if (temp2) | |
9489 | delete arg2; | |
9490 | } | |
9491 | return NULL; | |
9492 | } | |
9493 | ||
9494 | ||
9495 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9496 | PyObject *resultobj; | |
9497 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9498 | wxString *arg2 = 0 ; | |
9499 | bool result; | |
9500 | bool temp2 = False ; | |
9501 | PyObject * obj0 = 0 ; | |
9502 | PyObject * obj1 = 0 ; | |
9503 | char *kwnames[] = { | |
9504 | (char *) "self",(char *) "szDomain", NULL | |
9505 | }; | |
9506 | ||
9507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
9508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9510 | { | |
9511 | arg2 = wxString_in_helper(obj1); | |
9512 | if (arg2 == NULL) SWIG_fail; | |
9513 | temp2 = True; | |
9514 | } | |
9515 | { | |
9516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9517 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
9518 | ||
9519 | wxPyEndAllowThreads(__tstate); | |
9520 | if (PyErr_Occurred()) SWIG_fail; | |
9521 | } | |
9522 | { | |
9523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9524 | } | |
9525 | { | |
9526 | if (temp2) | |
9527 | delete arg2; | |
9528 | } | |
9529 | return resultobj; | |
9530 | fail: | |
9531 | { | |
9532 | if (temp2) | |
9533 | delete arg2; | |
9534 | } | |
9535 | return NULL; | |
9536 | } | |
9537 | ||
9538 | ||
9539 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9540 | PyObject *resultobj; | |
9541 | int arg1 ; | |
9542 | wxLanguageInfo *result; | |
9543 | PyObject * obj0 = 0 ; | |
9544 | char *kwnames[] = { | |
9545 | (char *) "lang", NULL | |
9546 | }; | |
9547 | ||
9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; | |
9549 | arg1 = (int) SWIG_AsInt(obj0); | |
9550 | if (PyErr_Occurred()) SWIG_fail; | |
9551 | { | |
9552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9553 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
9554 | ||
9555 | wxPyEndAllowThreads(__tstate); | |
9556 | if (PyErr_Occurred()) SWIG_fail; | |
9557 | } | |
9558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
9559 | return resultobj; | |
9560 | fail: | |
9561 | return NULL; | |
9562 | } | |
9563 | ||
9564 | ||
9565 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9566 | PyObject *resultobj; | |
9567 | int arg1 ; | |
9568 | wxString result; | |
9569 | PyObject * obj0 = 0 ; | |
9570 | char *kwnames[] = { | |
9571 | (char *) "lang", NULL | |
9572 | }; | |
9573 | ||
9574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; | |
9575 | arg1 = (int) SWIG_AsInt(obj0); | |
9576 | if (PyErr_Occurred()) SWIG_fail; | |
9577 | { | |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | result = wxLocale::GetLanguageName(arg1); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
9584 | { | |
9585 | #if wxUSE_UNICODE | |
9586 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9587 | #else | |
9588 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9589 | #endif | |
9590 | } | |
9591 | return resultobj; | |
9592 | fail: | |
9593 | return NULL; | |
9594 | } | |
9595 | ||
9596 | ||
9597 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9598 | PyObject *resultobj; | |
9599 | wxString *arg1 = 0 ; | |
9600 | wxLanguageInfo *result; | |
9601 | bool temp1 = False ; | |
9602 | PyObject * obj0 = 0 ; | |
9603 | char *kwnames[] = { | |
9604 | (char *) "locale", NULL | |
9605 | }; | |
9606 | ||
9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
9608 | { | |
9609 | arg1 = wxString_in_helper(obj0); | |
9610 | if (arg1 == NULL) SWIG_fail; | |
9611 | temp1 = True; | |
9612 | } | |
9613 | { | |
9614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9615 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
9616 | ||
9617 | wxPyEndAllowThreads(__tstate); | |
9618 | if (PyErr_Occurred()) SWIG_fail; | |
9619 | } | |
9620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
9621 | { | |
9622 | if (temp1) | |
9623 | delete arg1; | |
9624 | } | |
9625 | return resultobj; | |
9626 | fail: | |
9627 | { | |
9628 | if (temp1) | |
9629 | delete arg1; | |
9630 | } | |
9631 | return NULL; | |
9632 | } | |
9633 | ||
9634 | ||
9635 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9636 | PyObject *resultobj; | |
9637 | wxLanguageInfo *arg1 = 0 ; | |
9638 | PyObject * obj0 = 0 ; | |
9639 | char *kwnames[] = { | |
9640 | (char *) "info", NULL | |
9641 | }; | |
9642 | ||
9643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
9644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9645 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9646 | SWIG_fail; | |
9647 | if (arg1 == NULL) { | |
9648 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9649 | SWIG_fail; | |
9650 | } | |
9651 | { | |
9652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9653 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
9654 | ||
9655 | wxPyEndAllowThreads(__tstate); | |
9656 | if (PyErr_Occurred()) SWIG_fail; | |
9657 | } | |
9658 | Py_INCREF(Py_None); resultobj = Py_None; | |
9659 | return resultobj; | |
9660 | fail: | |
9661 | return NULL; | |
9662 | } | |
9663 | ||
9664 | ||
9665 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9666 | PyObject *resultobj; | |
9667 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9668 | wxString *arg2 = 0 ; | |
9669 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9670 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9671 | wxString result; | |
9672 | bool temp2 = False ; | |
9673 | bool temp3 = False ; | |
9674 | PyObject * obj0 = 0 ; | |
9675 | PyObject * obj1 = 0 ; | |
9676 | PyObject * obj2 = 0 ; | |
9677 | char *kwnames[] = { | |
9678 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
9679 | }; | |
9680 | ||
9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9684 | { | |
9685 | arg2 = wxString_in_helper(obj1); | |
9686 | if (arg2 == NULL) SWIG_fail; | |
9687 | temp2 = True; | |
9688 | } | |
9689 | if (obj2) { | |
9690 | { | |
9691 | arg3 = wxString_in_helper(obj2); | |
9692 | if (arg3 == NULL) SWIG_fail; | |
9693 | temp3 = True; | |
9694 | } | |
9695 | } | |
9696 | { | |
9697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9698 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
9699 | ||
9700 | wxPyEndAllowThreads(__tstate); | |
9701 | if (PyErr_Occurred()) SWIG_fail; | |
9702 | } | |
9703 | { | |
9704 | #if wxUSE_UNICODE | |
9705 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9706 | #else | |
9707 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9708 | #endif | |
9709 | } | |
9710 | { | |
9711 | if (temp2) | |
9712 | delete arg2; | |
9713 | } | |
9714 | { | |
9715 | if (temp3) | |
9716 | delete arg3; | |
9717 | } | |
9718 | return resultobj; | |
9719 | fail: | |
9720 | { | |
9721 | if (temp2) | |
9722 | delete arg2; | |
9723 | } | |
9724 | { | |
9725 | if (temp3) | |
9726 | delete arg3; | |
9727 | } | |
9728 | return NULL; | |
9729 | } | |
9730 | ||
9731 | ||
9732 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9733 | PyObject *resultobj; | |
9734 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9735 | wxString *result; | |
9736 | PyObject * obj0 = 0 ; | |
9737 | char *kwnames[] = { | |
9738 | (char *) "self", NULL | |
9739 | }; | |
9740 | ||
9741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
9742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9744 | { | |
9745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9746 | { | |
9747 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
9748 | result = (wxString *) &_result_ref; | |
9749 | } | |
9750 | ||
9751 | wxPyEndAllowThreads(__tstate); | |
9752 | if (PyErr_Occurred()) SWIG_fail; | |
9753 | } | |
9754 | { | |
9755 | #if wxUSE_UNICODE | |
9756 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9757 | #else | |
9758 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9759 | #endif | |
9760 | } | |
9761 | return resultobj; | |
9762 | fail: | |
9763 | return NULL; | |
9764 | } | |
9765 | ||
9766 | ||
9767 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
9768 | PyObject *obj; | |
9769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9770 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
9771 | Py_INCREF(obj); | |
9772 | return Py_BuildValue((char *)""); | |
9773 | } | |
9774 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9775 | PyObject *resultobj; | |
9776 | wxLocale *result; | |
9777 | char *kwnames[] = { | |
9778 | NULL | |
9779 | }; | |
9780 | ||
9781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
9782 | { | |
9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9784 | result = (wxLocale *)wxGetLocale(); | |
9785 | ||
9786 | wxPyEndAllowThreads(__tstate); | |
9787 | if (PyErr_Occurred()) SWIG_fail; | |
9788 | } | |
9789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); | |
9790 | return resultobj; | |
9791 | fail: | |
9792 | return NULL; | |
9793 | } | |
9794 | ||
9795 | ||
9796 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
9797 | PyObject *resultobj; | |
9798 | wxString *arg1 = 0 ; | |
9799 | wxString result; | |
9800 | bool temp1 = False ; | |
9801 | PyObject * obj0 = 0 ; | |
9802 | ||
9803 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
9804 | { | |
9805 | arg1 = wxString_in_helper(obj0); | |
9806 | if (arg1 == NULL) SWIG_fail; | |
9807 | temp1 = True; | |
9808 | } | |
9809 | { | |
9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9811 | result = wxGetTranslation((wxString const &)*arg1); | |
9812 | ||
9813 | wxPyEndAllowThreads(__tstate); | |
9814 | if (PyErr_Occurred()) SWIG_fail; | |
9815 | } | |
9816 | { | |
9817 | #if wxUSE_UNICODE | |
9818 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9819 | #else | |
9820 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9821 | #endif | |
9822 | } | |
9823 | { | |
9824 | if (temp1) | |
9825 | delete arg1; | |
9826 | } | |
9827 | return resultobj; | |
9828 | fail: | |
9829 | { | |
9830 | if (temp1) | |
9831 | delete arg1; | |
9832 | } | |
9833 | return NULL; | |
9834 | } | |
9835 | ||
9836 | ||
9837 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
9838 | PyObject *resultobj; | |
9839 | wxString *arg1 = 0 ; | |
9840 | wxString *arg2 = 0 ; | |
9841 | size_t arg3 ; | |
9842 | wxString result; | |
9843 | bool temp1 = False ; | |
9844 | bool temp2 = False ; | |
9845 | PyObject * obj0 = 0 ; | |
9846 | PyObject * obj1 = 0 ; | |
9847 | PyObject * obj2 = 0 ; | |
9848 | ||
9849 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
9850 | { | |
9851 | arg1 = wxString_in_helper(obj0); | |
9852 | if (arg1 == NULL) SWIG_fail; | |
9853 | temp1 = True; | |
9854 | } | |
9855 | { | |
9856 | arg2 = wxString_in_helper(obj1); | |
9857 | if (arg2 == NULL) SWIG_fail; | |
9858 | temp2 = True; | |
9859 | } | |
9860 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9861 | if (PyErr_Occurred()) SWIG_fail; | |
9862 | { | |
9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9864 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
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 | { | |
9881 | if (temp2) | |
9882 | delete arg2; | |
9883 | } | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | { | |
9887 | if (temp1) | |
9888 | delete arg1; | |
9889 | } | |
9890 | { | |
9891 | if (temp2) | |
9892 | delete arg2; | |
9893 | } | |
9894 | return NULL; | |
9895 | } | |
9896 | ||
9897 | ||
9898 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
9899 | int argc; | |
9900 | PyObject *argv[4]; | |
9901 | int ii; | |
9902 | ||
9903 | argc = PyObject_Length(args); | |
9904 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
9905 | argv[ii] = PyTuple_GetItem(args,ii); | |
9906 | } | |
9907 | if (argc == 1) { | |
9908 | int _v; | |
9909 | { | |
9910 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9911 | } | |
9912 | if (_v) { | |
9913 | return _wrap_GetTranslation__SWIG_0(self,args); | |
9914 | } | |
9915 | } | |
9916 | if (argc == 3) { | |
9917 | int _v; | |
9918 | { | |
9919 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
9920 | } | |
9921 | if (_v) { | |
9922 | { | |
9923 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
9924 | } | |
9925 | if (_v) { | |
9926 | _v = SWIG_CheckUnsignedLong(argv[2]); | |
9927 | if (_v) { | |
9928 | return _wrap_GetTranslation__SWIG_1(self,args); | |
9929 | } | |
9930 | } | |
9931 | } | |
9932 | } | |
9933 | ||
9934 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
9935 | return NULL; | |
9936 | } | |
9937 | ||
9938 | ||
9939 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9940 | PyObject *resultobj; | |
9941 | wxEncodingConverter *result; | |
9942 | char *kwnames[] = { | |
9943 | NULL | |
9944 | }; | |
9945 | ||
9946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
9947 | { | |
9948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9949 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
9950 | ||
9951 | wxPyEndAllowThreads(__tstate); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | } | |
9954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); | |
9955 | return resultobj; | |
9956 | fail: | |
9957 | return NULL; | |
9958 | } | |
9959 | ||
9960 | ||
9961 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9962 | PyObject *resultobj; | |
9963 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9964 | PyObject * obj0 = 0 ; | |
9965 | char *kwnames[] = { | |
9966 | (char *) "self", NULL | |
9967 | }; | |
9968 | ||
9969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
9970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
9971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9972 | { | |
9973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9974 | delete arg1; | |
9975 | ||
9976 | wxPyEndAllowThreads(__tstate); | |
9977 | if (PyErr_Occurred()) SWIG_fail; | |
9978 | } | |
9979 | Py_INCREF(Py_None); resultobj = Py_None; | |
9980 | return resultobj; | |
9981 | fail: | |
9982 | return NULL; | |
9983 | } | |
9984 | ||
9985 | ||
9986 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9987 | PyObject *resultobj; | |
9988 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
9989 | int arg2 ; | |
9990 | int arg3 ; | |
9991 | int arg4 = (int) wxCONVERT_STRICT ; | |
9992 | bool result; | |
9993 | PyObject * obj0 = 0 ; | |
9994 | PyObject * obj1 = 0 ; | |
9995 | PyObject * obj2 = 0 ; | |
9996 | PyObject * obj3 = 0 ; | |
9997 | char *kwnames[] = { | |
9998 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
9999 | }; | |
10000 | ||
10001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10004 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10005 | if (PyErr_Occurred()) SWIG_fail; | |
10006 | arg3 = (wxFontEncoding) SWIG_AsInt(obj2); | |
10007 | if (PyErr_Occurred()) SWIG_fail; | |
10008 | if (obj3) { | |
10009 | arg4 = (int) SWIG_AsInt(obj3); | |
10010 | if (PyErr_Occurred()) SWIG_fail; | |
10011 | } | |
10012 | { | |
10013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10014 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10015 | ||
10016 | wxPyEndAllowThreads(__tstate); | |
10017 | if (PyErr_Occurred()) SWIG_fail; | |
10018 | } | |
10019 | { | |
10020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10021 | } | |
10022 | return resultobj; | |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
10028 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10029 | PyObject *resultobj; | |
10030 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10031 | wxString *arg2 = 0 ; | |
10032 | wxString result; | |
10033 | bool temp2 = False ; | |
10034 | PyObject * obj0 = 0 ; | |
10035 | PyObject * obj1 = 0 ; | |
10036 | char *kwnames[] = { | |
10037 | (char *) "self",(char *) "input", NULL | |
10038 | }; | |
10039 | ||
10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
10041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10043 | { | |
10044 | arg2 = wxString_in_helper(obj1); | |
10045 | if (arg2 == NULL) SWIG_fail; | |
10046 | temp2 = True; | |
10047 | } | |
10048 | { | |
10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10050 | result = (arg1)->Convert((wxString const &)*arg2); | |
10051 | ||
10052 | wxPyEndAllowThreads(__tstate); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | #if wxUSE_UNICODE | |
10057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10058 | #else | |
10059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10060 | #endif | |
10061 | } | |
10062 | { | |
10063 | if (temp2) | |
10064 | delete arg2; | |
10065 | } | |
10066 | return resultobj; | |
10067 | fail: | |
10068 | { | |
10069 | if (temp2) | |
10070 | delete arg2; | |
10071 | } | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
10076 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10077 | PyObject *resultobj; | |
10078 | int arg1 ; | |
10079 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10080 | wxFontEncodingArray result; | |
10081 | PyObject * obj0 = 0 ; | |
10082 | PyObject * obj1 = 0 ; | |
10083 | char *kwnames[] = { | |
10084 | (char *) "enc",(char *) "platform", NULL | |
10085 | }; | |
10086 | ||
10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; | |
10088 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10089 | if (PyErr_Occurred()) SWIG_fail; | |
10090 | if (obj1) { | |
10091 | arg2 = (int) SWIG_AsInt(obj1); | |
10092 | if (PyErr_Occurred()) SWIG_fail; | |
10093 | } | |
10094 | { | |
10095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10096 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10097 | ||
10098 | wxPyEndAllowThreads(__tstate); | |
10099 | if (PyErr_Occurred()) SWIG_fail; | |
10100 | } | |
10101 | { | |
10102 | resultobj = PyList_New(0); | |
10103 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10104 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10105 | PyList_Append(resultobj, number); | |
10106 | Py_DECREF(number); | |
10107 | } | |
10108 | } | |
10109 | return resultobj; | |
10110 | fail: | |
10111 | return NULL; | |
10112 | } | |
10113 | ||
10114 | ||
10115 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10116 | PyObject *resultobj; | |
10117 | int arg1 ; | |
10118 | wxFontEncodingArray result; | |
10119 | PyObject * obj0 = 0 ; | |
10120 | char *kwnames[] = { | |
10121 | (char *) "enc", NULL | |
10122 | }; | |
10123 | ||
10124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; | |
10125 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10126 | if (PyErr_Occurred()) SWIG_fail; | |
10127 | { | |
10128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10129 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10130 | ||
10131 | wxPyEndAllowThreads(__tstate); | |
10132 | if (PyErr_Occurred()) SWIG_fail; | |
10133 | } | |
10134 | { | |
10135 | resultobj = PyList_New(0); | |
10136 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10137 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10138 | PyList_Append(resultobj, number); | |
10139 | Py_DECREF(number); | |
10140 | } | |
10141 | } | |
10142 | return resultobj; | |
10143 | fail: | |
10144 | return NULL; | |
10145 | } | |
10146 | ||
10147 | ||
10148 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10149 | PyObject *resultobj; | |
10150 | int arg1 ; | |
10151 | int arg2 ; | |
10152 | bool result; | |
10153 | PyObject * obj0 = 0 ; | |
10154 | PyObject * obj1 = 0 ; | |
10155 | char *kwnames[] = { | |
10156 | (char *) "encIn",(char *) "encOut", NULL | |
10157 | }; | |
10158 | ||
10159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; | |
10160 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10161 | if (PyErr_Occurred()) SWIG_fail; | |
10162 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10163 | if (PyErr_Occurred()) SWIG_fail; | |
10164 | { | |
10165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10166 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10167 | ||
10168 | wxPyEndAllowThreads(__tstate); | |
10169 | if (PyErr_Occurred()) SWIG_fail; | |
10170 | } | |
10171 | { | |
10172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10173 | } | |
10174 | return resultobj; | |
10175 | fail: | |
10176 | return NULL; | |
10177 | } | |
10178 | ||
10179 | ||
10180 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10181 | PyObject *obj; | |
10182 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10183 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10184 | Py_INCREF(obj); | |
10185 | return Py_BuildValue((char *)""); | |
10186 | } | |
10187 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10188 | PyObject *resultobj; | |
10189 | wxDC *arg1 = (wxDC *) 0 ; | |
10190 | PyObject * obj0 = 0 ; | |
10191 | char *kwnames[] = { | |
10192 | (char *) "self", NULL | |
10193 | }; | |
10194 | ||
10195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
10196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10198 | { | |
10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10200 | delete arg1; | |
10201 | ||
10202 | wxPyEndAllowThreads(__tstate); | |
10203 | if (PyErr_Occurred()) SWIG_fail; | |
10204 | } | |
10205 | Py_INCREF(Py_None); resultobj = Py_None; | |
10206 | return resultobj; | |
10207 | fail: | |
10208 | return NULL; | |
10209 | } | |
10210 | ||
10211 | ||
10212 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10213 | PyObject *resultobj; | |
10214 | wxDC *arg1 = (wxDC *) 0 ; | |
10215 | PyObject * obj0 = 0 ; | |
10216 | char *kwnames[] = { | |
10217 | (char *) "self", NULL | |
10218 | }; | |
10219 | ||
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
10221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10223 | { | |
10224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10225 | (arg1)->BeginDrawing(); | |
10226 | ||
10227 | wxPyEndAllowThreads(__tstate); | |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
10229 | } | |
10230 | Py_INCREF(Py_None); resultobj = Py_None; | |
10231 | return resultobj; | |
10232 | fail: | |
10233 | return NULL; | |
10234 | } | |
10235 | ||
10236 | ||
10237 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10238 | PyObject *resultobj; | |
10239 | wxDC *arg1 = (wxDC *) 0 ; | |
10240 | PyObject * obj0 = 0 ; | |
10241 | char *kwnames[] = { | |
10242 | (char *) "self", NULL | |
10243 | }; | |
10244 | ||
10245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10248 | { | |
10249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10250 | (arg1)->EndDrawing(); | |
10251 | ||
10252 | wxPyEndAllowThreads(__tstate); | |
10253 | if (PyErr_Occurred()) SWIG_fail; | |
10254 | } | |
10255 | Py_INCREF(Py_None); resultobj = Py_None; | |
10256 | return resultobj; | |
10257 | fail: | |
10258 | return NULL; | |
10259 | } | |
10260 | ||
10261 | ||
d6c14a4c | 10262 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10263 | PyObject *resultobj; |
10264 | wxDC *arg1 = (wxDC *) 0 ; | |
10265 | int arg2 ; | |
10266 | int arg3 ; | |
10267 | wxColour *arg4 = 0 ; | |
10268 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10269 | bool result; | |
10270 | wxColour temp4 ; | |
10271 | PyObject * obj0 = 0 ; | |
10272 | PyObject * obj1 = 0 ; | |
10273 | PyObject * obj2 = 0 ; | |
10274 | PyObject * obj3 = 0 ; | |
10275 | PyObject * obj4 = 0 ; | |
10276 | char *kwnames[] = { | |
10277 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10278 | }; | |
10279 | ||
d6c14a4c | 10280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10283 | arg2 = (int) SWIG_AsInt(obj1); | |
10284 | if (PyErr_Occurred()) SWIG_fail; | |
10285 | arg3 = (int) SWIG_AsInt(obj2); | |
10286 | if (PyErr_Occurred()) SWIG_fail; | |
10287 | { | |
10288 | arg4 = &temp4; | |
10289 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10290 | } | |
10291 | if (obj4) { | |
10292 | arg5 = (int) SWIG_AsInt(obj4); | |
10293 | if (PyErr_Occurred()) SWIG_fail; | |
10294 | } | |
10295 | { | |
10296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10297 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
10298 | ||
10299 | wxPyEndAllowThreads(__tstate); | |
10300 | if (PyErr_Occurred()) SWIG_fail; | |
10301 | } | |
10302 | { | |
10303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10304 | } | |
10305 | return resultobj; | |
10306 | fail: | |
10307 | return NULL; | |
10308 | } | |
10309 | ||
10310 | ||
d6c14a4c | 10311 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10312 | PyObject *resultobj; |
10313 | wxDC *arg1 = (wxDC *) 0 ; | |
10314 | wxPoint *arg2 = 0 ; | |
10315 | wxColour *arg3 = 0 ; | |
10316 | int arg4 = (int) wxFLOOD_SURFACE ; | |
10317 | bool result; | |
10318 | wxPoint temp2 ; | |
10319 | wxColour temp3 ; | |
10320 | PyObject * obj0 = 0 ; | |
10321 | PyObject * obj1 = 0 ; | |
10322 | PyObject * obj2 = 0 ; | |
10323 | PyObject * obj3 = 0 ; | |
10324 | char *kwnames[] = { | |
10325 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
10326 | }; | |
10327 | ||
d6c14a4c | 10328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
10329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10331 | { | |
10332 | arg2 = &temp2; | |
10333 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10334 | } | |
10335 | { | |
10336 | arg3 = &temp3; | |
10337 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10338 | } | |
10339 | if (obj3) { | |
10340 | arg4 = (int) SWIG_AsInt(obj3); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
10343 | { | |
10344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10345 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
10346 | ||
10347 | wxPyEndAllowThreads(__tstate); | |
10348 | if (PyErr_Occurred()) SWIG_fail; | |
10349 | } | |
10350 | { | |
10351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10352 | } | |
10353 | return resultobj; | |
10354 | fail: | |
10355 | return NULL; | |
10356 | } | |
10357 | ||
10358 | ||
d6c14a4c | 10359 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10360 | PyObject *resultobj; |
10361 | wxDC *arg1 = (wxDC *) 0 ; | |
10362 | int arg2 ; | |
10363 | int arg3 ; | |
10364 | wxColour result; | |
10365 | PyObject * obj0 = 0 ; | |
10366 | PyObject * obj1 = 0 ; | |
10367 | PyObject * obj2 = 0 ; | |
10368 | char *kwnames[] = { | |
10369 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10370 | }; | |
10371 | ||
d6c14a4c | 10372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
10373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10375 | arg2 = (int) SWIG_AsInt(obj1); | |
10376 | if (PyErr_Occurred()) SWIG_fail; | |
10377 | arg3 = (int) SWIG_AsInt(obj2); | |
10378 | if (PyErr_Occurred()) SWIG_fail; | |
10379 | { | |
10380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 10381 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d55e5bfc RD |
10382 | |
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
10386 | { | |
10387 | wxColour * resultptr; | |
10388 | resultptr = new wxColour((wxColour &) result); | |
10389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10390 | } | |
10391 | return resultobj; | |
10392 | fail: | |
10393 | return NULL; | |
10394 | } | |
10395 | ||
10396 | ||
d6c14a4c | 10397 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10398 | PyObject *resultobj; |
10399 | wxDC *arg1 = (wxDC *) 0 ; | |
10400 | wxPoint *arg2 = 0 ; | |
10401 | wxColour result; | |
10402 | wxPoint temp2 ; | |
10403 | PyObject * obj0 = 0 ; | |
10404 | PyObject * obj1 = 0 ; | |
10405 | char *kwnames[] = { | |
10406 | (char *) "self",(char *) "pt", NULL | |
10407 | }; | |
10408 | ||
d6c14a4c | 10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
10410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10412 | { | |
10413 | arg2 = &temp2; | |
10414 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10415 | } | |
10416 | { | |
10417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 10418 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
10419 | |
10420 | wxPyEndAllowThreads(__tstate); | |
10421 | if (PyErr_Occurred()) SWIG_fail; | |
10422 | } | |
10423 | { | |
10424 | wxColour * resultptr; | |
10425 | resultptr = new wxColour((wxColour &) result); | |
10426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
10427 | } | |
10428 | return resultobj; | |
10429 | fail: | |
10430 | return NULL; | |
10431 | } | |
10432 | ||
10433 | ||
d6c14a4c | 10434 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10435 | PyObject *resultobj; |
10436 | wxDC *arg1 = (wxDC *) 0 ; | |
10437 | int arg2 ; | |
10438 | int arg3 ; | |
10439 | int arg4 ; | |
10440 | int arg5 ; | |
10441 | PyObject * obj0 = 0 ; | |
10442 | PyObject * obj1 = 0 ; | |
10443 | PyObject * obj2 = 0 ; | |
10444 | PyObject * obj3 = 0 ; | |
10445 | PyObject * obj4 = 0 ; | |
10446 | char *kwnames[] = { | |
10447 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
10448 | }; | |
10449 | ||
d6c14a4c | 10450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10453 | arg2 = (int) SWIG_AsInt(obj1); | |
10454 | if (PyErr_Occurred()) SWIG_fail; | |
10455 | arg3 = (int) SWIG_AsInt(obj2); | |
10456 | if (PyErr_Occurred()) SWIG_fail; | |
10457 | arg4 = (int) SWIG_AsInt(obj3); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | arg5 = (int) SWIG_AsInt(obj4); | |
10460 | if (PyErr_Occurred()) SWIG_fail; | |
10461 | { | |
10462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10463 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
10464 | ||
10465 | wxPyEndAllowThreads(__tstate); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | } | |
10468 | Py_INCREF(Py_None); resultobj = Py_None; | |
10469 | return resultobj; | |
10470 | fail: | |
10471 | return NULL; | |
10472 | } | |
10473 | ||
10474 | ||
d6c14a4c | 10475 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10476 | PyObject *resultobj; |
10477 | wxDC *arg1 = (wxDC *) 0 ; | |
10478 | wxPoint *arg2 = 0 ; | |
10479 | wxPoint *arg3 = 0 ; | |
10480 | wxPoint temp2 ; | |
10481 | wxPoint temp3 ; | |
10482 | PyObject * obj0 = 0 ; | |
10483 | PyObject * obj1 = 0 ; | |
10484 | PyObject * obj2 = 0 ; | |
10485 | char *kwnames[] = { | |
10486 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
10487 | }; | |
10488 | ||
d6c14a4c | 10489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
10490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10492 | { | |
10493 | arg2 = &temp2; | |
10494 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10495 | } | |
10496 | { | |
10497 | arg3 = &temp3; | |
10498 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10499 | } | |
10500 | { | |
10501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10502 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
10503 | ||
10504 | wxPyEndAllowThreads(__tstate); | |
10505 | if (PyErr_Occurred()) SWIG_fail; | |
10506 | } | |
10507 | Py_INCREF(Py_None); resultobj = Py_None; | |
10508 | return resultobj; | |
10509 | fail: | |
10510 | return NULL; | |
10511 | } | |
10512 | ||
10513 | ||
d6c14a4c | 10514 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10515 | PyObject *resultobj; |
10516 | wxDC *arg1 = (wxDC *) 0 ; | |
10517 | int arg2 ; | |
10518 | int arg3 ; | |
10519 | PyObject * obj0 = 0 ; | |
10520 | PyObject * obj1 = 0 ; | |
10521 | PyObject * obj2 = 0 ; | |
10522 | char *kwnames[] = { | |
10523 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10524 | }; | |
10525 | ||
d6c14a4c | 10526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
10527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10529 | arg2 = (int) SWIG_AsInt(obj1); | |
10530 | if (PyErr_Occurred()) SWIG_fail; | |
10531 | arg3 = (int) SWIG_AsInt(obj2); | |
10532 | if (PyErr_Occurred()) SWIG_fail; | |
10533 | { | |
10534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10535 | (arg1)->CrossHair(arg2,arg3); | |
10536 | ||
10537 | wxPyEndAllowThreads(__tstate); | |
10538 | if (PyErr_Occurred()) SWIG_fail; | |
10539 | } | |
10540 | Py_INCREF(Py_None); resultobj = Py_None; | |
10541 | return resultobj; | |
10542 | fail: | |
10543 | return NULL; | |
10544 | } | |
10545 | ||
10546 | ||
d6c14a4c | 10547 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10548 | PyObject *resultobj; |
10549 | wxDC *arg1 = (wxDC *) 0 ; | |
10550 | wxPoint *arg2 = 0 ; | |
10551 | wxPoint temp2 ; | |
10552 | PyObject * obj0 = 0 ; | |
10553 | PyObject * obj1 = 0 ; | |
10554 | char *kwnames[] = { | |
10555 | (char *) "self",(char *) "pt", NULL | |
10556 | }; | |
10557 | ||
d6c14a4c | 10558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
10559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10561 | { | |
10562 | arg2 = &temp2; | |
10563 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10564 | } | |
10565 | { | |
10566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10567 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
10568 | ||
10569 | wxPyEndAllowThreads(__tstate); | |
10570 | if (PyErr_Occurred()) SWIG_fail; | |
10571 | } | |
10572 | Py_INCREF(Py_None); resultobj = Py_None; | |
10573 | return resultobj; | |
10574 | fail: | |
10575 | return NULL; | |
10576 | } | |
10577 | ||
10578 | ||
d6c14a4c | 10579 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10580 | PyObject *resultobj; |
10581 | wxDC *arg1 = (wxDC *) 0 ; | |
10582 | int arg2 ; | |
10583 | int arg3 ; | |
10584 | int arg4 ; | |
10585 | int arg5 ; | |
10586 | int arg6 ; | |
10587 | int arg7 ; | |
10588 | PyObject * obj0 = 0 ; | |
10589 | PyObject * obj1 = 0 ; | |
10590 | PyObject * obj2 = 0 ; | |
10591 | PyObject * obj3 = 0 ; | |
10592 | PyObject * obj4 = 0 ; | |
10593 | PyObject * obj5 = 0 ; | |
10594 | PyObject * obj6 = 0 ; | |
10595 | char *kwnames[] = { | |
10596 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
10597 | }; | |
10598 | ||
d6c14a4c | 10599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
10600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10602 | arg2 = (int) SWIG_AsInt(obj1); | |
10603 | if (PyErr_Occurred()) SWIG_fail; | |
10604 | arg3 = (int) SWIG_AsInt(obj2); | |
10605 | if (PyErr_Occurred()) SWIG_fail; | |
10606 | arg4 = (int) SWIG_AsInt(obj3); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | arg5 = (int) SWIG_AsInt(obj4); | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | arg6 = (int) SWIG_AsInt(obj5); | |
10611 | if (PyErr_Occurred()) SWIG_fail; | |
10612 | arg7 = (int) SWIG_AsInt(obj6); | |
10613 | if (PyErr_Occurred()) SWIG_fail; | |
10614 | { | |
10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10616 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10617 | ||
10618 | wxPyEndAllowThreads(__tstate); | |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
10620 | } | |
10621 | Py_INCREF(Py_None); resultobj = Py_None; | |
10622 | return resultobj; | |
10623 | fail: | |
10624 | return NULL; | |
10625 | } | |
10626 | ||
10627 | ||
d6c14a4c | 10628 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10629 | PyObject *resultobj; |
10630 | wxDC *arg1 = (wxDC *) 0 ; | |
10631 | wxPoint *arg2 = 0 ; | |
10632 | wxPoint *arg3 = 0 ; | |
10633 | wxPoint *arg4 = 0 ; | |
10634 | wxPoint temp2 ; | |
10635 | wxPoint temp3 ; | |
10636 | wxPoint temp4 ; | |
10637 | PyObject * obj0 = 0 ; | |
10638 | PyObject * obj1 = 0 ; | |
10639 | PyObject * obj2 = 0 ; | |
10640 | PyObject * obj3 = 0 ; | |
10641 | char *kwnames[] = { | |
10642 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
10643 | }; | |
10644 | ||
d6c14a4c | 10645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
10646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10648 | { | |
10649 | arg2 = &temp2; | |
10650 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10651 | } | |
10652 | { | |
10653 | arg3 = &temp3; | |
10654 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10655 | } | |
10656 | { | |
10657 | arg4 = &temp4; | |
10658 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10659 | } | |
10660 | { | |
10661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10662 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
10663 | ||
10664 | wxPyEndAllowThreads(__tstate); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | Py_INCREF(Py_None); resultobj = Py_None; | |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
d6c14a4c | 10674 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10675 | PyObject *resultobj; |
10676 | wxDC *arg1 = (wxDC *) 0 ; | |
10677 | int arg2 ; | |
10678 | int arg3 ; | |
10679 | int arg4 ; | |
10680 | int arg5 ; | |
10681 | PyObject * obj0 = 0 ; | |
10682 | PyObject * obj1 = 0 ; | |
10683 | PyObject * obj2 = 0 ; | |
10684 | PyObject * obj3 = 0 ; | |
10685 | PyObject * obj4 = 0 ; | |
10686 | char *kwnames[] = { | |
10687 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10688 | }; | |
10689 | ||
d6c14a4c | 10690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10693 | arg2 = (int) SWIG_AsInt(obj1); | |
10694 | if (PyErr_Occurred()) SWIG_fail; | |
10695 | arg3 = (int) SWIG_AsInt(obj2); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | arg4 = (int) SWIG_AsInt(obj3); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | arg5 = (int) SWIG_AsInt(obj4); | |
10700 | if (PyErr_Occurred()) SWIG_fail; | |
10701 | { | |
10702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10703 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
10704 | ||
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) SWIG_fail; | |
10707 | } | |
10708 | Py_INCREF(Py_None); resultobj = Py_None; | |
10709 | return resultobj; | |
10710 | fail: | |
10711 | return NULL; | |
10712 | } | |
10713 | ||
10714 | ||
d6c14a4c | 10715 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10716 | PyObject *resultobj; |
10717 | wxDC *arg1 = (wxDC *) 0 ; | |
10718 | wxRect *arg2 = 0 ; | |
10719 | wxRect temp2 ; | |
10720 | PyObject * obj0 = 0 ; | |
10721 | PyObject * obj1 = 0 ; | |
10722 | char *kwnames[] = { | |
10723 | (char *) "self",(char *) "rect", NULL | |
10724 | }; | |
10725 | ||
d6c14a4c | 10726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
10727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10729 | { | |
10730 | arg2 = &temp2; | |
10731 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10732 | } | |
10733 | { | |
10734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10735 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
10736 | ||
10737 | wxPyEndAllowThreads(__tstate); | |
10738 | if (PyErr_Occurred()) SWIG_fail; | |
10739 | } | |
10740 | Py_INCREF(Py_None); resultobj = Py_None; | |
10741 | return resultobj; | |
10742 | fail: | |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
d6c14a4c | 10747 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10748 | PyObject *resultobj; |
10749 | wxDC *arg1 = (wxDC *) 0 ; | |
10750 | int arg2 ; | |
10751 | int arg3 ; | |
10752 | int arg4 ; | |
10753 | int arg5 ; | |
10754 | double arg6 ; | |
10755 | double arg7 ; | |
10756 | PyObject * obj0 = 0 ; | |
10757 | PyObject * obj1 = 0 ; | |
10758 | PyObject * obj2 = 0 ; | |
10759 | PyObject * obj3 = 0 ; | |
10760 | PyObject * obj4 = 0 ; | |
10761 | PyObject * obj5 = 0 ; | |
10762 | PyObject * obj6 = 0 ; | |
10763 | char *kwnames[] = { | |
10764 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
10765 | }; | |
10766 | ||
d6c14a4c | 10767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
10768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10770 | arg2 = (int) SWIG_AsInt(obj1); | |
10771 | if (PyErr_Occurred()) SWIG_fail; | |
10772 | arg3 = (int) SWIG_AsInt(obj2); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | arg4 = (int) SWIG_AsInt(obj3); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
10776 | arg5 = (int) SWIG_AsInt(obj4); | |
10777 | if (PyErr_Occurred()) SWIG_fail; | |
10778 | arg6 = (double) SWIG_AsDouble(obj5); | |
10779 | if (PyErr_Occurred()) SWIG_fail; | |
10780 | arg7 = (double) SWIG_AsDouble(obj6); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | { | |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | Py_INCREF(Py_None); resultobj = Py_None; | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
d6c14a4c | 10796 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10797 | PyObject *resultobj; |
10798 | wxDC *arg1 = (wxDC *) 0 ; | |
10799 | wxPoint *arg2 = 0 ; | |
10800 | wxSize *arg3 = 0 ; | |
10801 | double arg4 ; | |
10802 | double arg5 ; | |
10803 | wxPoint temp2 ; | |
10804 | wxSize temp3 ; | |
10805 | PyObject * obj0 = 0 ; | |
10806 | PyObject * obj1 = 0 ; | |
10807 | PyObject * obj2 = 0 ; | |
10808 | PyObject * obj3 = 0 ; | |
10809 | PyObject * obj4 = 0 ; | |
10810 | char *kwnames[] = { | |
10811 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
10812 | }; | |
10813 | ||
d6c14a4c | 10814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10817 | { | |
10818 | arg2 = &temp2; | |
10819 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10820 | } | |
10821 | { | |
10822 | arg3 = &temp3; | |
10823 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
10824 | } | |
10825 | arg4 = (double) SWIG_AsDouble(obj3); | |
10826 | if (PyErr_Occurred()) SWIG_fail; | |
10827 | arg5 = (double) SWIG_AsDouble(obj4); | |
10828 | if (PyErr_Occurred()) SWIG_fail; | |
10829 | { | |
10830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10831 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
10832 | ||
10833 | wxPyEndAllowThreads(__tstate); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
10835 | } | |
10836 | Py_INCREF(Py_None); resultobj = Py_None; | |
10837 | return resultobj; | |
10838 | fail: | |
10839 | return NULL; | |
10840 | } | |
10841 | ||
10842 | ||
d6c14a4c | 10843 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10844 | PyObject *resultobj; |
10845 | wxDC *arg1 = (wxDC *) 0 ; | |
10846 | int arg2 ; | |
10847 | int arg3 ; | |
10848 | PyObject * obj0 = 0 ; | |
10849 | PyObject * obj1 = 0 ; | |
10850 | PyObject * obj2 = 0 ; | |
10851 | char *kwnames[] = { | |
10852 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10853 | }; | |
10854 | ||
d6c14a4c | 10855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
10856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10858 | arg2 = (int) SWIG_AsInt(obj1); | |
10859 | if (PyErr_Occurred()) SWIG_fail; | |
10860 | arg3 = (int) SWIG_AsInt(obj2); | |
10861 | if (PyErr_Occurred()) SWIG_fail; | |
10862 | { | |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | (arg1)->DrawPoint(arg2,arg3); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
10869 | Py_INCREF(Py_None); resultobj = Py_None; | |
10870 | return resultobj; | |
10871 | fail: | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
d6c14a4c | 10876 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10877 | PyObject *resultobj; |
10878 | wxDC *arg1 = (wxDC *) 0 ; | |
10879 | wxPoint *arg2 = 0 ; | |
10880 | wxPoint temp2 ; | |
10881 | PyObject * obj0 = 0 ; | |
10882 | PyObject * obj1 = 0 ; | |
10883 | char *kwnames[] = { | |
10884 | (char *) "self",(char *) "pt", NULL | |
10885 | }; | |
10886 | ||
d6c14a4c | 10887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
10888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10890 | { | |
10891 | arg2 = &temp2; | |
10892 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10893 | } | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
10897 | ||
10898 | wxPyEndAllowThreads(__tstate); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
10901 | Py_INCREF(Py_None); resultobj = Py_None; | |
10902 | return resultobj; | |
10903 | fail: | |
10904 | return NULL; | |
10905 | } | |
10906 | ||
10907 | ||
d6c14a4c | 10908 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10909 | PyObject *resultobj; |
10910 | wxDC *arg1 = (wxDC *) 0 ; | |
10911 | int arg2 ; | |
10912 | int arg3 ; | |
10913 | int arg4 ; | |
10914 | int arg5 ; | |
10915 | PyObject * obj0 = 0 ; | |
10916 | PyObject * obj1 = 0 ; | |
10917 | PyObject * obj2 = 0 ; | |
10918 | PyObject * obj3 = 0 ; | |
10919 | PyObject * obj4 = 0 ; | |
10920 | char *kwnames[] = { | |
10921 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10922 | }; | |
10923 | ||
d6c14a4c | 10924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10927 | arg2 = (int) SWIG_AsInt(obj1); | |
10928 | if (PyErr_Occurred()) SWIG_fail; | |
10929 | arg3 = (int) SWIG_AsInt(obj2); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | arg4 = (int) SWIG_AsInt(obj3); | |
10932 | if (PyErr_Occurred()) SWIG_fail; | |
10933 | arg5 = (int) SWIG_AsInt(obj4); | |
10934 | if (PyErr_Occurred()) SWIG_fail; | |
10935 | { | |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | Py_INCREF(Py_None); resultobj = Py_None; | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
d6c14a4c | 10949 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10950 | PyObject *resultobj; |
10951 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
10952 | wxRect *arg2 = 0 ; |
10953 | wxRect temp2 ; | |
d55e5bfc RD |
10954 | PyObject * obj0 = 0 ; |
10955 | PyObject * obj1 = 0 ; | |
d55e5bfc | 10956 | char *kwnames[] = { |
d6c14a4c | 10957 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
10958 | }; |
10959 | ||
d6c14a4c | 10960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
10961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10963 | { | |
10964 | arg2 = &temp2; | |
d6c14a4c | 10965 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
10966 | } |
10967 | { | |
10968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 10969 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d55e5bfc RD |
10970 | |
10971 | wxPyEndAllowThreads(__tstate); | |
10972 | if (PyErr_Occurred()) SWIG_fail; | |
10973 | } | |
10974 | Py_INCREF(Py_None); resultobj = Py_None; | |
10975 | return resultobj; | |
10976 | fail: | |
10977 | return NULL; | |
10978 | } | |
10979 | ||
10980 | ||
d6c14a4c | 10981 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10982 | PyObject *resultobj; |
10983 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
10984 | wxPoint *arg2 = 0 ; |
10985 | wxSize *arg3 = 0 ; | |
10986 | wxPoint temp2 ; | |
10987 | wxSize temp3 ; | |
d55e5bfc RD |
10988 | PyObject * obj0 = 0 ; |
10989 | PyObject * obj1 = 0 ; | |
d6c14a4c | 10990 | PyObject * obj2 = 0 ; |
d55e5bfc | 10991 | char *kwnames[] = { |
d6c14a4c | 10992 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
10993 | }; |
10994 | ||
d6c14a4c | 10995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
10996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10998 | { | |
10999 | arg2 = &temp2; | |
d6c14a4c RD |
11000 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11001 | } | |
11002 | { | |
11003 | arg3 = &temp3; | |
11004 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
11005 | } |
11006 | { | |
11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11008 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
11009 | |
11010 | wxPyEndAllowThreads(__tstate); | |
11011 | if (PyErr_Occurred()) SWIG_fail; | |
11012 | } | |
11013 | Py_INCREF(Py_None); resultobj = Py_None; | |
11014 | return resultobj; | |
11015 | fail: | |
11016 | return NULL; | |
11017 | } | |
11018 | ||
11019 | ||
d6c14a4c | 11020 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11021 | PyObject *resultobj; |
11022 | wxDC *arg1 = (wxDC *) 0 ; | |
11023 | int arg2 ; | |
11024 | int arg3 ; | |
11025 | int arg4 ; | |
11026 | int arg5 ; | |
11027 | double arg6 ; | |
11028 | PyObject * obj0 = 0 ; | |
11029 | PyObject * obj1 = 0 ; | |
11030 | PyObject * obj2 = 0 ; | |
11031 | PyObject * obj3 = 0 ; | |
11032 | PyObject * obj4 = 0 ; | |
11033 | PyObject * obj5 = 0 ; | |
11034 | char *kwnames[] = { | |
11035 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11036 | }; | |
11037 | ||
d6c14a4c | 11038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
11039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11041 | arg2 = (int) SWIG_AsInt(obj1); | |
11042 | if (PyErr_Occurred()) SWIG_fail; | |
11043 | arg3 = (int) SWIG_AsInt(obj2); | |
11044 | if (PyErr_Occurred()) SWIG_fail; | |
11045 | arg4 = (int) SWIG_AsInt(obj3); | |
11046 | if (PyErr_Occurred()) SWIG_fail; | |
11047 | arg5 = (int) SWIG_AsInt(obj4); | |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
11049 | arg6 = (double) SWIG_AsDouble(obj5); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | { | |
11052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11053 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11054 | ||
11055 | wxPyEndAllowThreads(__tstate); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
11058 | Py_INCREF(Py_None); resultobj = Py_None; | |
11059 | return resultobj; | |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
d6c14a4c | 11065 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11066 | PyObject *resultobj; |
11067 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11068 | wxRect *arg2 = 0 ; |
11069 | double arg3 ; | |
11070 | wxRect temp2 ; | |
d55e5bfc RD |
11071 | PyObject * obj0 = 0 ; |
11072 | PyObject * obj1 = 0 ; | |
11073 | PyObject * obj2 = 0 ; | |
d55e5bfc | 11074 | char *kwnames[] = { |
d6c14a4c | 11075 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d55e5bfc RD |
11076 | }; |
11077 | ||
d6c14a4c | 11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11081 | { | |
11082 | arg2 = &temp2; | |
d6c14a4c | 11083 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11084 | } |
d6c14a4c | 11085 | arg3 = (double) SWIG_AsDouble(obj2); |
d55e5bfc RD |
11086 | if (PyErr_Occurred()) SWIG_fail; |
11087 | { | |
11088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11089 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
11090 | |
11091 | wxPyEndAllowThreads(__tstate); | |
11092 | if (PyErr_Occurred()) SWIG_fail; | |
11093 | } | |
11094 | Py_INCREF(Py_None); resultobj = Py_None; | |
11095 | return resultobj; | |
11096 | fail: | |
11097 | return NULL; | |
11098 | } | |
11099 | ||
11100 | ||
d6c14a4c | 11101 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11102 | PyObject *resultobj; |
11103 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11104 | wxPoint *arg2 = 0 ; |
11105 | wxSize *arg3 = 0 ; | |
11106 | double arg4 ; | |
11107 | wxPoint temp2 ; | |
11108 | wxSize temp3 ; | |
d55e5bfc RD |
11109 | PyObject * obj0 = 0 ; |
11110 | PyObject * obj1 = 0 ; | |
11111 | PyObject * obj2 = 0 ; | |
d6c14a4c | 11112 | PyObject * obj3 = 0 ; |
d55e5bfc | 11113 | char *kwnames[] = { |
d6c14a4c | 11114 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d55e5bfc RD |
11115 | }; |
11116 | ||
d6c14a4c | 11117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11120 | { | |
11121 | arg2 = &temp2; | |
d6c14a4c | 11122 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11123 | } |
d6c14a4c RD |
11124 | { |
11125 | arg3 = &temp3; | |
11126 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11127 | } | |
11128 | arg4 = (double) SWIG_AsDouble(obj3); | |
d55e5bfc RD |
11129 | if (PyErr_Occurred()) SWIG_fail; |
11130 | { | |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11132 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d55e5bfc RD |
11133 | |
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
11137 | Py_INCREF(Py_None); resultobj = Py_None; | |
11138 | return resultobj; | |
11139 | fail: | |
11140 | return NULL; | |
11141 | } | |
11142 | ||
11143 | ||
d6c14a4c | 11144 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11145 | PyObject *resultobj; |
11146 | wxDC *arg1 = (wxDC *) 0 ; | |
11147 | int arg2 ; | |
11148 | int arg3 ; | |
11149 | int arg4 ; | |
11150 | PyObject * obj0 = 0 ; | |
11151 | PyObject * obj1 = 0 ; | |
11152 | PyObject * obj2 = 0 ; | |
11153 | PyObject * obj3 = 0 ; | |
11154 | char *kwnames[] = { | |
11155 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11156 | }; | |
11157 | ||
d6c14a4c | 11158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11161 | arg2 = (int) SWIG_AsInt(obj1); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | arg3 = (int) SWIG_AsInt(obj2); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | arg4 = (int) SWIG_AsInt(obj3); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | { | |
11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11169 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11170 | ||
11171 | wxPyEndAllowThreads(__tstate); | |
11172 | if (PyErr_Occurred()) SWIG_fail; | |
11173 | } | |
11174 | Py_INCREF(Py_None); resultobj = Py_None; | |
11175 | return resultobj; | |
11176 | fail: | |
11177 | return NULL; | |
11178 | } | |
11179 | ||
11180 | ||
d6c14a4c | 11181 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11182 | PyObject *resultobj; |
11183 | wxDC *arg1 = (wxDC *) 0 ; | |
11184 | wxPoint *arg2 = 0 ; | |
11185 | int arg3 ; | |
11186 | wxPoint temp2 ; | |
11187 | PyObject * obj0 = 0 ; | |
11188 | PyObject * obj1 = 0 ; | |
11189 | PyObject * obj2 = 0 ; | |
11190 | char *kwnames[] = { | |
11191 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11192 | }; | |
11193 | ||
d6c14a4c | 11194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11197 | { | |
11198 | arg2 = &temp2; | |
11199 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11200 | } | |
11201 | arg3 = (int) SWIG_AsInt(obj2); | |
11202 | if (PyErr_Occurred()) SWIG_fail; | |
11203 | { | |
11204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11205 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11206 | ||
11207 | wxPyEndAllowThreads(__tstate); | |
11208 | if (PyErr_Occurred()) SWIG_fail; | |
11209 | } | |
11210 | Py_INCREF(Py_None); resultobj = Py_None; | |
11211 | return resultobj; | |
11212 | fail: | |
11213 | return NULL; | |
11214 | } | |
11215 | ||
11216 | ||
d6c14a4c | 11217 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11218 | PyObject *resultobj; |
11219 | wxDC *arg1 = (wxDC *) 0 ; | |
11220 | int arg2 ; | |
11221 | int arg3 ; | |
11222 | int arg4 ; | |
11223 | int arg5 ; | |
11224 | PyObject * obj0 = 0 ; | |
11225 | PyObject * obj1 = 0 ; | |
11226 | PyObject * obj2 = 0 ; | |
11227 | PyObject * obj3 = 0 ; | |
11228 | PyObject * obj4 = 0 ; | |
11229 | char *kwnames[] = { | |
11230 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11231 | }; | |
11232 | ||
d6c14a4c | 11233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11236 | arg2 = (int) SWIG_AsInt(obj1); | |
11237 | if (PyErr_Occurred()) SWIG_fail; | |
11238 | arg3 = (int) SWIG_AsInt(obj2); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | arg4 = (int) SWIG_AsInt(obj3); | |
11241 | if (PyErr_Occurred()) SWIG_fail; | |
11242 | arg5 = (int) SWIG_AsInt(obj4); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | { | |
11245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11246 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11247 | ||
11248 | wxPyEndAllowThreads(__tstate); | |
11249 | if (PyErr_Occurred()) SWIG_fail; | |
11250 | } | |
11251 | Py_INCREF(Py_None); resultobj = Py_None; | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | return NULL; | |
11255 | } | |
11256 | ||
11257 | ||
d6c14a4c | 11258 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11259 | PyObject *resultobj; |
11260 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11261 | wxRect *arg2 = 0 ; |
11262 | wxRect temp2 ; | |
d55e5bfc RD |
11263 | PyObject * obj0 = 0 ; |
11264 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11265 | char *kwnames[] = { |
d6c14a4c | 11266 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11267 | }; |
11268 | ||
d6c14a4c | 11269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11272 | { | |
11273 | arg2 = &temp2; | |
d6c14a4c | 11274 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11275 | } |
11276 | { | |
11277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11278 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d55e5bfc RD |
11279 | |
11280 | wxPyEndAllowThreads(__tstate); | |
11281 | if (PyErr_Occurred()) SWIG_fail; | |
11282 | } | |
11283 | Py_INCREF(Py_None); resultobj = Py_None; | |
11284 | return resultobj; | |
11285 | fail: | |
11286 | return NULL; | |
11287 | } | |
11288 | ||
11289 | ||
d6c14a4c | 11290 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11291 | PyObject *resultobj; |
11292 | wxDC *arg1 = (wxDC *) 0 ; | |
d6c14a4c RD |
11293 | wxPoint *arg2 = 0 ; |
11294 | wxSize *arg3 = 0 ; | |
11295 | wxPoint temp2 ; | |
11296 | wxSize temp3 ; | |
d55e5bfc RD |
11297 | PyObject * obj0 = 0 ; |
11298 | PyObject * obj1 = 0 ; | |
d6c14a4c | 11299 | PyObject * obj2 = 0 ; |
d55e5bfc | 11300 | char *kwnames[] = { |
d6c14a4c | 11301 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
11302 | }; |
11303 | ||
d6c14a4c | 11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11307 | { | |
11308 | arg2 = &temp2; | |
d6c14a4c RD |
11309 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11310 | } | |
11311 | { | |
11312 | arg3 = &temp3; | |
11313 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
11314 | } |
11315 | { | |
11316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 11317 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
11318 | |
11319 | wxPyEndAllowThreads(__tstate); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | } | |
11322 | Py_INCREF(Py_None); resultobj = Py_None; | |
11323 | return resultobj; | |
11324 | fail: | |
11325 | return NULL; | |
11326 | } | |
11327 | ||
11328 | ||
d6c14a4c | 11329 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11330 | PyObject *resultobj; |
11331 | wxDC *arg1 = (wxDC *) 0 ; | |
11332 | wxIcon *arg2 = 0 ; | |
11333 | int arg3 ; | |
11334 | int arg4 ; | |
11335 | PyObject * obj0 = 0 ; | |
11336 | PyObject * obj1 = 0 ; | |
11337 | PyObject * obj2 = 0 ; | |
11338 | PyObject * obj3 = 0 ; | |
11339 | char *kwnames[] = { | |
11340 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
11341 | }; | |
11342 | ||
d6c14a4c | 11343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11347 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11348 | SWIG_fail; | |
11349 | if (arg2 == NULL) { | |
11350 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11351 | SWIG_fail; | |
11352 | } | |
11353 | arg3 = (int) SWIG_AsInt(obj2); | |
11354 | if (PyErr_Occurred()) SWIG_fail; | |
11355 | arg4 = (int) SWIG_AsInt(obj3); | |
11356 | if (PyErr_Occurred()) SWIG_fail; | |
11357 | { | |
11358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11359 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
11360 | ||
11361 | wxPyEndAllowThreads(__tstate); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
11364 | Py_INCREF(Py_None); resultobj = Py_None; | |
11365 | return resultobj; | |
11366 | fail: | |
11367 | return NULL; | |
11368 | } | |
11369 | ||
11370 | ||
d6c14a4c | 11371 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11372 | PyObject *resultobj; |
11373 | wxDC *arg1 = (wxDC *) 0 ; | |
11374 | wxIcon *arg2 = 0 ; | |
11375 | wxPoint *arg3 = 0 ; | |
11376 | wxPoint temp3 ; | |
11377 | PyObject * obj0 = 0 ; | |
11378 | PyObject * obj1 = 0 ; | |
11379 | PyObject * obj2 = 0 ; | |
11380 | char *kwnames[] = { | |
11381 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
11382 | }; | |
11383 | ||
d6c14a4c | 11384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11389 | SWIG_fail; | |
11390 | if (arg2 == NULL) { | |
11391 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11392 | SWIG_fail; | |
11393 | } | |
11394 | { | |
11395 | arg3 = &temp3; | |
11396 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11397 | } | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
11405 | Py_INCREF(Py_None); resultobj = Py_None; | |
11406 | return resultobj; | |
11407 | fail: | |
11408 | return NULL; | |
11409 | } | |
11410 | ||
11411 | ||
d6c14a4c | 11412 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11413 | PyObject *resultobj; |
11414 | wxDC *arg1 = (wxDC *) 0 ; | |
11415 | wxBitmap *arg2 = 0 ; | |
11416 | int arg3 ; | |
11417 | int arg4 ; | |
11418 | bool arg5 = (bool) False ; | |
11419 | PyObject * obj0 = 0 ; | |
11420 | PyObject * obj1 = 0 ; | |
11421 | PyObject * obj2 = 0 ; | |
11422 | PyObject * obj3 = 0 ; | |
11423 | PyObject * obj4 = 0 ; | |
11424 | char *kwnames[] = { | |
11425 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
11426 | }; | |
11427 | ||
d6c14a4c | 11428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11431 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11433 | SWIG_fail; | |
11434 | if (arg2 == NULL) { | |
11435 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11436 | SWIG_fail; | |
11437 | } | |
11438 | arg3 = (int) SWIG_AsInt(obj2); | |
11439 | if (PyErr_Occurred()) SWIG_fail; | |
11440 | arg4 = (int) SWIG_AsInt(obj3); | |
11441 | if (PyErr_Occurred()) SWIG_fail; | |
11442 | if (obj4) { | |
11443 | arg5 = (bool) SWIG_AsBool(obj4); | |
11444 | if (PyErr_Occurred()) SWIG_fail; | |
11445 | } | |
11446 | { | |
11447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11448 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
11449 | ||
11450 | wxPyEndAllowThreads(__tstate); | |
11451 | if (PyErr_Occurred()) SWIG_fail; | |
11452 | } | |
11453 | Py_INCREF(Py_None); resultobj = Py_None; | |
11454 | return resultobj; | |
11455 | fail: | |
11456 | return NULL; | |
11457 | } | |
11458 | ||
11459 | ||
d6c14a4c | 11460 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11461 | PyObject *resultobj; |
11462 | wxDC *arg1 = (wxDC *) 0 ; | |
11463 | wxBitmap *arg2 = 0 ; | |
11464 | wxPoint *arg3 = 0 ; | |
11465 | bool arg4 = (bool) False ; | |
11466 | wxPoint temp3 ; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | PyObject * obj1 = 0 ; | |
11469 | PyObject * obj2 = 0 ; | |
11470 | PyObject * obj3 = 0 ; | |
11471 | char *kwnames[] = { | |
11472 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
11473 | }; | |
11474 | ||
d6c14a4c | 11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
11479 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11480 | SWIG_fail; | |
11481 | if (arg2 == NULL) { | |
11482 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11483 | SWIG_fail; | |
11484 | } | |
11485 | { | |
11486 | arg3 = &temp3; | |
11487 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11488 | } | |
11489 | if (obj3) { | |
11490 | arg4 = (bool) SWIG_AsBool(obj3); | |
11491 | if (PyErr_Occurred()) SWIG_fail; | |
11492 | } | |
11493 | { | |
11494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11495 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11496 | ||
11497 | wxPyEndAllowThreads(__tstate); | |
11498 | if (PyErr_Occurred()) SWIG_fail; | |
11499 | } | |
11500 | Py_INCREF(Py_None); resultobj = Py_None; | |
11501 | return resultobj; | |
11502 | fail: | |
11503 | return NULL; | |
11504 | } | |
11505 | ||
11506 | ||
d6c14a4c | 11507 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11508 | PyObject *resultobj; |
11509 | wxDC *arg1 = (wxDC *) 0 ; | |
11510 | wxString *arg2 = 0 ; | |
11511 | int arg3 ; | |
11512 | int arg4 ; | |
11513 | bool temp2 = False ; | |
11514 | PyObject * obj0 = 0 ; | |
11515 | PyObject * obj1 = 0 ; | |
11516 | PyObject * obj2 = 0 ; | |
11517 | PyObject * obj3 = 0 ; | |
11518 | char *kwnames[] = { | |
11519 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
11520 | }; | |
11521 | ||
d6c14a4c | 11522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11525 | { | |
11526 | arg2 = wxString_in_helper(obj1); | |
11527 | if (arg2 == NULL) SWIG_fail; | |
11528 | temp2 = True; | |
11529 | } | |
11530 | arg3 = (int) SWIG_AsInt(obj2); | |
11531 | if (PyErr_Occurred()) SWIG_fail; | |
11532 | arg4 = (int) SWIG_AsInt(obj3); | |
11533 | if (PyErr_Occurred()) SWIG_fail; | |
11534 | { | |
11535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11536 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
11537 | ||
11538 | wxPyEndAllowThreads(__tstate); | |
11539 | if (PyErr_Occurred()) SWIG_fail; | |
11540 | } | |
11541 | Py_INCREF(Py_None); resultobj = Py_None; | |
11542 | { | |
11543 | if (temp2) | |
11544 | delete arg2; | |
11545 | } | |
11546 | return resultobj; | |
11547 | fail: | |
11548 | { | |
11549 | if (temp2) | |
11550 | delete arg2; | |
11551 | } | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
d6c14a4c | 11556 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11557 | PyObject *resultobj; |
11558 | wxDC *arg1 = (wxDC *) 0 ; | |
11559 | wxString *arg2 = 0 ; | |
11560 | wxPoint *arg3 = 0 ; | |
11561 | bool temp2 = False ; | |
11562 | wxPoint temp3 ; | |
11563 | PyObject * obj0 = 0 ; | |
11564 | PyObject * obj1 = 0 ; | |
11565 | PyObject * obj2 = 0 ; | |
11566 | char *kwnames[] = { | |
11567 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
11568 | }; | |
11569 | ||
d6c14a4c | 11570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11573 | { | |
11574 | arg2 = wxString_in_helper(obj1); | |
11575 | if (arg2 == NULL) SWIG_fail; | |
11576 | temp2 = True; | |
11577 | } | |
11578 | { | |
11579 | arg3 = &temp3; | |
11580 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11581 | } | |
11582 | { | |
11583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11584 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
11585 | ||
11586 | wxPyEndAllowThreads(__tstate); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
11588 | } | |
11589 | Py_INCREF(Py_None); resultobj = Py_None; | |
11590 | { | |
11591 | if (temp2) | |
11592 | delete arg2; | |
11593 | } | |
11594 | return resultobj; | |
11595 | fail: | |
11596 | { | |
11597 | if (temp2) | |
11598 | delete arg2; | |
11599 | } | |
11600 | return NULL; | |
11601 | } | |
11602 | ||
11603 | ||
d6c14a4c | 11604 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11605 | PyObject *resultobj; |
11606 | wxDC *arg1 = (wxDC *) 0 ; | |
11607 | wxString *arg2 = 0 ; | |
11608 | int arg3 ; | |
11609 | int arg4 ; | |
11610 | double arg5 ; | |
11611 | bool temp2 = False ; | |
11612 | PyObject * obj0 = 0 ; | |
11613 | PyObject * obj1 = 0 ; | |
11614 | PyObject * obj2 = 0 ; | |
11615 | PyObject * obj3 = 0 ; | |
11616 | PyObject * obj4 = 0 ; | |
11617 | char *kwnames[] = { | |
11618 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
11619 | }; | |
11620 | ||
d6c14a4c | 11621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11624 | { | |
11625 | arg2 = wxString_in_helper(obj1); | |
11626 | if (arg2 == NULL) SWIG_fail; | |
11627 | temp2 = True; | |
11628 | } | |
11629 | arg3 = (int) SWIG_AsInt(obj2); | |
11630 | if (PyErr_Occurred()) SWIG_fail; | |
11631 | arg4 = (int) SWIG_AsInt(obj3); | |
11632 | if (PyErr_Occurred()) SWIG_fail; | |
11633 | arg5 = (double) SWIG_AsDouble(obj4); | |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
11635 | { | |
11636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11637 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
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 | ||
d6c14a4c | 11657 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11658 | PyObject *resultobj; |
11659 | wxDC *arg1 = (wxDC *) 0 ; | |
11660 | wxString *arg2 = 0 ; | |
11661 | wxPoint *arg3 = 0 ; | |
11662 | double arg4 ; | |
11663 | bool temp2 = False ; | |
11664 | wxPoint temp3 ; | |
11665 | PyObject * obj0 = 0 ; | |
11666 | PyObject * obj1 = 0 ; | |
11667 | PyObject * obj2 = 0 ; | |
11668 | PyObject * obj3 = 0 ; | |
11669 | char *kwnames[] = { | |
11670 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
11671 | }; | |
11672 | ||
d6c14a4c | 11673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11676 | { | |
11677 | arg2 = wxString_in_helper(obj1); | |
11678 | if (arg2 == NULL) SWIG_fail; | |
11679 | temp2 = True; | |
11680 | } | |
11681 | { | |
11682 | arg3 = &temp3; | |
11683 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11684 | } | |
11685 | arg4 = (double) SWIG_AsDouble(obj3); | |
11686 | if (PyErr_Occurred()) SWIG_fail; | |
11687 | { | |
11688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11689 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
11690 | ||
11691 | wxPyEndAllowThreads(__tstate); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | } | |
11694 | Py_INCREF(Py_None); resultobj = Py_None; | |
11695 | { | |
11696 | if (temp2) | |
11697 | delete arg2; | |
11698 | } | |
11699 | return resultobj; | |
11700 | fail: | |
11701 | { | |
11702 | if (temp2) | |
11703 | delete arg2; | |
11704 | } | |
11705 | return NULL; | |
11706 | } | |
11707 | ||
11708 | ||
d6c14a4c | 11709 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11710 | PyObject *resultobj; |
11711 | wxDC *arg1 = (wxDC *) 0 ; | |
11712 | int arg2 ; | |
11713 | int arg3 ; | |
11714 | int arg4 ; | |
11715 | int arg5 ; | |
11716 | wxDC *arg6 = (wxDC *) 0 ; | |
11717 | int arg7 ; | |
11718 | int arg8 ; | |
11719 | int arg9 = (int) wxCOPY ; | |
11720 | bool arg10 = (bool) False ; | |
11721 | int arg11 = (int) -1 ; | |
11722 | int arg12 = (int) -1 ; | |
11723 | bool result; | |
11724 | PyObject * obj0 = 0 ; | |
11725 | PyObject * obj1 = 0 ; | |
11726 | PyObject * obj2 = 0 ; | |
11727 | PyObject * obj3 = 0 ; | |
11728 | PyObject * obj4 = 0 ; | |
11729 | PyObject * obj5 = 0 ; | |
11730 | PyObject * obj6 = 0 ; | |
11731 | PyObject * obj7 = 0 ; | |
11732 | PyObject * obj8 = 0 ; | |
11733 | PyObject * obj9 = 0 ; | |
11734 | PyObject * obj10 = 0 ; | |
11735 | PyObject * obj11 = 0 ; | |
11736 | char *kwnames[] = { | |
11737 | (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 | |
11738 | }; | |
11739 | ||
d6c14a4c | 11740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail; |
d55e5bfc RD |
11741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11743 | arg2 = (int) SWIG_AsInt(obj1); | |
11744 | if (PyErr_Occurred()) SWIG_fail; | |
11745 | arg3 = (int) SWIG_AsInt(obj2); | |
11746 | if (PyErr_Occurred()) SWIG_fail; | |
11747 | arg4 = (int) SWIG_AsInt(obj3); | |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
11749 | arg5 = (int) SWIG_AsInt(obj4); | |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
11751 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
11752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11753 | arg7 = (int) SWIG_AsInt(obj6); | |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
11755 | arg8 = (int) SWIG_AsInt(obj7); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | if (obj8) { | |
11758 | arg9 = (int) SWIG_AsInt(obj8); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | } | |
11761 | if (obj9) { | |
11762 | arg10 = (bool) SWIG_AsBool(obj9); | |
11763 | if (PyErr_Occurred()) SWIG_fail; | |
11764 | } | |
11765 | if (obj10) { | |
11766 | arg11 = (int) SWIG_AsInt(obj10); | |
11767 | if (PyErr_Occurred()) SWIG_fail; | |
11768 | } | |
11769 | if (obj11) { | |
11770 | arg12 = (int) SWIG_AsInt(obj11); | |
11771 | if (PyErr_Occurred()) SWIG_fail; | |
11772 | } | |
11773 | { | |
11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11775 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
11776 | ||
11777 | wxPyEndAllowThreads(__tstate); | |
11778 | if (PyErr_Occurred()) SWIG_fail; | |
11779 | } | |
11780 | { | |
11781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11782 | } | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
d6c14a4c | 11789 | static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11790 | PyObject *resultobj; |
11791 | wxDC *arg1 = (wxDC *) 0 ; | |
11792 | wxPoint *arg2 = 0 ; | |
11793 | wxSize *arg3 = 0 ; | |
11794 | wxDC *arg4 = (wxDC *) 0 ; | |
11795 | wxPoint *arg5 = 0 ; | |
11796 | int arg6 = (int) wxCOPY ; | |
11797 | bool arg7 = (bool) False ; | |
11798 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
11799 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
11800 | bool result; | |
11801 | wxPoint temp2 ; | |
11802 | wxSize temp3 ; | |
11803 | wxPoint temp5 ; | |
11804 | wxPoint temp8 ; | |
11805 | PyObject * obj0 = 0 ; | |
11806 | PyObject * obj1 = 0 ; | |
11807 | PyObject * obj2 = 0 ; | |
11808 | PyObject * obj3 = 0 ; | |
11809 | PyObject * obj4 = 0 ; | |
11810 | PyObject * obj5 = 0 ; | |
11811 | PyObject * obj6 = 0 ; | |
11812 | PyObject * obj7 = 0 ; | |
11813 | char *kwnames[] = { | |
11814 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
11815 | }; | |
11816 | ||
d6c14a4c | 11817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
11818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11820 | { | |
11821 | arg2 = &temp2; | |
11822 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11823 | } | |
11824 | { | |
11825 | arg3 = &temp3; | |
11826 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11827 | } | |
11828 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
11829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11830 | { | |
11831 | arg5 = &temp5; | |
11832 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11833 | } | |
11834 | if (obj5) { | |
11835 | arg6 = (int) SWIG_AsInt(obj5); | |
11836 | if (PyErr_Occurred()) SWIG_fail; | |
11837 | } | |
11838 | if (obj6) { | |
11839 | arg7 = (bool) SWIG_AsBool(obj6); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | if (obj7) { | |
11843 | { | |
11844 | arg8 = &temp8; | |
11845 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
11846 | } | |
11847 | } | |
11848 | { | |
11849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c RD |
11850 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
11851 | ||
11852 | wxPyEndAllowThreads(__tstate); | |
11853 | if (PyErr_Occurred()) SWIG_fail; | |
11854 | } | |
11855 | { | |
11856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11857 | } | |
11858 | return resultobj; | |
11859 | fail: | |
11860 | return NULL; | |
11861 | } | |
11862 | ||
11863 | ||
11864 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11865 | PyObject *resultobj; | |
11866 | wxDC *arg1 = (wxDC *) 0 ; | |
11867 | int arg2 ; | |
11868 | int arg3 ; | |
11869 | int arg4 ; | |
11870 | int arg5 ; | |
11871 | PyObject * obj0 = 0 ; | |
11872 | PyObject * obj1 = 0 ; | |
11873 | PyObject * obj2 = 0 ; | |
11874 | PyObject * obj3 = 0 ; | |
11875 | PyObject * obj4 = 0 ; | |
11876 | char *kwnames[] = { | |
11877 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11878 | }; | |
11879 | ||
11880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11883 | arg2 = (int) SWIG_AsInt(obj1); | |
11884 | if (PyErr_Occurred()) SWIG_fail; | |
11885 | arg3 = (int) SWIG_AsInt(obj2); | |
11886 | if (PyErr_Occurred()) SWIG_fail; | |
11887 | arg4 = (int) SWIG_AsInt(obj3); | |
11888 | if (PyErr_Occurred()) SWIG_fail; | |
11889 | arg5 = (int) SWIG_AsInt(obj4); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
11898 | Py_INCREF(Py_None); resultobj = Py_None; | |
11899 | return resultobj; | |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
11905 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11906 | PyObject *resultobj; | |
11907 | wxDC *arg1 = (wxDC *) 0 ; | |
11908 | wxPoint *arg2 = 0 ; | |
11909 | wxSize *arg3 = 0 ; | |
11910 | wxPoint temp2 ; | |
11911 | wxSize temp3 ; | |
11912 | PyObject * obj0 = 0 ; | |
11913 | PyObject * obj1 = 0 ; | |
11914 | PyObject * obj2 = 0 ; | |
11915 | char *kwnames[] = { | |
11916 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
11917 | }; | |
11918 | ||
11919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11922 | { | |
11923 | arg2 = &temp2; | |
11924 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11925 | } | |
11926 | { | |
11927 | arg3 = &temp3; | |
11928 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11929 | } | |
11930 | { | |
11931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11932 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
11933 | ||
11934 | wxPyEndAllowThreads(__tstate); | |
11935 | if (PyErr_Occurred()) SWIG_fail; | |
11936 | } | |
11937 | Py_INCREF(Py_None); resultobj = Py_None; | |
11938 | return resultobj; | |
11939 | fail: | |
11940 | return NULL; | |
11941 | } | |
11942 | ||
11943 | ||
11944 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11945 | PyObject *resultobj; | |
11946 | wxDC *arg1 = (wxDC *) 0 ; | |
11947 | wxRegion *arg2 = 0 ; | |
11948 | PyObject * obj0 = 0 ; | |
11949 | PyObject * obj1 = 0 ; | |
11950 | char *kwnames[] = { | |
11951 | (char *) "self",(char *) "region", NULL | |
11952 | }; | |
11953 | ||
11954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
11955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11957 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
11958 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11959 | SWIG_fail; | |
11960 | if (arg2 == NULL) { | |
11961 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11962 | SWIG_fail; | |
11963 | } | |
11964 | { | |
11965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11966 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
11967 | ||
11968 | wxPyEndAllowThreads(__tstate); | |
11969 | if (PyErr_Occurred()) SWIG_fail; | |
11970 | } | |
11971 | Py_INCREF(Py_None); resultobj = Py_None; | |
11972 | return resultobj; | |
11973 | fail: | |
11974 | return NULL; | |
11975 | } | |
11976 | ||
11977 | ||
11978 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11979 | PyObject *resultobj; | |
11980 | wxDC *arg1 = (wxDC *) 0 ; | |
11981 | wxRect *arg2 = 0 ; | |
11982 | wxRect temp2 ; | |
11983 | PyObject * obj0 = 0 ; | |
11984 | PyObject * obj1 = 0 ; | |
11985 | char *kwnames[] = { | |
11986 | (char *) "self",(char *) "rect", NULL | |
11987 | }; | |
11988 | ||
11989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
11990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
11991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11992 | { | |
11993 | arg2 = &temp2; | |
11994 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11995 | } | |
11996 | { | |
11997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11998 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
d55e5bfc RD |
11999 | |
12000 | wxPyEndAllowThreads(__tstate); | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
12002 | } | |
d6c14a4c | 12003 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
12004 | return resultobj; |
12005 | fail: | |
12006 | return NULL; | |
12007 | } | |
12008 | ||
12009 | ||
12010 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12011 | PyObject *resultobj; | |
12012 | wxDC *arg1 = (wxDC *) 0 ; | |
12013 | int arg2 ; | |
12014 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12015 | int arg4 = (int) 0 ; | |
12016 | int arg5 = (int) 0 ; | |
12017 | PyObject * obj0 = 0 ; | |
12018 | PyObject * obj1 = 0 ; | |
12019 | PyObject * obj2 = 0 ; | |
12020 | PyObject * obj3 = 0 ; | |
12021 | char *kwnames[] = { | |
12022 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12023 | }; | |
12024 | ||
12025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12028 | { | |
12029 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12030 | if (arg3 == NULL) SWIG_fail; | |
12031 | } | |
12032 | if (obj2) { | |
12033 | arg4 = (int) SWIG_AsInt(obj2); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | if (obj3) { | |
12037 | arg5 = (int) SWIG_AsInt(obj3); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | { | |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
12047 | Py_INCREF(Py_None); resultobj = Py_None; | |
12048 | { | |
12049 | if (arg3) delete [] arg3; | |
12050 | } | |
12051 | return resultobj; | |
12052 | fail: | |
12053 | { | |
12054 | if (arg3) delete [] arg3; | |
12055 | } | |
12056 | return NULL; | |
12057 | } | |
12058 | ||
12059 | ||
12060 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12061 | PyObject *resultobj; | |
12062 | wxDC *arg1 = (wxDC *) 0 ; | |
12063 | int arg2 ; | |
12064 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12065 | int arg4 = (int) 0 ; | |
12066 | int arg5 = (int) 0 ; | |
12067 | int arg6 = (int) wxODDEVEN_RULE ; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | PyObject * obj1 = 0 ; | |
12070 | PyObject * obj2 = 0 ; | |
12071 | PyObject * obj3 = 0 ; | |
12072 | PyObject * obj4 = 0 ; | |
12073 | char *kwnames[] = { | |
12074 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12075 | }; | |
12076 | ||
12077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12080 | { | |
12081 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12082 | if (arg3 == NULL) SWIG_fail; | |
12083 | } | |
12084 | if (obj2) { | |
12085 | arg4 = (int) SWIG_AsInt(obj2); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
12087 | } | |
12088 | if (obj3) { | |
12089 | arg5 = (int) SWIG_AsInt(obj3); | |
12090 | if (PyErr_Occurred()) SWIG_fail; | |
12091 | } | |
12092 | if (obj4) { | |
12093 | arg6 = (int) SWIG_AsInt(obj4); | |
12094 | if (PyErr_Occurred()) SWIG_fail; | |
12095 | } | |
12096 | { | |
12097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12098 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12099 | ||
12100 | wxPyEndAllowThreads(__tstate); | |
12101 | if (PyErr_Occurred()) SWIG_fail; | |
12102 | } | |
12103 | Py_INCREF(Py_None); resultobj = Py_None; | |
12104 | { | |
12105 | if (arg3) delete [] arg3; | |
12106 | } | |
12107 | return resultobj; | |
12108 | fail: | |
12109 | { | |
12110 | if (arg3) delete [] arg3; | |
12111 | } | |
12112 | return NULL; | |
12113 | } | |
12114 | ||
12115 | ||
12116 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12117 | PyObject *resultobj; | |
12118 | wxDC *arg1 = (wxDC *) 0 ; | |
12119 | wxString *arg2 = 0 ; | |
12120 | wxRect *arg3 = 0 ; | |
12121 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12122 | int arg5 = (int) -1 ; | |
12123 | bool temp2 = False ; | |
12124 | wxRect temp3 ; | |
12125 | PyObject * obj0 = 0 ; | |
12126 | PyObject * obj1 = 0 ; | |
12127 | PyObject * obj2 = 0 ; | |
12128 | PyObject * obj3 = 0 ; | |
12129 | PyObject * obj4 = 0 ; | |
12130 | char *kwnames[] = { | |
12131 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12132 | }; | |
12133 | ||
12134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12137 | { | |
12138 | arg2 = wxString_in_helper(obj1); | |
12139 | if (arg2 == NULL) SWIG_fail; | |
12140 | temp2 = True; | |
12141 | } | |
12142 | { | |
12143 | arg3 = &temp3; | |
12144 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12145 | } | |
12146 | if (obj3) { | |
12147 | arg4 = (int) SWIG_AsInt(obj3); | |
12148 | if (PyErr_Occurred()) SWIG_fail; | |
12149 | } | |
12150 | if (obj4) { | |
12151 | arg5 = (int) SWIG_AsInt(obj4); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | } | |
12154 | { | |
12155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12156 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
12157 | ||
12158 | wxPyEndAllowThreads(__tstate); | |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
12160 | } | |
12161 | Py_INCREF(Py_None); resultobj = Py_None; | |
12162 | { | |
12163 | if (temp2) | |
12164 | delete arg2; | |
12165 | } | |
12166 | return resultobj; | |
12167 | fail: | |
12168 | { | |
12169 | if (temp2) | |
12170 | delete arg2; | |
12171 | } | |
12172 | return NULL; | |
12173 | } | |
12174 | ||
12175 | ||
12176 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12177 | PyObject *resultobj; | |
12178 | wxDC *arg1 = (wxDC *) 0 ; | |
12179 | wxString *arg2 = 0 ; | |
12180 | wxBitmap *arg3 = 0 ; | |
12181 | wxRect *arg4 = 0 ; | |
12182 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12183 | int arg6 = (int) -1 ; | |
12184 | wxRect result; | |
12185 | bool temp2 = False ; | |
12186 | wxRect temp4 ; | |
12187 | PyObject * obj0 = 0 ; | |
12188 | PyObject * obj1 = 0 ; | |
12189 | PyObject * obj2 = 0 ; | |
12190 | PyObject * obj3 = 0 ; | |
12191 | PyObject * obj4 = 0 ; | |
12192 | PyObject * obj5 = 0 ; | |
12193 | char *kwnames[] = { | |
12194 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12195 | }; | |
12196 | ||
12197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12200 | { | |
12201 | arg2 = wxString_in_helper(obj1); | |
12202 | if (arg2 == NULL) SWIG_fail; | |
12203 | temp2 = True; | |
12204 | } | |
12205 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
12206 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12207 | SWIG_fail; | |
12208 | if (arg3 == NULL) { | |
12209 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12210 | SWIG_fail; | |
12211 | } | |
12212 | { | |
12213 | arg4 = &temp4; | |
12214 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12215 | } | |
12216 | if (obj4) { | |
12217 | arg5 = (int) SWIG_AsInt(obj4); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
12220 | if (obj5) { | |
12221 | arg6 = (int) SWIG_AsInt(obj5); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
12224 | { | |
12225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12226 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12227 | ||
12228 | wxPyEndAllowThreads(__tstate); | |
12229 | if (PyErr_Occurred()) SWIG_fail; | |
12230 | } | |
12231 | { | |
12232 | wxRect * resultptr; | |
12233 | resultptr = new wxRect((wxRect &) result); | |
12234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
12235 | } | |
12236 | { | |
12237 | if (temp2) | |
12238 | delete arg2; | |
12239 | } | |
12240 | return resultobj; | |
12241 | fail: | |
12242 | { | |
12243 | if (temp2) | |
12244 | delete arg2; | |
12245 | } | |
12246 | return NULL; | |
12247 | } | |
12248 | ||
12249 | ||
12250 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12251 | PyObject *resultobj; | |
12252 | wxDC *arg1 = (wxDC *) 0 ; | |
12253 | int arg2 ; | |
12254 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12255 | PyObject * obj0 = 0 ; | |
12256 | PyObject * obj1 = 0 ; | |
12257 | char *kwnames[] = { | |
12258 | (char *) "self",(char *) "points", NULL | |
12259 | }; | |
12260 | ||
12261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
12262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12264 | { | |
12265 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12266 | if (arg3 == NULL) SWIG_fail; | |
12267 | } | |
12268 | { | |
12269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12270 | (arg1)->DrawSpline(arg2,arg3); | |
12271 | ||
12272 | wxPyEndAllowThreads(__tstate); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | } | |
12275 | Py_INCREF(Py_None); resultobj = Py_None; | |
12276 | { | |
12277 | if (arg3) delete [] arg3; | |
12278 | } | |
12279 | return resultobj; | |
12280 | fail: | |
12281 | { | |
12282 | if (arg3) delete [] arg3; | |
12283 | } | |
12284 | return NULL; | |
12285 | } | |
12286 | ||
12287 | ||
12288 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12289 | PyObject *resultobj; | |
12290 | wxDC *arg1 = (wxDC *) 0 ; | |
12291 | PyObject * obj0 = 0 ; | |
12292 | char *kwnames[] = { | |
12293 | (char *) "self", NULL | |
12294 | }; | |
12295 | ||
12296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
12297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12299 | { | |
12300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12301 | (arg1)->Clear(); | |
12302 | ||
12303 | wxPyEndAllowThreads(__tstate); | |
12304 | if (PyErr_Occurred()) SWIG_fail; | |
12305 | } | |
12306 | Py_INCREF(Py_None); resultobj = Py_None; | |
12307 | return resultobj; | |
12308 | fail: | |
12309 | return NULL; | |
12310 | } | |
12311 | ||
12312 | ||
12313 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12314 | PyObject *resultobj; | |
12315 | wxDC *arg1 = (wxDC *) 0 ; | |
12316 | wxString *arg2 = 0 ; | |
12317 | bool result; | |
12318 | bool temp2 = False ; | |
12319 | PyObject * obj0 = 0 ; | |
12320 | PyObject * obj1 = 0 ; | |
12321 | char *kwnames[] = { | |
12322 | (char *) "self",(char *) "message", NULL | |
12323 | }; | |
12324 | ||
12325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
12326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12328 | { | |
12329 | arg2 = wxString_in_helper(obj1); | |
12330 | if (arg2 == NULL) SWIG_fail; | |
12331 | temp2 = True; | |
12332 | } | |
12333 | { | |
12334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12335 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
12336 | ||
12337 | wxPyEndAllowThreads(__tstate); | |
12338 | if (PyErr_Occurred()) SWIG_fail; | |
12339 | } | |
12340 | { | |
12341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12342 | } | |
12343 | { | |
12344 | if (temp2) | |
12345 | delete arg2; | |
12346 | } | |
12347 | return resultobj; | |
12348 | fail: | |
12349 | { | |
12350 | if (temp2) | |
12351 | delete arg2; | |
12352 | } | |
12353 | return NULL; | |
12354 | } | |
12355 | ||
12356 | ||
12357 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12358 | PyObject *resultobj; | |
12359 | wxDC *arg1 = (wxDC *) 0 ; | |
12360 | PyObject * obj0 = 0 ; | |
12361 | char *kwnames[] = { | |
12362 | (char *) "self", NULL | |
12363 | }; | |
12364 | ||
12365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
12366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12368 | { | |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | (arg1)->EndDoc(); | |
12371 | ||
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
12375 | Py_INCREF(Py_None); resultobj = Py_None; | |
12376 | return resultobj; | |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
12382 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12383 | PyObject *resultobj; | |
12384 | wxDC *arg1 = (wxDC *) 0 ; | |
12385 | PyObject * obj0 = 0 ; | |
12386 | char *kwnames[] = { | |
12387 | (char *) "self", NULL | |
12388 | }; | |
12389 | ||
12390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
12391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12393 | { | |
12394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12395 | (arg1)->StartPage(); | |
12396 | ||
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
12400 | Py_INCREF(Py_None); resultobj = Py_None; | |
12401 | return resultobj; | |
12402 | fail: | |
12403 | return NULL; | |
12404 | } | |
12405 | ||
12406 | ||
12407 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12408 | PyObject *resultobj; | |
12409 | wxDC *arg1 = (wxDC *) 0 ; | |
12410 | PyObject * obj0 = 0 ; | |
12411 | char *kwnames[] = { | |
12412 | (char *) "self", NULL | |
12413 | }; | |
12414 | ||
12415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
12416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12418 | { | |
12419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12420 | (arg1)->EndPage(); | |
12421 | ||
12422 | wxPyEndAllowThreads(__tstate); | |
12423 | if (PyErr_Occurred()) SWIG_fail; | |
12424 | } | |
12425 | Py_INCREF(Py_None); resultobj = Py_None; | |
12426 | return resultobj; | |
12427 | fail: | |
12428 | return NULL; | |
12429 | } | |
12430 | ||
12431 | ||
12432 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12433 | PyObject *resultobj; | |
12434 | wxDC *arg1 = (wxDC *) 0 ; | |
12435 | wxFont *arg2 = 0 ; | |
12436 | PyObject * obj0 = 0 ; | |
12437 | PyObject * obj1 = 0 ; | |
12438 | char *kwnames[] = { | |
12439 | (char *) "self",(char *) "font", NULL | |
12440 | }; | |
12441 | ||
12442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
12443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
12446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12447 | SWIG_fail; | |
12448 | if (arg2 == NULL) { | |
12449 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12450 | SWIG_fail; | |
12451 | } | |
12452 | { | |
12453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12454 | (arg1)->SetFont((wxFont const &)*arg2); | |
12455 | ||
12456 | wxPyEndAllowThreads(__tstate); | |
12457 | if (PyErr_Occurred()) SWIG_fail; | |
12458 | } | |
12459 | Py_INCREF(Py_None); resultobj = Py_None; | |
12460 | return resultobj; | |
12461 | fail: | |
12462 | return NULL; | |
12463 | } | |
12464 | ||
12465 | ||
12466 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12467 | PyObject *resultobj; | |
12468 | wxDC *arg1 = (wxDC *) 0 ; | |
12469 | wxPen *arg2 = 0 ; | |
12470 | PyObject * obj0 = 0 ; | |
12471 | PyObject * obj1 = 0 ; | |
12472 | char *kwnames[] = { | |
12473 | (char *) "self",(char *) "pen", NULL | |
12474 | }; | |
12475 | ||
12476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
12477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
12480 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12481 | SWIG_fail; | |
12482 | if (arg2 == NULL) { | |
12483 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12484 | SWIG_fail; | |
12485 | } | |
12486 | { | |
12487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12488 | (arg1)->SetPen((wxPen const &)*arg2); | |
12489 | ||
12490 | wxPyEndAllowThreads(__tstate); | |
12491 | if (PyErr_Occurred()) SWIG_fail; | |
12492 | } | |
12493 | Py_INCREF(Py_None); resultobj = Py_None; | |
12494 | return resultobj; | |
12495 | fail: | |
12496 | return NULL; | |
12497 | } | |
12498 | ||
12499 | ||
12500 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12501 | PyObject *resultobj; | |
12502 | wxDC *arg1 = (wxDC *) 0 ; | |
12503 | wxBrush *arg2 = 0 ; | |
12504 | PyObject * obj0 = 0 ; | |
12505 | PyObject * obj1 = 0 ; | |
12506 | char *kwnames[] = { | |
12507 | (char *) "self",(char *) "brush", NULL | |
12508 | }; | |
12509 | ||
12510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
12511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12513 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12514 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12515 | SWIG_fail; | |
12516 | if (arg2 == NULL) { | |
12517 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12518 | SWIG_fail; | |
12519 | } | |
12520 | { | |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
12527 | Py_INCREF(Py_None); resultobj = Py_None; | |
12528 | return resultobj; | |
12529 | fail: | |
12530 | return NULL; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12535 | PyObject *resultobj; | |
12536 | wxDC *arg1 = (wxDC *) 0 ; | |
12537 | wxBrush *arg2 = 0 ; | |
12538 | PyObject * obj0 = 0 ; | |
12539 | PyObject * obj1 = 0 ; | |
12540 | char *kwnames[] = { | |
12541 | (char *) "self",(char *) "brush", NULL | |
12542 | }; | |
12543 | ||
12544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
12545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
12548 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12549 | SWIG_fail; | |
12550 | if (arg2 == NULL) { | |
12551 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12552 | SWIG_fail; | |
12553 | } | |
12554 | { | |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12556 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
12561 | Py_INCREF(Py_None); resultobj = Py_None; | |
12562 | return resultobj; | |
12563 | fail: | |
12564 | return NULL; | |
12565 | } | |
12566 | ||
12567 | ||
12568 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12569 | PyObject *resultobj; | |
12570 | wxDC *arg1 = (wxDC *) 0 ; | |
12571 | int arg2 ; | |
12572 | PyObject * obj0 = 0 ; | |
12573 | PyObject * obj1 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self",(char *) "mode", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12581 | arg2 = (int) SWIG_AsInt(obj1); | |
12582 | if (PyErr_Occurred()) SWIG_fail; | |
12583 | { | |
12584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12585 | (arg1)->SetBackgroundMode(arg2); | |
12586 | ||
12587 | wxPyEndAllowThreads(__tstate); | |
12588 | if (PyErr_Occurred()) SWIG_fail; | |
12589 | } | |
12590 | Py_INCREF(Py_None); resultobj = Py_None; | |
12591 | return resultobj; | |
12592 | fail: | |
12593 | return NULL; | |
12594 | } | |
12595 | ||
12596 | ||
12597 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12598 | PyObject *resultobj; | |
12599 | wxDC *arg1 = (wxDC *) 0 ; | |
12600 | wxPalette *arg2 = 0 ; | |
12601 | PyObject * obj0 = 0 ; | |
12602 | PyObject * obj1 = 0 ; | |
12603 | char *kwnames[] = { | |
12604 | (char *) "self",(char *) "palette", NULL | |
12605 | }; | |
12606 | ||
12607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
12608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
12611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12612 | SWIG_fail; | |
12613 | if (arg2 == NULL) { | |
12614 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12615 | SWIG_fail; | |
12616 | } | |
12617 | { | |
12618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12619 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
12620 | ||
12621 | wxPyEndAllowThreads(__tstate); | |
12622 | if (PyErr_Occurred()) SWIG_fail; | |
12623 | } | |
12624 | Py_INCREF(Py_None); resultobj = Py_None; | |
12625 | return resultobj; | |
12626 | fail: | |
12627 | return NULL; | |
12628 | } | |
12629 | ||
12630 | ||
d55e5bfc RD |
12631 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
12632 | PyObject *resultobj; | |
12633 | wxDC *arg1 = (wxDC *) 0 ; | |
12634 | PyObject * obj0 = 0 ; | |
12635 | char *kwnames[] = { | |
12636 | (char *) "self", NULL | |
12637 | }; | |
12638 | ||
12639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
12640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12642 | { | |
12643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12644 | (arg1)->DestroyClippingRegion(); | |
12645 | ||
12646 | wxPyEndAllowThreads(__tstate); | |
12647 | if (PyErr_Occurred()) SWIG_fail; | |
12648 | } | |
12649 | Py_INCREF(Py_None); resultobj = Py_None; | |
12650 | return resultobj; | |
12651 | fail: | |
12652 | return NULL; | |
12653 | } | |
12654 | ||
12655 | ||
12656 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12657 | PyObject *resultobj; | |
12658 | wxDC *arg1 = (wxDC *) 0 ; | |
12659 | int *arg2 = (int *) 0 ; | |
12660 | int *arg3 = (int *) 0 ; | |
12661 | int *arg4 = (int *) 0 ; | |
12662 | int *arg5 = (int *) 0 ; | |
12663 | int temp2 ; | |
12664 | int temp3 ; | |
12665 | int temp4 ; | |
12666 | int temp5 ; | |
12667 | PyObject * obj0 = 0 ; | |
12668 | char *kwnames[] = { | |
12669 | (char *) "self", NULL | |
12670 | }; | |
12671 | ||
12672 | arg2 = &temp2; | |
12673 | arg3 = &temp3; | |
12674 | arg4 = &temp4; | |
12675 | arg5 = &temp5; | |
12676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
12677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12679 | { | |
12680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12681 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
12682 | ||
12683 | wxPyEndAllowThreads(__tstate); | |
12684 | if (PyErr_Occurred()) SWIG_fail; | |
12685 | } | |
12686 | Py_INCREF(Py_None); resultobj = Py_None; | |
12687 | { | |
12688 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
12689 | resultobj = t_output_helper(resultobj,o); | |
12690 | } | |
12691 | { | |
12692 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12693 | resultobj = t_output_helper(resultobj,o); | |
12694 | } | |
12695 | { | |
12696 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12697 | resultobj = t_output_helper(resultobj,o); | |
12698 | } | |
12699 | { | |
12700 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12701 | resultobj = t_output_helper(resultobj,o); | |
12702 | } | |
12703 | return resultobj; | |
12704 | fail: | |
12705 | return NULL; | |
12706 | } | |
12707 | ||
12708 | ||
12709 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12710 | PyObject *resultobj; | |
12711 | wxDC *arg1 = (wxDC *) 0 ; | |
12712 | wxRect result; | |
12713 | PyObject * obj0 = 0 ; | |
12714 | char *kwnames[] = { | |
12715 | (char *) "self", NULL | |
12716 | }; | |
12717 | ||
12718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
12719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12721 | { | |
12722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12723 | result = wxDC_GetClippingRect(arg1); | |
12724 | ||
12725 | wxPyEndAllowThreads(__tstate); | |
12726 | if (PyErr_Occurred()) SWIG_fail; | |
12727 | } | |
12728 | { | |
12729 | wxRect * resultptr; | |
12730 | resultptr = new wxRect((wxRect &) result); | |
12731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
12732 | } | |
12733 | return resultobj; | |
12734 | fail: | |
12735 | return NULL; | |
12736 | } | |
12737 | ||
12738 | ||
12739 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12740 | PyObject *resultobj; | |
12741 | wxDC *arg1 = (wxDC *) 0 ; | |
12742 | int result; | |
12743 | PyObject * obj0 = 0 ; | |
12744 | char *kwnames[] = { | |
12745 | (char *) "self", NULL | |
12746 | }; | |
12747 | ||
12748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail; | |
12749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12751 | { | |
12752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12753 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
12754 | ||
12755 | wxPyEndAllowThreads(__tstate); | |
12756 | if (PyErr_Occurred()) SWIG_fail; | |
12757 | } | |
12758 | resultobj = SWIG_FromInt((int)result); | |
12759 | return resultobj; | |
12760 | fail: | |
12761 | return NULL; | |
12762 | } | |
12763 | ||
12764 | ||
12765 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12766 | PyObject *resultobj; | |
12767 | wxDC *arg1 = (wxDC *) 0 ; | |
12768 | int result; | |
12769 | PyObject * obj0 = 0 ; | |
12770 | char *kwnames[] = { | |
12771 | (char *) "self", NULL | |
12772 | }; | |
12773 | ||
12774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
12775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12777 | { | |
12778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12779 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
12780 | ||
12781 | wxPyEndAllowThreads(__tstate); | |
12782 | if (PyErr_Occurred()) SWIG_fail; | |
12783 | } | |
12784 | resultobj = SWIG_FromInt((int)result); | |
12785 | return resultobj; | |
12786 | fail: | |
12787 | return NULL; | |
12788 | } | |
12789 | ||
12790 | ||
12791 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12792 | PyObject *resultobj; | |
12793 | wxDC *arg1 = (wxDC *) 0 ; | |
12794 | wxString *arg2 = 0 ; | |
12795 | int *arg3 = (int *) 0 ; | |
12796 | int *arg4 = (int *) 0 ; | |
12797 | bool temp2 = False ; | |
12798 | int temp3 ; | |
12799 | int temp4 ; | |
12800 | PyObject * obj0 = 0 ; | |
12801 | PyObject * obj1 = 0 ; | |
12802 | char *kwnames[] = { | |
12803 | (char *) "self",(char *) "string", NULL | |
12804 | }; | |
12805 | ||
12806 | arg3 = &temp3; | |
12807 | arg4 = &temp4; | |
12808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
12809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12811 | { | |
12812 | arg2 = wxString_in_helper(obj1); | |
12813 | if (arg2 == NULL) SWIG_fail; | |
12814 | temp2 = True; | |
12815 | } | |
12816 | { | |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
12823 | Py_INCREF(Py_None); resultobj = Py_None; | |
12824 | { | |
12825 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12826 | resultobj = t_output_helper(resultobj,o); | |
12827 | } | |
12828 | { | |
12829 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12830 | resultobj = t_output_helper(resultobj,o); | |
12831 | } | |
12832 | { | |
12833 | if (temp2) | |
12834 | delete arg2; | |
12835 | } | |
12836 | return resultobj; | |
12837 | fail: | |
12838 | { | |
12839 | if (temp2) | |
12840 | delete arg2; | |
12841 | } | |
12842 | return NULL; | |
12843 | } | |
12844 | ||
12845 | ||
12846 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12847 | PyObject *resultobj; | |
12848 | wxDC *arg1 = (wxDC *) 0 ; | |
12849 | wxString *arg2 = 0 ; | |
12850 | int *arg3 = (int *) 0 ; | |
12851 | int *arg4 = (int *) 0 ; | |
12852 | int *arg5 = (int *) 0 ; | |
12853 | int *arg6 = (int *) 0 ; | |
12854 | wxFont *arg7 = (wxFont *) NULL ; | |
12855 | bool temp2 = False ; | |
12856 | int temp3 ; | |
12857 | int temp4 ; | |
12858 | int temp5 ; | |
12859 | int temp6 ; | |
12860 | PyObject * obj0 = 0 ; | |
12861 | PyObject * obj1 = 0 ; | |
12862 | PyObject * obj2 = 0 ; | |
12863 | char *kwnames[] = { | |
12864 | (char *) "self",(char *) "string",(char *) "font", NULL | |
12865 | }; | |
12866 | ||
12867 | arg3 = &temp3; | |
12868 | arg4 = &temp4; | |
12869 | arg5 = &temp5; | |
12870 | arg6 = &temp6; | |
12871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12874 | { | |
12875 | arg2 = wxString_in_helper(obj1); | |
12876 | if (arg2 == NULL) SWIG_fail; | |
12877 | temp2 = True; | |
12878 | } | |
12879 | if (obj2) { | |
12880 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
12881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12882 | } | |
12883 | { | |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | Py_INCREF(Py_None); resultobj = Py_None; | |
12891 | { | |
12892 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12893 | resultobj = t_output_helper(resultobj,o); | |
12894 | } | |
12895 | { | |
12896 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12897 | resultobj = t_output_helper(resultobj,o); | |
12898 | } | |
12899 | { | |
12900 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12901 | resultobj = t_output_helper(resultobj,o); | |
12902 | } | |
12903 | { | |
12904 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
12905 | resultobj = t_output_helper(resultobj,o); | |
12906 | } | |
12907 | { | |
12908 | if (temp2) | |
12909 | delete arg2; | |
12910 | } | |
12911 | return resultobj; | |
12912 | fail: | |
12913 | { | |
12914 | if (temp2) | |
12915 | delete arg2; | |
12916 | } | |
12917 | return NULL; | |
12918 | } | |
12919 | ||
12920 | ||
12921 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12922 | PyObject *resultobj; | |
12923 | wxDC *arg1 = (wxDC *) 0 ; | |
12924 | wxString *arg2 = 0 ; | |
12925 | int *arg3 = (int *) 0 ; | |
12926 | int *arg4 = (int *) 0 ; | |
12927 | int *arg5 = (int *) 0 ; | |
12928 | wxFont *arg6 = (wxFont *) NULL ; | |
12929 | bool temp2 = False ; | |
12930 | int temp3 ; | |
12931 | int temp4 ; | |
12932 | int temp5 ; | |
12933 | PyObject * obj0 = 0 ; | |
12934 | PyObject * obj1 = 0 ; | |
12935 | PyObject * obj2 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self",(char *) "text",(char *) "font", NULL | |
12938 | }; | |
12939 | ||
12940 | arg3 = &temp3; | |
12941 | arg4 = &temp4; | |
12942 | arg5 = &temp5; | |
12943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12946 | { | |
12947 | arg2 = wxString_in_helper(obj1); | |
12948 | if (arg2 == NULL) SWIG_fail; | |
12949 | temp2 = True; | |
12950 | } | |
12951 | if (obj2) { | |
12952 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, | |
12953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12954 | } | |
12955 | { | |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12957 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
12958 | ||
12959 | wxPyEndAllowThreads(__tstate); | |
12960 | if (PyErr_Occurred()) SWIG_fail; | |
12961 | } | |
12962 | Py_INCREF(Py_None); resultobj = Py_None; | |
12963 | { | |
12964 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12965 | resultobj = t_output_helper(resultobj,o); | |
12966 | } | |
12967 | { | |
12968 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
12969 | resultobj = t_output_helper(resultobj,o); | |
12970 | } | |
12971 | { | |
12972 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
12973 | resultobj = t_output_helper(resultobj,o); | |
12974 | } | |
12975 | { | |
12976 | if (temp2) | |
12977 | delete arg2; | |
12978 | } | |
12979 | return resultobj; | |
12980 | fail: | |
12981 | { | |
12982 | if (temp2) | |
12983 | delete arg2; | |
12984 | } | |
12985 | return NULL; | |
12986 | } | |
12987 | ||
12988 | ||
12989 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12990 | PyObject *resultobj; | |
12991 | wxDC *arg1 = (wxDC *) 0 ; | |
12992 | wxString *arg2 = 0 ; | |
12993 | wxArrayInt result; | |
12994 | bool temp2 = False ; | |
12995 | PyObject * obj0 = 0 ; | |
12996 | PyObject * obj1 = 0 ; | |
12997 | char *kwnames[] = { | |
12998 | (char *) "self",(char *) "text", NULL | |
12999 | }; | |
13000 | ||
13001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
13002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13004 | { | |
13005 | arg2 = wxString_in_helper(obj1); | |
13006 | if (arg2 == NULL) SWIG_fail; | |
13007 | temp2 = True; | |
13008 | } | |
13009 | { | |
13010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13011 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13012 | ||
13013 | wxPyEndAllowThreads(__tstate); | |
13014 | if (PyErr_Occurred()) SWIG_fail; | |
13015 | } | |
13016 | { | |
13017 | resultobj = PyList_New(0); | |
13018 | size_t idx; | |
13019 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13020 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13021 | PyList_Append(resultobj, val); | |
13022 | Py_DECREF(val); | |
13023 | } | |
13024 | } | |
13025 | { | |
13026 | if (temp2) | |
13027 | delete arg2; | |
13028 | } | |
13029 | return resultobj; | |
13030 | fail: | |
13031 | { | |
13032 | if (temp2) | |
13033 | delete arg2; | |
13034 | } | |
13035 | return NULL; | |
13036 | } | |
13037 | ||
13038 | ||
13039 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13040 | PyObject *resultobj; | |
13041 | wxDC *arg1 = (wxDC *) 0 ; | |
13042 | wxSize result; | |
13043 | PyObject * obj0 = 0 ; | |
13044 | char *kwnames[] = { | |
13045 | (char *) "self", NULL | |
13046 | }; | |
13047 | ||
13048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
13049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13051 | { | |
13052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13053 | result = (arg1)->GetSize(); | |
13054 | ||
13055 | wxPyEndAllowThreads(__tstate); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | } | |
13058 | { | |
13059 | wxSize * resultptr; | |
13060 | resultptr = new wxSize((wxSize &) result); | |
13061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13062 | } | |
13063 | return resultobj; | |
13064 | fail: | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13070 | PyObject *resultobj; | |
13071 | wxDC *arg1 = (wxDC *) 0 ; | |
13072 | int *arg2 = (int *) 0 ; | |
13073 | int *arg3 = (int *) 0 ; | |
13074 | int temp2 ; | |
13075 | int temp3 ; | |
13076 | PyObject * obj0 = 0 ; | |
13077 | char *kwnames[] = { | |
13078 | (char *) "self", NULL | |
13079 | }; | |
13080 | ||
13081 | arg2 = &temp2; | |
13082 | arg3 = &temp3; | |
13083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
13084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13086 | { | |
13087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13088 | (arg1)->GetSize(arg2,arg3); | |
13089 | ||
13090 | wxPyEndAllowThreads(__tstate); | |
13091 | if (PyErr_Occurred()) SWIG_fail; | |
13092 | } | |
13093 | Py_INCREF(Py_None); resultobj = Py_None; | |
13094 | { | |
13095 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13096 | resultobj = t_output_helper(resultobj,o); | |
13097 | } | |
13098 | { | |
13099 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13100 | resultobj = t_output_helper(resultobj,o); | |
13101 | } | |
13102 | return resultobj; | |
13103 | fail: | |
13104 | return NULL; | |
13105 | } | |
13106 | ||
13107 | ||
13108 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13109 | PyObject *resultobj; | |
13110 | wxDC *arg1 = (wxDC *) 0 ; | |
13111 | wxSize result; | |
13112 | PyObject * obj0 = 0 ; | |
13113 | char *kwnames[] = { | |
13114 | (char *) "self", NULL | |
13115 | }; | |
13116 | ||
13117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
13118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13120 | { | |
13121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13122 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
13123 | ||
13124 | wxPyEndAllowThreads(__tstate); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
13127 | { | |
13128 | wxSize * resultptr; | |
13129 | resultptr = new wxSize((wxSize &) result); | |
13130 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13131 | } | |
13132 | return resultobj; | |
13133 | fail: | |
13134 | return NULL; | |
13135 | } | |
13136 | ||
13137 | ||
13138 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13139 | PyObject *resultobj; | |
13140 | wxDC *arg1 = (wxDC *) 0 ; | |
13141 | int *arg2 = (int *) 0 ; | |
13142 | int *arg3 = (int *) 0 ; | |
13143 | int temp2 ; | |
13144 | int temp3 ; | |
13145 | PyObject * obj0 = 0 ; | |
13146 | char *kwnames[] = { | |
13147 | (char *) "self", NULL | |
13148 | }; | |
13149 | ||
13150 | arg2 = &temp2; | |
13151 | arg3 = &temp3; | |
13152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
13153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13155 | { | |
13156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13157 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13158 | ||
13159 | wxPyEndAllowThreads(__tstate); | |
13160 | if (PyErr_Occurred()) SWIG_fail; | |
13161 | } | |
13162 | Py_INCREF(Py_None); resultobj = Py_None; | |
13163 | { | |
13164 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13165 | resultobj = t_output_helper(resultobj,o); | |
13166 | } | |
13167 | { | |
13168 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13169 | resultobj = t_output_helper(resultobj,o); | |
13170 | } | |
13171 | return resultobj; | |
13172 | fail: | |
13173 | return NULL; | |
13174 | } | |
13175 | ||
13176 | ||
13177 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13178 | PyObject *resultobj; | |
13179 | wxDC *arg1 = (wxDC *) 0 ; | |
13180 | int arg2 ; | |
13181 | int result; | |
13182 | PyObject * obj0 = 0 ; | |
13183 | PyObject * obj1 = 0 ; | |
13184 | char *kwnames[] = { | |
13185 | (char *) "self",(char *) "x", NULL | |
13186 | }; | |
13187 | ||
13188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; | |
13189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13191 | arg2 = (int) SWIG_AsInt(obj1); | |
13192 | if (PyErr_Occurred()) SWIG_fail; | |
13193 | { | |
13194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13195 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
13196 | ||
13197 | wxPyEndAllowThreads(__tstate); | |
13198 | if (PyErr_Occurred()) SWIG_fail; | |
13199 | } | |
13200 | resultobj = SWIG_FromInt((int)result); | |
13201 | return resultobj; | |
13202 | fail: | |
13203 | return NULL; | |
13204 | } | |
13205 | ||
13206 | ||
13207 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13208 | PyObject *resultobj; | |
13209 | wxDC *arg1 = (wxDC *) 0 ; | |
13210 | int arg2 ; | |
13211 | int result; | |
13212 | PyObject * obj0 = 0 ; | |
13213 | PyObject * obj1 = 0 ; | |
13214 | char *kwnames[] = { | |
13215 | (char *) "self",(char *) "y", NULL | |
13216 | }; | |
13217 | ||
13218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; | |
13219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13221 | arg2 = (int) SWIG_AsInt(obj1); | |
13222 | if (PyErr_Occurred()) SWIG_fail; | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
13226 | ||
13227 | wxPyEndAllowThreads(__tstate); | |
13228 | if (PyErr_Occurred()) SWIG_fail; | |
13229 | } | |
13230 | resultobj = SWIG_FromInt((int)result); | |
13231 | return resultobj; | |
13232 | fail: | |
13233 | return NULL; | |
13234 | } | |
13235 | ||
13236 | ||
13237 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13238 | PyObject *resultobj; | |
13239 | wxDC *arg1 = (wxDC *) 0 ; | |
13240 | int arg2 ; | |
13241 | int result; | |
13242 | PyObject * obj0 = 0 ; | |
13243 | PyObject * obj1 = 0 ; | |
13244 | char *kwnames[] = { | |
13245 | (char *) "self",(char *) "x", NULL | |
13246 | }; | |
13247 | ||
13248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; | |
13249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13251 | arg2 = (int) SWIG_AsInt(obj1); | |
13252 | if (PyErr_Occurred()) SWIG_fail; | |
13253 | { | |
13254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13255 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
13256 | ||
13257 | wxPyEndAllowThreads(__tstate); | |
13258 | if (PyErr_Occurred()) SWIG_fail; | |
13259 | } | |
13260 | resultobj = SWIG_FromInt((int)result); | |
13261 | return resultobj; | |
13262 | fail: | |
13263 | return NULL; | |
13264 | } | |
13265 | ||
13266 | ||
13267 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13268 | PyObject *resultobj; | |
13269 | wxDC *arg1 = (wxDC *) 0 ; | |
13270 | int arg2 ; | |
13271 | int result; | |
13272 | PyObject * obj0 = 0 ; | |
13273 | PyObject * obj1 = 0 ; | |
13274 | char *kwnames[] = { | |
13275 | (char *) "self",(char *) "y", NULL | |
13276 | }; | |
13277 | ||
13278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; | |
13279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13281 | arg2 = (int) SWIG_AsInt(obj1); | |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
13283 | { | |
13284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13285 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
13286 | ||
13287 | wxPyEndAllowThreads(__tstate); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | } | |
13290 | resultobj = SWIG_FromInt((int)result); | |
13291 | return resultobj; | |
13292 | fail: | |
13293 | return NULL; | |
13294 | } | |
13295 | ||
13296 | ||
13297 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13298 | PyObject *resultobj; | |
13299 | wxDC *arg1 = (wxDC *) 0 ; | |
13300 | int arg2 ; | |
13301 | int result; | |
13302 | PyObject * obj0 = 0 ; | |
13303 | PyObject * obj1 = 0 ; | |
13304 | char *kwnames[] = { | |
13305 | (char *) "self",(char *) "x", NULL | |
13306 | }; | |
13307 | ||
13308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; | |
13309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13311 | arg2 = (int) SWIG_AsInt(obj1); | |
13312 | if (PyErr_Occurred()) SWIG_fail; | |
13313 | { | |
13314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13315 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
13316 | ||
13317 | wxPyEndAllowThreads(__tstate); | |
13318 | if (PyErr_Occurred()) SWIG_fail; | |
13319 | } | |
13320 | resultobj = SWIG_FromInt((int)result); | |
13321 | return resultobj; | |
13322 | fail: | |
13323 | return NULL; | |
13324 | } | |
13325 | ||
13326 | ||
13327 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13328 | PyObject *resultobj; | |
13329 | wxDC *arg1 = (wxDC *) 0 ; | |
13330 | int arg2 ; | |
13331 | int result; | |
13332 | PyObject * obj0 = 0 ; | |
13333 | PyObject * obj1 = 0 ; | |
13334 | char *kwnames[] = { | |
13335 | (char *) "self",(char *) "y", NULL | |
13336 | }; | |
13337 | ||
13338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; | |
13339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13341 | arg2 = (int) SWIG_AsInt(obj1); | |
13342 | if (PyErr_Occurred()) SWIG_fail; | |
13343 | { | |
13344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13345 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
13346 | ||
13347 | wxPyEndAllowThreads(__tstate); | |
13348 | if (PyErr_Occurred()) SWIG_fail; | |
13349 | } | |
13350 | resultobj = SWIG_FromInt((int)result); | |
13351 | return resultobj; | |
13352 | fail: | |
13353 | return NULL; | |
13354 | } | |
13355 | ||
13356 | ||
13357 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13358 | PyObject *resultobj; | |
13359 | wxDC *arg1 = (wxDC *) 0 ; | |
13360 | int arg2 ; | |
13361 | int result; | |
13362 | PyObject * obj0 = 0 ; | |
13363 | PyObject * obj1 = 0 ; | |
13364 | char *kwnames[] = { | |
13365 | (char *) "self",(char *) "x", NULL | |
13366 | }; | |
13367 | ||
13368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; | |
13369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13371 | arg2 = (int) SWIG_AsInt(obj1); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | { | |
13374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13375 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
13376 | ||
13377 | wxPyEndAllowThreads(__tstate); | |
13378 | if (PyErr_Occurred()) SWIG_fail; | |
13379 | } | |
13380 | resultobj = SWIG_FromInt((int)result); | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
13384 | } | |
13385 | ||
13386 | ||
13387 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13388 | PyObject *resultobj; | |
13389 | wxDC *arg1 = (wxDC *) 0 ; | |
13390 | int arg2 ; | |
13391 | int result; | |
13392 | PyObject * obj0 = 0 ; | |
13393 | PyObject * obj1 = 0 ; | |
13394 | char *kwnames[] = { | |
13395 | (char *) "self",(char *) "y", NULL | |
13396 | }; | |
13397 | ||
13398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; | |
13399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13401 | arg2 = (int) SWIG_AsInt(obj1); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | { | |
13404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13405 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
13406 | ||
13407 | wxPyEndAllowThreads(__tstate); | |
13408 | if (PyErr_Occurred()) SWIG_fail; | |
13409 | } | |
13410 | resultobj = SWIG_FromInt((int)result); | |
13411 | return resultobj; | |
13412 | fail: | |
13413 | return NULL; | |
13414 | } | |
13415 | ||
13416 | ||
13417 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13418 | PyObject *resultobj; | |
13419 | wxDC *arg1 = (wxDC *) 0 ; | |
13420 | bool result; | |
13421 | PyObject * obj0 = 0 ; | |
13422 | char *kwnames[] = { | |
13423 | (char *) "self", NULL | |
13424 | }; | |
13425 | ||
13426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
13427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13429 | { | |
13430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13431 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
13432 | ||
13433 | wxPyEndAllowThreads(__tstate); | |
13434 | if (PyErr_Occurred()) SWIG_fail; | |
13435 | } | |
13436 | { | |
13437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13438 | } | |
13439 | return resultobj; | |
13440 | fail: | |
13441 | return NULL; | |
13442 | } | |
13443 | ||
13444 | ||
13445 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13446 | PyObject *resultobj; | |
13447 | wxDC *arg1 = (wxDC *) 0 ; | |
13448 | bool result; | |
13449 | PyObject * obj0 = 0 ; | |
13450 | char *kwnames[] = { | |
13451 | (char *) "self", NULL | |
13452 | }; | |
13453 | ||
13454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
13455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13457 | { | |
13458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13459 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
13460 | ||
13461 | wxPyEndAllowThreads(__tstate); | |
13462 | if (PyErr_Occurred()) SWIG_fail; | |
13463 | } | |
13464 | { | |
13465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13466 | } | |
13467 | return resultobj; | |
13468 | fail: | |
13469 | return NULL; | |
13470 | } | |
13471 | ||
13472 | ||
13473 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13474 | PyObject *resultobj; | |
13475 | wxDC *arg1 = (wxDC *) 0 ; | |
13476 | int result; | |
13477 | PyObject * obj0 = 0 ; | |
13478 | char *kwnames[] = { | |
13479 | (char *) "self", NULL | |
13480 | }; | |
13481 | ||
13482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
13483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13485 | { | |
13486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13487 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
13488 | ||
13489 | wxPyEndAllowThreads(__tstate); | |
13490 | if (PyErr_Occurred()) SWIG_fail; | |
13491 | } | |
13492 | resultobj = SWIG_FromInt((int)result); | |
13493 | return resultobj; | |
13494 | fail: | |
13495 | return NULL; | |
13496 | } | |
13497 | ||
13498 | ||
13499 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13500 | PyObject *resultobj; | |
13501 | wxDC *arg1 = (wxDC *) 0 ; | |
13502 | wxSize result; | |
13503 | PyObject * obj0 = 0 ; | |
13504 | char *kwnames[] = { | |
13505 | (char *) "self", NULL | |
13506 | }; | |
13507 | ||
13508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
13509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13511 | { | |
13512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13513 | result = ((wxDC const *)arg1)->GetPPI(); | |
13514 | ||
13515 | wxPyEndAllowThreads(__tstate); | |
13516 | if (PyErr_Occurred()) SWIG_fail; | |
13517 | } | |
13518 | { | |
13519 | wxSize * resultptr; | |
13520 | resultptr = new wxSize((wxSize &) result); | |
13521 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13522 | } | |
13523 | return resultobj; | |
13524 | fail: | |
13525 | return NULL; | |
13526 | } | |
13527 | ||
13528 | ||
13529 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13530 | PyObject *resultobj; | |
13531 | wxDC *arg1 = (wxDC *) 0 ; | |
13532 | bool result; | |
13533 | PyObject * obj0 = 0 ; | |
13534 | char *kwnames[] = { | |
13535 | (char *) "self", NULL | |
13536 | }; | |
13537 | ||
13538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
13539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13541 | { | |
13542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13543 | result = (bool)((wxDC const *)arg1)->Ok(); | |
13544 | ||
13545 | wxPyEndAllowThreads(__tstate); | |
13546 | if (PyErr_Occurred()) SWIG_fail; | |
13547 | } | |
13548 | { | |
13549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13550 | } | |
13551 | return resultobj; | |
13552 | fail: | |
13553 | return NULL; | |
13554 | } | |
13555 | ||
13556 | ||
13557 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13558 | PyObject *resultobj; | |
13559 | wxDC *arg1 = (wxDC *) 0 ; | |
13560 | int result; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | char *kwnames[] = { | |
13563 | (char *) "self", NULL | |
13564 | }; | |
13565 | ||
13566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
13567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13569 | { | |
13570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13571 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
13572 | ||
13573 | wxPyEndAllowThreads(__tstate); | |
13574 | if (PyErr_Occurred()) SWIG_fail; | |
13575 | } | |
13576 | resultobj = SWIG_FromInt((int)result); | |
13577 | return resultobj; | |
13578 | fail: | |
13579 | return NULL; | |
13580 | } | |
13581 | ||
13582 | ||
13583 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13584 | PyObject *resultobj; | |
13585 | wxDC *arg1 = (wxDC *) 0 ; | |
13586 | wxBrush *result; | |
13587 | PyObject * obj0 = 0 ; | |
13588 | char *kwnames[] = { | |
13589 | (char *) "self", NULL | |
13590 | }; | |
13591 | ||
13592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
13593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13595 | { | |
13596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13597 | { | |
13598 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
13599 | result = (wxBrush *) &_result_ref; | |
13600 | } | |
13601 | ||
13602 | wxPyEndAllowThreads(__tstate); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
13604 | } | |
13605 | { | |
13606 | wxBrush* resultptr = new wxBrush(*result); | |
13607 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
13608 | } | |
13609 | return resultobj; | |
13610 | fail: | |
13611 | return NULL; | |
13612 | } | |
13613 | ||
13614 | ||
13615 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13616 | PyObject *resultobj; | |
13617 | wxDC *arg1 = (wxDC *) 0 ; | |
13618 | wxBrush *result; | |
13619 | PyObject * obj0 = 0 ; | |
13620 | char *kwnames[] = { | |
13621 | (char *) "self", NULL | |
13622 | }; | |
13623 | ||
13624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
13625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13627 | { | |
13628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13629 | { | |
13630 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
13631 | result = (wxBrush *) &_result_ref; | |
13632 | } | |
13633 | ||
13634 | wxPyEndAllowThreads(__tstate); | |
13635 | if (PyErr_Occurred()) SWIG_fail; | |
13636 | } | |
13637 | { | |
13638 | wxBrush* resultptr = new wxBrush(*result); | |
13639 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
13640 | } | |
13641 | return resultobj; | |
13642 | fail: | |
13643 | return NULL; | |
13644 | } | |
13645 | ||
13646 | ||
13647 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13648 | PyObject *resultobj; | |
13649 | wxDC *arg1 = (wxDC *) 0 ; | |
13650 | wxFont *result; | |
13651 | PyObject * obj0 = 0 ; | |
13652 | char *kwnames[] = { | |
13653 | (char *) "self", NULL | |
13654 | }; | |
13655 | ||
13656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
13657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13659 | { | |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13661 | { | |
13662 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
13663 | result = (wxFont *) &_result_ref; | |
13664 | } | |
13665 | ||
13666 | wxPyEndAllowThreads(__tstate); | |
13667 | if (PyErr_Occurred()) SWIG_fail; | |
13668 | } | |
13669 | { | |
13670 | wxFont* resultptr = new wxFont(*result); | |
13671 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13672 | } | |
13673 | return resultobj; | |
13674 | fail: | |
13675 | return NULL; | |
13676 | } | |
13677 | ||
13678 | ||
13679 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13680 | PyObject *resultobj; | |
13681 | wxDC *arg1 = (wxDC *) 0 ; | |
13682 | wxPen *result; | |
13683 | PyObject * obj0 = 0 ; | |
13684 | char *kwnames[] = { | |
13685 | (char *) "self", NULL | |
13686 | }; | |
13687 | ||
13688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
13689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13691 | { | |
13692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13693 | { | |
13694 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
13695 | result = (wxPen *) &_result_ref; | |
13696 | } | |
13697 | ||
13698 | wxPyEndAllowThreads(__tstate); | |
13699 | if (PyErr_Occurred()) SWIG_fail; | |
13700 | } | |
13701 | { | |
13702 | wxPen* resultptr = new wxPen(*result); | |
13703 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
13704 | } | |
13705 | return resultobj; | |
13706 | fail: | |
13707 | return NULL; | |
13708 | } | |
13709 | ||
13710 | ||
13711 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13712 | PyObject *resultobj; | |
13713 | wxDC *arg1 = (wxDC *) 0 ; | |
13714 | wxColour *result; | |
13715 | PyObject * obj0 = 0 ; | |
13716 | char *kwnames[] = { | |
13717 | (char *) "self", NULL | |
13718 | }; | |
13719 | ||
13720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail; | |
13721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13723 | { | |
13724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13725 | { | |
13726 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
13727 | result = (wxColour *) &_result_ref; | |
13728 | } | |
13729 | ||
13730 | wxPyEndAllowThreads(__tstate); | |
13731 | if (PyErr_Occurred()) SWIG_fail; | |
13732 | } | |
13733 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
13734 | return resultobj; | |
13735 | fail: | |
13736 | return NULL; | |
13737 | } | |
13738 | ||
13739 | ||
13740 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13741 | PyObject *resultobj; | |
13742 | wxDC *arg1 = (wxDC *) 0 ; | |
13743 | wxColour *result; | |
13744 | PyObject * obj0 = 0 ; | |
13745 | char *kwnames[] = { | |
13746 | (char *) "self", NULL | |
13747 | }; | |
13748 | ||
13749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
13750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13752 | { | |
13753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13754 | { | |
13755 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
13756 | result = (wxColour *) &_result_ref; | |
13757 | } | |
13758 | ||
13759 | wxPyEndAllowThreads(__tstate); | |
13760 | if (PyErr_Occurred()) SWIG_fail; | |
13761 | } | |
13762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
13763 | return resultobj; | |
13764 | fail: | |
13765 | return NULL; | |
13766 | } | |
13767 | ||
13768 | ||
13769 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13770 | PyObject *resultobj; | |
13771 | wxDC *arg1 = (wxDC *) 0 ; | |
13772 | wxColour *arg2 = 0 ; | |
13773 | wxColour temp2 ; | |
13774 | PyObject * obj0 = 0 ; | |
13775 | PyObject * obj1 = 0 ; | |
13776 | char *kwnames[] = { | |
13777 | (char *) "self",(char *) "colour", NULL | |
13778 | }; | |
13779 | ||
13780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
13781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13783 | { | |
13784 | arg2 = &temp2; | |
13785 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13786 | } | |
13787 | { | |
13788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13789 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
13790 | ||
13791 | wxPyEndAllowThreads(__tstate); | |
13792 | if (PyErr_Occurred()) SWIG_fail; | |
13793 | } | |
13794 | Py_INCREF(Py_None); resultobj = Py_None; | |
13795 | return resultobj; | |
13796 | fail: | |
13797 | return NULL; | |
13798 | } | |
13799 | ||
13800 | ||
13801 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13802 | PyObject *resultobj; | |
13803 | wxDC *arg1 = (wxDC *) 0 ; | |
13804 | wxColour *arg2 = 0 ; | |
13805 | wxColour temp2 ; | |
13806 | PyObject * obj0 = 0 ; | |
13807 | PyObject * obj1 = 0 ; | |
13808 | char *kwnames[] = { | |
13809 | (char *) "self",(char *) "colour", NULL | |
13810 | }; | |
13811 | ||
13812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
13813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13815 | { | |
13816 | arg2 = &temp2; | |
13817 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13818 | } | |
13819 | { | |
13820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13821 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
13822 | ||
13823 | wxPyEndAllowThreads(__tstate); | |
13824 | if (PyErr_Occurred()) SWIG_fail; | |
13825 | } | |
13826 | Py_INCREF(Py_None); resultobj = Py_None; | |
13827 | return resultobj; | |
13828 | fail: | |
13829 | return NULL; | |
13830 | } | |
13831 | ||
13832 | ||
13833 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13834 | PyObject *resultobj; | |
13835 | wxDC *arg1 = (wxDC *) 0 ; | |
13836 | int result; | |
13837 | PyObject * obj0 = 0 ; | |
13838 | char *kwnames[] = { | |
13839 | (char *) "self", NULL | |
13840 | }; | |
13841 | ||
13842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
13843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13845 | { | |
13846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13847 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
13848 | ||
13849 | wxPyEndAllowThreads(__tstate); | |
13850 | if (PyErr_Occurred()) SWIG_fail; | |
13851 | } | |
13852 | resultobj = SWIG_FromInt((int)result); | |
13853 | return resultobj; | |
13854 | fail: | |
13855 | return NULL; | |
13856 | } | |
13857 | ||
13858 | ||
13859 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13860 | PyObject *resultobj; | |
13861 | wxDC *arg1 = (wxDC *) 0 ; | |
13862 | int arg2 ; | |
13863 | PyObject * obj0 = 0 ; | |
13864 | PyObject * obj1 = 0 ; | |
13865 | char *kwnames[] = { | |
13866 | (char *) "self",(char *) "mode", NULL | |
13867 | }; | |
13868 | ||
13869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; | |
13870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13872 | arg2 = (int) SWIG_AsInt(obj1); | |
13873 | if (PyErr_Occurred()) SWIG_fail; | |
13874 | { | |
13875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13876 | (arg1)->SetMapMode(arg2); | |
13877 | ||
13878 | wxPyEndAllowThreads(__tstate); | |
13879 | if (PyErr_Occurred()) SWIG_fail; | |
13880 | } | |
13881 | Py_INCREF(Py_None); resultobj = Py_None; | |
13882 | return resultobj; | |
13883 | fail: | |
13884 | return NULL; | |
13885 | } | |
13886 | ||
13887 | ||
13888 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13889 | PyObject *resultobj; | |
13890 | wxDC *arg1 = (wxDC *) 0 ; | |
13891 | double *arg2 = (double *) 0 ; | |
13892 | double *arg3 = (double *) 0 ; | |
13893 | double temp2 ; | |
13894 | double temp3 ; | |
13895 | PyObject * obj0 = 0 ; | |
13896 | char *kwnames[] = { | |
13897 | (char *) "self", NULL | |
13898 | }; | |
13899 | ||
13900 | arg2 = &temp2; | |
13901 | arg3 = &temp3; | |
13902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
13903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13905 | { | |
13906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13907 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
13908 | ||
13909 | wxPyEndAllowThreads(__tstate); | |
13910 | if (PyErr_Occurred()) SWIG_fail; | |
13911 | } | |
13912 | Py_INCREF(Py_None); resultobj = Py_None; | |
13913 | { | |
13914 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13915 | resultobj = t_output_helper(resultobj,o); | |
13916 | } | |
13917 | { | |
13918 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13919 | resultobj = t_output_helper(resultobj,o); | |
13920 | } | |
13921 | return resultobj; | |
13922 | fail: | |
13923 | return NULL; | |
13924 | } | |
13925 | ||
13926 | ||
13927 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13928 | PyObject *resultobj; | |
13929 | wxDC *arg1 = (wxDC *) 0 ; | |
13930 | double arg2 ; | |
13931 | double arg3 ; | |
13932 | PyObject * obj0 = 0 ; | |
13933 | PyObject * obj1 = 0 ; | |
13934 | PyObject * obj2 = 0 ; | |
13935 | char *kwnames[] = { | |
13936 | (char *) "self",(char *) "x",(char *) "y", NULL | |
13937 | }; | |
13938 | ||
13939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13942 | arg2 = (double) SWIG_AsDouble(obj1); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | arg3 = (double) SWIG_AsDouble(obj2); | |
13945 | if (PyErr_Occurred()) SWIG_fail; | |
13946 | { | |
13947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13948 | (arg1)->SetUserScale(arg2,arg3); | |
13949 | ||
13950 | wxPyEndAllowThreads(__tstate); | |
13951 | if (PyErr_Occurred()) SWIG_fail; | |
13952 | } | |
13953 | Py_INCREF(Py_None); resultobj = Py_None; | |
13954 | return resultobj; | |
13955 | fail: | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
13960 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13961 | PyObject *resultobj; | |
13962 | wxDC *arg1 = (wxDC *) 0 ; | |
13963 | double *arg2 = (double *) 0 ; | |
13964 | double *arg3 = (double *) 0 ; | |
13965 | double temp2 ; | |
13966 | double temp3 ; | |
13967 | PyObject * obj0 = 0 ; | |
13968 | char *kwnames[] = { | |
13969 | (char *) "self", NULL | |
13970 | }; | |
13971 | ||
13972 | arg2 = &temp2; | |
13973 | arg3 = &temp3; | |
13974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
13975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13977 | { | |
13978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13979 | (arg1)->GetLogicalScale(arg2,arg3); | |
13980 | ||
13981 | wxPyEndAllowThreads(__tstate); | |
13982 | if (PyErr_Occurred()) SWIG_fail; | |
13983 | } | |
13984 | Py_INCREF(Py_None); resultobj = Py_None; | |
13985 | { | |
13986 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
13987 | resultobj = t_output_helper(resultobj,o); | |
13988 | } | |
13989 | { | |
13990 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
13991 | resultobj = t_output_helper(resultobj,o); | |
13992 | } | |
13993 | return resultobj; | |
13994 | fail: | |
13995 | return NULL; | |
13996 | } | |
13997 | ||
13998 | ||
13999 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14000 | PyObject *resultobj; | |
14001 | wxDC *arg1 = (wxDC *) 0 ; | |
14002 | double arg2 ; | |
14003 | double arg3 ; | |
14004 | PyObject * obj0 = 0 ; | |
14005 | PyObject * obj1 = 0 ; | |
14006 | PyObject * obj2 = 0 ; | |
14007 | char *kwnames[] = { | |
14008 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14009 | }; | |
14010 | ||
14011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14014 | arg2 = (double) SWIG_AsDouble(obj1); | |
14015 | if (PyErr_Occurred()) SWIG_fail; | |
14016 | arg3 = (double) SWIG_AsDouble(obj2); | |
14017 | if (PyErr_Occurred()) SWIG_fail; | |
14018 | { | |
14019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14020 | (arg1)->SetLogicalScale(arg2,arg3); | |
14021 | ||
14022 | wxPyEndAllowThreads(__tstate); | |
14023 | if (PyErr_Occurred()) SWIG_fail; | |
14024 | } | |
14025 | Py_INCREF(Py_None); resultobj = Py_None; | |
14026 | return resultobj; | |
14027 | fail: | |
14028 | return NULL; | |
14029 | } | |
14030 | ||
14031 | ||
14032 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14033 | PyObject *resultobj; | |
14034 | wxDC *arg1 = (wxDC *) 0 ; | |
14035 | wxPoint result; | |
14036 | PyObject * obj0 = 0 ; | |
14037 | char *kwnames[] = { | |
14038 | (char *) "self", NULL | |
14039 | }; | |
14040 | ||
14041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
14042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14044 | { | |
14045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14046 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
14047 | ||
14048 | wxPyEndAllowThreads(__tstate); | |
14049 | if (PyErr_Occurred()) SWIG_fail; | |
14050 | } | |
14051 | { | |
14052 | wxPoint * resultptr; | |
14053 | resultptr = new wxPoint((wxPoint &) result); | |
14054 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14055 | } | |
14056 | return resultobj; | |
14057 | fail: | |
14058 | return NULL; | |
14059 | } | |
14060 | ||
14061 | ||
14062 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14063 | PyObject *resultobj; | |
14064 | wxDC *arg1 = (wxDC *) 0 ; | |
14065 | int *arg2 = (int *) 0 ; | |
14066 | int *arg3 = (int *) 0 ; | |
14067 | int temp2 ; | |
14068 | int temp3 ; | |
14069 | PyObject * obj0 = 0 ; | |
14070 | char *kwnames[] = { | |
14071 | (char *) "self", NULL | |
14072 | }; | |
14073 | ||
14074 | arg2 = &temp2; | |
14075 | arg3 = &temp3; | |
14076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
14077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
14086 | Py_INCREF(Py_None); resultobj = Py_None; | |
14087 | { | |
14088 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14089 | resultobj = t_output_helper(resultobj,o); | |
14090 | } | |
14091 | { | |
14092 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14093 | resultobj = t_output_helper(resultobj,o); | |
14094 | } | |
14095 | return resultobj; | |
14096 | fail: | |
14097 | return NULL; | |
14098 | } | |
14099 | ||
14100 | ||
14101 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14102 | PyObject *resultobj; | |
14103 | wxDC *arg1 = (wxDC *) 0 ; | |
14104 | int arg2 ; | |
14105 | int arg3 ; | |
14106 | PyObject * obj0 = 0 ; | |
14107 | PyObject * obj1 = 0 ; | |
14108 | PyObject * obj2 = 0 ; | |
14109 | char *kwnames[] = { | |
14110 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14111 | }; | |
14112 | ||
14113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14116 | arg2 = (int) SWIG_AsInt(obj1); | |
14117 | if (PyErr_Occurred()) SWIG_fail; | |
14118 | arg3 = (int) SWIG_AsInt(obj2); | |
14119 | if (PyErr_Occurred()) SWIG_fail; | |
14120 | { | |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14123 | ||
14124 | wxPyEndAllowThreads(__tstate); | |
14125 | if (PyErr_Occurred()) SWIG_fail; | |
14126 | } | |
14127 | Py_INCREF(Py_None); resultobj = Py_None; | |
14128 | return resultobj; | |
14129 | fail: | |
14130 | return NULL; | |
14131 | } | |
14132 | ||
14133 | ||
d6c14a4c RD |
14134 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14135 | PyObject *resultobj; | |
14136 | wxDC *arg1 = (wxDC *) 0 ; | |
14137 | wxPoint *arg2 = 0 ; | |
14138 | wxPoint temp2 ; | |
14139 | PyObject * obj0 = 0 ; | |
14140 | PyObject * obj1 = 0 ; | |
14141 | char *kwnames[] = { | |
14142 | (char *) "self",(char *) "point", NULL | |
14143 | }; | |
14144 | ||
14145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14148 | { | |
14149 | arg2 = &temp2; | |
14150 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14151 | } | |
14152 | { | |
14153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14154 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14155 | ||
14156 | wxPyEndAllowThreads(__tstate); | |
14157 | if (PyErr_Occurred()) SWIG_fail; | |
14158 | } | |
14159 | Py_INCREF(Py_None); resultobj = Py_None; | |
14160 | return resultobj; | |
14161 | fail: | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
d55e5bfc RD |
14166 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
14167 | PyObject *resultobj; | |
14168 | wxDC *arg1 = (wxDC *) 0 ; | |
14169 | wxPoint result; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | char *kwnames[] = { | |
14172 | (char *) "self", NULL | |
14173 | }; | |
14174 | ||
14175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
14176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14178 | { | |
14179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14180 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
14181 | ||
14182 | wxPyEndAllowThreads(__tstate); | |
14183 | if (PyErr_Occurred()) SWIG_fail; | |
14184 | } | |
14185 | { | |
14186 | wxPoint * resultptr; | |
14187 | resultptr = new wxPoint((wxPoint &) result); | |
14188 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14189 | } | |
14190 | return resultobj; | |
14191 | fail: | |
14192 | return NULL; | |
14193 | } | |
14194 | ||
14195 | ||
14196 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14197 | PyObject *resultobj; | |
14198 | wxDC *arg1 = (wxDC *) 0 ; | |
14199 | int *arg2 = (int *) 0 ; | |
14200 | int *arg3 = (int *) 0 ; | |
14201 | int temp2 ; | |
14202 | int temp3 ; | |
14203 | PyObject * obj0 = 0 ; | |
14204 | char *kwnames[] = { | |
14205 | (char *) "self", NULL | |
14206 | }; | |
14207 | ||
14208 | arg2 = &temp2; | |
14209 | arg3 = &temp3; | |
14210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
14211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14213 | { | |
14214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14215 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
14216 | ||
14217 | wxPyEndAllowThreads(__tstate); | |
14218 | if (PyErr_Occurred()) SWIG_fail; | |
14219 | } | |
14220 | Py_INCREF(Py_None); resultobj = Py_None; | |
14221 | { | |
14222 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14223 | resultobj = t_output_helper(resultobj,o); | |
14224 | } | |
14225 | { | |
14226 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14227 | resultobj = t_output_helper(resultobj,o); | |
14228 | } | |
14229 | return resultobj; | |
14230 | fail: | |
14231 | return NULL; | |
14232 | } | |
14233 | ||
14234 | ||
14235 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14236 | PyObject *resultobj; | |
14237 | wxDC *arg1 = (wxDC *) 0 ; | |
14238 | int arg2 ; | |
14239 | int arg3 ; | |
14240 | PyObject * obj0 = 0 ; | |
14241 | PyObject * obj1 = 0 ; | |
14242 | PyObject * obj2 = 0 ; | |
14243 | char *kwnames[] = { | |
14244 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14245 | }; | |
14246 | ||
14247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14250 | arg2 = (int) SWIG_AsInt(obj1); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | arg3 = (int) SWIG_AsInt(obj2); | |
14253 | if (PyErr_Occurred()) SWIG_fail; | |
14254 | { | |
14255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14256 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14257 | ||
14258 | wxPyEndAllowThreads(__tstate); | |
14259 | if (PyErr_Occurred()) SWIG_fail; | |
14260 | } | |
14261 | Py_INCREF(Py_None); resultobj = Py_None; | |
14262 | return resultobj; | |
14263 | fail: | |
14264 | return NULL; | |
14265 | } | |
14266 | ||
14267 | ||
d6c14a4c RD |
14268 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14269 | PyObject *resultobj; | |
14270 | wxDC *arg1 = (wxDC *) 0 ; | |
14271 | wxPoint *arg2 = 0 ; | |
14272 | wxPoint temp2 ; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | PyObject * obj1 = 0 ; | |
14275 | char *kwnames[] = { | |
14276 | (char *) "self",(char *) "point", NULL | |
14277 | }; | |
14278 | ||
14279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14282 | { | |
14283 | arg2 = &temp2; | |
14284 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14285 | } | |
14286 | { | |
14287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14288 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
14289 | ||
14290 | wxPyEndAllowThreads(__tstate); | |
14291 | if (PyErr_Occurred()) SWIG_fail; | |
14292 | } | |
14293 | Py_INCREF(Py_None); resultobj = Py_None; | |
14294 | return resultobj; | |
14295 | fail: | |
14296 | return NULL; | |
14297 | } | |
14298 | ||
14299 | ||
d55e5bfc RD |
14300 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
14301 | PyObject *resultobj; | |
14302 | wxDC *arg1 = (wxDC *) 0 ; | |
14303 | bool arg2 ; | |
14304 | bool arg3 ; | |
14305 | PyObject * obj0 = 0 ; | |
14306 | PyObject * obj1 = 0 ; | |
14307 | PyObject * obj2 = 0 ; | |
14308 | char *kwnames[] = { | |
14309 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
14310 | }; | |
14311 | ||
14312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14315 | arg2 = (bool) SWIG_AsBool(obj1); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | arg3 = (bool) SWIG_AsBool(obj2); | |
14318 | if (PyErr_Occurred()) SWIG_fail; | |
14319 | { | |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | (arg1)->SetAxisOrientation(arg2,arg3); | |
14322 | ||
14323 | wxPyEndAllowThreads(__tstate); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | } | |
14326 | Py_INCREF(Py_None); resultobj = Py_None; | |
14327 | return resultobj; | |
14328 | fail: | |
14329 | return NULL; | |
14330 | } | |
14331 | ||
14332 | ||
14333 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14334 | PyObject *resultobj; | |
14335 | wxDC *arg1 = (wxDC *) 0 ; | |
14336 | int result; | |
14337 | PyObject * obj0 = 0 ; | |
14338 | char *kwnames[] = { | |
14339 | (char *) "self", NULL | |
14340 | }; | |
14341 | ||
14342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
14343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14345 | { | |
14346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14347 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
14348 | ||
14349 | wxPyEndAllowThreads(__tstate); | |
14350 | if (PyErr_Occurred()) SWIG_fail; | |
14351 | } | |
14352 | resultobj = SWIG_FromInt((int)result); | |
14353 | return resultobj; | |
14354 | fail: | |
14355 | return NULL; | |
14356 | } | |
14357 | ||
14358 | ||
14359 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14360 | PyObject *resultobj; | |
14361 | wxDC *arg1 = (wxDC *) 0 ; | |
14362 | int arg2 ; | |
14363 | PyObject * obj0 = 0 ; | |
14364 | PyObject * obj1 = 0 ; | |
14365 | char *kwnames[] = { | |
14366 | (char *) "self",(char *) "function", NULL | |
14367 | }; | |
14368 | ||
14369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; | |
14370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14372 | arg2 = (int) SWIG_AsInt(obj1); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | { | |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | (arg1)->SetLogicalFunction(arg2); | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | Py_INCREF(Py_None); resultobj = Py_None; | |
14382 | return resultobj; | |
14383 | fail: | |
14384 | return NULL; | |
14385 | } | |
14386 | ||
14387 | ||
14388 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14389 | PyObject *resultobj; | |
14390 | wxDC *arg1 = (wxDC *) 0 ; | |
14391 | bool arg2 ; | |
14392 | PyObject * obj0 = 0 ; | |
14393 | PyObject * obj1 = 0 ; | |
14394 | char *kwnames[] = { | |
14395 | (char *) "self",(char *) "opt", NULL | |
14396 | }; | |
14397 | ||
14398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
14399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14401 | arg2 = (bool) SWIG_AsBool(obj1); | |
14402 | if (PyErr_Occurred()) SWIG_fail; | |
14403 | { | |
14404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14405 | (arg1)->SetOptimization(arg2); | |
14406 | ||
14407 | wxPyEndAllowThreads(__tstate); | |
14408 | if (PyErr_Occurred()) SWIG_fail; | |
14409 | } | |
14410 | Py_INCREF(Py_None); resultobj = Py_None; | |
14411 | return resultobj; | |
14412 | fail: | |
14413 | return NULL; | |
14414 | } | |
14415 | ||
14416 | ||
14417 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14418 | PyObject *resultobj; | |
14419 | wxDC *arg1 = (wxDC *) 0 ; | |
14420 | bool result; | |
14421 | PyObject * obj0 = 0 ; | |
14422 | char *kwnames[] = { | |
14423 | (char *) "self", NULL | |
14424 | }; | |
14425 | ||
14426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
14427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14429 | { | |
14430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14431 | result = (bool)(arg1)->GetOptimization(); | |
14432 | ||
14433 | wxPyEndAllowThreads(__tstate); | |
14434 | if (PyErr_Occurred()) SWIG_fail; | |
14435 | } | |
14436 | { | |
14437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14438 | } | |
14439 | return resultobj; | |
14440 | fail: | |
14441 | return NULL; | |
14442 | } | |
14443 | ||
14444 | ||
14445 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14446 | PyObject *resultobj; | |
14447 | wxDC *arg1 = (wxDC *) 0 ; | |
14448 | int arg2 ; | |
14449 | int arg3 ; | |
14450 | PyObject * obj0 = 0 ; | |
14451 | PyObject * obj1 = 0 ; | |
14452 | PyObject * obj2 = 0 ; | |
14453 | char *kwnames[] = { | |
14454 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14455 | }; | |
14456 | ||
14457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14460 | arg2 = (int) SWIG_AsInt(obj1); | |
14461 | if (PyErr_Occurred()) SWIG_fail; | |
14462 | arg3 = (int) SWIG_AsInt(obj2); | |
14463 | if (PyErr_Occurred()) SWIG_fail; | |
14464 | { | |
14465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14466 | (arg1)->CalcBoundingBox(arg2,arg3); | |
14467 | ||
14468 | wxPyEndAllowThreads(__tstate); | |
14469 | if (PyErr_Occurred()) SWIG_fail; | |
14470 | } | |
14471 | Py_INCREF(Py_None); resultobj = Py_None; | |
14472 | return resultobj; | |
14473 | fail: | |
14474 | return NULL; | |
14475 | } | |
14476 | ||
14477 | ||
d6c14a4c RD |
14478 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14479 | PyObject *resultobj; | |
14480 | wxDC *arg1 = (wxDC *) 0 ; | |
14481 | wxPoint *arg2 = 0 ; | |
14482 | wxPoint temp2 ; | |
14483 | PyObject * obj0 = 0 ; | |
14484 | PyObject * obj1 = 0 ; | |
14485 | char *kwnames[] = { | |
14486 | (char *) "self",(char *) "point", NULL | |
14487 | }; | |
14488 | ||
14489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
14490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14492 | { | |
14493 | arg2 = &temp2; | |
14494 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14495 | } | |
14496 | { | |
14497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14498 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
14499 | ||
14500 | wxPyEndAllowThreads(__tstate); | |
14501 | if (PyErr_Occurred()) SWIG_fail; | |
14502 | } | |
14503 | Py_INCREF(Py_None); resultobj = Py_None; | |
14504 | return resultobj; | |
14505 | fail: | |
14506 | return NULL; | |
14507 | } | |
14508 | ||
14509 | ||
d55e5bfc RD |
14510 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
14511 | PyObject *resultobj; | |
14512 | wxDC *arg1 = (wxDC *) 0 ; | |
14513 | PyObject * obj0 = 0 ; | |
14514 | char *kwnames[] = { | |
14515 | (char *) "self", NULL | |
14516 | }; | |
14517 | ||
14518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
14519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14521 | { | |
14522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14523 | (arg1)->ResetBoundingBox(); | |
14524 | ||
14525 | wxPyEndAllowThreads(__tstate); | |
14526 | if (PyErr_Occurred()) SWIG_fail; | |
14527 | } | |
14528 | Py_INCREF(Py_None); resultobj = Py_None; | |
14529 | return resultobj; | |
14530 | fail: | |
14531 | return NULL; | |
14532 | } | |
14533 | ||
14534 | ||
14535 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14536 | PyObject *resultobj; | |
14537 | wxDC *arg1 = (wxDC *) 0 ; | |
14538 | int result; | |
14539 | PyObject * obj0 = 0 ; | |
14540 | char *kwnames[] = { | |
14541 | (char *) "self", NULL | |
14542 | }; | |
14543 | ||
14544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
14545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14547 | { | |
14548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14549 | result = (int)((wxDC const *)arg1)->MinX(); | |
14550 | ||
14551 | wxPyEndAllowThreads(__tstate); | |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
14553 | } | |
14554 | resultobj = SWIG_FromInt((int)result); | |
14555 | return resultobj; | |
14556 | fail: | |
14557 | return NULL; | |
14558 | } | |
14559 | ||
14560 | ||
14561 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14562 | PyObject *resultobj; | |
14563 | wxDC *arg1 = (wxDC *) 0 ; | |
14564 | int result; | |
14565 | PyObject * obj0 = 0 ; | |
14566 | char *kwnames[] = { | |
14567 | (char *) "self", NULL | |
14568 | }; | |
14569 | ||
14570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
14571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14573 | { | |
14574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14575 | result = (int)((wxDC const *)arg1)->MaxX(); | |
14576 | ||
14577 | wxPyEndAllowThreads(__tstate); | |
14578 | if (PyErr_Occurred()) SWIG_fail; | |
14579 | } | |
14580 | resultobj = SWIG_FromInt((int)result); | |
14581 | return resultobj; | |
14582 | fail: | |
14583 | return NULL; | |
14584 | } | |
14585 | ||
14586 | ||
14587 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14588 | PyObject *resultobj; | |
14589 | wxDC *arg1 = (wxDC *) 0 ; | |
14590 | int result; | |
14591 | PyObject * obj0 = 0 ; | |
14592 | char *kwnames[] = { | |
14593 | (char *) "self", NULL | |
14594 | }; | |
14595 | ||
14596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
14597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14599 | { | |
14600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14601 | result = (int)((wxDC const *)arg1)->MinY(); | |
14602 | ||
14603 | wxPyEndAllowThreads(__tstate); | |
14604 | if (PyErr_Occurred()) SWIG_fail; | |
14605 | } | |
14606 | resultobj = SWIG_FromInt((int)result); | |
14607 | return resultobj; | |
14608 | fail: | |
14609 | return NULL; | |
14610 | } | |
14611 | ||
14612 | ||
14613 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14614 | PyObject *resultobj; | |
14615 | wxDC *arg1 = (wxDC *) 0 ; | |
14616 | int result; | |
14617 | PyObject * obj0 = 0 ; | |
14618 | char *kwnames[] = { | |
14619 | (char *) "self", NULL | |
14620 | }; | |
14621 | ||
14622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
14623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14625 | { | |
14626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14627 | result = (int)((wxDC const *)arg1)->MaxY(); | |
14628 | ||
14629 | wxPyEndAllowThreads(__tstate); | |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
14631 | } | |
14632 | resultobj = SWIG_FromInt((int)result); | |
14633 | return resultobj; | |
14634 | fail: | |
14635 | return NULL; | |
14636 | } | |
14637 | ||
14638 | ||
14639 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14640 | PyObject *resultobj; | |
14641 | wxDC *arg1 = (wxDC *) 0 ; | |
14642 | int *arg2 = (int *) 0 ; | |
14643 | int *arg3 = (int *) 0 ; | |
14644 | int *arg4 = (int *) 0 ; | |
14645 | int *arg5 = (int *) 0 ; | |
14646 | int temp2 ; | |
14647 | int temp3 ; | |
14648 | int temp4 ; | |
14649 | int temp5 ; | |
14650 | PyObject * obj0 = 0 ; | |
14651 | char *kwnames[] = { | |
14652 | (char *) "self", NULL | |
14653 | }; | |
14654 | ||
14655 | arg2 = &temp2; | |
14656 | arg3 = &temp3; | |
14657 | arg4 = &temp4; | |
14658 | arg5 = &temp5; | |
14659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
14660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14662 | { | |
14663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14664 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
14665 | ||
14666 | wxPyEndAllowThreads(__tstate); | |
14667 | if (PyErr_Occurred()) SWIG_fail; | |
14668 | } | |
14669 | Py_INCREF(Py_None); resultobj = Py_None; | |
14670 | { | |
14671 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14672 | resultobj = t_output_helper(resultobj,o); | |
14673 | } | |
14674 | { | |
14675 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14676 | resultobj = t_output_helper(resultobj,o); | |
14677 | } | |
14678 | { | |
14679 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
14680 | resultobj = t_output_helper(resultobj,o); | |
14681 | } | |
14682 | { | |
14683 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
14684 | resultobj = t_output_helper(resultobj,o); | |
14685 | } | |
14686 | return resultobj; | |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
14692 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14693 | PyObject *resultobj; | |
14694 | wxDC *arg1 = (wxDC *) 0 ; | |
14695 | PyObject *arg2 = (PyObject *) 0 ; | |
14696 | PyObject *arg3 = (PyObject *) 0 ; | |
14697 | PyObject *arg4 = (PyObject *) 0 ; | |
14698 | PyObject *result; | |
14699 | PyObject * obj0 = 0 ; | |
14700 | PyObject * obj1 = 0 ; | |
14701 | PyObject * obj2 = 0 ; | |
14702 | PyObject * obj3 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14710 | arg2 = obj1; | |
14711 | arg3 = obj2; | |
14712 | arg4 = obj3; | |
14713 | { | |
14714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14715 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
14716 | ||
14717 | wxPyEndAllowThreads(__tstate); | |
14718 | if (PyErr_Occurred()) SWIG_fail; | |
14719 | } | |
14720 | resultobj = result; | |
14721 | return resultobj; | |
14722 | fail: | |
14723 | return NULL; | |
14724 | } | |
14725 | ||
14726 | ||
14727 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14728 | PyObject *resultobj; | |
14729 | wxDC *arg1 = (wxDC *) 0 ; | |
14730 | PyObject *arg2 = (PyObject *) 0 ; | |
14731 | PyObject *arg3 = (PyObject *) 0 ; | |
14732 | PyObject *arg4 = (PyObject *) 0 ; | |
14733 | PyObject *result; | |
14734 | PyObject * obj0 = 0 ; | |
14735 | PyObject * obj1 = 0 ; | |
14736 | PyObject * obj2 = 0 ; | |
14737 | PyObject * obj3 = 0 ; | |
14738 | char *kwnames[] = { | |
14739 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14740 | }; | |
14741 | ||
14742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14745 | arg2 = obj1; | |
14746 | arg3 = obj2; | |
14747 | arg4 = obj3; | |
14748 | { | |
14749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14750 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
14751 | ||
14752 | wxPyEndAllowThreads(__tstate); | |
14753 | if (PyErr_Occurred()) SWIG_fail; | |
14754 | } | |
14755 | resultobj = result; | |
14756 | return resultobj; | |
14757 | fail: | |
14758 | return NULL; | |
14759 | } | |
14760 | ||
14761 | ||
14762 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14763 | PyObject *resultobj; | |
14764 | wxDC *arg1 = (wxDC *) 0 ; | |
14765 | PyObject *arg2 = (PyObject *) 0 ; | |
14766 | PyObject *arg3 = (PyObject *) 0 ; | |
14767 | PyObject *arg4 = (PyObject *) 0 ; | |
14768 | PyObject *result; | |
14769 | PyObject * obj0 = 0 ; | |
14770 | PyObject * obj1 = 0 ; | |
14771 | PyObject * obj2 = 0 ; | |
14772 | PyObject * obj3 = 0 ; | |
14773 | char *kwnames[] = { | |
14774 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14775 | }; | |
14776 | ||
14777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14780 | arg2 = obj1; | |
14781 | arg3 = obj2; | |
14782 | arg4 = obj3; | |
14783 | { | |
14784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14785 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
14786 | ||
14787 | wxPyEndAllowThreads(__tstate); | |
14788 | if (PyErr_Occurred()) SWIG_fail; | |
14789 | } | |
14790 | resultobj = result; | |
14791 | return resultobj; | |
14792 | fail: | |
14793 | return NULL; | |
14794 | } | |
14795 | ||
14796 | ||
14797 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14798 | PyObject *resultobj; | |
14799 | wxDC *arg1 = (wxDC *) 0 ; | |
14800 | PyObject *arg2 = (PyObject *) 0 ; | |
14801 | PyObject *arg3 = (PyObject *) 0 ; | |
14802 | PyObject *arg4 = (PyObject *) 0 ; | |
14803 | PyObject *result; | |
14804 | PyObject * obj0 = 0 ; | |
14805 | PyObject * obj1 = 0 ; | |
14806 | PyObject * obj2 = 0 ; | |
14807 | PyObject * obj3 = 0 ; | |
14808 | char *kwnames[] = { | |
14809 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14810 | }; | |
14811 | ||
14812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14815 | arg2 = obj1; | |
14816 | arg3 = obj2; | |
14817 | arg4 = obj3; | |
14818 | { | |
14819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14820 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
14821 | ||
14822 | wxPyEndAllowThreads(__tstate); | |
14823 | if (PyErr_Occurred()) SWIG_fail; | |
14824 | } | |
14825 | resultobj = result; | |
14826 | return resultobj; | |
14827 | fail: | |
14828 | return NULL; | |
14829 | } | |
14830 | ||
14831 | ||
14832 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14833 | PyObject *resultobj; | |
14834 | wxDC *arg1 = (wxDC *) 0 ; | |
14835 | PyObject *arg2 = (PyObject *) 0 ; | |
14836 | PyObject *arg3 = (PyObject *) 0 ; | |
14837 | PyObject *arg4 = (PyObject *) 0 ; | |
14838 | PyObject *result; | |
14839 | PyObject * obj0 = 0 ; | |
14840 | PyObject * obj1 = 0 ; | |
14841 | PyObject * obj2 = 0 ; | |
14842 | PyObject * obj3 = 0 ; | |
14843 | char *kwnames[] = { | |
14844 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
14845 | }; | |
14846 | ||
14847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14850 | arg2 = obj1; | |
14851 | arg3 = obj2; | |
14852 | arg4 = obj3; | |
14853 | { | |
14854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14855 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
14856 | ||
14857 | wxPyEndAllowThreads(__tstate); | |
14858 | if (PyErr_Occurred()) SWIG_fail; | |
14859 | } | |
14860 | resultobj = result; | |
14861 | return resultobj; | |
14862 | fail: | |
14863 | return NULL; | |
14864 | } | |
14865 | ||
14866 | ||
14867 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14868 | PyObject *resultobj; | |
14869 | wxDC *arg1 = (wxDC *) 0 ; | |
14870 | PyObject *arg2 = (PyObject *) 0 ; | |
14871 | PyObject *arg3 = (PyObject *) 0 ; | |
14872 | PyObject *arg4 = (PyObject *) 0 ; | |
14873 | PyObject *arg5 = (PyObject *) 0 ; | |
14874 | PyObject *result; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | PyObject * obj1 = 0 ; | |
14877 | PyObject * obj2 = 0 ; | |
14878 | PyObject * obj3 = 0 ; | |
14879 | PyObject * obj4 = 0 ; | |
14880 | char *kwnames[] = { | |
14881 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
14882 | }; | |
14883 | ||
14884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14887 | arg2 = obj1; | |
14888 | arg3 = obj2; | |
14889 | arg4 = obj3; | |
14890 | arg5 = obj4; | |
14891 | { | |
14892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14893 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
14894 | ||
14895 | wxPyEndAllowThreads(__tstate); | |
14896 | if (PyErr_Occurred()) SWIG_fail; | |
14897 | } | |
14898 | resultobj = result; | |
14899 | return resultobj; | |
14900 | fail: | |
14901 | return NULL; | |
14902 | } | |
14903 | ||
14904 | ||
14905 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
14906 | PyObject *obj; | |
14907 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14908 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
14909 | Py_INCREF(obj); | |
14910 | return Py_BuildValue((char *)""); | |
14911 | } | |
14912 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14913 | PyObject *resultobj; | |
14914 | wxMemoryDC *result; | |
14915 | char *kwnames[] = { | |
14916 | NULL | |
14917 | }; | |
14918 | ||
14919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
14920 | { | |
14921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14922 | result = (wxMemoryDC *)new wxMemoryDC(); | |
14923 | ||
14924 | wxPyEndAllowThreads(__tstate); | |
14925 | if (PyErr_Occurred()) SWIG_fail; | |
14926 | } | |
14927 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
14928 | return resultobj; | |
14929 | fail: | |
14930 | return NULL; | |
14931 | } | |
14932 | ||
14933 | ||
14934 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14935 | PyObject *resultobj; | |
14936 | wxDC *arg1 = (wxDC *) 0 ; | |
14937 | wxMemoryDC *result; | |
14938 | PyObject * obj0 = 0 ; | |
14939 | char *kwnames[] = { | |
14940 | (char *) "oldDC", NULL | |
14941 | }; | |
14942 | ||
14943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
14944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14946 | { | |
14947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14948 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
14949 | ||
14950 | wxPyEndAllowThreads(__tstate); | |
14951 | if (PyErr_Occurred()) SWIG_fail; | |
14952 | } | |
14953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
14954 | return resultobj; | |
14955 | fail: | |
14956 | return NULL; | |
14957 | } | |
14958 | ||
14959 | ||
14960 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14961 | PyObject *resultobj; | |
14962 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
14963 | wxBitmap *arg2 = 0 ; | |
14964 | PyObject * obj0 = 0 ; | |
14965 | PyObject * obj1 = 0 ; | |
14966 | char *kwnames[] = { | |
14967 | (char *) "self",(char *) "bitmap", NULL | |
14968 | }; | |
14969 | ||
14970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
14971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, | |
14972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14973 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
14974 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14975 | SWIG_fail; | |
14976 | if (arg2 == NULL) { | |
14977 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14978 | SWIG_fail; | |
14979 | } | |
14980 | { | |
14981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14982 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
14983 | ||
14984 | wxPyEndAllowThreads(__tstate); | |
14985 | if (PyErr_Occurred()) SWIG_fail; | |
14986 | } | |
14987 | Py_INCREF(Py_None); resultobj = Py_None; | |
14988 | return resultobj; | |
14989 | fail: | |
14990 | return NULL; | |
14991 | } | |
14992 | ||
14993 | ||
14994 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
14995 | PyObject *obj; | |
14996 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14997 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
14998 | Py_INCREF(obj); | |
14999 | return Py_BuildValue((char *)""); | |
15000 | } | |
15001 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { | |
15002 | PyObject *resultobj; | |
15003 | wxDC *arg1 = (wxDC *) 0 ; | |
15004 | wxBitmap *arg2 = 0 ; | |
15005 | wxBufferedDC *result; | |
15006 | PyObject * obj0 = 0 ; | |
15007 | PyObject * obj1 = 0 ; | |
15008 | ||
15009 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15013 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15014 | SWIG_fail; | |
15015 | if (arg2 == NULL) { | |
15016 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15017 | SWIG_fail; | |
15018 | } | |
15019 | { | |
15020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15021 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15022 | ||
15023 | wxPyEndAllowThreads(__tstate); | |
15024 | if (PyErr_Occurred()) SWIG_fail; | |
15025 | } | |
15026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15027 | return resultobj; | |
15028 | fail: | |
15029 | return NULL; | |
15030 | } | |
15031 | ||
15032 | ||
15033 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { | |
15034 | PyObject *resultobj; | |
15035 | wxDC *arg1 = (wxDC *) 0 ; | |
15036 | wxSize *arg2 = 0 ; | |
15037 | wxBufferedDC *result; | |
15038 | wxSize temp2 ; | |
15039 | PyObject * obj0 = 0 ; | |
15040 | PyObject * obj1 = 0 ; | |
15041 | ||
15042 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15045 | { | |
15046 | arg2 = &temp2; | |
15047 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15048 | } | |
15049 | { | |
15050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15051 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15052 | ||
15053 | wxPyEndAllowThreads(__tstate); | |
15054 | if (PyErr_Occurred()) SWIG_fail; | |
15055 | } | |
15056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15057 | return resultobj; | |
15058 | fail: | |
15059 | return NULL; | |
15060 | } | |
15061 | ||
15062 | ||
15063 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15064 | int argc; | |
15065 | PyObject *argv[3]; | |
15066 | int ii; | |
15067 | ||
15068 | argc = PyObject_Length(args); | |
15069 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
15070 | argv[ii] = PyTuple_GetItem(args,ii); | |
15071 | } | |
15072 | if (argc == 2) { | |
15073 | int _v; | |
15074 | { | |
15075 | void *ptr; | |
15076 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15077 | _v = 0; | |
15078 | PyErr_Clear(); | |
15079 | } else { | |
15080 | _v = 1; | |
15081 | } | |
15082 | } | |
15083 | if (_v) { | |
15084 | { | |
15085 | void *ptr; | |
15086 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
15087 | _v = 0; | |
15088 | PyErr_Clear(); | |
15089 | } else { | |
15090 | _v = 1; | |
15091 | } | |
15092 | } | |
15093 | if (_v) { | |
15094 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15095 | } | |
15096 | } | |
15097 | } | |
15098 | if (argc == 2) { | |
15099 | int _v; | |
15100 | { | |
15101 | void *ptr; | |
15102 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15103 | _v = 0; | |
15104 | PyErr_Clear(); | |
15105 | } else { | |
15106 | _v = 1; | |
15107 | } | |
15108 | } | |
15109 | if (_v) { | |
15110 | { | |
15111 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15112 | } | |
15113 | if (_v) { | |
15114 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
15115 | } | |
15116 | } | |
15117 | } | |
15118 | ||
15119 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15120 | return NULL; | |
15121 | } | |
15122 | ||
15123 | ||
15124 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
15125 | PyObject *resultobj; | |
15126 | wxDC *arg1 = (wxDC *) 0 ; | |
15127 | wxSize *arg2 = 0 ; | |
15128 | wxBufferedDC *result; | |
15129 | wxSize temp2 ; | |
15130 | PyObject * obj0 = 0 ; | |
15131 | PyObject * obj1 = 0 ; | |
15132 | ||
15133 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; | |
15134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15136 | { | |
15137 | arg2 = &temp2; | |
15138 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15139 | } | |
15140 | { | |
15141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15142 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15143 | ||
15144 | wxPyEndAllowThreads(__tstate); | |
15145 | if (PyErr_Occurred()) SWIG_fail; | |
15146 | } | |
15147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15148 | return resultobj; | |
15149 | fail: | |
15150 | return NULL; | |
15151 | } | |
15152 | ||
15153 | ||
15154 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15155 | PyObject *resultobj; | |
15156 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15157 | PyObject * obj0 = 0 ; | |
15158 | char *kwnames[] = { | |
15159 | (char *) "self", NULL | |
15160 | }; | |
15161 | ||
15162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
15163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15165 | { | |
15166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15167 | delete arg1; | |
15168 | ||
15169 | wxPyEndAllowThreads(__tstate); | |
15170 | if (PyErr_Occurred()) SWIG_fail; | |
15171 | } | |
15172 | Py_INCREF(Py_None); resultobj = Py_None; | |
15173 | return resultobj; | |
15174 | fail: | |
15175 | return NULL; | |
15176 | } | |
15177 | ||
15178 | ||
15179 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15180 | PyObject *resultobj; | |
15181 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15182 | PyObject * obj0 = 0 ; | |
15183 | char *kwnames[] = { | |
15184 | (char *) "self", NULL | |
15185 | }; | |
15186 | ||
15187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
15188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15190 | { | |
15191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15192 | (arg1)->UnMask(); | |
15193 | ||
15194 | wxPyEndAllowThreads(__tstate); | |
15195 | if (PyErr_Occurred()) SWIG_fail; | |
15196 | } | |
15197 | Py_INCREF(Py_None); resultobj = Py_None; | |
15198 | return resultobj; | |
15199 | fail: | |
15200 | return NULL; | |
15201 | } | |
15202 | ||
15203 | ||
15204 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
15205 | PyObject *obj; | |
15206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15207 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15208 | Py_INCREF(obj); | |
15209 | return Py_BuildValue((char *)""); | |
15210 | } | |
15211 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15212 | PyObject *resultobj; | |
15213 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15214 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
15215 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
15216 | wxBufferedPaintDC *result; | |
15217 | PyObject * obj0 = 0 ; | |
15218 | PyObject * obj1 = 0 ; | |
15219 | char *kwnames[] = { | |
15220 | (char *) "window",(char *) "buffer", NULL | |
15221 | }; | |
15222 | ||
15223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
15224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15226 | if (obj1) { | |
15227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15228 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15229 | SWIG_fail; | |
15230 | if (arg2 == NULL) { | |
15231 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15232 | SWIG_fail; | |
15233 | } | |
15234 | } | |
15235 | { | |
15236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15237 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
15238 | ||
15239 | wxPyEndAllowThreads(__tstate); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
15242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
15243 | return resultobj; | |
15244 | fail: | |
15245 | return NULL; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
15250 | PyObject *obj; | |
15251 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15252 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15253 | Py_INCREF(obj); | |
15254 | return Py_BuildValue((char *)""); | |
15255 | } | |
15256 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15257 | PyObject *resultobj; | |
15258 | wxScreenDC *result; | |
15259 | char *kwnames[] = { | |
15260 | NULL | |
15261 | }; | |
15262 | ||
15263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
15264 | { | |
15265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15266 | result = (wxScreenDC *)new wxScreenDC(); | |
15267 | ||
15268 | wxPyEndAllowThreads(__tstate); | |
15269 | if (PyErr_Occurred()) SWIG_fail; | |
15270 | } | |
15271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
15272 | return resultobj; | |
15273 | fail: | |
15274 | return NULL; | |
15275 | } | |
15276 | ||
15277 | ||
15278 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15279 | PyObject *resultobj; | |
15280 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15281 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15282 | bool result; | |
15283 | PyObject * obj0 = 0 ; | |
15284 | PyObject * obj1 = 0 ; | |
15285 | char *kwnames[] = { | |
15286 | (char *) "self",(char *) "window", NULL | |
15287 | }; | |
15288 | ||
15289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
15290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15292 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15294 | { | |
15295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15296 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15297 | ||
15298 | wxPyEndAllowThreads(__tstate); | |
15299 | if (PyErr_Occurred()) SWIG_fail; | |
15300 | } | |
15301 | { | |
15302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15303 | } | |
15304 | return resultobj; | |
15305 | fail: | |
15306 | return NULL; | |
15307 | } | |
15308 | ||
15309 | ||
15310 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15311 | PyObject *resultobj; | |
15312 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15313 | wxRect *arg2 = (wxRect *) NULL ; | |
15314 | bool result; | |
15315 | PyObject * obj0 = 0 ; | |
15316 | PyObject * obj1 = 0 ; | |
15317 | char *kwnames[] = { | |
15318 | (char *) "self",(char *) "rect", NULL | |
15319 | }; | |
15320 | ||
15321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
15322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15324 | if (obj1) { | |
15325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
15326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15327 | } | |
15328 | { | |
15329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15330 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
15331 | ||
15332 | wxPyEndAllowThreads(__tstate); | |
15333 | if (PyErr_Occurred()) SWIG_fail; | |
15334 | } | |
15335 | { | |
15336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15337 | } | |
15338 | return resultobj; | |
15339 | fail: | |
15340 | return NULL; | |
15341 | } | |
15342 | ||
15343 | ||
15344 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15345 | PyObject *resultobj; | |
15346 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
15347 | bool result; | |
15348 | PyObject * obj0 = 0 ; | |
15349 | char *kwnames[] = { | |
15350 | (char *) "self", NULL | |
15351 | }; | |
15352 | ||
15353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
15354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
15355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15356 | { | |
15357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15358 | result = (bool)(arg1)->EndDrawingOnTop(); | |
15359 | ||
15360 | wxPyEndAllowThreads(__tstate); | |
15361 | if (PyErr_Occurred()) SWIG_fail; | |
15362 | } | |
15363 | { | |
15364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15365 | } | |
15366 | return resultobj; | |
15367 | fail: | |
15368 | return NULL; | |
15369 | } | |
15370 | ||
15371 | ||
15372 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
15373 | PyObject *obj; | |
15374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15375 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
15376 | Py_INCREF(obj); | |
15377 | return Py_BuildValue((char *)""); | |
15378 | } | |
15379 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15380 | PyObject *resultobj; | |
15381 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15382 | wxClientDC *result; | |
15383 | PyObject * obj0 = 0 ; | |
15384 | char *kwnames[] = { | |
15385 | (char *) "win", NULL | |
15386 | }; | |
15387 | ||
15388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
15389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15391 | { | |
15392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15393 | result = (wxClientDC *)new wxClientDC(arg1); | |
15394 | ||
15395 | wxPyEndAllowThreads(__tstate); | |
15396 | if (PyErr_Occurred()) SWIG_fail; | |
15397 | } | |
15398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
15399 | return resultobj; | |
15400 | fail: | |
15401 | return NULL; | |
15402 | } | |
15403 | ||
15404 | ||
15405 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
15406 | PyObject *obj; | |
15407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15408 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
15409 | Py_INCREF(obj); | |
15410 | return Py_BuildValue((char *)""); | |
15411 | } | |
15412 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15413 | PyObject *resultobj; | |
15414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15415 | wxPaintDC *result; | |
15416 | PyObject * obj0 = 0 ; | |
15417 | char *kwnames[] = { | |
15418 | (char *) "win", NULL | |
15419 | }; | |
15420 | ||
15421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
15422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15424 | { | |
15425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15426 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
15427 | ||
15428 | wxPyEndAllowThreads(__tstate); | |
15429 | if (PyErr_Occurred()) SWIG_fail; | |
15430 | } | |
15431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
15432 | return resultobj; | |
15433 | fail: | |
15434 | return NULL; | |
15435 | } | |
15436 | ||
15437 | ||
15438 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
15439 | PyObject *obj; | |
15440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15441 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
15442 | Py_INCREF(obj); | |
15443 | return Py_BuildValue((char *)""); | |
15444 | } | |
15445 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15446 | PyObject *resultobj; | |
15447 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15448 | wxWindowDC *result; | |
15449 | PyObject * obj0 = 0 ; | |
15450 | char *kwnames[] = { | |
15451 | (char *) "win", NULL | |
15452 | }; | |
15453 | ||
15454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
15455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15457 | { | |
15458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15459 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
15460 | ||
15461 | wxPyEndAllowThreads(__tstate); | |
15462 | if (PyErr_Occurred()) SWIG_fail; | |
15463 | } | |
15464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
15465 | return resultobj; | |
15466 | fail: | |
15467 | return NULL; | |
15468 | } | |
15469 | ||
15470 | ||
15471 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
15472 | PyObject *obj; | |
15473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15474 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
15475 | Py_INCREF(obj); | |
15476 | return Py_BuildValue((char *)""); | |
15477 | } | |
15478 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15479 | PyObject *resultobj; | |
15480 | wxDC *arg1 = 0 ; | |
15481 | bool arg2 ; | |
15482 | wxMirrorDC *result; | |
15483 | PyObject * obj0 = 0 ; | |
15484 | PyObject * obj1 = 0 ; | |
15485 | char *kwnames[] = { | |
15486 | (char *) "dc",(char *) "mirror", NULL | |
15487 | }; | |
15488 | ||
15489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
15490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15491 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15492 | SWIG_fail; | |
15493 | if (arg1 == NULL) { | |
15494 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15495 | SWIG_fail; | |
15496 | } | |
15497 | arg2 = (bool) SWIG_AsBool(obj1); | |
15498 | if (PyErr_Occurred()) SWIG_fail; | |
15499 | { | |
15500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15501 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
15502 | ||
15503 | wxPyEndAllowThreads(__tstate); | |
15504 | if (PyErr_Occurred()) SWIG_fail; | |
15505 | } | |
15506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
15507 | return resultobj; | |
15508 | fail: | |
15509 | return NULL; | |
15510 | } | |
15511 | ||
15512 | ||
15513 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
15514 | PyObject *obj; | |
15515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15516 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
15517 | Py_INCREF(obj); | |
15518 | return Py_BuildValue((char *)""); | |
15519 | } | |
15520 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15521 | PyObject *resultobj; | |
15522 | wxPrintData *arg1 = 0 ; | |
15523 | wxPostScriptDC *result; | |
15524 | PyObject * obj0 = 0 ; | |
15525 | char *kwnames[] = { | |
15526 | (char *) "printData", NULL | |
15527 | }; | |
15528 | ||
15529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
15530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
15531 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15532 | SWIG_fail; | |
15533 | if (arg1 == NULL) { | |
15534 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15535 | SWIG_fail; | |
15536 | } | |
15537 | { | |
15538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15539 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
15540 | ||
15541 | wxPyEndAllowThreads(__tstate); | |
15542 | if (PyErr_Occurred()) SWIG_fail; | |
15543 | } | |
15544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
15545 | return resultobj; | |
15546 | fail: | |
15547 | return NULL; | |
15548 | } | |
15549 | ||
15550 | ||
15551 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15552 | PyObject *resultobj; | |
15553 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15554 | wxPrintData *result; | |
15555 | PyObject * obj0 = 0 ; | |
15556 | char *kwnames[] = { | |
15557 | (char *) "self", NULL | |
15558 | }; | |
15559 | ||
15560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
15561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
15562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15563 | { | |
15564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15565 | { | |
15566 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
15567 | result = (wxPrintData *) &_result_ref; | |
15568 | } | |
15569 | ||
15570 | wxPyEndAllowThreads(__tstate); | |
15571 | if (PyErr_Occurred()) SWIG_fail; | |
15572 | } | |
15573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
15574 | return resultobj; | |
15575 | fail: | |
15576 | return NULL; | |
15577 | } | |
15578 | ||
15579 | ||
15580 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15581 | PyObject *resultobj; | |
15582 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
15583 | wxPrintData *arg2 = 0 ; | |
15584 | PyObject * obj0 = 0 ; | |
15585 | PyObject * obj1 = 0 ; | |
15586 | char *kwnames[] = { | |
15587 | (char *) "self",(char *) "data", NULL | |
15588 | }; | |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
15591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
15592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
15594 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15595 | SWIG_fail; | |
15596 | if (arg2 == NULL) { | |
15597 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15598 | SWIG_fail; | |
15599 | } | |
15600 | { | |
15601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15602 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
15603 | ||
15604 | wxPyEndAllowThreads(__tstate); | |
15605 | if (PyErr_Occurred()) SWIG_fail; | |
15606 | } | |
15607 | Py_INCREF(Py_None); resultobj = Py_None; | |
15608 | return resultobj; | |
15609 | fail: | |
15610 | return NULL; | |
15611 | } | |
15612 | ||
15613 | ||
15614 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15615 | PyObject *resultobj; | |
15616 | int arg1 ; | |
15617 | PyObject * obj0 = 0 ; | |
15618 | char *kwnames[] = { | |
15619 | (char *) "ppi", NULL | |
15620 | }; | |
15621 | ||
15622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
15623 | arg1 = (int) SWIG_AsInt(obj0); | |
15624 | if (PyErr_Occurred()) SWIG_fail; | |
15625 | { | |
15626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15627 | wxPostScriptDC::SetResolution(arg1); | |
15628 | ||
15629 | wxPyEndAllowThreads(__tstate); | |
15630 | if (PyErr_Occurred()) SWIG_fail; | |
15631 | } | |
15632 | Py_INCREF(Py_None); resultobj = Py_None; | |
15633 | return resultobj; | |
15634 | fail: | |
15635 | return NULL; | |
15636 | } | |
15637 | ||
15638 | ||
15639 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15640 | PyObject *resultobj; | |
15641 | int result; | |
15642 | char *kwnames[] = { | |
15643 | NULL | |
15644 | }; | |
15645 | ||
15646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
15647 | { | |
15648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15649 | result = (int)wxPostScriptDC::GetResolution(); | |
15650 | ||
15651 | wxPyEndAllowThreads(__tstate); | |
15652 | if (PyErr_Occurred()) SWIG_fail; | |
15653 | } | |
15654 | resultobj = SWIG_FromInt((int)result); | |
15655 | return resultobj; | |
15656 | fail: | |
15657 | return NULL; | |
15658 | } | |
15659 | ||
15660 | ||
15661 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
15662 | PyObject *obj; | |
15663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15664 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
15665 | Py_INCREF(obj); | |
15666 | return Py_BuildValue((char *)""); | |
15667 | } | |
15668 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15669 | PyObject *resultobj; | |
15670 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15671 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15672 | wxMetaFile *result; | |
15673 | bool temp1 = False ; | |
15674 | PyObject * obj0 = 0 ; | |
15675 | char *kwnames[] = { | |
15676 | (char *) "filename", NULL | |
15677 | }; | |
15678 | ||
15679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
15680 | if (obj0) { | |
15681 | { | |
15682 | arg1 = wxString_in_helper(obj0); | |
15683 | if (arg1 == NULL) SWIG_fail; | |
15684 | temp1 = True; | |
15685 | } | |
15686 | } | |
15687 | { | |
15688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15689 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
15690 | ||
15691 | wxPyEndAllowThreads(__tstate); | |
15692 | if (PyErr_Occurred()) SWIG_fail; | |
15693 | } | |
15694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
15695 | { | |
15696 | if (temp1) | |
15697 | delete arg1; | |
15698 | } | |
15699 | return resultobj; | |
15700 | fail: | |
15701 | { | |
15702 | if (temp1) | |
15703 | delete arg1; | |
15704 | } | |
15705 | return NULL; | |
15706 | } | |
15707 | ||
15708 | ||
15709 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15710 | PyObject *resultobj; | |
15711 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
15712 | PyObject * obj0 = 0 ; | |
15713 | char *kwnames[] = { | |
15714 | (char *) "self", NULL | |
15715 | }; | |
15716 | ||
15717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
15718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
15719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15720 | { | |
15721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15722 | delete arg1; | |
15723 | ||
15724 | wxPyEndAllowThreads(__tstate); | |
15725 | if (PyErr_Occurred()) SWIG_fail; | |
15726 | } | |
15727 | Py_INCREF(Py_None); resultobj = Py_None; | |
15728 | return resultobj; | |
15729 | fail: | |
15730 | return NULL; | |
15731 | } | |
15732 | ||
15733 | ||
15734 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15735 | PyObject *resultobj; | |
15736 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
15737 | bool result; | |
15738 | PyObject * obj0 = 0 ; | |
15739 | char *kwnames[] = { | |
15740 | (char *) "self", NULL | |
15741 | }; | |
15742 | ||
15743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
15744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
15745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15746 | { | |
15747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15748 | result = (bool)(arg1)->Ok(); | |
15749 | ||
15750 | wxPyEndAllowThreads(__tstate); | |
15751 | if (PyErr_Occurred()) SWIG_fail; | |
15752 | } | |
15753 | { | |
15754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15755 | } | |
15756 | return resultobj; | |
15757 | fail: | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
15762 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15763 | PyObject *resultobj; | |
15764 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
15765 | int arg2 = (int) 0 ; | |
15766 | int arg3 = (int) 0 ; | |
15767 | bool result; | |
15768 | PyObject * obj0 = 0 ; | |
15769 | PyObject * obj1 = 0 ; | |
15770 | PyObject * obj2 = 0 ; | |
15771 | char *kwnames[] = { | |
15772 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15773 | }; | |
15774 | ||
15775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
15777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15778 | if (obj1) { | |
15779 | arg2 = (int) SWIG_AsInt(obj1); | |
15780 | if (PyErr_Occurred()) SWIG_fail; | |
15781 | } | |
15782 | if (obj2) { | |
15783 | arg3 = (int) SWIG_AsInt(obj2); | |
15784 | if (PyErr_Occurred()) SWIG_fail; | |
15785 | } | |
15786 | { | |
15787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15788 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
15789 | ||
15790 | wxPyEndAllowThreads(__tstate); | |
15791 | if (PyErr_Occurred()) SWIG_fail; | |
15792 | } | |
15793 | { | |
15794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15795 | } | |
15796 | return resultobj; | |
15797 | fail: | |
15798 | return NULL; | |
15799 | } | |
15800 | ||
15801 | ||
15802 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15803 | PyObject *resultobj; | |
15804 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
15805 | wxSize result; | |
15806 | PyObject * obj0 = 0 ; | |
15807 | char *kwnames[] = { | |
15808 | (char *) "self", NULL | |
15809 | }; | |
15810 | ||
15811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
15812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
15813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15814 | { | |
15815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15816 | result = (arg1)->GetSize(); | |
15817 | ||
15818 | wxPyEndAllowThreads(__tstate); | |
15819 | if (PyErr_Occurred()) SWIG_fail; | |
15820 | } | |
15821 | { | |
15822 | wxSize * resultptr; | |
15823 | resultptr = new wxSize((wxSize &) result); | |
15824 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15825 | } | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj; | |
15834 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
15835 | int result; | |
15836 | PyObject * obj0 = 0 ; | |
15837 | char *kwnames[] = { | |
15838 | (char *) "self", NULL | |
15839 | }; | |
15840 | ||
15841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
15842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
15843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15844 | { | |
15845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15846 | result = (int)(arg1)->GetWidth(); | |
15847 | ||
15848 | wxPyEndAllowThreads(__tstate); | |
15849 | if (PyErr_Occurred()) SWIG_fail; | |
15850 | } | |
15851 | resultobj = SWIG_FromInt((int)result); | |
15852 | return resultobj; | |
15853 | fail: | |
15854 | return NULL; | |
15855 | } | |
15856 | ||
15857 | ||
15858 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15859 | PyObject *resultobj; | |
15860 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
15861 | int result; | |
15862 | PyObject * obj0 = 0 ; | |
15863 | char *kwnames[] = { | |
15864 | (char *) "self", NULL | |
15865 | }; | |
15866 | ||
15867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
15868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
15869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15870 | { | |
15871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15872 | result = (int)(arg1)->GetHeight(); | |
15873 | ||
15874 | wxPyEndAllowThreads(__tstate); | |
15875 | if (PyErr_Occurred()) SWIG_fail; | |
15876 | } | |
15877 | resultobj = SWIG_FromInt((int)result); | |
15878 | return resultobj; | |
15879 | fail: | |
15880 | return NULL; | |
15881 | } | |
15882 | ||
15883 | ||
15884 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
15885 | PyObject *obj; | |
15886 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15887 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
15888 | Py_INCREF(obj); | |
15889 | return Py_BuildValue((char *)""); | |
15890 | } | |
15891 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15892 | PyObject *resultobj; | |
15893 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
15894 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
15895 | int arg2 = (int) 0 ; | |
15896 | int arg3 = (int) 0 ; | |
15897 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15898 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15899 | wxMetaFileDC *result; | |
15900 | bool temp1 = False ; | |
15901 | bool temp4 = False ; | |
15902 | PyObject * obj0 = 0 ; | |
15903 | PyObject * obj1 = 0 ; | |
15904 | PyObject * obj2 = 0 ; | |
15905 | PyObject * obj3 = 0 ; | |
15906 | char *kwnames[] = { | |
15907 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
15908 | }; | |
15909 | ||
15910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15911 | if (obj0) { | |
15912 | { | |
15913 | arg1 = wxString_in_helper(obj0); | |
15914 | if (arg1 == NULL) SWIG_fail; | |
15915 | temp1 = True; | |
15916 | } | |
15917 | } | |
15918 | if (obj1) { | |
15919 | arg2 = (int) SWIG_AsInt(obj1); | |
15920 | if (PyErr_Occurred()) SWIG_fail; | |
15921 | } | |
15922 | if (obj2) { | |
15923 | arg3 = (int) SWIG_AsInt(obj2); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | if (obj3) { | |
15927 | { | |
15928 | arg4 = wxString_in_helper(obj3); | |
15929 | if (arg4 == NULL) SWIG_fail; | |
15930 | temp4 = True; | |
15931 | } | |
15932 | } | |
15933 | { | |
15934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15935 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
15936 | ||
15937 | wxPyEndAllowThreads(__tstate); | |
15938 | if (PyErr_Occurred()) SWIG_fail; | |
15939 | } | |
15940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
15941 | { | |
15942 | if (temp1) | |
15943 | delete arg1; | |
15944 | } | |
15945 | { | |
15946 | if (temp4) | |
15947 | delete arg4; | |
15948 | } | |
15949 | return resultobj; | |
15950 | fail: | |
15951 | { | |
15952 | if (temp1) | |
15953 | delete arg1; | |
15954 | } | |
15955 | { | |
15956 | if (temp4) | |
15957 | delete arg4; | |
15958 | } | |
15959 | return NULL; | |
15960 | } | |
15961 | ||
15962 | ||
15963 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15964 | PyObject *resultobj; | |
15965 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
15966 | wxMetaFile *result; | |
15967 | PyObject * obj0 = 0 ; | |
15968 | char *kwnames[] = { | |
15969 | (char *) "self", NULL | |
15970 | }; | |
15971 | ||
15972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
15973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, | |
15974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15975 | { | |
15976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15977 | result = (wxMetaFile *)(arg1)->Close(); | |
15978 | ||
15979 | wxPyEndAllowThreads(__tstate); | |
15980 | if (PyErr_Occurred()) SWIG_fail; | |
15981 | } | |
15982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); | |
15983 | return resultobj; | |
15984 | fail: | |
15985 | return NULL; | |
15986 | } | |
15987 | ||
15988 | ||
15989 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
15990 | PyObject *obj; | |
15991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15992 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
15993 | Py_INCREF(obj); | |
15994 | return Py_BuildValue((char *)""); | |
15995 | } | |
15996 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15997 | PyObject *resultobj; | |
15998 | wxPrintData *arg1 = 0 ; | |
15999 | wxPrinterDC *result; | |
16000 | PyObject * obj0 = 0 ; | |
16001 | char *kwnames[] = { | |
16002 | (char *) "printData", NULL | |
16003 | }; | |
16004 | ||
16005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
16006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16007 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16008 | SWIG_fail; | |
16009 | if (arg1 == NULL) { | |
16010 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16011 | SWIG_fail; | |
16012 | } | |
16013 | { | |
16014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16015 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16016 | ||
16017 | wxPyEndAllowThreads(__tstate); | |
16018 | if (PyErr_Occurred()) SWIG_fail; | |
16019 | } | |
16020 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
16021 | return resultobj; | |
16022 | fail: | |
16023 | return NULL; | |
16024 | } | |
16025 | ||
16026 | ||
16027 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
16028 | PyObject *obj; | |
16029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16030 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16031 | Py_INCREF(obj); | |
16032 | return Py_BuildValue((char *)""); | |
16033 | } | |
16034 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16035 | PyObject *resultobj; | |
16036 | int arg1 ; | |
16037 | int arg2 ; | |
16038 | int arg3 = (int) True ; | |
16039 | int arg4 = (int) 1 ; | |
16040 | wxImageList *result; | |
16041 | PyObject * obj0 = 0 ; | |
16042 | PyObject * obj1 = 0 ; | |
16043 | PyObject * obj2 = 0 ; | |
16044 | PyObject * obj3 = 0 ; | |
16045 | char *kwnames[] = { | |
16046 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16047 | }; | |
16048 | ||
16049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16050 | arg1 = (int) SWIG_AsInt(obj0); | |
16051 | if (PyErr_Occurred()) SWIG_fail; | |
16052 | arg2 = (int) SWIG_AsInt(obj1); | |
16053 | if (PyErr_Occurred()) SWIG_fail; | |
16054 | if (obj2) { | |
16055 | arg3 = (int) SWIG_AsInt(obj2); | |
16056 | if (PyErr_Occurred()) SWIG_fail; | |
16057 | } | |
16058 | if (obj3) { | |
16059 | arg4 = (int) SWIG_AsInt(obj3); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
16062 | { | |
16063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16064 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16065 | ||
16066 | wxPyEndAllowThreads(__tstate); | |
16067 | if (PyErr_Occurred()) SWIG_fail; | |
16068 | } | |
16069 | { | |
16070 | resultobj = wxPyMake_wxObject(result); | |
16071 | } | |
16072 | return resultobj; | |
16073 | fail: | |
16074 | return NULL; | |
16075 | } | |
16076 | ||
16077 | ||
16078 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16079 | PyObject *resultobj; | |
16080 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16081 | PyObject * obj0 = 0 ; | |
16082 | char *kwnames[] = { | |
16083 | (char *) "self", NULL | |
16084 | }; | |
16085 | ||
16086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
16087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16089 | { | |
16090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16091 | delete arg1; | |
16092 | ||
16093 | wxPyEndAllowThreads(__tstate); | |
16094 | if (PyErr_Occurred()) SWIG_fail; | |
16095 | } | |
16096 | Py_INCREF(Py_None); resultobj = Py_None; | |
16097 | return resultobj; | |
16098 | fail: | |
16099 | return NULL; | |
16100 | } | |
16101 | ||
16102 | ||
16103 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16104 | PyObject *resultobj; | |
16105 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16106 | wxBitmap *arg2 = 0 ; | |
16107 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16108 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16109 | int result; | |
16110 | PyObject * obj0 = 0 ; | |
16111 | PyObject * obj1 = 0 ; | |
16112 | PyObject * obj2 = 0 ; | |
16113 | char *kwnames[] = { | |
16114 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16115 | }; | |
16116 | ||
16117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16120 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16121 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16122 | SWIG_fail; | |
16123 | if (arg2 == NULL) { | |
16124 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16125 | SWIG_fail; | |
16126 | } | |
16127 | if (obj2) { | |
16128 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16129 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16130 | SWIG_fail; | |
16131 | if (arg3 == NULL) { | |
16132 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16133 | SWIG_fail; | |
16134 | } | |
16135 | } | |
16136 | { | |
16137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16138 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16139 | ||
16140 | wxPyEndAllowThreads(__tstate); | |
16141 | if (PyErr_Occurred()) SWIG_fail; | |
16142 | } | |
16143 | resultobj = SWIG_FromInt((int)result); | |
16144 | return resultobj; | |
16145 | fail: | |
16146 | return NULL; | |
16147 | } | |
16148 | ||
16149 | ||
16150 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16151 | PyObject *resultobj; | |
16152 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16153 | wxBitmap *arg2 = 0 ; | |
16154 | wxColour *arg3 = 0 ; | |
16155 | int result; | |
16156 | wxColour temp3 ; | |
16157 | PyObject * obj0 = 0 ; | |
16158 | PyObject * obj1 = 0 ; | |
16159 | PyObject * obj2 = 0 ; | |
16160 | char *kwnames[] = { | |
16161 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16162 | }; | |
16163 | ||
16164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16169 | SWIG_fail; | |
16170 | if (arg2 == NULL) { | |
16171 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16172 | SWIG_fail; | |
16173 | } | |
16174 | { | |
16175 | arg3 = &temp3; | |
16176 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16177 | } | |
16178 | { | |
16179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16180 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16181 | ||
16182 | wxPyEndAllowThreads(__tstate); | |
16183 | if (PyErr_Occurred()) SWIG_fail; | |
16184 | } | |
16185 | resultobj = SWIG_FromInt((int)result); | |
16186 | return resultobj; | |
16187 | fail: | |
16188 | return NULL; | |
16189 | } | |
16190 | ||
16191 | ||
16192 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16193 | PyObject *resultobj; | |
16194 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16195 | wxIcon *arg2 = 0 ; | |
16196 | int result; | |
16197 | PyObject * obj0 = 0 ; | |
16198 | PyObject * obj1 = 0 ; | |
16199 | char *kwnames[] = { | |
16200 | (char *) "self",(char *) "icon", NULL | |
16201 | }; | |
16202 | ||
16203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
16204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16206 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16207 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16208 | SWIG_fail; | |
16209 | if (arg2 == NULL) { | |
16210 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16211 | SWIG_fail; | |
16212 | } | |
16213 | { | |
16214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16215 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16216 | ||
16217 | wxPyEndAllowThreads(__tstate); | |
16218 | if (PyErr_Occurred()) SWIG_fail; | |
16219 | } | |
16220 | resultobj = SWIG_FromInt((int)result); | |
16221 | return resultobj; | |
16222 | fail: | |
16223 | return NULL; | |
16224 | } | |
16225 | ||
16226 | ||
16227 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16228 | PyObject *resultobj; | |
16229 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16230 | int arg2 ; | |
16231 | wxBitmap *arg3 = 0 ; | |
16232 | bool result; | |
16233 | PyObject * obj0 = 0 ; | |
16234 | PyObject * obj1 = 0 ; | |
16235 | PyObject * obj2 = 0 ; | |
16236 | char *kwnames[] = { | |
16237 | (char *) "self",(char *) "index",(char *) "bitmap", NULL | |
16238 | }; | |
16239 | ||
16240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16243 | arg2 = (int) SWIG_AsInt(obj1); | |
16244 | if (PyErr_Occurred()) SWIG_fail; | |
16245 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16246 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16247 | SWIG_fail; | |
16248 | if (arg3 == NULL) { | |
16249 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16250 | SWIG_fail; | |
16251 | } | |
16252 | { | |
16253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16254 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3); | |
16255 | ||
16256 | wxPyEndAllowThreads(__tstate); | |
16257 | if (PyErr_Occurred()) SWIG_fail; | |
16258 | } | |
16259 | { | |
16260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16261 | } | |
16262 | return resultobj; | |
16263 | fail: | |
16264 | return NULL; | |
16265 | } | |
16266 | ||
16267 | ||
16268 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16269 | PyObject *resultobj; | |
16270 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16271 | int arg2 ; | |
16272 | wxDC *arg3 = 0 ; | |
16273 | int arg4 ; | |
16274 | int arg5 ; | |
16275 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
16276 | bool arg7 = (bool) (bool)False ; | |
16277 | bool result; | |
16278 | PyObject * obj0 = 0 ; | |
16279 | PyObject * obj1 = 0 ; | |
16280 | PyObject * obj2 = 0 ; | |
16281 | PyObject * obj3 = 0 ; | |
16282 | PyObject * obj4 = 0 ; | |
16283 | PyObject * obj5 = 0 ; | |
16284 | PyObject * obj6 = 0 ; | |
16285 | char *kwnames[] = { | |
16286 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
16287 | }; | |
16288 | ||
16289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
16290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16292 | arg2 = (int) SWIG_AsInt(obj1); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
16295 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16296 | SWIG_fail; | |
16297 | if (arg3 == NULL) { | |
16298 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16299 | SWIG_fail; | |
16300 | } | |
16301 | arg4 = (int) SWIG_AsInt(obj3); | |
16302 | if (PyErr_Occurred()) SWIG_fail; | |
16303 | arg5 = (int) SWIG_AsInt(obj4); | |
16304 | if (PyErr_Occurred()) SWIG_fail; | |
16305 | if (obj5) { | |
16306 | arg6 = (int) SWIG_AsInt(obj5); | |
16307 | if (PyErr_Occurred()) SWIG_fail; | |
16308 | } | |
16309 | if (obj6) { | |
16310 | arg7 = (bool const) SWIG_AsBool(obj6); | |
16311 | if (PyErr_Occurred()) SWIG_fail; | |
16312 | } | |
16313 | { | |
16314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16315 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
16316 | ||
16317 | wxPyEndAllowThreads(__tstate); | |
16318 | if (PyErr_Occurred()) SWIG_fail; | |
16319 | } | |
16320 | { | |
16321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16322 | } | |
16323 | return resultobj; | |
16324 | fail: | |
16325 | return NULL; | |
16326 | } | |
16327 | ||
16328 | ||
16329 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16330 | PyObject *resultobj; | |
16331 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16332 | int result; | |
16333 | PyObject * obj0 = 0 ; | |
16334 | char *kwnames[] = { | |
16335 | (char *) "self", NULL | |
16336 | }; | |
16337 | ||
16338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
16339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16341 | { | |
16342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16343 | result = (int)(arg1)->GetImageCount(); | |
16344 | ||
16345 | wxPyEndAllowThreads(__tstate); | |
16346 | if (PyErr_Occurred()) SWIG_fail; | |
16347 | } | |
16348 | resultobj = SWIG_FromInt((int)result); | |
16349 | return resultobj; | |
16350 | fail: | |
16351 | return NULL; | |
16352 | } | |
16353 | ||
16354 | ||
16355 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16356 | PyObject *resultobj; | |
16357 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16358 | int arg2 ; | |
16359 | bool result; | |
16360 | PyObject * obj0 = 0 ; | |
16361 | PyObject * obj1 = 0 ; | |
16362 | char *kwnames[] = { | |
16363 | (char *) "self",(char *) "index", NULL | |
16364 | }; | |
16365 | ||
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
16367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16369 | arg2 = (int) SWIG_AsInt(obj1); | |
16370 | if (PyErr_Occurred()) SWIG_fail; | |
16371 | { | |
16372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16373 | result = (bool)(arg1)->Remove(arg2); | |
16374 | ||
16375 | wxPyEndAllowThreads(__tstate); | |
16376 | if (PyErr_Occurred()) SWIG_fail; | |
16377 | } | |
16378 | { | |
16379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16380 | } | |
16381 | return resultobj; | |
16382 | fail: | |
16383 | return NULL; | |
16384 | } | |
16385 | ||
16386 | ||
16387 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16388 | PyObject *resultobj; | |
16389 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16390 | bool result; | |
16391 | PyObject * obj0 = 0 ; | |
16392 | char *kwnames[] = { | |
16393 | (char *) "self", NULL | |
16394 | }; | |
16395 | ||
16396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
16397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16399 | { | |
16400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16401 | result = (bool)(arg1)->RemoveAll(); | |
16402 | ||
16403 | wxPyEndAllowThreads(__tstate); | |
16404 | if (PyErr_Occurred()) SWIG_fail; | |
16405 | } | |
16406 | { | |
16407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16408 | } | |
16409 | return resultobj; | |
16410 | fail: | |
16411 | return NULL; | |
16412 | } | |
16413 | ||
16414 | ||
16415 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16416 | PyObject *resultobj; | |
16417 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16418 | int arg2 ; | |
16419 | int *arg3 = 0 ; | |
16420 | int *arg4 = 0 ; | |
16421 | int temp3 ; | |
16422 | int temp4 ; | |
16423 | PyObject * obj0 = 0 ; | |
16424 | PyObject * obj1 = 0 ; | |
16425 | char *kwnames[] = { | |
16426 | (char *) "self",(char *) "index", NULL | |
16427 | }; | |
16428 | ||
16429 | arg3 = &temp3; | |
16430 | arg4 = &temp4; | |
16431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
16432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16434 | arg2 = (int) SWIG_AsInt(obj1); | |
16435 | if (PyErr_Occurred()) SWIG_fail; | |
16436 | { | |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
16439 | ||
16440 | wxPyEndAllowThreads(__tstate); | |
16441 | if (PyErr_Occurred()) SWIG_fail; | |
16442 | } | |
16443 | Py_INCREF(Py_None); resultobj = Py_None; | |
16444 | { | |
16445 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16446 | resultobj = t_output_helper(resultobj,o); | |
16447 | } | |
16448 | { | |
16449 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
16450 | resultobj = t_output_helper(resultobj,o); | |
16451 | } | |
16452 | return resultobj; | |
16453 | fail: | |
16454 | return NULL; | |
16455 | } | |
16456 | ||
16457 | ||
16458 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
16459 | PyObject *obj; | |
16460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16461 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
16462 | Py_INCREF(obj); | |
16463 | return Py_BuildValue((char *)""); | |
16464 | } | |
16465 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
16466 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
16467 | return 1; | |
16468 | } | |
16469 | ||
16470 | ||
16471 | static PyObject *_wrap_NORMAL_FONT_get() { | |
16472 | PyObject *pyobj; | |
16473 | ||
16474 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); | |
16475 | return pyobj; | |
16476 | } | |
16477 | ||
16478 | ||
16479 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
16480 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
16481 | return 1; | |
16482 | } | |
16483 | ||
16484 | ||
16485 | static PyObject *_wrap_SMALL_FONT_get() { | |
16486 | PyObject *pyobj; | |
16487 | ||
16488 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); | |
16489 | return pyobj; | |
16490 | } | |
16491 | ||
16492 | ||
16493 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
16494 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
16495 | return 1; | |
16496 | } | |
16497 | ||
16498 | ||
16499 | static PyObject *_wrap_ITALIC_FONT_get() { | |
16500 | PyObject *pyobj; | |
16501 | ||
16502 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); | |
16503 | return pyobj; | |
16504 | } | |
16505 | ||
16506 | ||
16507 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
16508 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
16509 | return 1; | |
16510 | } | |
16511 | ||
16512 | ||
16513 | static PyObject *_wrap_SWISS_FONT_get() { | |
16514 | PyObject *pyobj; | |
16515 | ||
16516 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); | |
16517 | return pyobj; | |
16518 | } | |
16519 | ||
16520 | ||
16521 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
16522 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
16523 | return 1; | |
16524 | } | |
16525 | ||
16526 | ||
16527 | static PyObject *_wrap_RED_PEN_get() { | |
16528 | PyObject *pyobj; | |
16529 | ||
16530 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); | |
16531 | return pyobj; | |
16532 | } | |
16533 | ||
16534 | ||
16535 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
16536 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
16537 | return 1; | |
16538 | } | |
16539 | ||
16540 | ||
16541 | static PyObject *_wrap_CYAN_PEN_get() { | |
16542 | PyObject *pyobj; | |
16543 | ||
16544 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); | |
16545 | return pyobj; | |
16546 | } | |
16547 | ||
16548 | ||
16549 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
16550 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
16551 | return 1; | |
16552 | } | |
16553 | ||
16554 | ||
16555 | static PyObject *_wrap_GREEN_PEN_get() { | |
16556 | PyObject *pyobj; | |
16557 | ||
16558 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); | |
16559 | return pyobj; | |
16560 | } | |
16561 | ||
16562 | ||
16563 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
16564 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
16565 | return 1; | |
16566 | } | |
16567 | ||
16568 | ||
16569 | static PyObject *_wrap_BLACK_PEN_get() { | |
16570 | PyObject *pyobj; | |
16571 | ||
16572 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); | |
16573 | return pyobj; | |
16574 | } | |
16575 | ||
16576 | ||
16577 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
16578 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
16579 | return 1; | |
16580 | } | |
16581 | ||
16582 | ||
16583 | static PyObject *_wrap_WHITE_PEN_get() { | |
16584 | PyObject *pyobj; | |
16585 | ||
16586 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); | |
16587 | return pyobj; | |
16588 | } | |
16589 | ||
16590 | ||
16591 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
16592 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
16593 | return 1; | |
16594 | } | |
16595 | ||
16596 | ||
16597 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
16598 | PyObject *pyobj; | |
16599 | ||
16600 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); | |
16601 | return pyobj; | |
16602 | } | |
16603 | ||
16604 | ||
16605 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
16606 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
16607 | return 1; | |
16608 | } | |
16609 | ||
16610 | ||
16611 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
16612 | PyObject *pyobj; | |
16613 | ||
16614 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); | |
16615 | return pyobj; | |
16616 | } | |
16617 | ||
16618 | ||
16619 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
16620 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
16621 | return 1; | |
16622 | } | |
16623 | ||
16624 | ||
16625 | static PyObject *_wrap_GREY_PEN_get() { | |
16626 | PyObject *pyobj; | |
16627 | ||
16628 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); | |
16629 | return pyobj; | |
16630 | } | |
16631 | ||
16632 | ||
16633 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
16634 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
16635 | return 1; | |
16636 | } | |
16637 | ||
16638 | ||
16639 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
16640 | PyObject *pyobj; | |
16641 | ||
16642 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
16643 | return pyobj; | |
16644 | } | |
16645 | ||
16646 | ||
16647 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
16648 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
16649 | return 1; | |
16650 | } | |
16651 | ||
16652 | ||
16653 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
16654 | PyObject *pyobj; | |
16655 | ||
16656 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
16657 | return pyobj; | |
16658 | } | |
16659 | ||
16660 | ||
16661 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
16662 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
16663 | return 1; | |
16664 | } | |
16665 | ||
16666 | ||
16667 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
16668 | PyObject *pyobj; | |
16669 | ||
16670 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16671 | return pyobj; | |
16672 | } | |
16673 | ||
16674 | ||
16675 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
16676 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
16677 | return 1; | |
16678 | } | |
16679 | ||
16680 | ||
16681 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
16682 | PyObject *pyobj; | |
16683 | ||
16684 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16685 | return pyobj; | |
16686 | } | |
16687 | ||
16688 | ||
16689 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
16690 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
16691 | return 1; | |
16692 | } | |
16693 | ||
16694 | ||
16695 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
16696 | PyObject *pyobj; | |
16697 | ||
16698 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16699 | return pyobj; | |
16700 | } | |
16701 | ||
16702 | ||
16703 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
16704 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
16705 | return 1; | |
16706 | } | |
16707 | ||
16708 | ||
16709 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
16710 | PyObject *pyobj; | |
16711 | ||
16712 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16713 | return pyobj; | |
16714 | } | |
16715 | ||
16716 | ||
16717 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
16718 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
16719 | return 1; | |
16720 | } | |
16721 | ||
16722 | ||
16723 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
16724 | PyObject *pyobj; | |
16725 | ||
16726 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16727 | return pyobj; | |
16728 | } | |
16729 | ||
16730 | ||
16731 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
16732 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
16733 | return 1; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
16738 | PyObject *pyobj; | |
16739 | ||
16740 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16741 | return pyobj; | |
16742 | } | |
16743 | ||
16744 | ||
16745 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
16746 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
16747 | return 1; | |
16748 | } | |
16749 | ||
16750 | ||
16751 | static PyObject *_wrap_RED_BRUSH_get() { | |
16752 | PyObject *pyobj; | |
16753 | ||
16754 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16755 | return pyobj; | |
16756 | } | |
16757 | ||
16758 | ||
16759 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
16760 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
16761 | return 1; | |
16762 | } | |
16763 | ||
16764 | ||
16765 | static PyObject *_wrap_GREY_BRUSH_get() { | |
16766 | PyObject *pyobj; | |
16767 | ||
16768 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16769 | return pyobj; | |
16770 | } | |
16771 | ||
16772 | ||
16773 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
16774 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
16775 | return 1; | |
16776 | } | |
16777 | ||
16778 | ||
16779 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
16780 | PyObject *pyobj; | |
16781 | ||
16782 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16783 | return pyobj; | |
16784 | } | |
16785 | ||
16786 | ||
16787 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
16788 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
16789 | return 1; | |
16790 | } | |
16791 | ||
16792 | ||
16793 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
16794 | PyObject *pyobj; | |
16795 | ||
16796 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
16797 | return pyobj; | |
16798 | } | |
16799 | ||
16800 | ||
16801 | static int _wrap_BLACK_set(PyObject *_val) { | |
16802 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
16803 | return 1; | |
16804 | } | |
16805 | ||
16806 | ||
16807 | static PyObject *_wrap_BLACK_get() { | |
16808 | PyObject *pyobj; | |
16809 | ||
16810 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
16811 | return pyobj; | |
16812 | } | |
16813 | ||
16814 | ||
16815 | static int _wrap_WHITE_set(PyObject *_val) { | |
16816 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
16817 | return 1; | |
16818 | } | |
16819 | ||
16820 | ||
16821 | static PyObject *_wrap_WHITE_get() { | |
16822 | PyObject *pyobj; | |
16823 | ||
16824 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
16825 | return pyobj; | |
16826 | } | |
16827 | ||
16828 | ||
16829 | static int _wrap_RED_set(PyObject *_val) { | |
16830 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
16831 | return 1; | |
16832 | } | |
16833 | ||
16834 | ||
16835 | static PyObject *_wrap_RED_get() { | |
16836 | PyObject *pyobj; | |
16837 | ||
16838 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
16839 | return pyobj; | |
16840 | } | |
16841 | ||
16842 | ||
16843 | static int _wrap_BLUE_set(PyObject *_val) { | |
16844 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
16845 | return 1; | |
16846 | } | |
16847 | ||
16848 | ||
16849 | static PyObject *_wrap_BLUE_get() { | |
16850 | PyObject *pyobj; | |
16851 | ||
16852 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
16853 | return pyobj; | |
16854 | } | |
16855 | ||
16856 | ||
16857 | static int _wrap_GREEN_set(PyObject *_val) { | |
16858 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
16859 | return 1; | |
16860 | } | |
16861 | ||
16862 | ||
16863 | static PyObject *_wrap_GREEN_get() { | |
16864 | PyObject *pyobj; | |
16865 | ||
16866 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
16867 | return pyobj; | |
16868 | } | |
16869 | ||
16870 | ||
16871 | static int _wrap_CYAN_set(PyObject *_val) { | |
16872 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
16873 | return 1; | |
16874 | } | |
16875 | ||
16876 | ||
16877 | static PyObject *_wrap_CYAN_get() { | |
16878 | PyObject *pyobj; | |
16879 | ||
16880 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
16881 | return pyobj; | |
16882 | } | |
16883 | ||
16884 | ||
16885 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
16886 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
16887 | return 1; | |
16888 | } | |
16889 | ||
16890 | ||
16891 | static PyObject *_wrap_LIGHT_GREY_get() { | |
16892 | PyObject *pyobj; | |
16893 | ||
16894 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
16895 | return pyobj; | |
16896 | } | |
16897 | ||
16898 | ||
16899 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
16900 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
16901 | return 1; | |
16902 | } | |
16903 | ||
16904 | ||
16905 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
16906 | PyObject *pyobj; | |
16907 | ||
16908 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
16909 | return pyobj; | |
16910 | } | |
16911 | ||
16912 | ||
16913 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
16914 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
16915 | return 1; | |
16916 | } | |
16917 | ||
16918 | ||
16919 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
16920 | PyObject *pyobj; | |
16921 | ||
16922 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
16923 | return pyobj; | |
16924 | } | |
16925 | ||
16926 | ||
16927 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
16928 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
16929 | return 1; | |
16930 | } | |
16931 | ||
16932 | ||
16933 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
16934 | PyObject *pyobj; | |
16935 | ||
16936 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
16937 | return pyobj; | |
16938 | } | |
16939 | ||
16940 | ||
16941 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
16942 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
16943 | return 1; | |
16944 | } | |
16945 | ||
16946 | ||
16947 | static PyObject *_wrap_NullBitmap_get() { | |
16948 | PyObject *pyobj; | |
16949 | ||
16950 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
16951 | return pyobj; | |
16952 | } | |
16953 | ||
16954 | ||
16955 | static int _wrap_NullIcon_set(PyObject *_val) { | |
16956 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
16957 | return 1; | |
16958 | } | |
16959 | ||
16960 | ||
16961 | static PyObject *_wrap_NullIcon_get() { | |
16962 | PyObject *pyobj; | |
16963 | ||
16964 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
16965 | return pyobj; | |
16966 | } | |
16967 | ||
16968 | ||
16969 | static int _wrap_NullCursor_set(PyObject *_val) { | |
16970 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
16971 | return 1; | |
16972 | } | |
16973 | ||
16974 | ||
16975 | static PyObject *_wrap_NullCursor_get() { | |
16976 | PyObject *pyobj; | |
16977 | ||
16978 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
16979 | return pyobj; | |
16980 | } | |
16981 | ||
16982 | ||
16983 | static int _wrap_NullPen_set(PyObject *_val) { | |
16984 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
16985 | return 1; | |
16986 | } | |
16987 | ||
16988 | ||
16989 | static PyObject *_wrap_NullPen_get() { | |
16990 | PyObject *pyobj; | |
16991 | ||
16992 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
16993 | return pyobj; | |
16994 | } | |
16995 | ||
16996 | ||
16997 | static int _wrap_NullBrush_set(PyObject *_val) { | |
16998 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
16999 | return 1; | |
17000 | } | |
17001 | ||
17002 | ||
17003 | static PyObject *_wrap_NullBrush_get() { | |
17004 | PyObject *pyobj; | |
17005 | ||
17006 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
17007 | return pyobj; | |
17008 | } | |
17009 | ||
17010 | ||
17011 | static int _wrap_NullPalette_set(PyObject *_val) { | |
17012 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
17013 | return 1; | |
17014 | } | |
17015 | ||
17016 | ||
17017 | static PyObject *_wrap_NullPalette_get() { | |
17018 | PyObject *pyobj; | |
17019 | ||
17020 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
17021 | return pyobj; | |
17022 | } | |
17023 | ||
17024 | ||
17025 | static int _wrap_NullFont_set(PyObject *_val) { | |
17026 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
17027 | return 1; | |
17028 | } | |
17029 | ||
17030 | ||
17031 | static PyObject *_wrap_NullFont_get() { | |
17032 | PyObject *pyobj; | |
17033 | ||
17034 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
17035 | return pyobj; | |
17036 | } | |
17037 | ||
17038 | ||
17039 | static int _wrap_NullColour_set(PyObject *_val) { | |
17040 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
17041 | return 1; | |
17042 | } | |
17043 | ||
17044 | ||
17045 | static PyObject *_wrap_NullColour_get() { | |
17046 | PyObject *pyobj; | |
17047 | ||
17048 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
17049 | return pyobj; | |
17050 | } | |
17051 | ||
17052 | ||
17053 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17054 | PyObject *resultobj; | |
17055 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17056 | wxPen *arg2 = (wxPen *) 0 ; | |
17057 | PyObject * obj0 = 0 ; | |
17058 | PyObject * obj1 = 0 ; | |
17059 | char *kwnames[] = { | |
17060 | (char *) "self",(char *) "pen", NULL | |
17061 | }; | |
17062 | ||
17063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
17064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17068 | { | |
17069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17070 | (arg1)->AddPen(arg2); | |
17071 | ||
17072 | wxPyEndAllowThreads(__tstate); | |
17073 | if (PyErr_Occurred()) SWIG_fail; | |
17074 | } | |
17075 | Py_INCREF(Py_None); resultobj = Py_None; | |
17076 | return resultobj; | |
17077 | fail: | |
17078 | return NULL; | |
17079 | } | |
17080 | ||
17081 | ||
17082 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17083 | PyObject *resultobj; | |
17084 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17085 | wxColour *arg2 = 0 ; | |
17086 | int arg3 ; | |
17087 | int arg4 ; | |
17088 | wxPen *result; | |
17089 | wxColour temp2 ; | |
17090 | PyObject * obj0 = 0 ; | |
17091 | PyObject * obj1 = 0 ; | |
17092 | PyObject * obj2 = 0 ; | |
17093 | PyObject * obj3 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17096 | }; | |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17101 | { | |
17102 | arg2 = &temp2; | |
17103 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17104 | } | |
17105 | arg3 = (int) SWIG_AsInt(obj2); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | arg4 = (int) SWIG_AsInt(obj3); | |
17108 | if (PyErr_Occurred()) SWIG_fail; | |
17109 | { | |
17110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17111 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17112 | ||
17113 | wxPyEndAllowThreads(__tstate); | |
17114 | if (PyErr_Occurred()) SWIG_fail; | |
17115 | } | |
17116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
17117 | return resultobj; | |
17118 | fail: | |
17119 | return NULL; | |
17120 | } | |
17121 | ||
17122 | ||
17123 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17124 | PyObject *resultobj; | |
17125 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17126 | wxPen *arg2 = (wxPen *) 0 ; | |
17127 | PyObject * obj0 = 0 ; | |
17128 | PyObject * obj1 = 0 ; | |
17129 | char *kwnames[] = { | |
17130 | (char *) "self",(char *) "pen", NULL | |
17131 | }; | |
17132 | ||
17133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
17134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17136 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17138 | { | |
17139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17140 | (arg1)->RemovePen(arg2); | |
17141 | ||
17142 | wxPyEndAllowThreads(__tstate); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
17145 | Py_INCREF(Py_None); resultobj = Py_None; | |
17146 | return resultobj; | |
17147 | fail: | |
17148 | return NULL; | |
17149 | } | |
17150 | ||
17151 | ||
17152 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17153 | PyObject *resultobj; | |
17154 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17155 | int result; | |
17156 | PyObject * obj0 = 0 ; | |
17157 | char *kwnames[] = { | |
17158 | (char *) "self", NULL | |
17159 | }; | |
17160 | ||
17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
17162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17164 | { | |
17165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17166 | result = (int)(arg1)->GetCount(); | |
17167 | ||
17168 | wxPyEndAllowThreads(__tstate); | |
17169 | if (PyErr_Occurred()) SWIG_fail; | |
17170 | } | |
17171 | resultobj = SWIG_FromInt((int)result); | |
17172 | return resultobj; | |
17173 | fail: | |
17174 | return NULL; | |
17175 | } | |
17176 | ||
17177 | ||
17178 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
17179 | PyObject *obj; | |
17180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17181 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17182 | Py_INCREF(obj); | |
17183 | return Py_BuildValue((char *)""); | |
17184 | } | |
17185 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17186 | PyObject *resultobj; | |
17187 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17188 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | PyObject * obj1 = 0 ; | |
17191 | char *kwnames[] = { | |
17192 | (char *) "self",(char *) "brush", NULL | |
17193 | }; | |
17194 | ||
17195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
17196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | (arg1)->AddBrush(arg2); | |
17203 | ||
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | Py_INCREF(Py_None); resultobj = Py_None; | |
17208 | return resultobj; | |
17209 | fail: | |
17210 | return NULL; | |
17211 | } | |
17212 | ||
17213 | ||
17214 | static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17215 | PyObject *resultobj; | |
17216 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17217 | wxColour *arg2 = 0 ; | |
17218 | int arg3 ; | |
17219 | wxBrush *result; | |
17220 | wxColour temp2 ; | |
17221 | PyObject * obj0 = 0 ; | |
17222 | PyObject * obj1 = 0 ; | |
17223 | PyObject * obj2 = 0 ; | |
17224 | char *kwnames[] = { | |
17225 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
17226 | }; | |
17227 | ||
17228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17231 | { | |
17232 | arg2 = &temp2; | |
17233 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17234 | } | |
17235 | arg3 = (int) SWIG_AsInt(obj2); | |
17236 | if (PyErr_Occurred()) SWIG_fail; | |
17237 | { | |
17238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17239 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
17240 | ||
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
17244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
17245 | return resultobj; | |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
17251 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17252 | PyObject *resultobj; | |
17253 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17254 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17255 | PyObject * obj0 = 0 ; | |
17256 | PyObject * obj1 = 0 ; | |
17257 | char *kwnames[] = { | |
17258 | (char *) "self",(char *) "brush", NULL | |
17259 | }; | |
17260 | ||
17261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
17262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17266 | { | |
17267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17268 | (arg1)->RemoveBrush(arg2); | |
17269 | ||
17270 | wxPyEndAllowThreads(__tstate); | |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
17272 | } | |
17273 | Py_INCREF(Py_None); resultobj = Py_None; | |
17274 | return resultobj; | |
17275 | fail: | |
17276 | return NULL; | |
17277 | } | |
17278 | ||
17279 | ||
17280 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17281 | PyObject *resultobj; | |
17282 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17283 | int result; | |
17284 | PyObject * obj0 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "self", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
17290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17292 | { | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | result = (int)(arg1)->GetCount(); | |
17295 | ||
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | resultobj = SWIG_FromInt((int)result); | |
17300 | return resultobj; | |
17301 | fail: | |
17302 | return NULL; | |
17303 | } | |
17304 | ||
17305 | ||
17306 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
17307 | PyObject *obj; | |
17308 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17309 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
17310 | Py_INCREF(obj); | |
17311 | return Py_BuildValue((char *)""); | |
17312 | } | |
17313 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17314 | PyObject *resultobj; | |
17315 | wxColourDatabase *result; | |
17316 | char *kwnames[] = { | |
17317 | NULL | |
17318 | }; | |
17319 | ||
17320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
17321 | { | |
17322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17323 | result = (wxColourDatabase *)new wxColourDatabase(); | |
17324 | ||
17325 | wxPyEndAllowThreads(__tstate); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
17328 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
17329 | return resultobj; | |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
17335 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17336 | PyObject *resultobj; | |
17337 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17338 | PyObject * obj0 = 0 ; | |
17339 | char *kwnames[] = { | |
17340 | (char *) "self", NULL | |
17341 | }; | |
17342 | ||
17343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
17344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17346 | { | |
17347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17348 | delete arg1; | |
17349 | ||
17350 | wxPyEndAllowThreads(__tstate); | |
17351 | if (PyErr_Occurred()) SWIG_fail; | |
17352 | } | |
17353 | Py_INCREF(Py_None); resultobj = Py_None; | |
17354 | return resultobj; | |
17355 | fail: | |
17356 | return NULL; | |
17357 | } | |
17358 | ||
17359 | ||
17360 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17361 | PyObject *resultobj; | |
17362 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17363 | wxString *arg2 = 0 ; | |
17364 | wxColour result; | |
17365 | bool temp2 = False ; | |
17366 | PyObject * obj0 = 0 ; | |
17367 | PyObject * obj1 = 0 ; | |
17368 | char *kwnames[] = { | |
17369 | (char *) "self",(char *) "name", NULL | |
17370 | }; | |
17371 | ||
17372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
17373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17375 | { | |
17376 | arg2 = wxString_in_helper(obj1); | |
17377 | if (arg2 == NULL) SWIG_fail; | |
17378 | temp2 = True; | |
17379 | } | |
17380 | { | |
17381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17382 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
17383 | ||
17384 | wxPyEndAllowThreads(__tstate); | |
17385 | if (PyErr_Occurred()) SWIG_fail; | |
17386 | } | |
17387 | { | |
17388 | wxColour * resultptr; | |
17389 | resultptr = new wxColour((wxColour &) result); | |
17390 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17391 | } | |
17392 | { | |
17393 | if (temp2) | |
17394 | delete arg2; | |
17395 | } | |
17396 | return resultobj; | |
17397 | fail: | |
17398 | { | |
17399 | if (temp2) | |
17400 | delete arg2; | |
17401 | } | |
17402 | return NULL; | |
17403 | } | |
17404 | ||
17405 | ||
17406 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17407 | PyObject *resultobj; | |
17408 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17409 | wxColour *arg2 = 0 ; | |
17410 | wxString result; | |
17411 | wxColour temp2 ; | |
17412 | PyObject * obj0 = 0 ; | |
17413 | PyObject * obj1 = 0 ; | |
17414 | char *kwnames[] = { | |
17415 | (char *) "self",(char *) "colour", NULL | |
17416 | }; | |
17417 | ||
17418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
17419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17421 | { | |
17422 | arg2 = &temp2; | |
17423 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17424 | } | |
17425 | { | |
17426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17427 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
17428 | ||
17429 | wxPyEndAllowThreads(__tstate); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | } | |
17432 | { | |
17433 | #if wxUSE_UNICODE | |
17434 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17435 | #else | |
17436 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17437 | #endif | |
17438 | } | |
17439 | return resultobj; | |
17440 | fail: | |
17441 | return NULL; | |
17442 | } | |
17443 | ||
17444 | ||
17445 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17446 | PyObject *resultobj; | |
17447 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17448 | wxString *arg2 = 0 ; | |
17449 | wxColour *arg3 = 0 ; | |
17450 | bool temp2 = False ; | |
17451 | wxColour temp3 ; | |
17452 | PyObject * obj0 = 0 ; | |
17453 | PyObject * obj1 = 0 ; | |
17454 | PyObject * obj2 = 0 ; | |
17455 | char *kwnames[] = { | |
17456 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
17457 | }; | |
17458 | ||
17459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17462 | { | |
17463 | arg2 = wxString_in_helper(obj1); | |
17464 | if (arg2 == NULL) SWIG_fail; | |
17465 | temp2 = True; | |
17466 | } | |
17467 | { | |
17468 | arg3 = &temp3; | |
17469 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17470 | } | |
17471 | { | |
17472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17473 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
17474 | ||
17475 | wxPyEndAllowThreads(__tstate); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
17478 | Py_INCREF(Py_None); resultobj = Py_None; | |
17479 | { | |
17480 | if (temp2) | |
17481 | delete arg2; | |
17482 | } | |
17483 | return resultobj; | |
17484 | fail: | |
17485 | { | |
17486 | if (temp2) | |
17487 | delete arg2; | |
17488 | } | |
17489 | return NULL; | |
17490 | } | |
17491 | ||
17492 | ||
17493 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17494 | PyObject *resultobj; | |
17495 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
17496 | wxString *arg2 = 0 ; | |
17497 | int arg3 ; | |
17498 | int arg4 ; | |
17499 | int arg5 ; | |
17500 | bool temp2 = False ; | |
17501 | PyObject * obj0 = 0 ; | |
17502 | PyObject * obj1 = 0 ; | |
17503 | PyObject * obj2 = 0 ; | |
17504 | PyObject * obj3 = 0 ; | |
17505 | PyObject * obj4 = 0 ; | |
17506 | char *kwnames[] = { | |
17507 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
17508 | }; | |
17509 | ||
17510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
17512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17513 | { | |
17514 | arg2 = wxString_in_helper(obj1); | |
17515 | if (arg2 == NULL) SWIG_fail; | |
17516 | temp2 = True; | |
17517 | } | |
17518 | arg3 = (int) SWIG_AsInt(obj2); | |
17519 | if (PyErr_Occurred()) SWIG_fail; | |
17520 | arg4 = (int) SWIG_AsInt(obj3); | |
17521 | if (PyErr_Occurred()) SWIG_fail; | |
17522 | arg5 = (int) SWIG_AsInt(obj4); | |
17523 | if (PyErr_Occurred()) SWIG_fail; | |
17524 | { | |
17525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17526 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
17527 | ||
17528 | wxPyEndAllowThreads(__tstate); | |
17529 | if (PyErr_Occurred()) SWIG_fail; | |
17530 | } | |
17531 | Py_INCREF(Py_None); resultobj = Py_None; | |
17532 | { | |
17533 | if (temp2) | |
17534 | delete arg2; | |
17535 | } | |
17536 | return resultobj; | |
17537 | fail: | |
17538 | { | |
17539 | if (temp2) | |
17540 | delete arg2; | |
17541 | } | |
17542 | return NULL; | |
17543 | } | |
17544 | ||
17545 | ||
17546 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
17547 | PyObject *obj; | |
17548 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17549 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
17550 | Py_INCREF(obj); | |
17551 | return Py_BuildValue((char *)""); | |
17552 | } | |
17553 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17554 | PyObject *resultobj; | |
17555 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17556 | wxFont *arg2 = (wxFont *) 0 ; | |
17557 | PyObject * obj0 = 0 ; | |
17558 | PyObject * obj1 = 0 ; | |
17559 | char *kwnames[] = { | |
17560 | (char *) "self",(char *) "font", NULL | |
17561 | }; | |
17562 | ||
17563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
17564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17568 | { | |
17569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17570 | (arg1)->AddFont(arg2); | |
17571 | ||
17572 | wxPyEndAllowThreads(__tstate); | |
17573 | if (PyErr_Occurred()) SWIG_fail; | |
17574 | } | |
17575 | Py_INCREF(Py_None); resultobj = Py_None; | |
17576 | return resultobj; | |
17577 | fail: | |
17578 | return NULL; | |
17579 | } | |
17580 | ||
17581 | ||
17582 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17583 | PyObject *resultobj; | |
17584 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17585 | int arg2 ; | |
17586 | int arg3 ; | |
17587 | int arg4 ; | |
17588 | int arg5 ; | |
17589 | bool arg6 = (bool) False ; | |
17590 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
17591 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17592 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
17593 | wxFont *result; | |
17594 | bool temp7 = False ; | |
17595 | PyObject * obj0 = 0 ; | |
17596 | PyObject * obj1 = 0 ; | |
17597 | PyObject * obj2 = 0 ; | |
17598 | PyObject * obj3 = 0 ; | |
17599 | PyObject * obj4 = 0 ; | |
17600 | PyObject * obj5 = 0 ; | |
17601 | PyObject * obj6 = 0 ; | |
17602 | PyObject * obj7 = 0 ; | |
17603 | char *kwnames[] = { | |
17604 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
17605 | }; | |
17606 | ||
17607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
17608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17610 | arg2 = (int) SWIG_AsInt(obj1); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | arg3 = (int) SWIG_AsInt(obj2); | |
17613 | if (PyErr_Occurred()) SWIG_fail; | |
17614 | arg4 = (int) SWIG_AsInt(obj3); | |
17615 | if (PyErr_Occurred()) SWIG_fail; | |
17616 | arg5 = (int) SWIG_AsInt(obj4); | |
17617 | if (PyErr_Occurred()) SWIG_fail; | |
17618 | if (obj5) { | |
17619 | arg6 = (bool) SWIG_AsBool(obj5); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
17622 | if (obj6) { | |
17623 | { | |
17624 | arg7 = wxString_in_helper(obj6); | |
17625 | if (arg7 == NULL) SWIG_fail; | |
17626 | temp7 = True; | |
17627 | } | |
17628 | } | |
17629 | if (obj7) { | |
17630 | arg8 = (wxFontEncoding) SWIG_AsInt(obj7); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | } | |
17633 | { | |
17634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17635 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
17636 | ||
17637 | wxPyEndAllowThreads(__tstate); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | } | |
17640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
17641 | { | |
17642 | if (temp7) | |
17643 | delete arg7; | |
17644 | } | |
17645 | return resultobj; | |
17646 | fail: | |
17647 | { | |
17648 | if (temp7) | |
17649 | delete arg7; | |
17650 | } | |
17651 | return NULL; | |
17652 | } | |
17653 | ||
17654 | ||
17655 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17656 | PyObject *resultobj; | |
17657 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17658 | wxFont *arg2 = (wxFont *) 0 ; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | PyObject * obj1 = 0 ; | |
17661 | char *kwnames[] = { | |
17662 | (char *) "self",(char *) "font", NULL | |
17663 | }; | |
17664 | ||
17665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
17666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17670 | { | |
17671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17672 | (arg1)->RemoveFont(arg2); | |
17673 | ||
17674 | wxPyEndAllowThreads(__tstate); | |
17675 | if (PyErr_Occurred()) SWIG_fail; | |
17676 | } | |
17677 | Py_INCREF(Py_None); resultobj = Py_None; | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
17684 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17685 | PyObject *resultobj; | |
17686 | wxFontList *arg1 = (wxFontList *) 0 ; | |
17687 | int result; | |
17688 | PyObject * obj0 = 0 ; | |
17689 | char *kwnames[] = { | |
17690 | (char *) "self", NULL | |
17691 | }; | |
17692 | ||
17693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
17694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
17695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17696 | { | |
17697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17698 | result = (int)(arg1)->GetCount(); | |
17699 | ||
17700 | wxPyEndAllowThreads(__tstate); | |
17701 | if (PyErr_Occurred()) SWIG_fail; | |
17702 | } | |
17703 | resultobj = SWIG_FromInt((int)result); | |
17704 | return resultobj; | |
17705 | fail: | |
17706 | return NULL; | |
17707 | } | |
17708 | ||
17709 | ||
17710 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
17711 | PyObject *obj; | |
17712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17713 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
17714 | Py_INCREF(obj); | |
17715 | return Py_BuildValue((char *)""); | |
17716 | } | |
17717 | static int _wrap_TheFontList_set(PyObject *_val) { | |
17718 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
17719 | return 1; | |
17720 | } | |
17721 | ||
17722 | ||
17723 | static PyObject *_wrap_TheFontList_get() { | |
17724 | PyObject *pyobj; | |
17725 | ||
17726 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
17727 | return pyobj; | |
17728 | } | |
17729 | ||
17730 | ||
17731 | static int _wrap_ThePenList_set(PyObject *_val) { | |
17732 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
17733 | return 1; | |
17734 | } | |
17735 | ||
17736 | ||
17737 | static PyObject *_wrap_ThePenList_get() { | |
17738 | PyObject *pyobj; | |
17739 | ||
17740 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
17741 | return pyobj; | |
17742 | } | |
17743 | ||
17744 | ||
17745 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
17746 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
17747 | return 1; | |
17748 | } | |
17749 | ||
17750 | ||
17751 | static PyObject *_wrap_TheBrushList_get() { | |
17752 | PyObject *pyobj; | |
17753 | ||
17754 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
17755 | return pyobj; | |
17756 | } | |
17757 | ||
17758 | ||
17759 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
17760 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
17761 | return 1; | |
17762 | } | |
17763 | ||
17764 | ||
17765 | static PyObject *_wrap_TheColourDatabase_get() { | |
17766 | PyObject *pyobj; | |
17767 | ||
17768 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
17769 | return pyobj; | |
17770 | } | |
17771 | ||
17772 | ||
17773 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17774 | PyObject *resultobj; | |
17775 | wxEffects *result; | |
17776 | char *kwnames[] = { | |
17777 | NULL | |
17778 | }; | |
17779 | ||
17780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
17781 | { | |
17782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17783 | result = (wxEffects *)new wxEffects(); | |
17784 | ||
17785 | wxPyEndAllowThreads(__tstate); | |
17786 | if (PyErr_Occurred()) SWIG_fail; | |
17787 | } | |
17788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
17789 | return resultobj; | |
17790 | fail: | |
17791 | return NULL; | |
17792 | } | |
17793 | ||
17794 | ||
17795 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17796 | PyObject *resultobj; | |
17797 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17798 | wxColour result; | |
17799 | PyObject * obj0 = 0 ; | |
17800 | char *kwnames[] = { | |
17801 | (char *) "self", NULL | |
17802 | }; | |
17803 | ||
17804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
17805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
17806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17807 | { | |
17808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17809 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
17810 | ||
17811 | wxPyEndAllowThreads(__tstate); | |
17812 | if (PyErr_Occurred()) SWIG_fail; | |
17813 | } | |
17814 | { | |
17815 | wxColour * resultptr; | |
17816 | resultptr = new wxColour((wxColour &) result); | |
17817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17818 | } | |
17819 | return resultobj; | |
17820 | fail: | |
17821 | return NULL; | |
17822 | } | |
17823 | ||
17824 | ||
17825 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17826 | PyObject *resultobj; | |
17827 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17828 | wxColour result; | |
17829 | PyObject * obj0 = 0 ; | |
17830 | char *kwnames[] = { | |
17831 | (char *) "self", NULL | |
17832 | }; | |
17833 | ||
17834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
17835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
17836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17837 | { | |
17838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17839 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
17840 | ||
17841 | wxPyEndAllowThreads(__tstate); | |
17842 | if (PyErr_Occurred()) SWIG_fail; | |
17843 | } | |
17844 | { | |
17845 | wxColour * resultptr; | |
17846 | resultptr = new wxColour((wxColour &) result); | |
17847 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17848 | } | |
17849 | return resultobj; | |
17850 | fail: | |
17851 | return NULL; | |
17852 | } | |
17853 | ||
17854 | ||
17855 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17856 | PyObject *resultobj; | |
17857 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17858 | wxColour result; | |
17859 | PyObject * obj0 = 0 ; | |
17860 | char *kwnames[] = { | |
17861 | (char *) "self", NULL | |
17862 | }; | |
17863 | ||
17864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
17865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
17866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17867 | { | |
17868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17869 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
17870 | ||
17871 | wxPyEndAllowThreads(__tstate); | |
17872 | if (PyErr_Occurred()) SWIG_fail; | |
17873 | } | |
17874 | { | |
17875 | wxColour * resultptr; | |
17876 | resultptr = new wxColour((wxColour &) result); | |
17877 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17878 | } | |
17879 | return resultobj; | |
17880 | fail: | |
17881 | return NULL; | |
17882 | } | |
17883 | ||
17884 | ||
17885 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17886 | PyObject *resultobj; | |
17887 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17888 | wxColour result; | |
17889 | PyObject * obj0 = 0 ; | |
17890 | char *kwnames[] = { | |
17891 | (char *) "self", NULL | |
17892 | }; | |
17893 | ||
17894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
17895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
17896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17897 | { | |
17898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17899 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
17900 | ||
17901 | wxPyEndAllowThreads(__tstate); | |
17902 | if (PyErr_Occurred()) SWIG_fail; | |
17903 | } | |
17904 | { | |
17905 | wxColour * resultptr; | |
17906 | resultptr = new wxColour((wxColour &) result); | |
17907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17908 | } | |
17909 | return resultobj; | |
17910 | fail: | |
17911 | return NULL; | |
17912 | } | |
17913 | ||
17914 | ||
17915 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17916 | PyObject *resultobj; | |
17917 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17918 | wxColour result; | |
17919 | PyObject * obj0 = 0 ; | |
17920 | char *kwnames[] = { | |
17921 | (char *) "self", NULL | |
17922 | }; | |
17923 | ||
17924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
17925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
17926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17927 | { | |
17928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17929 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
17930 | ||
17931 | wxPyEndAllowThreads(__tstate); | |
17932 | if (PyErr_Occurred()) SWIG_fail; | |
17933 | } | |
17934 | { | |
17935 | wxColour * resultptr; | |
17936 | resultptr = new wxColour((wxColour &) result); | |
17937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
17938 | } | |
17939 | return resultobj; | |
17940 | fail: | |
17941 | return NULL; | |
17942 | } | |
17943 | ||
17944 | ||
17945 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17946 | PyObject *resultobj; | |
17947 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17948 | wxColour *arg2 = 0 ; | |
17949 | wxColour temp2 ; | |
17950 | PyObject * obj0 = 0 ; | |
17951 | PyObject * obj1 = 0 ; | |
17952 | char *kwnames[] = { | |
17953 | (char *) "self",(char *) "c", NULL | |
17954 | }; | |
17955 | ||
17956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
17957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
17958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17959 | { | |
17960 | arg2 = &temp2; | |
17961 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17962 | } | |
17963 | { | |
17964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17965 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
17966 | ||
17967 | wxPyEndAllowThreads(__tstate); | |
17968 | if (PyErr_Occurred()) SWIG_fail; | |
17969 | } | |
17970 | Py_INCREF(Py_None); resultobj = Py_None; | |
17971 | return resultobj; | |
17972 | fail: | |
17973 | return NULL; | |
17974 | } | |
17975 | ||
17976 | ||
17977 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17978 | PyObject *resultobj; | |
17979 | wxEffects *arg1 = (wxEffects *) 0 ; | |
17980 | wxColour *arg2 = 0 ; | |
17981 | wxColour temp2 ; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | PyObject * obj1 = 0 ; | |
17984 | char *kwnames[] = { | |
17985 | (char *) "self",(char *) "c", NULL | |
17986 | }; | |
17987 | ||
17988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
17989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
17990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17991 | { | |
17992 | arg2 = &temp2; | |
17993 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17994 | } | |
17995 | { | |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
17998 | ||
17999 | wxPyEndAllowThreads(__tstate); | |
18000 | if (PyErr_Occurred()) SWIG_fail; | |
18001 | } | |
18002 | Py_INCREF(Py_None); resultobj = Py_None; | |
18003 | return resultobj; | |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18012 | wxColour *arg2 = 0 ; | |
18013 | wxColour temp2 ; | |
18014 | PyObject * obj0 = 0 ; | |
18015 | PyObject * obj1 = 0 ; | |
18016 | char *kwnames[] = { | |
18017 | (char *) "self",(char *) "c", NULL | |
18018 | }; | |
18019 | ||
18020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
18021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18023 | { | |
18024 | arg2 = &temp2; | |
18025 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18026 | } | |
18027 | { | |
18028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18029 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18030 | ||
18031 | wxPyEndAllowThreads(__tstate); | |
18032 | if (PyErr_Occurred()) SWIG_fail; | |
18033 | } | |
18034 | Py_INCREF(Py_None); resultobj = Py_None; | |
18035 | return resultobj; | |
18036 | fail: | |
18037 | return NULL; | |
18038 | } | |
18039 | ||
18040 | ||
18041 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18042 | PyObject *resultobj; | |
18043 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18044 | wxColour *arg2 = 0 ; | |
18045 | wxColour temp2 ; | |
18046 | PyObject * obj0 = 0 ; | |
18047 | PyObject * obj1 = 0 ; | |
18048 | char *kwnames[] = { | |
18049 | (char *) "self",(char *) "c", NULL | |
18050 | }; | |
18051 | ||
18052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
18053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18055 | { | |
18056 | arg2 = &temp2; | |
18057 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18058 | } | |
18059 | { | |
18060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18061 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18062 | ||
18063 | wxPyEndAllowThreads(__tstate); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
18065 | } | |
18066 | Py_INCREF(Py_None); resultobj = Py_None; | |
18067 | return resultobj; | |
18068 | fail: | |
18069 | return NULL; | |
18070 | } | |
18071 | ||
18072 | ||
18073 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18074 | PyObject *resultobj; | |
18075 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18076 | wxColour *arg2 = 0 ; | |
18077 | wxColour temp2 ; | |
18078 | PyObject * obj0 = 0 ; | |
18079 | PyObject * obj1 = 0 ; | |
18080 | char *kwnames[] = { | |
18081 | (char *) "self",(char *) "c", NULL | |
18082 | }; | |
18083 | ||
18084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
18085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18087 | { | |
18088 | arg2 = &temp2; | |
18089 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18090 | } | |
18091 | { | |
18092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18093 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18094 | ||
18095 | wxPyEndAllowThreads(__tstate); | |
18096 | if (PyErr_Occurred()) SWIG_fail; | |
18097 | } | |
18098 | Py_INCREF(Py_None); resultobj = Py_None; | |
18099 | return resultobj; | |
18100 | fail: | |
18101 | return NULL; | |
18102 | } | |
18103 | ||
18104 | ||
18105 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18106 | PyObject *resultobj; | |
18107 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18108 | wxColour *arg2 = 0 ; | |
18109 | wxColour *arg3 = 0 ; | |
18110 | wxColour *arg4 = 0 ; | |
18111 | wxColour *arg5 = 0 ; | |
18112 | wxColour *arg6 = 0 ; | |
18113 | wxColour temp2 ; | |
18114 | wxColour temp3 ; | |
18115 | wxColour temp4 ; | |
18116 | wxColour temp5 ; | |
18117 | wxColour temp6 ; | |
18118 | PyObject * obj0 = 0 ; | |
18119 | PyObject * obj1 = 0 ; | |
18120 | PyObject * obj2 = 0 ; | |
18121 | PyObject * obj3 = 0 ; | |
18122 | PyObject * obj4 = 0 ; | |
18123 | PyObject * obj5 = 0 ; | |
18124 | char *kwnames[] = { | |
18125 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18126 | }; | |
18127 | ||
18128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18131 | { | |
18132 | arg2 = &temp2; | |
18133 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18134 | } | |
18135 | { | |
18136 | arg3 = &temp3; | |
18137 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18138 | } | |
18139 | { | |
18140 | arg4 = &temp4; | |
18141 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18142 | } | |
18143 | { | |
18144 | arg5 = &temp5; | |
18145 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18146 | } | |
18147 | { | |
18148 | arg6 = &temp6; | |
18149 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18150 | } | |
18151 | { | |
18152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18153 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18154 | ||
18155 | wxPyEndAllowThreads(__tstate); | |
18156 | if (PyErr_Occurred()) SWIG_fail; | |
18157 | } | |
18158 | Py_INCREF(Py_None); resultobj = Py_None; | |
18159 | return resultobj; | |
18160 | fail: | |
18161 | return NULL; | |
18162 | } | |
18163 | ||
18164 | ||
18165 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18166 | PyObject *resultobj; | |
18167 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18168 | wxDC *arg2 = 0 ; | |
18169 | wxRect *arg3 = 0 ; | |
18170 | int arg4 = (int) 1 ; | |
18171 | wxRect temp3 ; | |
18172 | PyObject * obj0 = 0 ; | |
18173 | PyObject * obj1 = 0 ; | |
18174 | PyObject * obj2 = 0 ; | |
18175 | PyObject * obj3 = 0 ; | |
18176 | char *kwnames[] = { | |
18177 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18178 | }; | |
18179 | ||
18180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18185 | SWIG_fail; | |
18186 | if (arg2 == NULL) { | |
18187 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18188 | SWIG_fail; | |
18189 | } | |
18190 | { | |
18191 | arg3 = &temp3; | |
18192 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18193 | } | |
18194 | if (obj3) { | |
18195 | arg4 = (int) SWIG_AsInt(obj3); | |
18196 | if (PyErr_Occurred()) SWIG_fail; | |
18197 | } | |
18198 | { | |
18199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18200 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18201 | ||
18202 | wxPyEndAllowThreads(__tstate); | |
18203 | if (PyErr_Occurred()) SWIG_fail; | |
18204 | } | |
18205 | Py_INCREF(Py_None); resultobj = Py_None; | |
18206 | return resultobj; | |
18207 | fail: | |
18208 | return NULL; | |
18209 | } | |
18210 | ||
18211 | ||
18212 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18213 | PyObject *resultobj; | |
18214 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18215 | wxRect *arg2 = 0 ; | |
18216 | wxDC *arg3 = 0 ; | |
18217 | wxBitmap *arg4 = 0 ; | |
18218 | bool result; | |
18219 | wxRect temp2 ; | |
18220 | PyObject * obj0 = 0 ; | |
18221 | PyObject * obj1 = 0 ; | |
18222 | PyObject * obj2 = 0 ; | |
18223 | PyObject * obj3 = 0 ; | |
18224 | char *kwnames[] = { | |
18225 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
18226 | }; | |
18227 | ||
18228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18231 | { | |
18232 | arg2 = &temp2; | |
18233 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18234 | } | |
18235 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
18236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18237 | SWIG_fail; | |
18238 | if (arg3 == NULL) { | |
18239 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18240 | SWIG_fail; | |
18241 | } | |
18242 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
18243 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18244 | SWIG_fail; | |
18245 | if (arg4 == NULL) { | |
18246 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18247 | SWIG_fail; | |
18248 | } | |
18249 | { | |
18250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18251 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
18252 | ||
18253 | wxPyEndAllowThreads(__tstate); | |
18254 | if (PyErr_Occurred()) SWIG_fail; | |
18255 | } | |
18256 | { | |
18257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18258 | } | |
18259 | return resultobj; | |
18260 | fail: | |
18261 | return NULL; | |
18262 | } | |
18263 | ||
18264 | ||
18265 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
18266 | PyObject *obj; | |
18267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18268 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
18269 | Py_INCREF(obj); | |
18270 | return Py_BuildValue((char *)""); | |
18271 | } | |
18272 | static PyMethodDef SwigMethods[] = { | |
18273 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18274 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
18275 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18276 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
18277 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
18278 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
18279 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
18280 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
18281 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
18282 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
18283 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
18284 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
18285 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
18286 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18287 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
18288 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
18289 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, | |
18290 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18291 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
18292 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18293 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
18294 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
18295 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
18296 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18297 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
18298 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
18299 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
18300 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18301 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
18302 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18303 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
18304 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
18305 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18306 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18307 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18308 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18309 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18310 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
18311 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18312 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
18313 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18314 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18315 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
18316 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18317 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18318 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
18319 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18320 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, | |
d55e5bfc RD |
18321 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, |
18322 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
18323 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
18324 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18325 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18326 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
18327 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18328 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
18329 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18330 | { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS }, | |
18331 | { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS }, | |
18332 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
18333 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
18334 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18335 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18336 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
18337 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
18338 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18339 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
18340 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, |
18341 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18342 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18343 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18344 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18345 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
18346 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
18347 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
18348 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
18349 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18350 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
18351 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
18352 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18353 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18354 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18355 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18356 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
18357 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, | |
18358 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18359 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
18360 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
18361 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
18362 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18363 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
18364 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
18365 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
18366 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18367 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
18368 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18369 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18370 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18371 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18372 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18373 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18374 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18375 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18376 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
18377 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18378 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
18379 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18380 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18381 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
18382 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18383 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
18384 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
18385 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18386 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18387 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
18388 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
18389 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18390 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
18391 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
18392 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
18393 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18394 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
18395 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
18396 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
18397 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18398 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
18399 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
18400 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18401 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, | |
18402 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
18403 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18404 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
18405 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
18406 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
18407 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
18408 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
18409 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
18410 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
18411 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
18412 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
18413 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
18414 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
18415 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
18416 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
18417 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
18418 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
18419 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
18420 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
18421 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
18422 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18423 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18424 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, | |
18425 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18426 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
18427 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
18428 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
18429 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
18430 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18431 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
18432 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18433 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
18434 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
18435 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
18436 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
18437 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
18438 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
18439 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18440 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18441 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
18442 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
18443 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18444 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18445 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18446 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18447 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18448 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18449 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18450 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18451 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18452 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18453 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18454 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18455 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18456 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18457 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18458 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18459 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
18460 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
18461 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
18462 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
18463 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
18464 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
18465 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
18466 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
18467 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18468 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
18469 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
18470 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
18471 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
18472 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18473 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18474 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18475 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
18476 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
18477 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
18478 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18479 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
18480 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18481 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18482 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
18483 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS }, | |
18484 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
18485 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18486 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
18487 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18488 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
18489 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
18490 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
18491 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
18492 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
18493 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
18494 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
18495 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
18496 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
18497 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18498 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
18499 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
18500 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18501 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18502 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18503 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18504 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18505 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18506 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18507 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18508 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
18509 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
18510 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18511 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18512 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
18513 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
18514 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
18515 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
18516 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
18517 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18518 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
18519 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
18520 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
18521 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
18522 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
18523 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
18524 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18525 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
18526 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18527 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18528 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
18529 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18530 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
18531 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
18532 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18533 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18534 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
18535 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
18536 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
18537 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
18538 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
18539 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
18540 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
18541 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
18542 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
18543 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
18544 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18545 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
18546 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
18547 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
18548 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18549 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
18550 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
18551 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
18552 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18553 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18554 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
18555 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
18556 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
18557 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
18558 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
18559 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18560 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
18561 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
18562 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
18563 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
18564 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
18565 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
18566 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
18567 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
18568 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18569 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
18570 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
18571 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
18572 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18573 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
18574 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
18575 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
18576 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
18577 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
18578 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 18579 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18580 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18581 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18582 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18583 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18584 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18585 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18586 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18587 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18588 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18589 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18590 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18591 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18592 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18593 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18594 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18595 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
18596 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18597 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18598 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, |
18599 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18600 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18601 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18602 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18603 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, |
18604 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18605 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18606 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18607 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18608 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18609 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18610 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18611 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18612 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c | 18613 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 18614 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, |
d6c14a4c RD |
18615 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS }, |
18616 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
18617 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS }, | |
18618 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
18619 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
18620 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, |
18621 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
18622 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
18623 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
18624 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
18625 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
18626 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
18627 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
18628 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
18629 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
18630 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
18631 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
18632 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18633 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18634 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18635 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
18636 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
18637 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
18638 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
18639 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
18640 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
18641 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18642 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18643 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18644 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, | |
18645 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18646 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
18647 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
18648 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, | |
18649 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
18650 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
18651 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
18652 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
18653 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
18654 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
18655 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
18656 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
18657 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18658 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
18659 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
18660 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
18661 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18662 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
18663 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
18664 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
18665 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
18666 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
18667 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18668 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18669 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
18670 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
18671 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18672 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
18673 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18674 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
18675 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18676 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
18677 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
18678 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
18679 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18680 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18681 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
18682 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
18683 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18684 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18685 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
18686 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18687 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
18688 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18689 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
18690 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
d6c14a4c | 18691 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
18692 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
18693 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
18694 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
18695 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
18696 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
18697 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
18698 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
18699 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
18700 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
18701 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
18702 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
18703 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
18704 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
18705 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
18706 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
18707 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
18708 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
18709 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, | |
18710 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
18711 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
18712 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
18713 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
18714 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18715 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
18716 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
18717 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
18718 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18719 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
18720 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
18721 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
18722 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
18723 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
18724 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
18725 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
18726 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
18727 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
18728 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
18729 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
18730 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18731 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
18732 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18733 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
18734 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
18735 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18736 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
18737 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
18738 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
18739 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18740 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
18741 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
18742 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
18743 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
18744 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
18745 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
18746 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
18747 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
18748 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18749 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
18750 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
18751 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
18752 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
18753 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
18754 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
18755 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
18756 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
18757 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
18758 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
18759 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
18760 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
18761 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
18762 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
18763 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18764 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
18765 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
18766 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
18767 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
18768 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18769 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
18770 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18771 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
18772 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
18773 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
18774 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
18775 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
18776 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
18777 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
18778 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
18779 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
18780 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
18781 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
18782 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, | |
18783 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18784 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18785 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18786 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18787 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18788 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
18789 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
18790 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
18791 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
18792 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
18793 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
18794 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
18795 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
18796 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
18797 | { NULL, NULL } | |
18798 | }; | |
18799 | ||
18800 | ||
18801 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
18802 | ||
18803 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
18804 | return (void *)((wxWindow *) ((wxControl *) x)); | |
18805 | } | |
18806 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
18807 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
18808 | } | |
18809 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
18810 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
18811 | } | |
18812 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
18813 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
18814 | } | |
18815 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
18816 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
18817 | } | |
18818 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
18819 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
18820 | } | |
18821 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
18822 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
18823 | } | |
18824 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
18825 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
18826 | } | |
18827 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
18828 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
18829 | } | |
18830 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
18831 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
18832 | } | |
18833 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
18834 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
18835 | } | |
18836 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
18837 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
18838 | } | |
18839 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
18840 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
18841 | } | |
18842 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
18843 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
18844 | } | |
18845 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
18846 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
18847 | } | |
18848 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
18849 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
18850 | } | |
18851 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
18852 | return (void *)((wxObject *) ((wxSizer *) x)); | |
18853 | } | |
18854 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
18855 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
18856 | } | |
18857 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
18858 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
18859 | } | |
18860 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
18861 | return (void *)((wxObject *) ((wxPenList *) x)); | |
18862 | } | |
18863 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
18864 | return (void *)((wxObject *) ((wxEvent *) x)); | |
18865 | } | |
18866 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
18867 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
18868 | } | |
18869 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
18870 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
18871 | } | |
18872 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
18873 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
18874 | } | |
18875 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
18876 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
18877 | } | |
18878 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
18879 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
18880 | } | |
18881 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
18882 | return (void *)((wxObject *) ((wxDC *) x)); | |
18883 | } | |
18884 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
18885 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
18886 | } | |
18887 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
18888 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
18889 | } | |
18890 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
18891 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
18892 | } | |
18893 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
18894 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
18895 | } | |
18896 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
18897 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
18898 | } | |
18899 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
18900 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
18901 | } | |
18902 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
18903 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
18904 | } | |
18905 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
18906 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
18907 | } | |
18908 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
18909 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
18910 | } | |
18911 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
18912 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
18913 | } | |
18914 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
18915 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
18916 | } | |
18917 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
18918 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
18919 | } | |
18920 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
18921 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
18922 | } | |
18923 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
18924 | return (void *)((wxObject *) ((wxEffects *) x)); | |
18925 | } | |
18926 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
18927 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
18928 | } | |
18929 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
18930 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
18931 | } | |
18932 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
18933 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
18934 | } | |
18935 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
18936 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
18937 | } | |
18938 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
18939 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
18940 | } | |
18941 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
18942 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
18943 | } | |
18944 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
18945 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
18946 | } | |
18947 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
18948 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
18949 | } | |
18950 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
18951 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
18952 | } | |
18953 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
18954 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
18955 | } | |
18956 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
18957 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
18958 | } | |
18959 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
18960 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
18961 | } | |
18962 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
18963 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
18964 | } | |
18965 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
18966 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
18967 | } | |
18968 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
18969 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
18970 | } | |
18971 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
18972 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
18973 | } | |
18974 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
18975 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
18976 | } | |
18977 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
18978 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
18979 | } | |
18980 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
18981 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
18982 | } | |
18983 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
18984 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
18985 | } | |
18986 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
18987 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
18988 | } | |
18989 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
18990 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
18991 | } | |
18992 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
18993 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
18994 | } | |
18995 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
18996 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
18997 | } | |
18998 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
18999 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19000 | } | |
19001 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19002 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19003 | } | |
19004 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19005 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19006 | } | |
19007 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19008 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19009 | } | |
19010 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19011 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19012 | } | |
19013 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19014 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19015 | } | |
19016 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
19017 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19018 | } | |
19019 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
19020 | return (void *)((wxObject *) ((wxImage *) x)); | |
19021 | } | |
19022 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19023 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19024 | } | |
19025 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
19026 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19027 | } | |
19028 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19029 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19030 | } | |
19031 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19032 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19033 | } | |
19034 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19035 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19036 | } | |
19037 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19038 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19039 | } | |
19040 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19041 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19042 | } | |
19043 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19044 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19045 | } | |
19046 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19047 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19048 | } | |
19049 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19050 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19051 | } | |
19052 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19053 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19054 | } | |
19055 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19056 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19057 | } | |
19058 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19059 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19060 | } | |
19061 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19062 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19063 | } | |
19064 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19065 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19066 | } | |
d55e5bfc RD |
19067 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
19068 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19069 | } | |
19070 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19071 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19072 | } | |
19073 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19074 | return (void *)((wxObject *) ((wxMask *) x)); | |
19075 | } | |
19076 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19077 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19078 | } | |
19079 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19080 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19081 | } | |
19082 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19083 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19084 | } | |
19085 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19086 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19087 | } | |
19088 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19089 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19090 | } | |
19091 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19092 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19093 | } | |
19094 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19095 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19096 | } | |
19097 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19098 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19099 | } | |
19100 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19101 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19102 | } | |
19103 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19104 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19105 | } | |
19106 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19107 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19108 | } | |
19109 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19110 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19111 | } | |
19112 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19113 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19114 | } | |
19115 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19116 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19117 | } | |
19118 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19119 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19120 | } | |
19121 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19122 | return (void *)((wxObject *) ((wxColour *) x)); | |
19123 | } | |
19124 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19125 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19126 | } | |
19127 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19128 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19129 | } | |
19130 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19131 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19132 | } | |
19133 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
19134 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19135 | } | |
19136 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
19137 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
19138 | } | |
19139 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
19140 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19141 | } | |
19142 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19143 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19144 | } | |
19145 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19146 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19147 | } | |
19148 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19149 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19150 | } | |
19151 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19152 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19153 | } | |
19154 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19155 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19156 | } | |
19157 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19158 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19159 | } | |
19160 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19161 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19162 | } | |
19163 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19164 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19165 | } | |
19166 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19167 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19168 | } | |
d55e5bfc RD |
19169 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
19170 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19171 | } | |
19172 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19173 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19174 | } | |
19175 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19176 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19177 | } | |
19178 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
19179 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
19180 | } | |
19181 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
19182 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
19183 | } | |
19184 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
19185 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
19186 | } | |
19187 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
19188 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
19189 | } | |
19190 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
19191 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
19192 | } | |
d55e5bfc RD |
19193 | 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}}; |
19194 | 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}}; | |
19195 | 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}}; | |
19196 | 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}}; | |
19197 | 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}}; | |
19198 | 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}}; | |
19199 | 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}}; | |
19200 | 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}}; | |
19201 | 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}}; | |
19202 | 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}}; | |
19203 | 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}}; | |
19204 | 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}}; | |
19205 | 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}}; | |
19206 | 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}}; | |
19207 | 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}}; | |
19208 | 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}}; | |
19209 | 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}}; | |
19210 | 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}}; | |
19211 | 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}}; | |
19212 | 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}}; | |
19213 | 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}}; | |
19214 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d6c14a4c | 19215 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
19216 | 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}}; |
19217 | 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}}; | |
19218 | 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}}; | |
19219 | 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}}; | |
19220 | 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}}; | |
19221 | 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}}; | |
19222 | 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}}; | |
19223 | 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}}; | |
19224 | 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}}; | |
19225 | 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}}; | |
19226 | 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}}; | |
19227 | 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}}; | |
19228 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d6c14a4c | 19229 | static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
19230 | 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}}; |
19231 | 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}}; | |
19232 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc | 19233 | static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d6c14a4c | 19234 | static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
19235 | 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}}; |
19236 | 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}}; | |
19237 | 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}}; | |
19238 | static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d6c14a4c | 19239 | static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
19240 | 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}}; |
19241 | 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}}; | |
19242 | static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
19243 | 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}}; |
19244 | 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}}; | |
19245 | 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}}; | |
19246 | 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}}; | |
19247 | 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}}; | |
19248 | ||
19249 | static swig_type_info *swig_types_initial[] = { | |
19250 | _swigt__p_wxPostScriptDC, | |
19251 | _swigt__p_wxBrush, | |
19252 | _swigt__p_wxColour, | |
19253 | _swigt__p_wxDC, | |
19254 | _swigt__p_wxMirrorDC, | |
19255 | _swigt__p_byte, | |
19256 | _swigt__p_wxPyFontEnumerator, | |
19257 | _swigt__p_char, | |
19258 | _swigt__p_wxIconLocation, | |
19259 | _swigt__p_wxImage, | |
19260 | _swigt__p_wxMetaFileDC, | |
19261 | _swigt__p_wxMask, | |
19262 | _swigt__p_wxSize, | |
19263 | _swigt__p_wxFont, | |
19264 | _swigt__p_wxWindow, | |
19265 | _swigt__p_double, | |
19266 | _swigt__p_wxMemoryDC, | |
19267 | _swigt__p_wxFontMapper, | |
19268 | _swigt__p_wxEffects, | |
19269 | _swigt__p_wxNativeEncodingInfo, | |
19270 | _swigt__p_wxPalette, | |
19271 | _swigt__p_wxBitmap, | |
19272 | _swigt__p_wxObject, | |
19273 | _swigt__p_wxRegionIterator, | |
19274 | _swigt__p_wxRect, | |
19275 | _swigt__p_wxString, | |
19276 | _swigt__p_wxPrinterDC, | |
19277 | _swigt__p_wxIconBundle, | |
19278 | _swigt__p_wxPoint, | |
19279 | _swigt__p_wxDash, | |
19280 | _swigt__p_wxScreenDC, | |
19281 | _swigt__p_wxCursor, | |
19282 | _swigt__p_wxClientDC, | |
19283 | _swigt__p_wxBufferedDC, | |
19284 | _swigt__p_wxImageList, | |
19285 | _swigt__p_unsigned_char, | |
19286 | _swigt__p_wxGDIObject, | |
19287 | _swigt__p_wxIcon, | |
19288 | _swigt__p_wxLocale, | |
19289 | _swigt__p_wxRegion, | |
d55e5bfc | 19290 | _swigt__p_wxLanguageInfo, |
d6c14a4c | 19291 | _swigt__p_wxConfigBase, |
d55e5bfc RD |
19292 | _swigt__p_wxWindowDC, |
19293 | _swigt__p_wxPrintData, | |
19294 | _swigt__p_wxBrushList, | |
19295 | _swigt__p_wxFontList, | |
19296 | _swigt__p_wxPen, | |
19297 | _swigt__p_wxBufferedPaintDC, | |
19298 | _swigt__p_wxPaintDC, | |
19299 | _swigt__p_wxPenList, | |
d55e5bfc RD |
19300 | _swigt__p_int, |
19301 | _swigt__p_wxMetaFile, | |
19302 | _swigt__p_wxNativeFontInfo, | |
19303 | _swigt__p_wxEncodingConverter, | |
19304 | _swigt__p_wxColourDatabase, | |
19305 | 0 | |
19306 | }; | |
19307 | ||
19308 | ||
19309 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
19310 | ||
19311 | static swig_const_info swig_const_table[] = { | |
19312 | {0}}; | |
19313 | ||
19314 | #ifdef __cplusplus | |
19315 | } | |
19316 | #endif | |
19317 | ||
19318 | #ifdef __cplusplus | |
19319 | extern "C" | |
19320 | #endif | |
19321 | SWIGEXPORT(void) SWIG_init(void) { | |
19322 | static PyObject *SWIG_globals = 0; | |
19323 | static int typeinit = 0; | |
19324 | PyObject *m, *d; | |
19325 | int i; | |
19326 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
19327 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
19328 | d = PyModule_GetDict(m); | |
19329 | ||
19330 | if (!typeinit) { | |
19331 | for (i = 0; swig_types_initial[i]; i++) { | |
19332 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
19333 | } | |
19334 | typeinit = 1; | |
19335 | } | |
19336 | SWIG_InstallConstants(d,swig_const_table); | |
19337 | ||
19338 | PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); | |
19339 | PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); | |
19340 | PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); | |
19341 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
19342 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
19343 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); | |
19344 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
19345 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); | |
19346 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); | |
19347 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
19348 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); | |
19349 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
19350 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); | |
19351 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); | |
19352 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); | |
19353 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); | |
19354 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
19355 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
19356 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); | |
19357 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); | |
19358 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); | |
19359 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); | |
19360 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); | |
19361 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); | |
19362 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); | |
19363 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
19364 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
19365 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
19366 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
19367 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); | |
19368 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); | |
19369 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); | |
19370 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
19371 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
19372 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
19373 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
19374 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
19375 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
19376 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
19377 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
19378 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
19379 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
19380 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
19381 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
19382 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
19383 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
19384 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
19385 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
19386 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); | |
19387 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U)); | |
19388 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
19389 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
19390 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); | |
19391 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); | |
19392 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); | |
19393 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); | |
19394 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); | |
19395 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); | |
19396 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); | |
19397 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); | |
19398 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); | |
19399 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); | |
19400 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); | |
19401 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); | |
19402 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); | |
19403 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); | |
19404 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); | |
19405 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); | |
19406 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); | |
19407 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); | |
19408 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
19409 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); | |
19410 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); | |
19411 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); | |
19412 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); | |
19413 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); | |
19414 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); | |
19415 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); | |
19416 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); | |
19417 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
19418 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
19419 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
19420 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); | |
19421 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
19422 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); | |
19423 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
19424 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
19425 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
19426 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
19427 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); | |
19428 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
19429 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
19430 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
19431 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
19432 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
19433 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
19434 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
19435 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); | |
19436 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); | |
19437 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
19438 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
19439 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
19440 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
19441 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
19442 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
19443 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
19444 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
19445 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
19446 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
19447 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
19448 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
19449 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
19450 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
19451 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
19452 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
19453 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
19454 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
19455 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
19456 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); | |
19457 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); | |
19458 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); | |
19459 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); | |
19460 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); | |
19461 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); | |
19462 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); | |
19463 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); | |
19464 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
19465 | ||
19466 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
19467 | ||
19468 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); | |
19469 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
19470 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
19471 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); | |
19472 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
19473 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
19474 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); | |
19475 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); | |
19476 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
19477 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
19478 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
19479 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
19480 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
19481 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
19482 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
19483 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
19484 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
19485 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
19486 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
19487 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
19488 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
19489 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
19490 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
19491 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
19492 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
19493 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
19494 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
19495 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); | |
19496 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); | |
19497 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
19498 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
19499 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); | |
19500 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); | |
19501 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
19502 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); | |
19503 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); | |
19504 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); | |
19505 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); | |
19506 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); | |
19507 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
19508 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); | |
19509 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
19510 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); | |
19511 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); | |
19512 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
19513 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
19514 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
19515 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
19516 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
19517 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
19518 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); | |
19519 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); | |
19520 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); | |
19521 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); | |
19522 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); | |
19523 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
19524 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); | |
19525 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
19526 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
19527 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
19528 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
19529 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
19530 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
19531 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
19532 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
19533 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
19534 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
19535 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
19536 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
19537 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
19538 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
19539 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
19540 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
19541 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
19542 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); | |
19543 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); | |
19544 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); | |
19545 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); | |
19546 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); | |
19547 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
19548 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
19549 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
19550 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
19551 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
19552 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); | |
19553 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); | |
19554 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
19555 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); | |
19556 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
19557 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
19558 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
19559 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
19560 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
19561 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); | |
19562 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
19563 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); | |
19564 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); | |
19565 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); | |
19566 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); | |
19567 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); | |
19568 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
19569 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
19570 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
19571 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
19572 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
19573 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
19574 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); | |
19575 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); | |
19576 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); | |
19577 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
19578 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); | |
19579 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); | |
19580 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); | |
19581 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
19582 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
19583 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); | |
19584 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
19585 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
19586 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
19587 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
19588 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); | |
19589 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); | |
19590 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); | |
19591 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
19592 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); | |
19593 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); | |
19594 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); | |
19595 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
19596 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
19597 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); | |
19598 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); | |
19599 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
19600 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
19601 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
19602 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); | |
19603 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); | |
19604 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); | |
19605 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); | |
19606 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
19607 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
19608 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); | |
19609 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); | |
19610 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
19611 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
19612 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
19613 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); | |
19614 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); | |
19615 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); | |
19616 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); | |
19617 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); | |
19618 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
19619 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
19620 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); | |
19621 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); | |
19622 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
19623 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
19624 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
19625 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
19626 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); | |
19627 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); | |
19628 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
19629 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
19630 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); | |
19631 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
19632 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
19633 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
19634 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); | |
19635 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); | |
19636 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); | |
19637 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); | |
19638 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); | |
19639 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); | |
19640 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); | |
19641 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
19642 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); | |
19643 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); | |
19644 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
19645 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
19646 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
19647 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
19648 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
19649 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
19650 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
19651 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
19652 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
19653 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
19654 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
19655 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
19656 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
19657 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
19658 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
19659 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
19660 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
19661 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
19662 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
19663 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
19664 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
19665 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); | |
19666 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); | |
19667 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
19668 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); | |
19669 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); | |
19670 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); | |
19671 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); | |
19672 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); | |
19673 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); | |
19674 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); | |
19675 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
19676 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); | |
19677 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); | |
19678 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); | |
19679 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); | |
19680 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); | |
19681 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); | |
19682 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
19683 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); | |
19684 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
19685 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
19686 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); | |
19687 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
19688 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
19689 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
19690 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
19691 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); | |
19692 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); | |
19693 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); | |
19694 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); | |
19695 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); | |
19696 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); | |
19697 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); | |
19698 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
19699 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
19700 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); | |
19701 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); | |
19702 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); | |
19703 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
19704 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
19705 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
19706 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
19707 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); | |
19708 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
19709 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); | |
19710 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); | |
19711 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); | |
19712 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); | |
19713 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); | |
19714 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
19715 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
19716 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
19717 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
19718 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
19719 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); | |
19720 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); | |
19721 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
19722 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
19723 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
19724 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
19725 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
19726 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
19727 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
19728 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
19729 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
19730 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
19731 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
19732 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
19733 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
19734 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
19735 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
19736 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
19737 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
19738 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
19739 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
19740 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
19741 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
19742 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
19743 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
19744 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
19745 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
19746 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
19747 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
19748 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
19749 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
19750 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
19751 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
19752 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
19753 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
19754 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
19755 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
19756 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
19757 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
19758 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
19759 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
19760 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
19761 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
19762 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
19763 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
19764 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
19765 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
19766 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
19767 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
19768 | ||
19769 | // Work around a chicken/egg problem in drawlist.cpp | |
19770 | wxPyDrawList_SetAPIPtr(); | |
19771 | ||
19772 | } | |
19773 |