]>
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] | |
c24da6d6 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] | |
c24da6d6 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); | |
a07a67e6 RD |
538 | for (int x=0; x<count; x++) { |
539 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
540 | PyList_Append(retval, pyint); | |
541 | Py_DECREF(pyint); | |
542 | } | |
d55e5bfc RD |
543 | wxPyEndBlockThreads(blocked); |
544 | return retval; | |
545 | } | |
c24da6d6 RD |
546 | void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
547 | bool blocked = wxPyBeginBlockThreads(); | |
548 | int size = PyList_Size(pyDashes); | |
549 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
550 | ||
551 | // black magic warning! The array of wxDashes needs to exist as | |
552 | // long as the pen does because wxPen does not copy the array. So | |
553 | // stick a copy in a Python string object and attach it to _self, | |
554 | // and then call SetDashes with a pointer to that array. Then | |
555 | // when the Python pen object is destroyed the array will be | |
556 | // cleaned up too. | |
557 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
558 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
559 | ||
560 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
561 | delete [] dashes; | |
562 | Py_DECREF(strDashes); | |
563 | wxPyEndBlockThreads(blocked); | |
564 | } | |
d55e5bfc RD |
565 | bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; } |
566 | bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; } | |
567 | ||
d55e5bfc RD |
568 | #include <wx/image.h> |
569 | ||
570 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
571 | char** cArray = NULL; | |
572 | int count; | |
573 | ||
574 | if (!PyList_Check(listOfStrings)) { | |
575 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
576 | return NULL; | |
577 | } | |
578 | count = PyList_Size(listOfStrings); | |
579 | cArray = new char*[count]; | |
580 | ||
581 | for(int x=0; x<count; x++) { | |
582 | // TODO: Need some validation and error checking here | |
583 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
584 | } | |
585 | return cArray; | |
586 | } | |
587 | ||
588 | ||
589 | wxBitmap *new_wxBitmap(PyObject *listOfStrings){ | |
590 | char** cArray = NULL; | |
591 | wxBitmap* bmp; | |
592 | ||
593 | cArray = ConvertListOfStrings(listOfStrings); | |
594 | if (! cArray) | |
595 | return NULL; | |
596 | bmp = new wxBitmap(cArray); | |
597 | delete [] cArray; | |
598 | return bmp; | |
599 | } | |
600 | wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){ | |
601 | char* buf; | |
602 | int length; | |
603 | PyString_AsStringAndSize(bits, &buf, &length); | |
604 | return new wxBitmap(buf, width, height, depth); | |
605 | } | |
d55e5bfc RD |
606 | |
607 | SWIGSTATICINLINE(int) | |
608 | SWIG_CheckLong(PyObject* obj) | |
609 | { | |
610 | SWIG_AsLong(obj); | |
611 | if (PyErr_Occurred()) { | |
612 | PyErr_Clear(); | |
613 | return 0; | |
614 | } else { | |
615 | return 1; | |
616 | } | |
617 | } | |
618 | ||
619 | void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } | |
620 | wxSize wxBitmap_GetSize(wxBitmap *self){ | |
621 | wxSize size(self->GetWidth(), self->GetHeight()); | |
622 | return size; | |
623 | } | |
624 | void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ | |
625 | wxMask *mask = new wxMask(*self, colour); | |
626 | self->SetMask(mask); | |
627 | } | |
628 | void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ | |
629 | self->SetWidth(size.x); | |
630 | self->SetHeight(size.y); | |
631 | } | |
632 | bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; } | |
633 | bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; } | |
634 | wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){ | |
635 | if ( !colour.Ok() ) | |
636 | return new wxMask(bitmap, *wxBLACK); | |
637 | else | |
638 | return new wxMask(bitmap, colour); | |
639 | } | |
640 | ||
641 | #include <wx/iconbndl.h> | |
642 | ||
643 | wxIcon *new_wxIcon(wxBitmap const &bmp){ | |
644 | wxIcon* icon = new wxIcon(); | |
645 | icon->CopyFromBitmap(bmp); | |
646 | return icon; | |
647 | } | |
648 | wxIcon *new_wxIcon(PyObject *listOfStrings){ | |
649 | char** cArray = NULL; | |
650 | wxIcon* icon; | |
651 | ||
652 | cArray = ConvertListOfStrings(listOfStrings); | |
653 | if (! cArray) | |
654 | return NULL; | |
655 | icon = new wxIcon(cArray); | |
656 | delete [] cArray; | |
657 | return icon; | |
658 | } | |
659 | void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } | |
660 | wxIconLocation *new_wxIconLocation(wxString const *filename,int num){ | |
661 | ||
662 | return new wxIconLocation(*filename, num); | |
663 | ||
664 | ||
665 | ||
666 | } | |
667 | void wxIconLocation_SetIndex(wxIconLocation *self,int num){ | |
668 | ||
669 | self->SetIndex(num); | |
670 | ||
671 | ||
672 | ||
673 | } | |
674 | int wxIconLocation_GetIndex(wxIconLocation *self){ | |
675 | ||
676 | return self->GetIndex(); | |
677 | ||
678 | ||
679 | ||
680 | } | |
681 | wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){ | |
682 | #ifdef __WXGTK__ | |
683 | wxCHECK_MSG(False, NULL, | |
684 | wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); | |
685 | #else | |
686 | return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); | |
687 | #endif | |
688 | } | |
689 | void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } | |
690 | ||
691 | ||
692 | void wxRegionIterator_Next(wxRegionIterator *self){ | |
693 | (*self) ++; | |
694 | } | |
695 | bool wxRegionIterator___nonzero__(wxRegionIterator *self){ | |
696 | return self->operator bool(); | |
697 | } | |
698 | ||
699 | #include <wx/fontutil.h> | |
700 | #include <wx/fontmap.h> | |
701 | #include <wx/fontenum.h> | |
702 | ||
703 | wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ | |
704 | return self->ToString(); | |
705 | } | |
706 | ||
707 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
708 | { wxPyRaiseNotImplemented(); return NULL; } | |
709 | ||
710 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
711 | { wxPyRaiseNotImplemented(); return False; } | |
712 | ||
713 | PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){ | |
714 | wxFontEncoding alt_enc; | |
715 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
716 | return PyInt_FromLong(alt_enc); | |
717 | else { | |
718 | Py_INCREF(Py_None); | |
719 | return Py_None; | |
720 | } | |
721 | } | |
722 | wxFont *new_wxFont(wxString const &info){ | |
723 | wxNativeFontInfo nfi; | |
724 | nfi.FromString(info); | |
725 | return new wxFont(nfi); | |
726 | } | |
727 | wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){ | |
728 | return wxFont::New(pointSize, family, flags, face, encoding); | |
729 | } | |
730 | bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; } | |
731 | bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; } | |
732 | ||
733 | class wxPyFontEnumerator : public wxFontEnumerator { | |
734 | public: | |
735 | wxPyFontEnumerator() {} | |
736 | ~wxPyFontEnumerator() {} | |
737 | ||
738 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
739 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
740 | ||
741 | PYPRIVATE; | |
742 | }; | |
743 | ||
744 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
745 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
746 | ||
747 | ||
748 | PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){ | |
749 | wxArrayString* arr = self->GetEncodings(); | |
750 | return wxArrayString2PyList_helper(*arr); | |
751 | } | |
752 | PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){ | |
753 | wxArrayString* arr = self->GetFacenames(); | |
754 | return wxArrayString2PyList_helper(*arr); | |
755 | } | |
756 | ||
757 | ||
79fccf9d RD |
758 | wxLocale *new_wxLocale(int language,int flags){ |
759 | if (language == -1) | |
760 | return new wxLocale(); | |
761 | else | |
762 | return new wxLocale(language, flags); | |
763 | } | |
d55e5bfc RD |
764 | |
765 | #include "wx/wxPython/pydrawxxx.h" | |
766 | ||
c24da6d6 | 767 | wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
d55e5bfc RD |
768 | wxColour col; |
769 | self->GetPixel(x, y, &col); | |
770 | return col; | |
771 | } | |
c24da6d6 | 772 | wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
d55e5bfc RD |
773 | wxColour col; |
774 | self->GetPixel(pt, &col); | |
775 | return col; | |
776 | } | |
777 | ||
778 | SWIGSTATICINLINE(double) | |
779 | SWIG_AsDouble(PyObject *obj) | |
780 | { | |
781 | if (PyNumber_Check(obj)) | |
782 | return PyFloat_AsDouble(obj); | |
783 | else { | |
784 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
785 | obj->ob_type->tp_name); | |
786 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
787 | Py_DECREF(errmsg); | |
788 | return 0; | |
789 | } | |
790 | } | |
791 | ||
792 | ||
793 | SWIGSTATICINLINE(int) | |
794 | SWIG_CheckDouble(PyObject* obj) | |
795 | { | |
796 | SWIG_AsDouble(obj); | |
797 | if (PyErr_Occurred()) { | |
798 | PyErr_Clear(); | |
799 | return 0; | |
800 | } else { | |
801 | return 1; | |
802 | } | |
803 | } | |
804 | ||
805 | wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){ | |
806 | wxRect rv; | |
807 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
808 | return rv; | |
809 | } | |
810 | wxRect wxDC_GetClippingRect(wxDC *self){ | |
811 | wxRect rect; | |
812 | self->GetClippingBox(rect); | |
813 | return rect; | |
814 | } | |
815 | wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ | |
816 | wxArrayInt widths; | |
817 | self->GetPartialTextExtents(text, widths); | |
818 | return widths; | |
819 | } | |
c24da6d6 RD |
820 | void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
821 | self->SetLogicalOrigin(point.x, point.y); | |
822 | } | |
823 | void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ | |
824 | self->SetDeviceOrigin(point.x, point.y); | |
825 | } | |
826 | void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ | |
827 | self->CalcBoundingBox(point.x, point.y); | |
828 | } | |
d55e5bfc RD |
829 | PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
830 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
831 | } | |
832 | PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
833 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
834 | } | |
835 | PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
836 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
837 | } | |
838 | PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
839 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
840 | } | |
841 | PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ | |
842 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
843 | } | |
844 | PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ | |
845 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
846 | } | |
847 | ||
848 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
849 | *x1 = dc->MinX(); | |
850 | *y1 = dc->MinY(); | |
851 | *x2 = dc->MaxX(); | |
852 | *y2 = dc->MaxY(); | |
853 | } | |
854 | ||
855 | ||
856 | #include <wx/dcbuffer.h> | |
857 | ||
858 | ||
859 | #include <wx/dcps.h> | |
860 | ||
861 | ||
862 | #include <wx/metafile.h> | |
863 | ||
864 | ||
865 | ||
866 | void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ | |
867 | self->AddColour(name, wxColour(red, green, blue)); | |
868 | } | |
869 | ||
870 | #include <wx/effects.h> | |
871 | ||
872 | #ifdef __cplusplus | |
873 | extern "C" { | |
874 | #endif | |
875 | static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject *resultobj; | |
877 | wxGDIObject *result; | |
878 | char *kwnames[] = { | |
879 | NULL | |
880 | }; | |
881 | ||
882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail; | |
883 | { | |
0439c23b | 884 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
886 | result = (wxGDIObject *)new wxGDIObject(); | |
887 | ||
888 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 889 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
890 | } |
891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1); | |
892 | return resultobj; | |
893 | fail: | |
894 | return NULL; | |
895 | } | |
896 | ||
897 | ||
898 | static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
899 | PyObject *resultobj; | |
900 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
901 | PyObject * obj0 = 0 ; | |
902 | char *kwnames[] = { | |
903 | (char *) "self", NULL | |
904 | }; | |
905 | ||
906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail; | |
907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
909 | { | |
910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
911 | delete arg1; | |
912 | ||
913 | wxPyEndAllowThreads(__tstate); | |
914 | if (PyErr_Occurred()) SWIG_fail; | |
915 | } | |
916 | Py_INCREF(Py_None); resultobj = Py_None; | |
917 | return resultobj; | |
918 | fail: | |
919 | return NULL; | |
920 | } | |
921 | ||
922 | ||
923 | static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
924 | PyObject *resultobj; | |
925 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
926 | bool result; | |
927 | PyObject * obj0 = 0 ; | |
928 | char *kwnames[] = { | |
929 | (char *) "self", NULL | |
930 | }; | |
931 | ||
932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail; | |
933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
935 | { | |
936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
937 | result = (bool)(arg1)->GetVisible(); | |
938 | ||
939 | wxPyEndAllowThreads(__tstate); | |
940 | if (PyErr_Occurred()) SWIG_fail; | |
941 | } | |
942 | { | |
943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
944 | } | |
945 | return resultobj; | |
946 | fail: | |
947 | return NULL; | |
948 | } | |
949 | ||
950 | ||
951 | static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
952 | PyObject *resultobj; | |
953 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
954 | bool arg2 ; | |
955 | PyObject * obj0 = 0 ; | |
956 | PyObject * obj1 = 0 ; | |
957 | char *kwnames[] = { | |
958 | (char *) "self",(char *) "visible", NULL | |
959 | }; | |
960 | ||
961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail; | |
962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
964 | arg2 = (bool) SWIG_AsBool(obj1); | |
965 | if (PyErr_Occurred()) SWIG_fail; | |
966 | { | |
967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
968 | (arg1)->SetVisible(arg2); | |
969 | ||
970 | wxPyEndAllowThreads(__tstate); | |
971 | if (PyErr_Occurred()) SWIG_fail; | |
972 | } | |
973 | Py_INCREF(Py_None); resultobj = Py_None; | |
974 | return resultobj; | |
975 | fail: | |
976 | return NULL; | |
977 | } | |
978 | ||
979 | ||
980 | static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
981 | PyObject *resultobj; | |
982 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
983 | bool result; | |
984 | PyObject * obj0 = 0 ; | |
985 | char *kwnames[] = { | |
986 | (char *) "self", NULL | |
987 | }; | |
988 | ||
989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail; | |
990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject, | |
991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
992 | { | |
993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994 | result = (bool)(arg1)->IsNull(); | |
995 | ||
996 | wxPyEndAllowThreads(__tstate); | |
997 | if (PyErr_Occurred()) SWIG_fail; | |
998 | } | |
999 | { | |
1000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1001 | } | |
1002 | return resultobj; | |
1003 | fail: | |
1004 | return NULL; | |
1005 | } | |
1006 | ||
1007 | ||
1008 | static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) { | |
1009 | PyObject *obj; | |
1010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1011 | SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj); | |
1012 | Py_INCREF(obj); | |
1013 | return Py_BuildValue((char *)""); | |
1014 | } | |
1015 | static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1016 | PyObject *resultobj; | |
79fccf9d RD |
1017 | byte arg1 = (byte) 0 ; |
1018 | byte arg2 = (byte) 0 ; | |
1019 | byte arg3 = (byte) 0 ; | |
d55e5bfc RD |
1020 | wxColour *result; |
1021 | PyObject * obj0 = 0 ; | |
1022 | PyObject * obj1 = 0 ; | |
1023 | PyObject * obj2 = 0 ; | |
1024 | char *kwnames[] = { | |
1025 | (char *) "red",(char *) "green",(char *) "blue", NULL | |
1026 | }; | |
1027 | ||
1028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1029 | if (obj0) { | |
79fccf9d | 1030 | arg1 = (byte) SWIG_AsUnsignedChar(obj0); |
d55e5bfc RD |
1031 | if (PyErr_Occurred()) SWIG_fail; |
1032 | } | |
1033 | if (obj1) { | |
79fccf9d | 1034 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
d55e5bfc RD |
1035 | if (PyErr_Occurred()) SWIG_fail; |
1036 | } | |
1037 | if (obj2) { | |
79fccf9d | 1038 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
d55e5bfc RD |
1039 | if (PyErr_Occurred()) SWIG_fail; |
1040 | } | |
1041 | { | |
1042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1043 | result = (wxColour *)new wxColour(arg1,arg2,arg3); | |
1044 | ||
1045 | wxPyEndAllowThreads(__tstate); | |
1046 | if (PyErr_Occurred()) SWIG_fail; | |
1047 | } | |
1048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1049 | return resultobj; | |
1050 | fail: | |
1051 | return NULL; | |
1052 | } | |
1053 | ||
1054 | ||
1055 | static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1056 | PyObject *resultobj; | |
1057 | wxString *arg1 = 0 ; | |
1058 | wxColour *result; | |
1059 | bool temp1 = False ; | |
1060 | PyObject * obj0 = 0 ; | |
1061 | char *kwnames[] = { | |
1062 | (char *) "colorName", NULL | |
1063 | }; | |
1064 | ||
1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail; | |
1066 | { | |
1067 | arg1 = wxString_in_helper(obj0); | |
1068 | if (arg1 == NULL) SWIG_fail; | |
1069 | temp1 = True; | |
1070 | } | |
1071 | { | |
1072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1073 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
1074 | ||
1075 | wxPyEndAllowThreads(__tstate); | |
1076 | if (PyErr_Occurred()) SWIG_fail; | |
1077 | } | |
1078 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1079 | { | |
1080 | if (temp1) | |
1081 | delete arg1; | |
1082 | } | |
1083 | return resultobj; | |
1084 | fail: | |
1085 | { | |
1086 | if (temp1) | |
1087 | delete arg1; | |
1088 | } | |
1089 | return NULL; | |
1090 | } | |
1091 | ||
1092 | ||
1093 | static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1094 | PyObject *resultobj; | |
1095 | unsigned long arg1 ; | |
1096 | wxColour *result; | |
1097 | PyObject * obj0 = 0 ; | |
1098 | char *kwnames[] = { | |
1099 | (char *) "colRGB", NULL | |
1100 | }; | |
1101 | ||
1102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail; | |
1103 | arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0); | |
1104 | if (PyErr_Occurred()) SWIG_fail; | |
1105 | { | |
1106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1107 | result = (wxColour *)new wxColour(arg1); | |
1108 | ||
1109 | wxPyEndAllowThreads(__tstate); | |
1110 | if (PyErr_Occurred()) SWIG_fail; | |
1111 | } | |
1112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1); | |
1113 | return resultobj; | |
1114 | fail: | |
1115 | return NULL; | |
1116 | } | |
1117 | ||
1118 | ||
1119 | static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1120 | PyObject *resultobj; | |
1121 | wxColour *arg1 = (wxColour *) 0 ; | |
1122 | PyObject * obj0 = 0 ; | |
1123 | char *kwnames[] = { | |
1124 | (char *) "self", NULL | |
1125 | }; | |
1126 | ||
1127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail; | |
1128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1130 | { | |
1131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1132 | delete arg1; | |
1133 | ||
1134 | wxPyEndAllowThreads(__tstate); | |
1135 | if (PyErr_Occurred()) SWIG_fail; | |
1136 | } | |
1137 | Py_INCREF(Py_None); resultobj = Py_None; | |
1138 | return resultobj; | |
1139 | fail: | |
1140 | return NULL; | |
1141 | } | |
1142 | ||
1143 | ||
1144 | static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject *resultobj; | |
1146 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1147 | byte result; |
d55e5bfc RD |
1148 | PyObject * obj0 = 0 ; |
1149 | char *kwnames[] = { | |
1150 | (char *) "self", NULL | |
1151 | }; | |
1152 | ||
1153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail; | |
1154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1156 | { | |
1157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1158 | result = (byte)(arg1)->Red(); |
d55e5bfc RD |
1159 | |
1160 | wxPyEndAllowThreads(__tstate); | |
1161 | if (PyErr_Occurred()) SWIG_fail; | |
1162 | } | |
1163 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1164 | return resultobj; | |
1165 | fail: | |
1166 | return NULL; | |
1167 | } | |
1168 | ||
1169 | ||
1170 | static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject *resultobj; | |
1172 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1173 | byte result; |
d55e5bfc RD |
1174 | PyObject * obj0 = 0 ; |
1175 | char *kwnames[] = { | |
1176 | (char *) "self", NULL | |
1177 | }; | |
1178 | ||
1179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail; | |
1180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1182 | { | |
1183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1184 | result = (byte)(arg1)->Green(); |
d55e5bfc RD |
1185 | |
1186 | wxPyEndAllowThreads(__tstate); | |
1187 | if (PyErr_Occurred()) SWIG_fail; | |
1188 | } | |
1189 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1190 | return resultobj; | |
1191 | fail: | |
1192 | return NULL; | |
1193 | } | |
1194 | ||
1195 | ||
1196 | static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1197 | PyObject *resultobj; | |
1198 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d | 1199 | byte result; |
d55e5bfc RD |
1200 | PyObject * obj0 = 0 ; |
1201 | char *kwnames[] = { | |
1202 | (char *) "self", NULL | |
1203 | }; | |
1204 | ||
1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail; | |
1206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1208 | { | |
1209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 1210 | result = (byte)(arg1)->Blue(); |
d55e5bfc RD |
1211 | |
1212 | wxPyEndAllowThreads(__tstate); | |
1213 | if (PyErr_Occurred()) SWIG_fail; | |
1214 | } | |
1215 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
1216 | return resultobj; | |
1217 | fail: | |
1218 | return NULL; | |
1219 | } | |
1220 | ||
1221 | ||
1222 | static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1223 | PyObject *resultobj; | |
1224 | wxColour *arg1 = (wxColour *) 0 ; | |
1225 | bool result; | |
1226 | PyObject * obj0 = 0 ; | |
1227 | char *kwnames[] = { | |
1228 | (char *) "self", NULL | |
1229 | }; | |
1230 | ||
1231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail; | |
1232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1234 | { | |
1235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1236 | result = (bool)(arg1)->Ok(); | |
1237 | ||
1238 | wxPyEndAllowThreads(__tstate); | |
1239 | if (PyErr_Occurred()) SWIG_fail; | |
1240 | } | |
1241 | { | |
1242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1243 | } | |
1244 | return resultobj; | |
1245 | fail: | |
1246 | return NULL; | |
1247 | } | |
1248 | ||
1249 | ||
1250 | static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1251 | PyObject *resultobj; | |
1252 | wxColour *arg1 = (wxColour *) 0 ; | |
79fccf9d RD |
1253 | byte arg2 ; |
1254 | byte arg3 ; | |
1255 | byte arg4 ; | |
d55e5bfc RD |
1256 | PyObject * obj0 = 0 ; |
1257 | PyObject * obj1 = 0 ; | |
1258 | PyObject * obj2 = 0 ; | |
1259 | PyObject * obj3 = 0 ; | |
1260 | char *kwnames[] = { | |
1261 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1262 | }; | |
1263 | ||
1264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
79fccf9d | 1267 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); |
d55e5bfc | 1268 | if (PyErr_Occurred()) SWIG_fail; |
79fccf9d | 1269 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
d55e5bfc | 1270 | if (PyErr_Occurred()) SWIG_fail; |
79fccf9d | 1271 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); |
d55e5bfc RD |
1272 | if (PyErr_Occurred()) SWIG_fail; |
1273 | { | |
1274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1275 | (arg1)->Set(arg2,arg3,arg4); | |
1276 | ||
1277 | wxPyEndAllowThreads(__tstate); | |
1278 | if (PyErr_Occurred()) SWIG_fail; | |
1279 | } | |
1280 | Py_INCREF(Py_None); resultobj = Py_None; | |
1281 | return resultobj; | |
1282 | fail: | |
1283 | return NULL; | |
1284 | } | |
1285 | ||
1286 | ||
1287 | static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1288 | PyObject *resultobj; | |
1289 | wxColour *arg1 = (wxColour *) 0 ; | |
1290 | unsigned long arg2 ; | |
1291 | PyObject * obj0 = 0 ; | |
1292 | PyObject * obj1 = 0 ; | |
1293 | char *kwnames[] = { | |
1294 | (char *) "self",(char *) "colRGB", NULL | |
1295 | }; | |
1296 | ||
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1300 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
1301 | if (PyErr_Occurred()) SWIG_fail; | |
1302 | { | |
1303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1304 | (arg1)->Set(arg2); | |
1305 | ||
1306 | wxPyEndAllowThreads(__tstate); | |
1307 | if (PyErr_Occurred()) SWIG_fail; | |
1308 | } | |
1309 | Py_INCREF(Py_None); resultobj = Py_None; | |
1310 | return resultobj; | |
1311 | fail: | |
1312 | return NULL; | |
1313 | } | |
1314 | ||
1315 | ||
1316 | static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1317 | PyObject *resultobj; | |
1318 | wxColour *arg1 = (wxColour *) 0 ; | |
1319 | wxString *arg2 = 0 ; | |
1320 | bool temp2 = False ; | |
1321 | PyObject * obj0 = 0 ; | |
1322 | PyObject * obj1 = 0 ; | |
1323 | char *kwnames[] = { | |
1324 | (char *) "self",(char *) "colourName", NULL | |
1325 | }; | |
1326 | ||
1327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail; | |
1328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1330 | { | |
1331 | arg2 = wxString_in_helper(obj1); | |
1332 | if (arg2 == NULL) SWIG_fail; | |
1333 | temp2 = True; | |
1334 | } | |
1335 | { | |
1336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1337 | (arg1)->InitFromName((wxString const &)*arg2); | |
1338 | ||
1339 | wxPyEndAllowThreads(__tstate); | |
1340 | if (PyErr_Occurred()) SWIG_fail; | |
1341 | } | |
1342 | Py_INCREF(Py_None); resultobj = Py_None; | |
1343 | { | |
1344 | if (temp2) | |
1345 | delete arg2; | |
1346 | } | |
1347 | return resultobj; | |
1348 | fail: | |
1349 | { | |
1350 | if (temp2) | |
1351 | delete arg2; | |
1352 | } | |
1353 | return NULL; | |
1354 | } | |
1355 | ||
1356 | ||
1357 | static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1358 | PyObject *resultobj; | |
1359 | wxColour *arg1 = (wxColour *) 0 ; | |
1360 | long result; | |
1361 | PyObject * obj0 = 0 ; | |
1362 | char *kwnames[] = { | |
1363 | (char *) "self", NULL | |
1364 | }; | |
1365 | ||
1366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail; | |
1367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1369 | { | |
1370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1371 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
1372 | ||
1373 | wxPyEndAllowThreads(__tstate); | |
1374 | if (PyErr_Occurred()) SWIG_fail; | |
1375 | } | |
1376 | resultobj = SWIG_FromLong((long)result); | |
1377 | return resultobj; | |
1378 | fail: | |
1379 | return NULL; | |
1380 | } | |
1381 | ||
1382 | ||
1383 | static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1384 | PyObject *resultobj; | |
1385 | wxColour *arg1 = (wxColour *) 0 ; | |
1386 | wxColour *arg2 = 0 ; | |
1387 | bool result; | |
1388 | wxColour temp2 ; | |
1389 | PyObject * obj0 = 0 ; | |
1390 | PyObject * obj1 = 0 ; | |
1391 | char *kwnames[] = { | |
1392 | (char *) "self",(char *) "colour", NULL | |
1393 | }; | |
1394 | ||
1395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail; | |
1396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1398 | { | |
1399 | arg2 = &temp2; | |
1400 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1401 | } | |
1402 | { | |
1403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1404 | result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2); | |
1405 | ||
1406 | wxPyEndAllowThreads(__tstate); | |
1407 | if (PyErr_Occurred()) SWIG_fail; | |
1408 | } | |
1409 | { | |
1410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1411 | } | |
1412 | return resultobj; | |
1413 | fail: | |
1414 | return NULL; | |
1415 | } | |
1416 | ||
1417 | ||
1418 | static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject *resultobj; | |
1420 | wxColour *arg1 = (wxColour *) 0 ; | |
1421 | wxColour *arg2 = 0 ; | |
1422 | bool result; | |
1423 | wxColour temp2 ; | |
1424 | PyObject * obj0 = 0 ; | |
1425 | PyObject * obj1 = 0 ; | |
1426 | char *kwnames[] = { | |
1427 | (char *) "self",(char *) "colour", NULL | |
1428 | }; | |
1429 | ||
1430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail; | |
1431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1433 | { | |
1434 | arg2 = &temp2; | |
1435 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1436 | } | |
1437 | { | |
1438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1439 | result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2); | |
1440 | ||
1441 | wxPyEndAllowThreads(__tstate); | |
1442 | if (PyErr_Occurred()) SWIG_fail; | |
1443 | } | |
1444 | { | |
1445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1446 | } | |
1447 | return resultobj; | |
1448 | fail: | |
1449 | return NULL; | |
1450 | } | |
1451 | ||
1452 | ||
1453 | static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject *resultobj; | |
1455 | wxColour *arg1 = (wxColour *) 0 ; | |
1456 | PyObject *result; | |
1457 | PyObject * obj0 = 0 ; | |
1458 | char *kwnames[] = { | |
1459 | (char *) "self", NULL | |
1460 | }; | |
1461 | ||
1462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail; | |
1463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1465 | { | |
1466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1467 | result = (PyObject *)wxColour_Get(arg1); | |
1468 | ||
1469 | wxPyEndAllowThreads(__tstate); | |
1470 | if (PyErr_Occurred()) SWIG_fail; | |
1471 | } | |
1472 | resultobj = result; | |
1473 | return resultobj; | |
1474 | fail: | |
1475 | return NULL; | |
1476 | } | |
1477 | ||
1478 | ||
1479 | static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject *resultobj; | |
1481 | wxColour *arg1 = (wxColour *) 0 ; | |
1482 | unsigned long result; | |
1483 | PyObject * obj0 = 0 ; | |
1484 | char *kwnames[] = { | |
1485 | (char *) "self", NULL | |
1486 | }; | |
1487 | ||
1488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail; | |
1489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour, | |
1490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1491 | { | |
1492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1493 | result = (unsigned long)wxColour_GetRGB(arg1); | |
1494 | ||
1495 | wxPyEndAllowThreads(__tstate); | |
1496 | if (PyErr_Occurred()) SWIG_fail; | |
1497 | } | |
1498 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
1499 | return resultobj; | |
1500 | fail: | |
1501 | return NULL; | |
1502 | } | |
1503 | ||
1504 | ||
1505 | static PyObject * Colour_swigregister(PyObject *self, PyObject *args) { | |
1506 | PyObject *obj; | |
1507 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1508 | SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj); | |
1509 | Py_INCREF(obj); | |
1510 | return Py_BuildValue((char *)""); | |
1511 | } | |
1512 | static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1513 | PyObject *resultobj; | |
1514 | int arg1 ; | |
1515 | unsigned char *arg2 = (unsigned char *) 0 ; | |
1516 | unsigned char *arg3 = (unsigned char *) 0 ; | |
1517 | unsigned char *arg4 = (unsigned char *) 0 ; | |
1518 | wxPalette *result; | |
1519 | PyObject * obj0 = 0 ; | |
1520 | PyObject * obj1 = 0 ; | |
1521 | PyObject * obj2 = 0 ; | |
1522 | PyObject * obj3 = 0 ; | |
1523 | char *kwnames[] = { | |
1524 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1525 | }; | |
1526 | ||
1527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1528 | arg1 = (int) SWIG_AsInt(obj0); | |
1529 | if (PyErr_Occurred()) SWIG_fail; | |
1530 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char, | |
1531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1532 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
1533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1534 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
1535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1536 | { | |
0439c23b | 1537 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1539 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
1540 | ||
1541 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1542 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1543 | } |
1544 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1); | |
1545 | return resultobj; | |
1546 | fail: | |
1547 | return NULL; | |
1548 | } | |
1549 | ||
1550 | ||
1551 | static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1552 | PyObject *resultobj; | |
1553 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1554 | PyObject * obj0 = 0 ; | |
1555 | char *kwnames[] = { | |
1556 | (char *) "self", NULL | |
1557 | }; | |
1558 | ||
1559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail; | |
1560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1562 | { | |
1563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1564 | delete arg1; | |
1565 | ||
1566 | wxPyEndAllowThreads(__tstate); | |
1567 | if (PyErr_Occurred()) SWIG_fail; | |
1568 | } | |
1569 | Py_INCREF(Py_None); resultobj = Py_None; | |
1570 | return resultobj; | |
1571 | fail: | |
1572 | return NULL; | |
1573 | } | |
1574 | ||
1575 | ||
1576 | static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1577 | PyObject *resultobj; | |
1578 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1579 | byte arg2 ; | |
1580 | byte arg3 ; | |
1581 | byte arg4 ; | |
1582 | int result; | |
1583 | PyObject * obj0 = 0 ; | |
1584 | PyObject * obj1 = 0 ; | |
1585 | PyObject * obj2 = 0 ; | |
1586 | PyObject * obj3 = 0 ; | |
1587 | char *kwnames[] = { | |
1588 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
1589 | }; | |
1590 | ||
1591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
1592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1594 | arg2 = (byte) SWIG_AsUnsignedChar(obj1); | |
1595 | if (PyErr_Occurred()) SWIG_fail; | |
1596 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
1597 | if (PyErr_Occurred()) SWIG_fail; | |
1598 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
1599 | if (PyErr_Occurred()) SWIG_fail; | |
1600 | { | |
1601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1602 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
1603 | ||
1604 | wxPyEndAllowThreads(__tstate); | |
1605 | if (PyErr_Occurred()) SWIG_fail; | |
1606 | } | |
1607 | resultobj = SWIG_FromInt((int)result); | |
1608 | return resultobj; | |
1609 | fail: | |
1610 | return NULL; | |
1611 | } | |
1612 | ||
1613 | ||
1614 | static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1615 | PyObject *resultobj; | |
1616 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1617 | int arg2 ; | |
1618 | byte *arg3 = (byte *) 0 ; | |
1619 | byte *arg4 = (byte *) 0 ; | |
1620 | byte *arg5 = (byte *) 0 ; | |
1621 | bool result; | |
1622 | byte temp3 ; | |
1623 | byte temp4 ; | |
1624 | byte temp5 ; | |
1625 | PyObject * obj0 = 0 ; | |
1626 | PyObject * obj1 = 0 ; | |
1627 | char *kwnames[] = { | |
1628 | (char *) "self",(char *) "pixel", NULL | |
1629 | }; | |
1630 | ||
1631 | arg3 = &temp3; | |
1632 | arg4 = &temp4; | |
1633 | arg5 = &temp5; | |
1634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail; | |
1635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1637 | arg2 = (int) SWIG_AsInt(obj1); | |
1638 | if (PyErr_Occurred()) SWIG_fail; | |
1639 | { | |
1640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1641 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
1642 | ||
1643 | wxPyEndAllowThreads(__tstate); | |
1644 | if (PyErr_Occurred()) SWIG_fail; | |
1645 | } | |
1646 | { | |
1647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1648 | } | |
1649 | { | |
1650 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1651 | resultobj = t_output_helper(resultobj,o); | |
1652 | } | |
1653 | { | |
1654 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
1655 | resultobj = t_output_helper(resultobj,o); | |
1656 | } | |
1657 | { | |
1658 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1659 | resultobj = t_output_helper(resultobj,o); | |
1660 | } | |
1661 | return resultobj; | |
1662 | fail: | |
1663 | return NULL; | |
1664 | } | |
1665 | ||
1666 | ||
1667 | static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1668 | PyObject *resultobj; | |
1669 | wxPalette *arg1 = (wxPalette *) 0 ; | |
1670 | bool result; | |
1671 | PyObject * obj0 = 0 ; | |
1672 | char *kwnames[] = { | |
1673 | (char *) "self", NULL | |
1674 | }; | |
1675 | ||
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail; | |
1677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette, | |
1678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1679 | { | |
1680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1681 | result = (bool)(arg1)->Ok(); | |
1682 | ||
1683 | wxPyEndAllowThreads(__tstate); | |
1684 | if (PyErr_Occurred()) SWIG_fail; | |
1685 | } | |
1686 | { | |
1687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1688 | } | |
1689 | return resultobj; | |
1690 | fail: | |
1691 | return NULL; | |
1692 | } | |
1693 | ||
1694 | ||
1695 | static PyObject * Palette_swigregister(PyObject *self, PyObject *args) { | |
1696 | PyObject *obj; | |
1697 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1698 | SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj); | |
1699 | Py_INCREF(obj); | |
1700 | return Py_BuildValue((char *)""); | |
1701 | } | |
1702 | static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1703 | PyObject *resultobj; | |
1704 | wxColour *arg1 = 0 ; | |
1705 | int arg2 = (int) 1 ; | |
1706 | int arg3 = (int) wxSOLID ; | |
1707 | wxPen *result; | |
1708 | wxColour temp1 ; | |
1709 | PyObject * obj0 = 0 ; | |
1710 | PyObject * obj1 = 0 ; | |
1711 | PyObject * obj2 = 0 ; | |
1712 | char *kwnames[] = { | |
1713 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
1714 | }; | |
1715 | ||
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1717 | { | |
1718 | arg1 = &temp1; | |
1719 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
1720 | } | |
1721 | if (obj1) { | |
1722 | arg2 = (int) SWIG_AsInt(obj1); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | if (obj2) { | |
1726 | arg3 = (int) SWIG_AsInt(obj2); | |
1727 | if (PyErr_Occurred()) SWIG_fail; | |
1728 | } | |
1729 | { | |
0439c23b | 1730 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1732 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
1733 | ||
1734 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1735 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1736 | } |
1737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1); | |
1738 | return resultobj; | |
1739 | fail: | |
1740 | return NULL; | |
1741 | } | |
1742 | ||
1743 | ||
1744 | static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1745 | PyObject *resultobj; | |
1746 | wxPen *arg1 = (wxPen *) 0 ; | |
1747 | PyObject * obj0 = 0 ; | |
1748 | char *kwnames[] = { | |
1749 | (char *) "self", NULL | |
1750 | }; | |
1751 | ||
1752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail; | |
1753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1755 | { | |
1756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1757 | delete arg1; | |
1758 | ||
1759 | wxPyEndAllowThreads(__tstate); | |
1760 | if (PyErr_Occurred()) SWIG_fail; | |
1761 | } | |
1762 | Py_INCREF(Py_None); resultobj = Py_None; | |
1763 | return resultobj; | |
1764 | fail: | |
1765 | return NULL; | |
1766 | } | |
1767 | ||
1768 | ||
1769 | static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject *resultobj; | |
1771 | wxPen *arg1 = (wxPen *) 0 ; | |
1772 | int result; | |
1773 | PyObject * obj0 = 0 ; | |
1774 | char *kwnames[] = { | |
1775 | (char *) "self", NULL | |
1776 | }; | |
1777 | ||
1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail; | |
1779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1781 | { | |
1782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1783 | result = (int)(arg1)->GetCap(); | |
1784 | ||
1785 | wxPyEndAllowThreads(__tstate); | |
1786 | if (PyErr_Occurred()) SWIG_fail; | |
1787 | } | |
1788 | resultobj = SWIG_FromInt((int)result); | |
1789 | return resultobj; | |
1790 | fail: | |
1791 | return NULL; | |
1792 | } | |
1793 | ||
1794 | ||
1795 | static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1796 | PyObject *resultobj; | |
1797 | wxPen *arg1 = (wxPen *) 0 ; | |
1798 | wxColour result; | |
1799 | PyObject * obj0 = 0 ; | |
1800 | char *kwnames[] = { | |
1801 | (char *) "self", NULL | |
1802 | }; | |
1803 | ||
1804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail; | |
1805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1807 | { | |
1808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1809 | result = (arg1)->GetColour(); | |
1810 | ||
1811 | wxPyEndAllowThreads(__tstate); | |
1812 | if (PyErr_Occurred()) SWIG_fail; | |
1813 | } | |
1814 | { | |
1815 | wxColour * resultptr; | |
1816 | resultptr = new wxColour((wxColour &) result); | |
1817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
1818 | } | |
1819 | return resultobj; | |
1820 | fail: | |
1821 | return NULL; | |
1822 | } | |
1823 | ||
1824 | ||
1825 | static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1826 | PyObject *resultobj; | |
1827 | wxPen *arg1 = (wxPen *) 0 ; | |
1828 | int result; | |
1829 | PyObject * obj0 = 0 ; | |
1830 | char *kwnames[] = { | |
1831 | (char *) "self", NULL | |
1832 | }; | |
1833 | ||
1834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail; | |
1835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1837 | { | |
1838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1839 | result = (int)(arg1)->GetJoin(); | |
1840 | ||
1841 | wxPyEndAllowThreads(__tstate); | |
1842 | if (PyErr_Occurred()) SWIG_fail; | |
1843 | } | |
1844 | resultobj = SWIG_FromInt((int)result); | |
1845 | return resultobj; | |
1846 | fail: | |
1847 | return NULL; | |
1848 | } | |
1849 | ||
1850 | ||
1851 | static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1852 | PyObject *resultobj; | |
1853 | wxPen *arg1 = (wxPen *) 0 ; | |
1854 | int result; | |
1855 | PyObject * obj0 = 0 ; | |
1856 | char *kwnames[] = { | |
1857 | (char *) "self", NULL | |
1858 | }; | |
1859 | ||
1860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail; | |
1861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1863 | { | |
1864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1865 | result = (int)(arg1)->GetStyle(); | |
1866 | ||
1867 | wxPyEndAllowThreads(__tstate); | |
1868 | if (PyErr_Occurred()) SWIG_fail; | |
1869 | } | |
1870 | resultobj = SWIG_FromInt((int)result); | |
1871 | return resultobj; | |
1872 | fail: | |
1873 | return NULL; | |
1874 | } | |
1875 | ||
1876 | ||
1877 | static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1878 | PyObject *resultobj; | |
1879 | wxPen *arg1 = (wxPen *) 0 ; | |
1880 | int result; | |
1881 | PyObject * obj0 = 0 ; | |
1882 | char *kwnames[] = { | |
1883 | (char *) "self", NULL | |
1884 | }; | |
1885 | ||
1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail; | |
1887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1889 | { | |
1890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1891 | result = (int)(arg1)->GetWidth(); | |
1892 | ||
1893 | wxPyEndAllowThreads(__tstate); | |
1894 | if (PyErr_Occurred()) SWIG_fail; | |
1895 | } | |
1896 | resultobj = SWIG_FromInt((int)result); | |
1897 | return resultobj; | |
1898 | fail: | |
1899 | return NULL; | |
1900 | } | |
1901 | ||
1902 | ||
1903 | static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1904 | PyObject *resultobj; | |
1905 | wxPen *arg1 = (wxPen *) 0 ; | |
1906 | bool result; | |
1907 | PyObject * obj0 = 0 ; | |
1908 | char *kwnames[] = { | |
1909 | (char *) "self", NULL | |
1910 | }; | |
1911 | ||
1912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail; | |
1913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1915 | { | |
1916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1917 | result = (bool)(arg1)->Ok(); | |
1918 | ||
1919 | wxPyEndAllowThreads(__tstate); | |
1920 | if (PyErr_Occurred()) SWIG_fail; | |
1921 | } | |
1922 | { | |
1923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1924 | } | |
1925 | return resultobj; | |
1926 | fail: | |
1927 | return NULL; | |
1928 | } | |
1929 | ||
1930 | ||
1931 | static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1932 | PyObject *resultobj; | |
1933 | wxPen *arg1 = (wxPen *) 0 ; | |
1934 | int arg2 ; | |
1935 | PyObject * obj0 = 0 ; | |
1936 | PyObject * obj1 = 0 ; | |
1937 | char *kwnames[] = { | |
1938 | (char *) "self",(char *) "cap_style", NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail; | |
1942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1944 | arg2 = (int) SWIG_AsInt(obj1); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | { | |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1948 | (arg1)->SetCap(arg2); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
1951 | if (PyErr_Occurred()) SWIG_fail; | |
1952 | } | |
1953 | Py_INCREF(Py_None); resultobj = Py_None; | |
1954 | return resultobj; | |
1955 | fail: | |
1956 | return NULL; | |
1957 | } | |
1958 | ||
1959 | ||
1960 | static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject *resultobj; | |
1962 | wxPen *arg1 = (wxPen *) 0 ; | |
1963 | wxColour *arg2 = 0 ; | |
1964 | wxColour temp2 ; | |
1965 | PyObject * obj0 = 0 ; | |
1966 | PyObject * obj1 = 0 ; | |
1967 | char *kwnames[] = { | |
1968 | (char *) "self",(char *) "colour", NULL | |
1969 | }; | |
1970 | ||
1971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
1972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
1973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1974 | { | |
1975 | arg2 = &temp2; | |
1976 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
1977 | } | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | (arg1)->SetColour(*arg2); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
1985 | Py_INCREF(Py_None); resultobj = Py_None; | |
1986 | return resultobj; | |
1987 | fail: | |
1988 | return NULL; | |
1989 | } | |
1990 | ||
1991 | ||
1992 | static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject *resultobj; | |
1994 | wxPen *arg1 = (wxPen *) 0 ; | |
1995 | int arg2 ; | |
1996 | PyObject * obj0 = 0 ; | |
1997 | PyObject * obj1 = 0 ; | |
1998 | char *kwnames[] = { | |
1999 | (char *) "self",(char *) "join_style", NULL | |
2000 | }; | |
2001 | ||
2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail; | |
2003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2005 | arg2 = (int) SWIG_AsInt(obj1); | |
2006 | if (PyErr_Occurred()) SWIG_fail; | |
2007 | { | |
2008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2009 | (arg1)->SetJoin(arg2); | |
2010 | ||
2011 | wxPyEndAllowThreads(__tstate); | |
2012 | if (PyErr_Occurred()) SWIG_fail; | |
2013 | } | |
2014 | Py_INCREF(Py_None); resultobj = Py_None; | |
2015 | return resultobj; | |
2016 | fail: | |
2017 | return NULL; | |
2018 | } | |
2019 | ||
2020 | ||
2021 | static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2022 | PyObject *resultobj; | |
2023 | wxPen *arg1 = (wxPen *) 0 ; | |
2024 | int arg2 ; | |
2025 | PyObject * obj0 = 0 ; | |
2026 | PyObject * obj1 = 0 ; | |
2027 | char *kwnames[] = { | |
2028 | (char *) "self",(char *) "style", NULL | |
2029 | }; | |
2030 | ||
2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2034 | arg2 = (int) SWIG_AsInt(obj1); | |
2035 | if (PyErr_Occurred()) SWIG_fail; | |
2036 | { | |
2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2038 | (arg1)->SetStyle(arg2); | |
2039 | ||
2040 | wxPyEndAllowThreads(__tstate); | |
2041 | if (PyErr_Occurred()) SWIG_fail; | |
2042 | } | |
2043 | Py_INCREF(Py_None); resultobj = Py_None; | |
2044 | return resultobj; | |
2045 | fail: | |
2046 | return NULL; | |
2047 | } | |
2048 | ||
2049 | ||
2050 | static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject *resultobj; | |
2052 | wxPen *arg1 = (wxPen *) 0 ; | |
2053 | int arg2 ; | |
2054 | PyObject * obj0 = 0 ; | |
2055 | PyObject * obj1 = 0 ; | |
2056 | char *kwnames[] = { | |
2057 | (char *) "self",(char *) "width", NULL | |
2058 | }; | |
2059 | ||
2060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2063 | arg2 = (int) SWIG_AsInt(obj1); | |
2064 | if (PyErr_Occurred()) SWIG_fail; | |
2065 | { | |
2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2067 | (arg1)->SetWidth(arg2); | |
2068 | ||
2069 | wxPyEndAllowThreads(__tstate); | |
2070 | if (PyErr_Occurred()) SWIG_fail; | |
2071 | } | |
2072 | Py_INCREF(Py_None); resultobj = Py_None; | |
2073 | return resultobj; | |
2074 | fail: | |
2075 | return NULL; | |
2076 | } | |
2077 | ||
2078 | ||
2079 | static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject *resultobj; | |
2081 | wxPen *arg1 = (wxPen *) 0 ; | |
2082 | int arg2 ; | |
2083 | wxDash *arg3 = (wxDash *) 0 ; | |
2084 | PyObject * obj0 = 0 ; | |
2085 | PyObject * obj1 = 0 ; | |
2086 | char *kwnames[] = { | |
2087 | (char *) "self",(char *) "dashes", NULL | |
2088 | }; | |
2089 | ||
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail; | |
2091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2093 | { | |
2094 | arg2 = PyList_Size(obj1); | |
2095 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
2096 | if (arg3 == NULL) SWIG_fail; | |
2097 | } | |
2098 | { | |
2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2100 | (arg1)->SetDashes(arg2,arg3); | |
2101 | ||
2102 | wxPyEndAllowThreads(__tstate); | |
2103 | if (PyErr_Occurred()) SWIG_fail; | |
2104 | } | |
2105 | Py_INCREF(Py_None); resultobj = Py_None; | |
2106 | { | |
2107 | if (arg3) delete [] arg3; | |
2108 | } | |
2109 | return resultobj; | |
2110 | fail: | |
2111 | { | |
2112 | if (arg3) delete [] arg3; | |
2113 | } | |
2114 | return NULL; | |
2115 | } | |
2116 | ||
2117 | ||
2118 | static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2119 | PyObject *resultobj; | |
2120 | wxPen *arg1 = (wxPen *) 0 ; | |
2121 | PyObject *result; | |
2122 | PyObject * obj0 = 0 ; | |
2123 | char *kwnames[] = { | |
2124 | (char *) "self", NULL | |
2125 | }; | |
2126 | ||
2127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail; | |
2128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2130 | { | |
2131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2132 | result = (PyObject *)wxPen_GetDashes(arg1); | |
2133 | ||
2134 | wxPyEndAllowThreads(__tstate); | |
2135 | if (PyErr_Occurred()) SWIG_fail; | |
2136 | } | |
2137 | resultobj = result; | |
2138 | return resultobj; | |
2139 | fail: | |
2140 | return NULL; | |
2141 | } | |
2142 | ||
2143 | ||
c24da6d6 | 2144 | static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2145 | PyObject *resultobj; |
2146 | wxPen *arg1 = (wxPen *) 0 ; | |
c24da6d6 RD |
2147 | PyObject *arg2 = (PyObject *) 0 ; |
2148 | PyObject *arg3 = (PyObject *) 0 ; | |
d55e5bfc RD |
2149 | PyObject * obj0 = 0 ; |
2150 | PyObject * obj1 = 0 ; | |
c24da6d6 | 2151 | PyObject * obj2 = 0 ; |
d55e5bfc | 2152 | char *kwnames[] = { |
c24da6d6 | 2153 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL |
d55e5bfc RD |
2154 | }; |
2155 | ||
c24da6d6 | 2156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
2157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, |
2158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c24da6d6 RD |
2159 | arg2 = obj1; |
2160 | arg3 = obj2; | |
d55e5bfc RD |
2161 | { |
2162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2163 | wxPen__SetDashes(arg1,arg2,arg3); |
d55e5bfc RD |
2164 | |
2165 | wxPyEndAllowThreads(__tstate); | |
2166 | if (PyErr_Occurred()) SWIG_fail; | |
2167 | } | |
c24da6d6 | 2168 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2169 | return resultobj; |
2170 | fail: | |
2171 | return NULL; | |
2172 | } | |
2173 | ||
2174 | ||
2175 | static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2176 | PyObject *resultobj; | |
2177 | wxPen *arg1 = (wxPen *) 0 ; | |
2178 | int result; | |
2179 | PyObject * obj0 = 0 ; | |
2180 | char *kwnames[] = { | |
2181 | (char *) "self", NULL | |
2182 | }; | |
2183 | ||
2184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail; | |
2185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2187 | { | |
2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2189 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
2190 | ||
2191 | wxPyEndAllowThreads(__tstate); | |
2192 | if (PyErr_Occurred()) SWIG_fail; | |
2193 | } | |
2194 | resultobj = SWIG_FromInt((int)result); | |
2195 | return resultobj; | |
2196 | fail: | |
2197 | return NULL; | |
2198 | } | |
2199 | ||
2200 | ||
2201 | static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2202 | PyObject *resultobj; | |
2203 | wxPen *arg1 = (wxPen *) 0 ; | |
2204 | wxBitmap *result; | |
2205 | PyObject * obj0 = 0 ; | |
2206 | char *kwnames[] = { | |
2207 | (char *) "self", NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail; | |
2211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2213 | { | |
2214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2215 | result = (wxBitmap *)(arg1)->GetStipple(); | |
2216 | ||
2217 | wxPyEndAllowThreads(__tstate); | |
2218 | if (PyErr_Occurred()) SWIG_fail; | |
2219 | } | |
2220 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2221 | return resultobj; | |
2222 | fail: | |
2223 | return NULL; | |
2224 | } | |
2225 | ||
2226 | ||
2227 | static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2228 | PyObject *resultobj; | |
2229 | wxPen *arg1 = (wxPen *) 0 ; | |
2230 | wxBitmap *arg2 = 0 ; | |
2231 | PyObject * obj0 = 0 ; | |
2232 | PyObject * obj1 = 0 ; | |
2233 | char *kwnames[] = { | |
2234 | (char *) "self",(char *) "stipple", NULL | |
2235 | }; | |
2236 | ||
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2240 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2241 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2242 | SWIG_fail; | |
2243 | if (arg2 == NULL) { | |
2244 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2245 | SWIG_fail; | |
2246 | } | |
2247 | { | |
2248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2249 | (arg1)->SetStipple(*arg2); | |
2250 | ||
2251 | wxPyEndAllowThreads(__tstate); | |
2252 | if (PyErr_Occurred()) SWIG_fail; | |
2253 | } | |
2254 | Py_INCREF(Py_None); resultobj = Py_None; | |
2255 | return resultobj; | |
2256 | fail: | |
2257 | return NULL; | |
2258 | } | |
2259 | ||
2260 | ||
c24da6d6 | 2261 | static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2262 | PyObject *resultobj; |
c24da6d6 RD |
2263 | wxPen *arg1 = (wxPen *) 0 ; |
2264 | wxPen *arg2 = (wxPen *) 0 ; | |
2265 | bool result; | |
d55e5bfc RD |
2266 | PyObject * obj0 = 0 ; |
2267 | PyObject * obj1 = 0 ; | |
d55e5bfc | 2268 | char *kwnames[] = { |
c24da6d6 | 2269 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2270 | }; |
2271 | ||
c24da6d6 RD |
2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail; |
2273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
2276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
2277 | { |
2278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2279 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2280 | |
2281 | wxPyEndAllowThreads(__tstate); | |
2282 | if (PyErr_Occurred()) SWIG_fail; | |
2283 | } | |
d55e5bfc | 2284 | { |
c24da6d6 | 2285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc | 2286 | } |
d55e5bfc RD |
2287 | return resultobj; |
2288 | fail: | |
2289 | return NULL; | |
2290 | } | |
2291 | ||
2292 | ||
c24da6d6 | 2293 | static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2294 | PyObject *resultobj; |
c24da6d6 RD |
2295 | wxPen *arg1 = (wxPen *) 0 ; |
2296 | wxPen *arg2 = (wxPen *) 0 ; | |
2297 | bool result; | |
d55e5bfc RD |
2298 | PyObject * obj0 = 0 ; |
2299 | PyObject * obj1 = 0 ; | |
2300 | char *kwnames[] = { | |
c24da6d6 | 2301 | (char *) "self",(char *) "other", NULL |
d55e5bfc RD |
2302 | }; |
2303 | ||
c24da6d6 RD |
2304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail; |
2305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen, | |
2306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
d55e5bfc | 2308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d55e5bfc RD |
2309 | { |
2310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2311 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); |
d55e5bfc RD |
2312 | |
2313 | wxPyEndAllowThreads(__tstate); | |
2314 | if (PyErr_Occurred()) SWIG_fail; | |
2315 | } | |
d55e5bfc | 2316 | { |
c24da6d6 | 2317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d55e5bfc RD |
2318 | } |
2319 | return resultobj; | |
2320 | fail: | |
d55e5bfc RD |
2321 | return NULL; |
2322 | } | |
2323 | ||
2324 | ||
c24da6d6 | 2325 | static PyObject * Pen_swigregister(PyObject *self, PyObject *args) { |
d55e5bfc RD |
2326 | PyObject *obj; |
2327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
c24da6d6 | 2328 | SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj); |
d55e5bfc RD |
2329 | Py_INCREF(obj); |
2330 | return Py_BuildValue((char *)""); | |
2331 | } | |
2332 | static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2333 | PyObject *resultobj; | |
2334 | wxColour *arg1 = 0 ; | |
2335 | int arg2 = (int) wxSOLID ; | |
2336 | wxBrush *result; | |
2337 | wxColour temp1 ; | |
2338 | PyObject * obj0 = 0 ; | |
2339 | PyObject * obj1 = 0 ; | |
2340 | char *kwnames[] = { | |
2341 | (char *) "colour",(char *) "style", NULL | |
2342 | }; | |
2343 | ||
2344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail; | |
2345 | { | |
2346 | arg1 = &temp1; | |
2347 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
2348 | } | |
2349 | if (obj1) { | |
2350 | arg2 = (int) SWIG_AsInt(obj1); | |
2351 | if (PyErr_Occurred()) SWIG_fail; | |
2352 | } | |
2353 | { | |
0439c23b | 2354 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2356 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
2357 | ||
2358 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2359 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2360 | } |
2361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1); | |
2362 | return resultobj; | |
2363 | fail: | |
2364 | return NULL; | |
2365 | } | |
2366 | ||
2367 | ||
2368 | static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2369 | PyObject *resultobj; | |
2370 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2371 | PyObject * obj0 = 0 ; | |
2372 | char *kwnames[] = { | |
2373 | (char *) "self", NULL | |
2374 | }; | |
2375 | ||
2376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail; | |
2377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2379 | { | |
2380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2381 | delete arg1; | |
2382 | ||
2383 | wxPyEndAllowThreads(__tstate); | |
2384 | if (PyErr_Occurred()) SWIG_fail; | |
2385 | } | |
2386 | Py_INCREF(Py_None); resultobj = Py_None; | |
2387 | return resultobj; | |
2388 | fail: | |
2389 | return NULL; | |
2390 | } | |
2391 | ||
2392 | ||
2393 | static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2394 | PyObject *resultobj; | |
2395 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2396 | wxColour *arg2 = 0 ; | |
2397 | wxColour temp2 ; | |
2398 | PyObject * obj0 = 0 ; | |
2399 | PyObject * obj1 = 0 ; | |
2400 | char *kwnames[] = { | |
2401 | (char *) "self",(char *) "col", NULL | |
2402 | }; | |
2403 | ||
2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
2405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2407 | { | |
2408 | arg2 = &temp2; | |
2409 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
2410 | } | |
2411 | { | |
2412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2413 | (arg1)->SetColour((wxColour const &)*arg2); | |
2414 | ||
2415 | wxPyEndAllowThreads(__tstate); | |
2416 | if (PyErr_Occurred()) SWIG_fail; | |
2417 | } | |
2418 | Py_INCREF(Py_None); resultobj = Py_None; | |
2419 | return resultobj; | |
2420 | fail: | |
2421 | return NULL; | |
2422 | } | |
2423 | ||
2424 | ||
2425 | static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2426 | PyObject *resultobj; | |
2427 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2428 | int arg2 ; | |
2429 | PyObject * obj0 = 0 ; | |
2430 | PyObject * obj1 = 0 ; | |
2431 | char *kwnames[] = { | |
2432 | (char *) "self",(char *) "style", NULL | |
2433 | }; | |
2434 | ||
2435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
2436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2438 | arg2 = (int) SWIG_AsInt(obj1); | |
2439 | if (PyErr_Occurred()) SWIG_fail; | |
2440 | { | |
2441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2442 | (arg1)->SetStyle(arg2); | |
2443 | ||
2444 | wxPyEndAllowThreads(__tstate); | |
2445 | if (PyErr_Occurred()) SWIG_fail; | |
2446 | } | |
2447 | Py_INCREF(Py_None); resultobj = Py_None; | |
2448 | return resultobj; | |
2449 | fail: | |
2450 | return NULL; | |
2451 | } | |
2452 | ||
2453 | ||
2454 | static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2455 | PyObject *resultobj; | |
2456 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2457 | wxBitmap *arg2 = 0 ; | |
2458 | PyObject * obj0 = 0 ; | |
2459 | PyObject * obj1 = 0 ; | |
2460 | char *kwnames[] = { | |
2461 | (char *) "self",(char *) "stipple", NULL | |
2462 | }; | |
2463 | ||
2464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail; | |
2465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
2468 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2469 | SWIG_fail; | |
2470 | if (arg2 == NULL) { | |
2471 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2472 | SWIG_fail; | |
2473 | } | |
2474 | { | |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2476 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
2477 | ||
2478 | wxPyEndAllowThreads(__tstate); | |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
2480 | } | |
2481 | Py_INCREF(Py_None); resultobj = Py_None; | |
2482 | return resultobj; | |
2483 | fail: | |
2484 | return NULL; | |
2485 | } | |
2486 | ||
2487 | ||
2488 | static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2489 | PyObject *resultobj; | |
2490 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2491 | wxColour result; | |
2492 | PyObject * obj0 = 0 ; | |
2493 | char *kwnames[] = { | |
2494 | (char *) "self", NULL | |
2495 | }; | |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail; | |
2498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2500 | { | |
2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2502 | result = ((wxBrush const *)arg1)->GetColour(); | |
2503 | ||
2504 | wxPyEndAllowThreads(__tstate); | |
2505 | if (PyErr_Occurred()) SWIG_fail; | |
2506 | } | |
2507 | { | |
2508 | wxColour * resultptr; | |
2509 | resultptr = new wxColour((wxColour &) result); | |
2510 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
2511 | } | |
2512 | return resultobj; | |
2513 | fail: | |
2514 | return NULL; | |
2515 | } | |
2516 | ||
2517 | ||
2518 | static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2519 | PyObject *resultobj; | |
2520 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2521 | int result; | |
2522 | PyObject * obj0 = 0 ; | |
2523 | char *kwnames[] = { | |
2524 | (char *) "self", NULL | |
2525 | }; | |
2526 | ||
2527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail; | |
2528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2530 | { | |
2531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2532 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
2533 | ||
2534 | wxPyEndAllowThreads(__tstate); | |
2535 | if (PyErr_Occurred()) SWIG_fail; | |
2536 | } | |
2537 | resultobj = SWIG_FromInt((int)result); | |
2538 | return resultobj; | |
2539 | fail: | |
2540 | return NULL; | |
2541 | } | |
2542 | ||
2543 | ||
2544 | static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2545 | PyObject *resultobj; | |
2546 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2547 | wxBitmap *result; | |
2548 | PyObject * obj0 = 0 ; | |
2549 | char *kwnames[] = { | |
2550 | (char *) "self", NULL | |
2551 | }; | |
2552 | ||
2553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail; | |
2554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2556 | { | |
2557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2558 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
2559 | ||
2560 | wxPyEndAllowThreads(__tstate); | |
2561 | if (PyErr_Occurred()) SWIG_fail; | |
2562 | } | |
2563 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0); | |
2564 | return resultobj; | |
2565 | fail: | |
2566 | return NULL; | |
2567 | } | |
2568 | ||
2569 | ||
2570 | static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2571 | PyObject *resultobj; | |
2572 | wxBrush *arg1 = (wxBrush *) 0 ; | |
2573 | bool result; | |
2574 | PyObject * obj0 = 0 ; | |
2575 | char *kwnames[] = { | |
2576 | (char *) "self", NULL | |
2577 | }; | |
2578 | ||
2579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail; | |
2580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush, | |
2581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2582 | { | |
2583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2584 | result = (bool)(arg1)->Ok(); | |
2585 | ||
2586 | wxPyEndAllowThreads(__tstate); | |
2587 | if (PyErr_Occurred()) SWIG_fail; | |
2588 | } | |
2589 | { | |
2590 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2591 | } | |
2592 | return resultobj; | |
2593 | fail: | |
2594 | return NULL; | |
2595 | } | |
2596 | ||
2597 | ||
2598 | static PyObject * Brush_swigregister(PyObject *self, PyObject *args) { | |
2599 | PyObject *obj; | |
2600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2601 | SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj); | |
2602 | Py_INCREF(obj); | |
2603 | return Py_BuildValue((char *)""); | |
2604 | } | |
2605 | static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject *resultobj; | |
2607 | wxString *arg1 = 0 ; | |
2608 | int arg2 = (int) wxBITMAP_TYPE_ANY ; | |
2609 | wxBitmap *result; | |
2610 | bool temp1 = False ; | |
2611 | PyObject * obj0 = 0 ; | |
2612 | PyObject * obj1 = 0 ; | |
2613 | char *kwnames[] = { | |
2614 | (char *) "name",(char *) "type", NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail; | |
2618 | { | |
2619 | arg1 = wxString_in_helper(obj0); | |
2620 | if (arg1 == NULL) SWIG_fail; | |
2621 | temp1 = True; | |
2622 | } | |
2623 | if (obj1) { | |
2624 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); | |
2625 | if (PyErr_Occurred()) SWIG_fail; | |
2626 | } | |
2627 | { | |
0439c23b | 2628 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2630 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2); | |
2631 | ||
2632 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2633 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2634 | } |
2635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2636 | { | |
2637 | if (temp1) | |
2638 | delete arg1; | |
2639 | } | |
2640 | return resultobj; | |
2641 | fail: | |
2642 | { | |
2643 | if (temp1) | |
2644 | delete arg1; | |
2645 | } | |
2646 | return NULL; | |
2647 | } | |
2648 | ||
2649 | ||
2650 | static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2651 | PyObject *resultobj; | |
2652 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2653 | PyObject * obj0 = 0 ; | |
2654 | char *kwnames[] = { | |
2655 | (char *) "self", NULL | |
2656 | }; | |
2657 | ||
2658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail; | |
2659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2661 | { | |
2662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2663 | delete arg1; | |
2664 | ||
2665 | wxPyEndAllowThreads(__tstate); | |
2666 | if (PyErr_Occurred()) SWIG_fail; | |
2667 | } | |
2668 | Py_INCREF(Py_None); resultobj = Py_None; | |
2669 | return resultobj; | |
2670 | fail: | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
c24da6d6 RD |
2675 | static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
2676 | PyObject *resultobj; | |
2677 | int arg1 ; | |
2678 | int arg2 ; | |
2679 | int arg3 = (int) -1 ; | |
2680 | wxBitmap *result; | |
2681 | PyObject * obj0 = 0 ; | |
2682 | PyObject * obj1 = 0 ; | |
2683 | PyObject * obj2 = 0 ; | |
2684 | char *kwnames[] = { | |
2685 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
2686 | }; | |
2687 | ||
2688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2689 | arg1 = (int) SWIG_AsInt(obj0); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | arg2 = (int) SWIG_AsInt(obj1); | |
2692 | if (PyErr_Occurred()) SWIG_fail; | |
2693 | if (obj2) { | |
2694 | arg3 = (int) SWIG_AsInt(obj2); | |
2695 | if (PyErr_Occurred()) SWIG_fail; | |
2696 | } | |
2697 | { | |
0439c23b | 2698 | if (!wxPyCheckForApp()) SWIG_fail; |
c24da6d6 RD |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2700 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
2701 | ||
2702 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2703 | if (PyErr_Occurred()) SWIG_fail; |
c24da6d6 RD |
2704 | } |
2705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2706 | return resultobj; | |
2707 | fail: | |
2708 | return NULL; | |
2709 | } | |
2710 | ||
2711 | ||
d55e5bfc RD |
2712 | static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
2713 | PyObject *resultobj; | |
2714 | wxIcon *arg1 = 0 ; | |
2715 | wxBitmap *result; | |
2716 | PyObject * obj0 = 0 ; | |
2717 | char *kwnames[] = { | |
2718 | (char *) "icon", NULL | |
2719 | }; | |
2720 | ||
2721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail; | |
2722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
2723 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2724 | SWIG_fail; | |
2725 | if (arg1 == NULL) { | |
2726 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2727 | SWIG_fail; | |
2728 | } | |
2729 | { | |
0439c23b | 2730 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2732 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
2733 | ||
2734 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2735 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2736 | } |
2737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2738 | return resultobj; | |
2739 | fail: | |
2740 | return NULL; | |
2741 | } | |
2742 | ||
2743 | ||
2744 | static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2745 | PyObject *resultobj; | |
2746 | wxImage *arg1 = 0 ; | |
2747 | int arg2 = (int) -1 ; | |
2748 | wxBitmap *result; | |
2749 | PyObject * obj0 = 0 ; | |
2750 | PyObject * obj1 = 0 ; | |
2751 | char *kwnames[] = { | |
2752 | (char *) "image",(char *) "depth", NULL | |
2753 | }; | |
2754 | ||
2755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail; | |
2756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
2757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2758 | SWIG_fail; | |
2759 | if (arg1 == NULL) { | |
2760 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2761 | SWIG_fail; | |
2762 | } | |
2763 | if (obj1) { | |
2764 | arg2 = (int) SWIG_AsInt(obj1); | |
2765 | if (PyErr_Occurred()) SWIG_fail; | |
2766 | } | |
2767 | { | |
0439c23b | 2768 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2770 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
2771 | ||
2772 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2773 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2774 | } |
2775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2776 | return resultobj; | |
2777 | fail: | |
2778 | return NULL; | |
2779 | } | |
2780 | ||
2781 | ||
2782 | static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2783 | PyObject *resultobj; | |
2784 | PyObject *arg1 = (PyObject *) 0 ; | |
2785 | wxBitmap *result; | |
2786 | PyObject * obj0 = 0 ; | |
2787 | char *kwnames[] = { | |
2788 | (char *) "listOfStrings", NULL | |
2789 | }; | |
2790 | ||
2791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail; | |
2792 | arg1 = obj0; | |
2793 | { | |
0439c23b | 2794 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2796 | result = (wxBitmap *)new_wxBitmap(arg1); | |
2797 | ||
2798 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2799 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2800 | } |
2801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2802 | return resultobj; | |
2803 | fail: | |
2804 | return NULL; | |
2805 | } | |
2806 | ||
2807 | ||
2808 | static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2809 | PyObject *resultobj; | |
2810 | PyObject *arg1 = (PyObject *) 0 ; | |
2811 | int arg2 ; | |
2812 | int arg3 ; | |
2813 | int arg4 = (int) 1 ; | |
2814 | wxBitmap *result; | |
2815 | PyObject * obj0 = 0 ; | |
2816 | PyObject * obj1 = 0 ; | |
2817 | PyObject * obj2 = 0 ; | |
2818 | PyObject * obj3 = 0 ; | |
2819 | char *kwnames[] = { | |
2820 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
2821 | }; | |
2822 | ||
2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2824 | arg1 = obj0; | |
2825 | arg2 = (int) SWIG_AsInt(obj1); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
2827 | arg3 = (int) SWIG_AsInt(obj2); | |
2828 | if (PyErr_Occurred()) SWIG_fail; | |
2829 | if (obj3) { | |
2830 | arg4 = (int) SWIG_AsInt(obj3); | |
2831 | if (PyErr_Occurred()) SWIG_fail; | |
2832 | } | |
2833 | { | |
0439c23b | 2834 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2836 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
2837 | ||
2838 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2839 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2840 | } |
2841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1); | |
2842 | return resultobj; | |
2843 | fail: | |
2844 | return NULL; | |
2845 | } | |
2846 | ||
2847 | ||
c24da6d6 | 2848 | static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2849 | PyObject *resultobj; |
c24da6d6 RD |
2850 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
2851 | wxPalette *arg2 = 0 ; | |
d55e5bfc RD |
2852 | PyObject * obj0 = 0 ; |
2853 | PyObject * obj1 = 0 ; | |
c24da6d6 RD |
2854 | char *kwnames[] = { |
2855 | (char *) "self",(char *) "palette", NULL | |
2856 | }; | |
d55e5bfc | 2857 | |
c24da6d6 RD |
2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail; |
2859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2861 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
2862 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2863 | SWIG_fail; | |
2864 | if (arg2 == NULL) { | |
2865 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2866 | SWIG_fail; | |
d55e5bfc RD |
2867 | } |
2868 | { | |
2869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2870 | (arg1)->SetPalette(*arg2); |
d55e5bfc RD |
2871 | |
2872 | wxPyEndAllowThreads(__tstate); | |
2873 | if (PyErr_Occurred()) SWIG_fail; | |
2874 | } | |
c24da6d6 | 2875 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2876 | return resultobj; |
2877 | fail: | |
2878 | return NULL; | |
2879 | } | |
2880 | ||
2881 | ||
c24da6d6 | 2882 | static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 2883 | PyObject *resultobj; |
c24da6d6 RD |
2884 | wxBitmap *arg1 = (wxBitmap *) 0 ; |
2885 | long result; | |
d55e5bfc | 2886 | PyObject * obj0 = 0 ; |
c24da6d6 RD |
2887 | char *kwnames[] = { |
2888 | (char *) "self", NULL | |
2889 | }; | |
d55e5bfc | 2890 | |
c24da6d6 RD |
2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail; |
2892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc | 2894 | { |
c24da6d6 RD |
2895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2896 | result = (long)(arg1)->GetHandle(); | |
2897 | ||
2898 | wxPyEndAllowThreads(__tstate); | |
d55e5bfc RD |
2899 | if (PyErr_Occurred()) SWIG_fail; |
2900 | } | |
c24da6d6 RD |
2901 | resultobj = SWIG_FromLong((long)result); |
2902 | return resultobj; | |
2903 | fail: | |
2904 | return NULL; | |
2905 | } | |
2906 | ||
2907 | ||
2908 | static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2909 | PyObject *resultobj; | |
2910 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2911 | long arg2 ; | |
2912 | PyObject * obj0 = 0 ; | |
2913 | PyObject * obj1 = 0 ; | |
2914 | char *kwnames[] = { | |
2915 | (char *) "self",(char *) "handle", NULL | |
2916 | }; | |
2917 | ||
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
2919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2921 | arg2 = (long) SWIG_AsLong(obj1); | |
2922 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
2923 | { |
2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 2925 | wxBitmap_SetHandle(arg1,arg2); |
d55e5bfc RD |
2926 | |
2927 | wxPyEndAllowThreads(__tstate); | |
2928 | if (PyErr_Occurred()) SWIG_fail; | |
2929 | } | |
c24da6d6 | 2930 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
2931 | return resultobj; |
2932 | fail: | |
2933 | return NULL; | |
2934 | } | |
2935 | ||
2936 | ||
2937 | static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2938 | PyObject *resultobj; | |
2939 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2940 | bool result; | |
2941 | PyObject * obj0 = 0 ; | |
2942 | char *kwnames[] = { | |
2943 | (char *) "self", NULL | |
2944 | }; | |
2945 | ||
2946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail; | |
2947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
2948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2949 | { | |
2950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2951 | result = (bool)(arg1)->Ok(); | |
2952 | ||
2953 | wxPyEndAllowThreads(__tstate); | |
2954 | if (PyErr_Occurred()) SWIG_fail; | |
2955 | } | |
2956 | { | |
2957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2958 | } | |
2959 | return resultobj; | |
2960 | fail: | |
2961 | return NULL; | |
2962 | } | |
2963 | ||
2964 | ||
2965 | static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2966 | PyObject *resultobj; | |
2967 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2968 | int result; | |
2969 | PyObject * obj0 = 0 ; | |
2970 | char *kwnames[] = { | |
2971 | (char *) "self", NULL | |
2972 | }; | |
2973 | ||
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",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 = (int)(arg1)->GetWidth(); | |
2980 | ||
2981 | wxPyEndAllowThreads(__tstate); | |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
2983 | } | |
2984 | resultobj = SWIG_FromInt((int)result); | |
2985 | return resultobj; | |
2986 | fail: | |
2987 | return NULL; | |
2988 | } | |
2989 | ||
2990 | ||
2991 | static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2992 | PyObject *resultobj; | |
2993 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
2994 | int result; | |
2995 | PyObject * obj0 = 0 ; | |
2996 | char *kwnames[] = { | |
2997 | (char *) "self", NULL | |
2998 | }; | |
2999 | ||
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail; | |
3001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3003 | { | |
3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3005 | result = (int)(arg1)->GetHeight(); | |
3006 | ||
3007 | wxPyEndAllowThreads(__tstate); | |
3008 | if (PyErr_Occurred()) SWIG_fail; | |
3009 | } | |
3010 | resultobj = SWIG_FromInt((int)result); | |
3011 | return resultobj; | |
3012 | fail: | |
3013 | return NULL; | |
3014 | } | |
3015 | ||
3016 | ||
3017 | static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3018 | PyObject *resultobj; | |
3019 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3020 | int result; | |
3021 | PyObject * obj0 = 0 ; | |
3022 | char *kwnames[] = { | |
3023 | (char *) "self", NULL | |
3024 | }; | |
3025 | ||
3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail; | |
3027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3029 | { | |
3030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3031 | result = (int)(arg1)->GetDepth(); | |
3032 | ||
3033 | wxPyEndAllowThreads(__tstate); | |
3034 | if (PyErr_Occurred()) SWIG_fail; | |
3035 | } | |
3036 | resultobj = SWIG_FromInt((int)result); | |
3037 | return resultobj; | |
3038 | fail: | |
3039 | return NULL; | |
3040 | } | |
3041 | ||
3042 | ||
3043 | static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject *resultobj; | |
3045 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3046 | wxSize result; | |
3047 | PyObject * obj0 = 0 ; | |
3048 | char *kwnames[] = { | |
3049 | (char *) "self", NULL | |
3050 | }; | |
3051 | ||
3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail; | |
3053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3055 | { | |
3056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3057 | result = wxBitmap_GetSize(arg1); | |
3058 | ||
3059 | wxPyEndAllowThreads(__tstate); | |
3060 | if (PyErr_Occurred()) SWIG_fail; | |
3061 | } | |
3062 | { | |
3063 | wxSize * resultptr; | |
3064 | resultptr = new wxSize((wxSize &) result); | |
3065 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3066 | } | |
3067 | return resultobj; | |
3068 | fail: | |
3069 | return NULL; | |
3070 | } | |
3071 | ||
3072 | ||
3073 | static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject *resultobj; | |
3075 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3076 | SwigValueWrapper< wxImage > result; | |
3077 | PyObject * obj0 = 0 ; | |
3078 | char *kwnames[] = { | |
3079 | (char *) "self", NULL | |
3080 | }; | |
3081 | ||
3082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail; | |
3083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3085 | { | |
3086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3087 | result = ((wxBitmap const *)arg1)->ConvertToImage(); | |
3088 | ||
3089 | wxPyEndAllowThreads(__tstate); | |
3090 | if (PyErr_Occurred()) SWIG_fail; | |
3091 | } | |
3092 | { | |
3093 | wxImage * resultptr; | |
3094 | resultptr = new wxImage((wxImage &) result); | |
3095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
3096 | } | |
3097 | return resultobj; | |
3098 | fail: | |
3099 | return NULL; | |
3100 | } | |
3101 | ||
3102 | ||
3103 | static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3104 | PyObject *resultobj; | |
3105 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3106 | wxMask *result; | |
3107 | PyObject * obj0 = 0 ; | |
3108 | char *kwnames[] = { | |
3109 | (char *) "self", NULL | |
3110 | }; | |
3111 | ||
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail; | |
3113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3115 | { | |
3116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3117 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); | |
3118 | ||
3119 | wxPyEndAllowThreads(__tstate); | |
3120 | if (PyErr_Occurred()) SWIG_fail; | |
3121 | } | |
3122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0); | |
3123 | return resultobj; | |
3124 | fail: | |
3125 | return NULL; | |
3126 | } | |
3127 | ||
3128 | ||
3129 | static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3130 | PyObject *resultobj; | |
3131 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3132 | wxMask *arg2 = (wxMask *) 0 ; | |
3133 | PyObject * obj0 = 0 ; | |
3134 | PyObject * obj1 = 0 ; | |
3135 | char *kwnames[] = { | |
3136 | (char *) "self",(char *) "mask", NULL | |
3137 | }; | |
3138 | ||
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
3140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask, | |
3143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3144 | { | |
3145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3146 | (arg1)->SetMask(arg2); | |
3147 | ||
3148 | wxPyEndAllowThreads(__tstate); | |
3149 | if (PyErr_Occurred()) SWIG_fail; | |
3150 | } | |
3151 | Py_INCREF(Py_None); resultobj = Py_None; | |
3152 | return resultobj; | |
3153 | fail: | |
3154 | return NULL; | |
3155 | } | |
3156 | ||
3157 | ||
3158 | static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3159 | PyObject *resultobj; | |
3160 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3161 | wxColour *arg2 = 0 ; | |
3162 | wxColour temp2 ; | |
3163 | PyObject * obj0 = 0 ; | |
3164 | PyObject * obj1 = 0 ; | |
3165 | char *kwnames[] = { | |
3166 | (char *) "self",(char *) "colour", NULL | |
3167 | }; | |
3168 | ||
3169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail; | |
3170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3172 | { | |
3173 | arg2 = &temp2; | |
3174 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3175 | } | |
3176 | { | |
3177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3178 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); | |
3179 | ||
3180 | wxPyEndAllowThreads(__tstate); | |
3181 | if (PyErr_Occurred()) SWIG_fail; | |
3182 | } | |
3183 | Py_INCREF(Py_None); resultobj = Py_None; | |
3184 | return resultobj; | |
3185 | fail: | |
3186 | return NULL; | |
3187 | } | |
3188 | ||
3189 | ||
3190 | static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3191 | PyObject *resultobj; | |
3192 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3193 | wxRect *arg2 = 0 ; | |
3194 | SwigValueWrapper< wxBitmap > result; | |
3195 | wxRect temp2 ; | |
3196 | PyObject * obj0 = 0 ; | |
3197 | PyObject * obj1 = 0 ; | |
3198 | char *kwnames[] = { | |
3199 | (char *) "self",(char *) "rect", NULL | |
3200 | }; | |
3201 | ||
3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail; | |
3203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3205 | { | |
3206 | arg2 = &temp2; | |
3207 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
3208 | } | |
3209 | { | |
3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3211 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); | |
3212 | ||
3213 | wxPyEndAllowThreads(__tstate); | |
3214 | if (PyErr_Occurred()) SWIG_fail; | |
3215 | } | |
3216 | { | |
3217 | wxBitmap * resultptr; | |
3218 | resultptr = new wxBitmap((wxBitmap &) result); | |
3219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
3220 | } | |
3221 | return resultobj; | |
3222 | fail: | |
3223 | return NULL; | |
3224 | } | |
3225 | ||
3226 | ||
3227 | static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3228 | PyObject *resultobj; | |
3229 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3230 | wxString *arg2 = 0 ; | |
3231 | int arg3 ; | |
c24da6d6 | 3232 | wxPalette *arg4 = (wxPalette *) NULL ; |
d55e5bfc RD |
3233 | bool result; |
3234 | bool temp2 = False ; | |
3235 | PyObject * obj0 = 0 ; | |
3236 | PyObject * obj1 = 0 ; | |
3237 | PyObject * obj2 = 0 ; | |
3238 | PyObject * obj3 = 0 ; | |
3239 | char *kwnames[] = { | |
3240 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
3241 | }; | |
3242 | ||
3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3246 | { | |
3247 | arg2 = wxString_in_helper(obj1); | |
3248 | if (arg2 == NULL) SWIG_fail; | |
3249 | temp2 = True; | |
3250 | } | |
3251 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
3253 | if (obj3) { | |
3254 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette, | |
3255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3256 | } | |
3257 | { | |
3258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3259 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4); | |
3260 | ||
3261 | wxPyEndAllowThreads(__tstate); | |
3262 | if (PyErr_Occurred()) SWIG_fail; | |
3263 | } | |
3264 | { | |
3265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3266 | } | |
3267 | { | |
3268 | if (temp2) | |
3269 | delete arg2; | |
3270 | } | |
3271 | return resultobj; | |
3272 | fail: | |
3273 | { | |
3274 | if (temp2) | |
3275 | delete arg2; | |
3276 | } | |
3277 | return NULL; | |
3278 | } | |
3279 | ||
3280 | ||
3281 | static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3282 | PyObject *resultobj; | |
3283 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3284 | wxString *arg2 = 0 ; | |
3285 | int arg3 ; | |
3286 | bool result; | |
3287 | bool temp2 = False ; | |
3288 | PyObject * obj0 = 0 ; | |
3289 | PyObject * obj1 = 0 ; | |
3290 | PyObject * obj2 = 0 ; | |
3291 | char *kwnames[] = { | |
3292 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3293 | }; | |
3294 | ||
3295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3298 | { | |
3299 | arg2 = wxString_in_helper(obj1); | |
3300 | if (arg2 == NULL) SWIG_fail; | |
3301 | temp2 = True; | |
3302 | } | |
3303 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | { | |
3306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3307 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3308 | ||
3309 | wxPyEndAllowThreads(__tstate); | |
3310 | if (PyErr_Occurred()) SWIG_fail; | |
3311 | } | |
3312 | { | |
3313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3314 | } | |
3315 | { | |
3316 | if (temp2) | |
3317 | delete arg2; | |
3318 | } | |
3319 | return resultobj; | |
3320 | fail: | |
3321 | { | |
3322 | if (temp2) | |
3323 | delete arg2; | |
3324 | } | |
3325 | return NULL; | |
3326 | } | |
3327 | ||
3328 | ||
3329 | static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3330 | PyObject *resultobj; | |
3331 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3332 | wxIcon *arg2 = 0 ; | |
3333 | bool result; | |
3334 | PyObject * obj0 = 0 ; | |
3335 | PyObject * obj1 = 0 ; | |
3336 | char *kwnames[] = { | |
3337 | (char *) "self",(char *) "icon", NULL | |
3338 | }; | |
3339 | ||
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail; | |
3341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
3344 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3345 | SWIG_fail; | |
3346 | if (arg2 == NULL) { | |
3347 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3348 | SWIG_fail; | |
3349 | } | |
3350 | { | |
3351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3352 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); | |
3353 | ||
3354 | wxPyEndAllowThreads(__tstate); | |
3355 | if (PyErr_Occurred()) SWIG_fail; | |
3356 | } | |
3357 | { | |
3358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3359 | } | |
3360 | return resultobj; | |
3361 | fail: | |
3362 | return NULL; | |
3363 | } | |
3364 | ||
3365 | ||
3366 | static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3367 | PyObject *resultobj; | |
3368 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3369 | int arg2 ; | |
3370 | PyObject * obj0 = 0 ; | |
3371 | PyObject * obj1 = 0 ; | |
3372 | char *kwnames[] = { | |
3373 | (char *) "self",(char *) "height", NULL | |
3374 | }; | |
3375 | ||
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3379 | arg2 = (int) SWIG_AsInt(obj1); | |
3380 | if (PyErr_Occurred()) SWIG_fail; | |
3381 | { | |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3383 | (arg1)->SetHeight(arg2); | |
3384 | ||
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
3388 | Py_INCREF(Py_None); resultobj = Py_None; | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | return NULL; | |
3392 | } | |
3393 | ||
3394 | ||
3395 | static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject *resultobj; | |
3397 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3398 | int arg2 ; | |
3399 | PyObject * obj0 = 0 ; | |
3400 | PyObject * obj1 = 0 ; | |
3401 | char *kwnames[] = { | |
3402 | (char *) "self",(char *) "width", NULL | |
3403 | }; | |
3404 | ||
3405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3408 | arg2 = (int) SWIG_AsInt(obj1); | |
3409 | if (PyErr_Occurred()) SWIG_fail; | |
3410 | { | |
3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3412 | (arg1)->SetWidth(arg2); | |
3413 | ||
3414 | wxPyEndAllowThreads(__tstate); | |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
3416 | } | |
3417 | Py_INCREF(Py_None); resultobj = Py_None; | |
3418 | return resultobj; | |
3419 | fail: | |
3420 | return NULL; | |
3421 | } | |
3422 | ||
3423 | ||
3424 | static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3425 | PyObject *resultobj; | |
3426 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3427 | int arg2 ; | |
3428 | PyObject * obj0 = 0 ; | |
3429 | PyObject * obj1 = 0 ; | |
3430 | char *kwnames[] = { | |
3431 | (char *) "self",(char *) "depth", NULL | |
3432 | }; | |
3433 | ||
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
3435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3437 | arg2 = (int) SWIG_AsInt(obj1); | |
3438 | if (PyErr_Occurred()) SWIG_fail; | |
3439 | { | |
3440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3441 | (arg1)->SetDepth(arg2); | |
3442 | ||
3443 | wxPyEndAllowThreads(__tstate); | |
3444 | if (PyErr_Occurred()) SWIG_fail; | |
3445 | } | |
3446 | Py_INCREF(Py_None); resultobj = Py_None; | |
3447 | return resultobj; | |
3448 | fail: | |
3449 | return NULL; | |
3450 | } | |
3451 | ||
3452 | ||
3453 | static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3454 | PyObject *resultobj; | |
3455 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3456 | wxSize *arg2 = 0 ; | |
3457 | wxSize temp2 ; | |
3458 | PyObject * obj0 = 0 ; | |
3459 | PyObject * obj1 = 0 ; | |
3460 | char *kwnames[] = { | |
3461 | (char *) "self",(char *) "size", NULL | |
3462 | }; | |
3463 | ||
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3467 | { | |
3468 | arg2 = &temp2; | |
3469 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3470 | } | |
3471 | { | |
3472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3473 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); | |
3474 | ||
3475 | wxPyEndAllowThreads(__tstate); | |
3476 | if (PyErr_Occurred()) SWIG_fail; | |
3477 | } | |
3478 | Py_INCREF(Py_None); resultobj = Py_None; | |
3479 | return resultobj; | |
3480 | fail: | |
3481 | return NULL; | |
3482 | } | |
3483 | ||
3484 | ||
3485 | static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3486 | PyObject *resultobj; | |
3487 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3488 | wxCursor *arg2 = 0 ; | |
3489 | bool result; | |
3490 | PyObject * obj0 = 0 ; | |
3491 | PyObject * obj1 = 0 ; | |
3492 | char *kwnames[] = { | |
3493 | (char *) "self",(char *) "cursor", NULL | |
3494 | }; | |
3495 | ||
3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail; | |
3497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
3500 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3501 | SWIG_fail; | |
3502 | if (arg2 == NULL) { | |
3503 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3504 | SWIG_fail; | |
3505 | } | |
3506 | { | |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); | |
3509 | ||
3510 | wxPyEndAllowThreads(__tstate); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | { | |
3514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3515 | } | |
3516 | return resultobj; | |
3517 | fail: | |
3518 | return NULL; | |
3519 | } | |
3520 | ||
3521 | ||
3522 | static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3523 | PyObject *resultobj; | |
3524 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3525 | int result; | |
3526 | PyObject * obj0 = 0 ; | |
3527 | char *kwnames[] = { | |
3528 | (char *) "self", NULL | |
3529 | }; | |
3530 | ||
3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail; | |
3532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3534 | { | |
3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3536 | result = (int)(arg1)->GetQuality(); | |
3537 | ||
3538 | wxPyEndAllowThreads(__tstate); | |
3539 | if (PyErr_Occurred()) SWIG_fail; | |
3540 | } | |
3541 | resultobj = SWIG_FromInt((int)result); | |
3542 | return resultobj; | |
3543 | fail: | |
3544 | return NULL; | |
3545 | } | |
3546 | ||
3547 | ||
3548 | static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject *resultobj; | |
3550 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3551 | int arg2 ; | |
3552 | PyObject * obj0 = 0 ; | |
3553 | PyObject * obj1 = 0 ; | |
3554 | char *kwnames[] = { | |
3555 | (char *) "self",(char *) "q", NULL | |
3556 | }; | |
3557 | ||
3558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
3559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3561 | arg2 = (int) SWIG_AsInt(obj1); | |
3562 | if (PyErr_Occurred()) SWIG_fail; | |
3563 | { | |
3564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3565 | (arg1)->SetQuality(arg2); | |
3566 | ||
3567 | wxPyEndAllowThreads(__tstate); | |
3568 | if (PyErr_Occurred()) SWIG_fail; | |
3569 | } | |
3570 | Py_INCREF(Py_None); resultobj = Py_None; | |
3571 | return resultobj; | |
3572 | fail: | |
3573 | return NULL; | |
3574 | } | |
3575 | ||
3576 | ||
3577 | static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3578 | PyObject *resultobj; | |
3579 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3580 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3581 | bool result; | |
3582 | PyObject * obj0 = 0 ; | |
3583 | PyObject * obj1 = 0 ; | |
3584 | char *kwnames[] = { | |
3585 | (char *) "self",(char *) "other", NULL | |
3586 | }; | |
3587 | ||
3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3591 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3593 | { | |
3594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3595 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); | |
3596 | ||
3597 | wxPyEndAllowThreads(__tstate); | |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
3599 | } | |
3600 | { | |
3601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3602 | } | |
3603 | return resultobj; | |
3604 | fail: | |
3605 | return NULL; | |
3606 | } | |
3607 | ||
3608 | ||
3609 | static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3610 | PyObject *resultobj; | |
3611 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
3612 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
3613 | bool result; | |
3614 | PyObject * obj0 = 0 ; | |
3615 | PyObject * obj1 = 0 ; | |
3616 | char *kwnames[] = { | |
3617 | (char *) "self",(char *) "other", NULL | |
3618 | }; | |
3619 | ||
3620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3623 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
3624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3625 | { | |
3626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3627 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
3628 | ||
3629 | wxPyEndAllowThreads(__tstate); | |
3630 | if (PyErr_Occurred()) SWIG_fail; | |
3631 | } | |
3632 | { | |
3633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3634 | } | |
3635 | return resultobj; | |
3636 | fail: | |
3637 | return NULL; | |
3638 | } | |
3639 | ||
3640 | ||
3641 | static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) { | |
3642 | PyObject *obj; | |
3643 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3644 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj); | |
3645 | Py_INCREF(obj); | |
3646 | return Py_BuildValue((char *)""); | |
3647 | } | |
3648 | static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3649 | PyObject *resultobj; | |
3650 | wxBitmap *arg1 = 0 ; | |
3651 | wxColour const &arg2_defvalue = wxNullColour ; | |
3652 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
3653 | wxMask *result; | |
3654 | wxColour temp2 ; | |
3655 | PyObject * obj0 = 0 ; | |
3656 | PyObject * obj1 = 0 ; | |
3657 | char *kwnames[] = { | |
3658 | (char *) "bitmap",(char *) "colour", NULL | |
3659 | }; | |
3660 | ||
3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail; | |
3662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3663 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3664 | SWIG_fail; | |
3665 | if (arg1 == NULL) { | |
3666 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3667 | SWIG_fail; | |
3668 | } | |
3669 | if (obj1) { | |
3670 | { | |
3671 | arg2 = &temp2; | |
3672 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
3673 | } | |
3674 | } | |
3675 | { | |
0439c23b | 3676 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3678 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
3679 | ||
3680 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3681 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3682 | } |
3683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1); | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
3690 | static PyObject * Mask_swigregister(PyObject *self, PyObject *args) { | |
3691 | PyObject *obj; | |
3692 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3693 | SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj); | |
3694 | Py_INCREF(obj); | |
3695 | return Py_BuildValue((char *)""); | |
3696 | } | |
3697 | static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3698 | PyObject *resultobj; | |
3699 | wxString *arg1 = 0 ; | |
3700 | int arg2 ; | |
3701 | int arg3 = (int) -1 ; | |
3702 | int arg4 = (int) -1 ; | |
3703 | wxIcon *result; | |
3704 | bool temp1 = False ; | |
3705 | PyObject * obj0 = 0 ; | |
3706 | PyObject * obj1 = 0 ; | |
3707 | PyObject * obj2 = 0 ; | |
3708 | PyObject * obj3 = 0 ; | |
3709 | char *kwnames[] = { | |
3710 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
3711 | }; | |
3712 | ||
3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3714 | { | |
3715 | arg1 = wxString_in_helper(obj0); | |
3716 | if (arg1 == NULL) SWIG_fail; | |
3717 | temp1 = True; | |
3718 | } | |
3719 | arg2 = (wxBitmapType) SWIG_AsInt(obj1); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | if (obj2) { | |
3722 | arg3 = (int) SWIG_AsInt(obj2); | |
3723 | if (PyErr_Occurred()) SWIG_fail; | |
3724 | } | |
3725 | if (obj3) { | |
3726 | arg4 = (int) SWIG_AsInt(obj3); | |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | { | |
0439c23b | 3730 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3732 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4); | |
3733 | ||
3734 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3735 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3736 | } |
3737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3738 | { | |
3739 | if (temp1) | |
3740 | delete arg1; | |
3741 | } | |
3742 | return resultobj; | |
3743 | fail: | |
3744 | { | |
3745 | if (temp1) | |
3746 | delete arg1; | |
3747 | } | |
3748 | return NULL; | |
3749 | } | |
3750 | ||
3751 | ||
3752 | static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3753 | PyObject *resultobj; | |
3754 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3755 | PyObject * obj0 = 0 ; | |
3756 | char *kwnames[] = { | |
3757 | (char *) "self", NULL | |
3758 | }; | |
3759 | ||
3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail; | |
3761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3763 | { | |
3764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3765 | delete arg1; | |
3766 | ||
3767 | wxPyEndAllowThreads(__tstate); | |
3768 | if (PyErr_Occurred()) SWIG_fail; | |
3769 | } | |
3770 | Py_INCREF(Py_None); resultobj = Py_None; | |
3771 | return resultobj; | |
3772 | fail: | |
3773 | return NULL; | |
3774 | } | |
3775 | ||
3776 | ||
3777 | static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3778 | PyObject *resultobj; | |
3779 | wxIcon *result; | |
3780 | char *kwnames[] = { | |
3781 | NULL | |
3782 | }; | |
3783 | ||
3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail; | |
3785 | { | |
0439c23b | 3786 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3788 | result = (wxIcon *)new wxIcon(); | |
3789 | ||
3790 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3791 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3792 | } |
3793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3794 | return resultobj; | |
3795 | fail: | |
3796 | return NULL; | |
3797 | } | |
3798 | ||
3799 | ||
3800 | static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3801 | PyObject *resultobj; | |
3802 | wxIconLocation *arg1 = 0 ; | |
3803 | wxIcon *result; | |
3804 | PyObject * obj0 = 0 ; | |
3805 | char *kwnames[] = { | |
3806 | (char *) "loc", NULL | |
3807 | }; | |
3808 | ||
3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail; | |
3810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
3811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3812 | SWIG_fail; | |
3813 | if (arg1 == NULL) { | |
3814 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3815 | SWIG_fail; | |
3816 | } | |
3817 | { | |
0439c23b | 3818 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3820 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
3821 | ||
3822 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3823 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3824 | } |
3825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3826 | return resultobj; | |
3827 | fail: | |
3828 | return NULL; | |
3829 | } | |
3830 | ||
3831 | ||
3832 | static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3833 | PyObject *resultobj; | |
3834 | wxBitmap *arg1 = 0 ; | |
3835 | wxIcon *result; | |
3836 | PyObject * obj0 = 0 ; | |
3837 | char *kwnames[] = { | |
3838 | (char *) "bmp", NULL | |
3839 | }; | |
3840 | ||
3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail; | |
3842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
3843 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3844 | SWIG_fail; | |
3845 | if (arg1 == NULL) { | |
3846 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3847 | SWIG_fail; | |
3848 | } | |
3849 | { | |
0439c23b | 3850 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3852 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
3853 | ||
3854 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3855 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3856 | } |
3857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3858 | return resultobj; | |
3859 | fail: | |
3860 | return NULL; | |
3861 | } | |
3862 | ||
3863 | ||
3864 | static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3865 | PyObject *resultobj; | |
3866 | PyObject *arg1 = (PyObject *) 0 ; | |
3867 | wxIcon *result; | |
3868 | PyObject * obj0 = 0 ; | |
3869 | char *kwnames[] = { | |
3870 | (char *) "listOfStrings", NULL | |
3871 | }; | |
3872 | ||
3873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail; | |
3874 | arg1 = obj0; | |
3875 | { | |
0439c23b | 3876 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3878 | result = (wxIcon *)new_wxIcon(arg1); | |
3879 | ||
3880 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3881 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3882 | } |
3883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1); | |
3884 | return resultobj; | |
3885 | fail: | |
3886 | return NULL; | |
3887 | } | |
3888 | ||
3889 | ||
3890 | static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3891 | PyObject *resultobj; | |
3892 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3893 | wxString *arg2 = 0 ; | |
3894 | int arg3 ; | |
3895 | bool result; | |
3896 | bool temp2 = False ; | |
3897 | PyObject * obj0 = 0 ; | |
3898 | PyObject * obj1 = 0 ; | |
3899 | PyObject * obj2 = 0 ; | |
3900 | char *kwnames[] = { | |
3901 | (char *) "self",(char *) "name",(char *) "type", NULL | |
3902 | }; | |
3903 | ||
3904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3907 | { | |
3908 | arg2 = wxString_in_helper(obj1); | |
3909 | if (arg2 == NULL) SWIG_fail; | |
3910 | temp2 = True; | |
3911 | } | |
3912 | arg3 = (wxBitmapType) SWIG_AsInt(obj2); | |
3913 | if (PyErr_Occurred()) SWIG_fail; | |
3914 | { | |
3915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3916 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3); | |
3917 | ||
3918 | wxPyEndAllowThreads(__tstate); | |
3919 | if (PyErr_Occurred()) SWIG_fail; | |
3920 | } | |
3921 | { | |
3922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3923 | } | |
3924 | { | |
3925 | if (temp2) | |
3926 | delete arg2; | |
3927 | } | |
3928 | return resultobj; | |
3929 | fail: | |
3930 | { | |
3931 | if (temp2) | |
3932 | delete arg2; | |
3933 | } | |
3934 | return NULL; | |
3935 | } | |
3936 | ||
3937 | ||
3938 | static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3939 | PyObject *resultobj; | |
3940 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3941 | long result; | |
3942 | PyObject * obj0 = 0 ; | |
3943 | char *kwnames[] = { | |
3944 | (char *) "self", NULL | |
3945 | }; | |
3946 | ||
3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail; | |
3948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3950 | { | |
3951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3952 | result = (long)(arg1)->GetHandle(); | |
3953 | ||
3954 | wxPyEndAllowThreads(__tstate); | |
3955 | if (PyErr_Occurred()) SWIG_fail; | |
3956 | } | |
3957 | resultobj = SWIG_FromLong((long)result); | |
3958 | return resultobj; | |
3959 | fail: | |
3960 | return NULL; | |
3961 | } | |
3962 | ||
3963 | ||
3964 | static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3965 | PyObject *resultobj; | |
3966 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3967 | long arg2 ; | |
3968 | PyObject * obj0 = 0 ; | |
3969 | PyObject * obj1 = 0 ; | |
3970 | char *kwnames[] = { | |
3971 | (char *) "self",(char *) "handle", NULL | |
3972 | }; | |
3973 | ||
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
3975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
3976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3977 | arg2 = (long) SWIG_AsLong(obj1); | |
3978 | if (PyErr_Occurred()) SWIG_fail; | |
3979 | { | |
3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3981 | wxIcon_SetHandle(arg1,arg2); | |
3982 | ||
3983 | wxPyEndAllowThreads(__tstate); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
3985 | } | |
3986 | Py_INCREF(Py_None); resultobj = Py_None; | |
3987 | return resultobj; | |
3988 | fail: | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
3993 | static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3994 | PyObject *resultobj; | |
3995 | wxIcon *arg1 = (wxIcon *) 0 ; | |
3996 | bool result; | |
3997 | PyObject * obj0 = 0 ; | |
3998 | char *kwnames[] = { | |
3999 | (char *) "self", NULL | |
4000 | }; | |
4001 | ||
4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail; | |
4003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4005 | { | |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4007 | result = (bool)(arg1)->Ok(); | |
4008 | ||
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
4011 | } | |
4012 | { | |
4013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4014 | } | |
4015 | return resultobj; | |
4016 | fail: | |
4017 | return NULL; | |
4018 | } | |
4019 | ||
4020 | ||
4021 | static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4022 | PyObject *resultobj; | |
4023 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4024 | int result; | |
4025 | PyObject * obj0 = 0 ; | |
4026 | char *kwnames[] = { | |
4027 | (char *) "self", NULL | |
4028 | }; | |
4029 | ||
4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail; | |
4031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4033 | { | |
4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4035 | result = (int)(arg1)->GetWidth(); | |
4036 | ||
4037 | wxPyEndAllowThreads(__tstate); | |
4038 | if (PyErr_Occurred()) SWIG_fail; | |
4039 | } | |
4040 | resultobj = SWIG_FromInt((int)result); | |
4041 | return resultobj; | |
4042 | fail: | |
4043 | return NULL; | |
4044 | } | |
4045 | ||
4046 | ||
4047 | static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4048 | PyObject *resultobj; | |
4049 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4050 | int result; | |
4051 | PyObject * obj0 = 0 ; | |
4052 | char *kwnames[] = { | |
4053 | (char *) "self", NULL | |
4054 | }; | |
4055 | ||
4056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail; | |
4057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4059 | { | |
4060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4061 | result = (int)(arg1)->GetHeight(); | |
4062 | ||
4063 | wxPyEndAllowThreads(__tstate); | |
4064 | if (PyErr_Occurred()) SWIG_fail; | |
4065 | } | |
4066 | resultobj = SWIG_FromInt((int)result); | |
4067 | return resultobj; | |
4068 | fail: | |
4069 | return NULL; | |
4070 | } | |
4071 | ||
4072 | ||
4073 | static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4074 | PyObject *resultobj; | |
4075 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4076 | int result; | |
4077 | PyObject * obj0 = 0 ; | |
4078 | char *kwnames[] = { | |
4079 | (char *) "self", NULL | |
4080 | }; | |
4081 | ||
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail; | |
4083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | result = (int)(arg1)->GetDepth(); | |
4088 | ||
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | resultobj = SWIG_FromInt((int)result); | |
4093 | return resultobj; | |
4094 | fail: | |
4095 | return NULL; | |
4096 | } | |
4097 | ||
4098 | ||
4099 | static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4100 | PyObject *resultobj; | |
4101 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4102 | int arg2 ; | |
4103 | PyObject * obj0 = 0 ; | |
4104 | PyObject * obj1 = 0 ; | |
4105 | char *kwnames[] = { | |
4106 | (char *) "self",(char *) "w", NULL | |
4107 | }; | |
4108 | ||
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
4110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4112 | arg2 = (int) SWIG_AsInt(obj1); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | { | |
4115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4116 | (arg1)->SetWidth(arg2); | |
4117 | ||
4118 | wxPyEndAllowThreads(__tstate); | |
4119 | if (PyErr_Occurred()) SWIG_fail; | |
4120 | } | |
4121 | Py_INCREF(Py_None); resultobj = Py_None; | |
4122 | return resultobj; | |
4123 | fail: | |
4124 | return NULL; | |
4125 | } | |
4126 | ||
4127 | ||
4128 | static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4129 | PyObject *resultobj; | |
4130 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4131 | int arg2 ; | |
4132 | PyObject * obj0 = 0 ; | |
4133 | PyObject * obj1 = 0 ; | |
4134 | char *kwnames[] = { | |
4135 | (char *) "self",(char *) "h", NULL | |
4136 | }; | |
4137 | ||
4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
4139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4141 | arg2 = (int) SWIG_AsInt(obj1); | |
4142 | if (PyErr_Occurred()) SWIG_fail; | |
4143 | { | |
4144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4145 | (arg1)->SetHeight(arg2); | |
4146 | ||
4147 | wxPyEndAllowThreads(__tstate); | |
4148 | if (PyErr_Occurred()) SWIG_fail; | |
4149 | } | |
4150 | Py_INCREF(Py_None); resultobj = Py_None; | |
4151 | return resultobj; | |
4152 | fail: | |
4153 | return NULL; | |
4154 | } | |
4155 | ||
4156 | ||
4157 | static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4158 | PyObject *resultobj; | |
4159 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4160 | int arg2 ; | |
4161 | PyObject * obj0 = 0 ; | |
4162 | PyObject * obj1 = 0 ; | |
4163 | char *kwnames[] = { | |
4164 | (char *) "self",(char *) "d", NULL | |
4165 | }; | |
4166 | ||
4167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
4168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4170 | arg2 = (int) SWIG_AsInt(obj1); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | { | |
4173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4174 | (arg1)->SetDepth(arg2); | |
4175 | ||
4176 | wxPyEndAllowThreads(__tstate); | |
4177 | if (PyErr_Occurred()) SWIG_fail; | |
4178 | } | |
4179 | Py_INCREF(Py_None); resultobj = Py_None; | |
4180 | return resultobj; | |
4181 | fail: | |
4182 | return NULL; | |
4183 | } | |
4184 | ||
4185 | ||
4186 | static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4187 | PyObject *resultobj; | |
4188 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4189 | wxSize *arg2 = 0 ; | |
4190 | wxSize temp2 ; | |
4191 | PyObject * obj0 = 0 ; | |
4192 | PyObject * obj1 = 0 ; | |
4193 | char *kwnames[] = { | |
4194 | (char *) "self",(char *) "size", NULL | |
4195 | }; | |
4196 | ||
4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4200 | { | |
4201 | arg2 = &temp2; | |
4202 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4203 | } | |
4204 | { | |
4205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4206 | (arg1)->SetSize((wxSize const &)*arg2); | |
4207 | ||
4208 | wxPyEndAllowThreads(__tstate); | |
4209 | if (PyErr_Occurred()) SWIG_fail; | |
4210 | } | |
4211 | Py_INCREF(Py_None); resultobj = Py_None; | |
4212 | return resultobj; | |
4213 | fail: | |
4214 | return NULL; | |
4215 | } | |
4216 | ||
4217 | ||
4218 | static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4219 | PyObject *resultobj; | |
4220 | wxIcon *arg1 = (wxIcon *) 0 ; | |
4221 | wxBitmap *arg2 = 0 ; | |
4222 | PyObject * obj0 = 0 ; | |
4223 | PyObject * obj1 = 0 ; | |
4224 | char *kwnames[] = { | |
4225 | (char *) "self",(char *) "bmp", NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4233 | SWIG_fail; | |
4234 | if (arg2 == NULL) { | |
4235 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4236 | SWIG_fail; | |
4237 | } | |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | Py_INCREF(Py_None); resultobj = Py_None; | |
4246 | return resultobj; | |
4247 | fail: | |
4248 | return NULL; | |
4249 | } | |
4250 | ||
4251 | ||
4252 | static PyObject * Icon_swigregister(PyObject *self, PyObject *args) { | |
4253 | PyObject *obj; | |
4254 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4255 | SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj); | |
4256 | Py_INCREF(obj); | |
4257 | return Py_BuildValue((char *)""); | |
4258 | } | |
4259 | static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4260 | PyObject *resultobj; | |
4261 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
4262 | int arg2 = (int) 0 ; | |
4263 | wxIconLocation *result; | |
4264 | bool temp1 = False ; | |
4265 | PyObject * obj0 = 0 ; | |
4266 | PyObject * obj1 = 0 ; | |
4267 | char *kwnames[] = { | |
4268 | (char *) "filename",(char *) "num", NULL | |
4269 | }; | |
4270 | ||
4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail; | |
4272 | if (obj0) { | |
4273 | { | |
4274 | arg1 = wxString_in_helper(obj0); | |
4275 | if (arg1 == NULL) SWIG_fail; | |
4276 | temp1 = True; | |
4277 | } | |
4278 | } | |
4279 | if (obj1) { | |
4280 | arg2 = (int) SWIG_AsInt(obj1); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | } | |
4283 | { | |
4284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4285 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
4286 | ||
4287 | wxPyEndAllowThreads(__tstate); | |
4288 | if (PyErr_Occurred()) SWIG_fail; | |
4289 | } | |
4290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1); | |
4291 | { | |
4292 | if (temp1) | |
4293 | delete arg1; | |
4294 | } | |
4295 | return resultobj; | |
4296 | fail: | |
4297 | { | |
4298 | if (temp1) | |
4299 | delete arg1; | |
4300 | } | |
4301 | return NULL; | |
4302 | } | |
4303 | ||
4304 | ||
4305 | static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject *resultobj; | |
4307 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4308 | PyObject * obj0 = 0 ; | |
4309 | char *kwnames[] = { | |
4310 | (char *) "self", NULL | |
4311 | }; | |
4312 | ||
4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail; | |
4314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4316 | { | |
4317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4318 | delete arg1; | |
4319 | ||
4320 | wxPyEndAllowThreads(__tstate); | |
4321 | if (PyErr_Occurred()) SWIG_fail; | |
4322 | } | |
4323 | Py_INCREF(Py_None); resultobj = Py_None; | |
4324 | return resultobj; | |
4325 | fail: | |
4326 | return NULL; | |
4327 | } | |
4328 | ||
4329 | ||
4330 | static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4331 | PyObject *resultobj; | |
4332 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4333 | bool result; | |
4334 | PyObject * obj0 = 0 ; | |
4335 | char *kwnames[] = { | |
4336 | (char *) "self", NULL | |
4337 | }; | |
4338 | ||
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail; | |
4340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4342 | { | |
4343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4344 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
4345 | ||
4346 | wxPyEndAllowThreads(__tstate); | |
4347 | if (PyErr_Occurred()) SWIG_fail; | |
4348 | } | |
4349 | { | |
4350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4351 | } | |
4352 | return resultobj; | |
4353 | fail: | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject *resultobj; | |
4360 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4361 | wxString *arg2 = 0 ; | |
4362 | bool temp2 = False ; | |
4363 | PyObject * obj0 = 0 ; | |
4364 | PyObject * obj1 = 0 ; | |
4365 | char *kwnames[] = { | |
4366 | (char *) "self",(char *) "filename", NULL | |
4367 | }; | |
4368 | ||
4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail; | |
4370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4372 | { | |
4373 | arg2 = wxString_in_helper(obj1); | |
4374 | if (arg2 == NULL) SWIG_fail; | |
4375 | temp2 = True; | |
4376 | } | |
4377 | { | |
4378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4379 | (arg1)->SetFileName((wxString const &)*arg2); | |
4380 | ||
4381 | wxPyEndAllowThreads(__tstate); | |
4382 | if (PyErr_Occurred()) SWIG_fail; | |
4383 | } | |
4384 | Py_INCREF(Py_None); resultobj = Py_None; | |
4385 | { | |
4386 | if (temp2) | |
4387 | delete arg2; | |
4388 | } | |
4389 | return resultobj; | |
4390 | fail: | |
4391 | { | |
4392 | if (temp2) | |
4393 | delete arg2; | |
4394 | } | |
4395 | return NULL; | |
4396 | } | |
4397 | ||
4398 | ||
4399 | static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4400 | PyObject *resultobj; | |
4401 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4402 | wxString *result; | |
4403 | PyObject * obj0 = 0 ; | |
4404 | char *kwnames[] = { | |
4405 | (char *) "self", NULL | |
4406 | }; | |
4407 | ||
4408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail; | |
4409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4411 | { | |
4412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4413 | { | |
4414 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); | |
4415 | result = (wxString *) &_result_ref; | |
4416 | } | |
4417 | ||
4418 | wxPyEndAllowThreads(__tstate); | |
4419 | if (PyErr_Occurred()) SWIG_fail; | |
4420 | } | |
4421 | { | |
4422 | #if wxUSE_UNICODE | |
4423 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
4424 | #else | |
4425 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
4426 | #endif | |
4427 | } | |
4428 | return resultobj; | |
4429 | fail: | |
4430 | return NULL; | |
4431 | } | |
4432 | ||
4433 | ||
4434 | static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4435 | PyObject *resultobj; | |
4436 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4437 | int arg2 ; | |
4438 | PyObject * obj0 = 0 ; | |
4439 | PyObject * obj1 = 0 ; | |
4440 | char *kwnames[] = { | |
4441 | (char *) "self",(char *) "num", NULL | |
4442 | }; | |
4443 | ||
4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail; | |
4445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4447 | arg2 = (int) SWIG_AsInt(obj1); | |
4448 | if (PyErr_Occurred()) SWIG_fail; | |
4449 | { | |
4450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4451 | wxIconLocation_SetIndex(arg1,arg2); | |
4452 | ||
4453 | wxPyEndAllowThreads(__tstate); | |
4454 | if (PyErr_Occurred()) SWIG_fail; | |
4455 | } | |
4456 | Py_INCREF(Py_None); resultobj = Py_None; | |
4457 | return resultobj; | |
4458 | fail: | |
4459 | return NULL; | |
4460 | } | |
4461 | ||
4462 | ||
4463 | static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject *resultobj; | |
4465 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
4466 | int result; | |
4467 | PyObject * obj0 = 0 ; | |
4468 | char *kwnames[] = { | |
4469 | (char *) "self", NULL | |
4470 | }; | |
4471 | ||
4472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail; | |
4473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation, | |
4474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4475 | { | |
4476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4477 | result = (int)wxIconLocation_GetIndex(arg1); | |
4478 | ||
4479 | wxPyEndAllowThreads(__tstate); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
4482 | resultobj = SWIG_FromInt((int)result); | |
4483 | return resultobj; | |
4484 | fail: | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) { | |
4490 | PyObject *obj; | |
4491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4492 | SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj); | |
4493 | Py_INCREF(obj); | |
4494 | return Py_BuildValue((char *)""); | |
4495 | } | |
4496 | static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4497 | PyObject *resultobj; | |
4498 | wxIconBundle *result; | |
4499 | char *kwnames[] = { | |
4500 | NULL | |
4501 | }; | |
4502 | ||
4503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail; | |
4504 | { | |
4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4506 | result = (wxIconBundle *)new wxIconBundle(); | |
4507 | ||
4508 | wxPyEndAllowThreads(__tstate); | |
4509 | if (PyErr_Occurred()) SWIG_fail; | |
4510 | } | |
4511 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4512 | return resultobj; | |
4513 | fail: | |
4514 | return NULL; | |
4515 | } | |
4516 | ||
4517 | ||
4518 | static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4519 | PyObject *resultobj; | |
4520 | wxString *arg1 = 0 ; | |
4521 | long arg2 ; | |
4522 | wxIconBundle *result; | |
4523 | bool temp1 = False ; | |
4524 | PyObject * obj0 = 0 ; | |
4525 | PyObject * obj1 = 0 ; | |
4526 | char *kwnames[] = { | |
4527 | (char *) "file",(char *) "type", NULL | |
4528 | }; | |
4529 | ||
4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail; | |
4531 | { | |
4532 | arg1 = wxString_in_helper(obj0); | |
4533 | if (arg1 == NULL) SWIG_fail; | |
4534 | temp1 = True; | |
4535 | } | |
4536 | arg2 = (long) SWIG_AsLong(obj1); | |
4537 | if (PyErr_Occurred()) SWIG_fail; | |
4538 | { | |
4539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4540 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
4541 | ||
4542 | wxPyEndAllowThreads(__tstate); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
4545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4546 | { | |
4547 | if (temp1) | |
4548 | delete arg1; | |
4549 | } | |
4550 | return resultobj; | |
4551 | fail: | |
4552 | { | |
4553 | if (temp1) | |
4554 | delete arg1; | |
4555 | } | |
4556 | return NULL; | |
4557 | } | |
4558 | ||
4559 | ||
4560 | static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4561 | PyObject *resultobj; | |
4562 | wxIcon *arg1 = 0 ; | |
4563 | wxIconBundle *result; | |
4564 | PyObject * obj0 = 0 ; | |
4565 | char *kwnames[] = { | |
4566 | (char *) "icon", NULL | |
4567 | }; | |
4568 | ||
4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail; | |
4570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
4571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4572 | SWIG_fail; | |
4573 | if (arg1 == NULL) { | |
4574 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4575 | SWIG_fail; | |
4576 | } | |
4577 | { | |
4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4579 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
4580 | ||
4581 | wxPyEndAllowThreads(__tstate); | |
4582 | if (PyErr_Occurred()) SWIG_fail; | |
4583 | } | |
4584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1); | |
4585 | return resultobj; | |
4586 | fail: | |
4587 | return NULL; | |
4588 | } | |
4589 | ||
4590 | ||
4591 | static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4592 | PyObject *resultobj; | |
4593 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4594 | PyObject * obj0 = 0 ; | |
4595 | char *kwnames[] = { | |
4596 | (char *) "self", NULL | |
4597 | }; | |
4598 | ||
4599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail; | |
4600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4602 | { | |
4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4604 | delete arg1; | |
4605 | ||
4606 | wxPyEndAllowThreads(__tstate); | |
4607 | if (PyErr_Occurred()) SWIG_fail; | |
4608 | } | |
4609 | Py_INCREF(Py_None); resultobj = Py_None; | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
4616 | static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4617 | PyObject *resultobj; | |
4618 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4619 | wxIcon *arg2 = 0 ; | |
4620 | PyObject * obj0 = 0 ; | |
4621 | PyObject * obj1 = 0 ; | |
4622 | char *kwnames[] = { | |
4623 | (char *) "self",(char *) "icon", NULL | |
4624 | }; | |
4625 | ||
4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
4627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
4630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4631 | SWIG_fail; | |
4632 | if (arg2 == NULL) { | |
4633 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4634 | SWIG_fail; | |
4635 | } | |
4636 | { | |
4637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4638 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
4639 | ||
4640 | wxPyEndAllowThreads(__tstate); | |
4641 | if (PyErr_Occurred()) SWIG_fail; | |
4642 | } | |
4643 | Py_INCREF(Py_None); resultobj = Py_None; | |
4644 | return resultobj; | |
4645 | fail: | |
4646 | return NULL; | |
4647 | } | |
4648 | ||
4649 | ||
4650 | static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4651 | PyObject *resultobj; | |
4652 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4653 | wxString *arg2 = 0 ; | |
4654 | long arg3 ; | |
4655 | bool temp2 = False ; | |
4656 | PyObject * obj0 = 0 ; | |
4657 | PyObject * obj1 = 0 ; | |
4658 | PyObject * obj2 = 0 ; | |
4659 | char *kwnames[] = { | |
4660 | (char *) "self",(char *) "file",(char *) "type", NULL | |
4661 | }; | |
4662 | ||
4663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4666 | { | |
4667 | arg2 = wxString_in_helper(obj1); | |
4668 | if (arg2 == NULL) SWIG_fail; | |
4669 | temp2 = True; | |
4670 | } | |
4671 | arg3 = (long) SWIG_AsLong(obj2); | |
4672 | if (PyErr_Occurred()) SWIG_fail; | |
4673 | { | |
4674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4675 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
4676 | ||
4677 | wxPyEndAllowThreads(__tstate); | |
4678 | if (PyErr_Occurred()) SWIG_fail; | |
4679 | } | |
4680 | Py_INCREF(Py_None); resultobj = Py_None; | |
4681 | { | |
4682 | if (temp2) | |
4683 | delete arg2; | |
4684 | } | |
4685 | return resultobj; | |
4686 | fail: | |
4687 | { | |
4688 | if (temp2) | |
4689 | delete arg2; | |
4690 | } | |
4691 | return NULL; | |
4692 | } | |
4693 | ||
4694 | ||
4695 | static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4696 | PyObject *resultobj; | |
4697 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
4698 | wxSize *arg2 = 0 ; | |
4699 | wxIcon *result; | |
4700 | wxSize temp2 ; | |
4701 | PyObject * obj0 = 0 ; | |
4702 | PyObject * obj1 = 0 ; | |
4703 | char *kwnames[] = { | |
4704 | (char *) "self",(char *) "size", NULL | |
4705 | }; | |
4706 | ||
4707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle, | |
4709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4710 | { | |
4711 | arg2 = &temp2; | |
4712 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4713 | } | |
4714 | { | |
4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4716 | { | |
4717 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); | |
4718 | result = (wxIcon *) &_result_ref; | |
4719 | } | |
4720 | ||
4721 | wxPyEndAllowThreads(__tstate); | |
4722 | if (PyErr_Occurred()) SWIG_fail; | |
4723 | } | |
4724 | { | |
4725 | wxIcon* resultptr = new wxIcon(*result); | |
4726 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
4727 | } | |
4728 | return resultobj; | |
4729 | fail: | |
4730 | return NULL; | |
4731 | } | |
4732 | ||
4733 | ||
4734 | static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) { | |
4735 | PyObject *obj; | |
4736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4737 | SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj); | |
4738 | Py_INCREF(obj); | |
4739 | return Py_BuildValue((char *)""); | |
4740 | } | |
4741 | static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4742 | PyObject *resultobj; | |
4743 | wxString *arg1 = (wxString *) 0 ; | |
4744 | long arg2 ; | |
4745 | int arg3 = (int) 0 ; | |
4746 | int arg4 = (int) 0 ; | |
4747 | wxCursor *result; | |
4748 | bool temp1 = False ; | |
4749 | PyObject * obj0 = 0 ; | |
4750 | PyObject * obj1 = 0 ; | |
4751 | PyObject * obj2 = 0 ; | |
4752 | PyObject * obj3 = 0 ; | |
4753 | char *kwnames[] = { | |
4754 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
4755 | }; | |
4756 | ||
4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
4758 | { | |
4759 | arg1 = wxString_in_helper(obj0); | |
4760 | if (arg1 == NULL) SWIG_fail; | |
4761 | temp1 = True; | |
4762 | } | |
4763 | arg2 = (long) SWIG_AsLong(obj1); | |
4764 | if (PyErr_Occurred()) SWIG_fail; | |
4765 | if (obj2) { | |
4766 | arg3 = (int) SWIG_AsInt(obj2); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | if (obj3) { | |
4770 | arg4 = (int) SWIG_AsInt(obj3); | |
4771 | if (PyErr_Occurred()) SWIG_fail; | |
4772 | } | |
4773 | { | |
0439c23b | 4774 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4776 | result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4); | |
4777 | ||
4778 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4779 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4780 | } |
4781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4782 | { | |
4783 | if (temp1) | |
4784 | delete arg1; | |
4785 | } | |
4786 | return resultobj; | |
4787 | fail: | |
4788 | { | |
4789 | if (temp1) | |
4790 | delete arg1; | |
4791 | } | |
4792 | return NULL; | |
4793 | } | |
4794 | ||
4795 | ||
4796 | static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4797 | PyObject *resultobj; | |
4798 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4799 | PyObject * obj0 = 0 ; | |
4800 | char *kwnames[] = { | |
4801 | (char *) "self", NULL | |
4802 | }; | |
4803 | ||
4804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail; | |
4805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4807 | { | |
4808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4809 | delete arg1; | |
4810 | ||
4811 | wxPyEndAllowThreads(__tstate); | |
4812 | if (PyErr_Occurred()) SWIG_fail; | |
4813 | } | |
4814 | Py_INCREF(Py_None); resultobj = Py_None; | |
4815 | return resultobj; | |
4816 | fail: | |
4817 | return NULL; | |
4818 | } | |
4819 | ||
4820 | ||
4821 | static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4822 | PyObject *resultobj; | |
4823 | int arg1 ; | |
4824 | wxCursor *result; | |
4825 | PyObject * obj0 = 0 ; | |
4826 | char *kwnames[] = { | |
4827 | (char *) "id", NULL | |
4828 | }; | |
4829 | ||
4830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail; | |
4831 | arg1 = (int) SWIG_AsInt(obj0); | |
4832 | if (PyErr_Occurred()) SWIG_fail; | |
4833 | { | |
0439c23b | 4834 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4836 | result = (wxCursor *)new wxCursor(arg1); | |
4837 | ||
4838 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4839 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4840 | } |
4841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4842 | return resultobj; | |
4843 | fail: | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
4848 | static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4849 | PyObject *resultobj; | |
4850 | wxImage *arg1 = 0 ; | |
4851 | wxCursor *result; | |
4852 | PyObject * obj0 = 0 ; | |
4853 | char *kwnames[] = { | |
4854 | (char *) "image", NULL | |
4855 | }; | |
4856 | ||
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail; | |
4858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
4859 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4860 | SWIG_fail; | |
4861 | if (arg1 == NULL) { | |
4862 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4863 | SWIG_fail; | |
4864 | } | |
4865 | { | |
0439c23b | 4866 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4868 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
4869 | ||
4870 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4871 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4872 | } |
4873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1); | |
4874 | return resultobj; | |
4875 | fail: | |
4876 | return NULL; | |
4877 | } | |
4878 | ||
4879 | ||
4880 | static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4881 | PyObject *resultobj; | |
4882 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4883 | long result; | |
4884 | PyObject * obj0 = 0 ; | |
4885 | char *kwnames[] = { | |
4886 | (char *) "self", NULL | |
4887 | }; | |
4888 | ||
4889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail; | |
4890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4892 | { | |
4893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4894 | result = (long)(arg1)->GetHandle(); | |
4895 | ||
4896 | wxPyEndAllowThreads(__tstate); | |
4897 | if (PyErr_Occurred()) SWIG_fail; | |
4898 | } | |
4899 | resultobj = SWIG_FromLong((long)result); | |
4900 | return resultobj; | |
4901 | fail: | |
4902 | return NULL; | |
4903 | } | |
4904 | ||
4905 | ||
4906 | static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4907 | PyObject *resultobj; | |
4908 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4909 | long arg2 ; | |
4910 | PyObject * obj0 = 0 ; | |
4911 | PyObject * obj1 = 0 ; | |
4912 | char *kwnames[] = { | |
4913 | (char *) "self",(char *) "handle", NULL | |
4914 | }; | |
4915 | ||
4916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail; | |
4917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4919 | arg2 = (long) SWIG_AsLong(obj1); | |
4920 | if (PyErr_Occurred()) SWIG_fail; | |
4921 | { | |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | wxCursor_SetHandle(arg1,arg2); | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) SWIG_fail; | |
4927 | } | |
4928 | Py_INCREF(Py_None); resultobj = Py_None; | |
4929 | return resultobj; | |
4930 | fail: | |
4931 | return NULL; | |
4932 | } | |
4933 | ||
4934 | ||
4935 | static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject *resultobj; | |
4937 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4938 | bool result; | |
4939 | PyObject * obj0 = 0 ; | |
4940 | char *kwnames[] = { | |
4941 | (char *) "self", NULL | |
4942 | }; | |
4943 | ||
4944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail; | |
4945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4947 | { | |
4948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4949 | result = (bool)(arg1)->Ok(); | |
4950 | ||
4951 | wxPyEndAllowThreads(__tstate); | |
4952 | if (PyErr_Occurred()) SWIG_fail; | |
4953 | } | |
4954 | { | |
4955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4956 | } | |
4957 | return resultobj; | |
4958 | fail: | |
4959 | return NULL; | |
4960 | } | |
4961 | ||
4962 | ||
4963 | static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4964 | PyObject *resultobj; | |
4965 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4966 | int result; | |
4967 | PyObject * obj0 = 0 ; | |
4968 | char *kwnames[] = { | |
4969 | (char *) "self", NULL | |
4970 | }; | |
4971 | ||
4972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail; | |
4973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
4974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4975 | { | |
4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4977 | result = (int)(arg1)->GetWidth(); | |
4978 | ||
4979 | wxPyEndAllowThreads(__tstate); | |
4980 | if (PyErr_Occurred()) SWIG_fail; | |
4981 | } | |
4982 | resultobj = SWIG_FromInt((int)result); | |
4983 | return resultobj; | |
4984 | fail: | |
4985 | return NULL; | |
4986 | } | |
4987 | ||
4988 | ||
4989 | static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4990 | PyObject *resultobj; | |
4991 | wxCursor *arg1 = (wxCursor *) 0 ; | |
4992 | int result; | |
4993 | PyObject * obj0 = 0 ; | |
4994 | char *kwnames[] = { | |
4995 | (char *) "self", NULL | |
4996 | }; | |
4997 | ||
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail; | |
4999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5001 | { | |
5002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5003 | result = (int)(arg1)->GetHeight(); | |
5004 | ||
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
5008 | resultobj = SWIG_FromInt((int)result); | |
5009 | return resultobj; | |
5010 | fail: | |
5011 | return NULL; | |
5012 | } | |
5013 | ||
5014 | ||
5015 | static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject *resultobj; | |
5017 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5018 | int result; | |
5019 | PyObject * obj0 = 0 ; | |
5020 | char *kwnames[] = { | |
5021 | (char *) "self", NULL | |
5022 | }; | |
5023 | ||
5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail; | |
5025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5027 | { | |
5028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5029 | result = (int)(arg1)->GetDepth(); | |
5030 | ||
5031 | wxPyEndAllowThreads(__tstate); | |
5032 | if (PyErr_Occurred()) SWIG_fail; | |
5033 | } | |
5034 | resultobj = SWIG_FromInt((int)result); | |
5035 | return resultobj; | |
5036 | fail: | |
5037 | return NULL; | |
5038 | } | |
5039 | ||
5040 | ||
5041 | static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5042 | PyObject *resultobj; | |
5043 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5044 | int arg2 ; | |
5045 | PyObject * obj0 = 0 ; | |
5046 | PyObject * obj1 = 0 ; | |
5047 | char *kwnames[] = { | |
5048 | (char *) "self",(char *) "w", NULL | |
5049 | }; | |
5050 | ||
5051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
5052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5054 | arg2 = (int) SWIG_AsInt(obj1); | |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | { | |
5057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5058 | (arg1)->SetWidth(arg2); | |
5059 | ||
5060 | wxPyEndAllowThreads(__tstate); | |
5061 | if (PyErr_Occurred()) SWIG_fail; | |
5062 | } | |
5063 | Py_INCREF(Py_None); resultobj = Py_None; | |
5064 | return resultobj; | |
5065 | fail: | |
5066 | return NULL; | |
5067 | } | |
5068 | ||
5069 | ||
5070 | static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5071 | PyObject *resultobj; | |
5072 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5073 | int arg2 ; | |
5074 | PyObject * obj0 = 0 ; | |
5075 | PyObject * obj1 = 0 ; | |
5076 | char *kwnames[] = { | |
5077 | (char *) "self",(char *) "h", NULL | |
5078 | }; | |
5079 | ||
5080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
5081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5083 | arg2 = (int) SWIG_AsInt(obj1); | |
5084 | if (PyErr_Occurred()) SWIG_fail; | |
5085 | { | |
5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5087 | (arg1)->SetHeight(arg2); | |
5088 | ||
5089 | wxPyEndAllowThreads(__tstate); | |
5090 | if (PyErr_Occurred()) SWIG_fail; | |
5091 | } | |
5092 | Py_INCREF(Py_None); resultobj = Py_None; | |
5093 | return resultobj; | |
5094 | fail: | |
5095 | return NULL; | |
5096 | } | |
5097 | ||
5098 | ||
5099 | static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5100 | PyObject *resultobj; | |
5101 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5102 | int arg2 ; | |
5103 | PyObject * obj0 = 0 ; | |
5104 | PyObject * obj1 = 0 ; | |
5105 | char *kwnames[] = { | |
5106 | (char *) "self",(char *) "d", NULL | |
5107 | }; | |
5108 | ||
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail; | |
5110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5112 | arg2 = (int) SWIG_AsInt(obj1); | |
5113 | if (PyErr_Occurred()) SWIG_fail; | |
5114 | { | |
5115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5116 | (arg1)->SetDepth(arg2); | |
5117 | ||
5118 | wxPyEndAllowThreads(__tstate); | |
5119 | if (PyErr_Occurred()) SWIG_fail; | |
5120 | } | |
5121 | Py_INCREF(Py_None); resultobj = Py_None; | |
5122 | return resultobj; | |
5123 | fail: | |
5124 | return NULL; | |
5125 | } | |
5126 | ||
5127 | ||
5128 | static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject *resultobj; | |
5130 | wxCursor *arg1 = (wxCursor *) 0 ; | |
5131 | wxSize *arg2 = 0 ; | |
5132 | wxSize temp2 ; | |
5133 | PyObject * obj0 = 0 ; | |
5134 | PyObject * obj1 = 0 ; | |
5135 | char *kwnames[] = { | |
5136 | (char *) "self",(char *) "size", NULL | |
5137 | }; | |
5138 | ||
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
5140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor, | |
5141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5142 | { | |
5143 | arg2 = &temp2; | |
5144 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
5145 | } | |
5146 | { | |
5147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5148 | (arg1)->SetSize((wxSize const &)*arg2); | |
5149 | ||
5150 | wxPyEndAllowThreads(__tstate); | |
5151 | if (PyErr_Occurred()) SWIG_fail; | |
5152 | } | |
5153 | Py_INCREF(Py_None); resultobj = Py_None; | |
5154 | return resultobj; | |
5155 | fail: | |
5156 | return NULL; | |
5157 | } | |
5158 | ||
5159 | ||
5160 | static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) { | |
5161 | PyObject *obj; | |
5162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5163 | SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj); | |
5164 | Py_INCREF(obj); | |
5165 | return Py_BuildValue((char *)""); | |
5166 | } | |
5167 | static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5168 | PyObject *resultobj; | |
5169 | int arg1 = (int) 0 ; | |
5170 | int arg2 = (int) 0 ; | |
5171 | int arg3 = (int) 0 ; | |
5172 | int arg4 = (int) 0 ; | |
5173 | wxRegion *result; | |
5174 | PyObject * obj0 = 0 ; | |
5175 | PyObject * obj1 = 0 ; | |
5176 | PyObject * obj2 = 0 ; | |
5177 | PyObject * obj3 = 0 ; | |
5178 | char *kwnames[] = { | |
5179 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5180 | }; | |
5181 | ||
5182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5183 | if (obj0) { | |
5184 | arg1 = (int) SWIG_AsInt(obj0); | |
5185 | if (PyErr_Occurred()) SWIG_fail; | |
5186 | } | |
5187 | if (obj1) { | |
5188 | arg2 = (int) SWIG_AsInt(obj1); | |
5189 | if (PyErr_Occurred()) SWIG_fail; | |
5190 | } | |
5191 | if (obj2) { | |
5192 | arg3 = (int) SWIG_AsInt(obj2); | |
5193 | if (PyErr_Occurred()) SWIG_fail; | |
5194 | } | |
5195 | if (obj3) { | |
5196 | arg4 = (int) SWIG_AsInt(obj3); | |
5197 | if (PyErr_Occurred()) SWIG_fail; | |
5198 | } | |
5199 | { | |
0439c23b | 5200 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5202 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
5203 | ||
5204 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5205 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5206 | } |
5207 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5208 | return resultobj; | |
5209 | fail: | |
5210 | return NULL; | |
5211 | } | |
5212 | ||
5213 | ||
5214 | static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5215 | PyObject *resultobj; | |
5216 | wxBitmap *arg1 = 0 ; | |
a2569024 RD |
5217 | wxRegion *result; |
5218 | PyObject * obj0 = 0 ; | |
5219 | char *kwnames[] = { | |
5220 | (char *) "bmp", NULL | |
5221 | }; | |
5222 | ||
5223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail; | |
5224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
5225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5226 | SWIG_fail; | |
5227 | if (arg1 == NULL) { | |
5228 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5229 | SWIG_fail; | |
5230 | } | |
5231 | { | |
5232 | if (!wxPyCheckForApp()) SWIG_fail; | |
5233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5234 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
5235 | ||
5236 | wxPyEndAllowThreads(__tstate); | |
5237 | if (PyErr_Occurred()) SWIG_fail; | |
5238 | } | |
5239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5240 | return resultobj; | |
5241 | fail: | |
5242 | return NULL; | |
5243 | } | |
5244 | ||
5245 | ||
5246 | static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5247 | PyObject *resultobj; | |
5248 | wxBitmap *arg1 = 0 ; | |
5249 | wxColour *arg2 = 0 ; | |
d55e5bfc RD |
5250 | int arg3 = (int) 0 ; |
5251 | wxRegion *result; | |
5252 | wxColour temp2 ; | |
5253 | PyObject * obj0 = 0 ; | |
5254 | PyObject * obj1 = 0 ; | |
5255 | PyObject * obj2 = 0 ; | |
5256 | char *kwnames[] = { | |
5257 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
5258 | }; | |
5259 | ||
a2569024 | 5260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
5261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
5262 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5263 | SWIG_fail; | |
5264 | if (arg1 == NULL) { | |
5265 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5266 | SWIG_fail; | |
5267 | } | |
a2569024 RD |
5268 | { |
5269 | arg2 = &temp2; | |
5270 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc RD |
5271 | } |
5272 | if (obj2) { | |
5273 | arg3 = (int) SWIG_AsInt(obj2); | |
5274 | if (PyErr_Occurred()) SWIG_fail; | |
5275 | } | |
5276 | { | |
0439c23b | 5277 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5279 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
5280 | ||
5281 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5282 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5283 | } |
5284 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5285 | return resultobj; | |
5286 | fail: | |
5287 | return NULL; | |
5288 | } | |
5289 | ||
5290 | ||
5291 | static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5292 | PyObject *resultobj; | |
5293 | int arg1 ; | |
5294 | wxPoint *arg2 = (wxPoint *) 0 ; | |
5295 | int arg3 = (int) wxWINDING_RULE ; | |
5296 | wxRegion *result; | |
5297 | PyObject * obj0 = 0 ; | |
5298 | PyObject * obj1 = 0 ; | |
5299 | char *kwnames[] = { | |
5300 | (char *) "points",(char *) "fillStyle", NULL | |
5301 | }; | |
5302 | ||
5303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail; | |
5304 | { | |
5305 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
5306 | if (arg2 == NULL) SWIG_fail; | |
5307 | } | |
5308 | if (obj1) { | |
5309 | arg3 = (int) SWIG_AsInt(obj1); | |
5310 | if (PyErr_Occurred()) SWIG_fail; | |
5311 | } | |
5312 | { | |
0439c23b | 5313 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5315 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
5316 | ||
5317 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5318 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5319 | } |
5320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1); | |
5321 | { | |
5322 | if (arg2) delete [] arg2; | |
5323 | } | |
5324 | return resultobj; | |
5325 | fail: | |
5326 | { | |
5327 | if (arg2) delete [] arg2; | |
5328 | } | |
5329 | return NULL; | |
5330 | } | |
5331 | ||
5332 | ||
5333 | static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5334 | PyObject *resultobj; | |
5335 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5336 | PyObject * obj0 = 0 ; | |
5337 | char *kwnames[] = { | |
5338 | (char *) "self", NULL | |
5339 | }; | |
5340 | ||
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail; | |
5342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5344 | { | |
5345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5346 | delete arg1; | |
5347 | ||
5348 | wxPyEndAllowThreads(__tstate); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | Py_INCREF(Py_None); resultobj = Py_None; | |
5352 | return resultobj; | |
5353 | fail: | |
5354 | return NULL; | |
5355 | } | |
5356 | ||
5357 | ||
5358 | static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5359 | PyObject *resultobj; | |
5360 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5361 | PyObject * obj0 = 0 ; | |
5362 | char *kwnames[] = { | |
5363 | (char *) "self", NULL | |
5364 | }; | |
5365 | ||
5366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail; | |
5367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5369 | { | |
5370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5371 | (arg1)->Clear(); | |
5372 | ||
5373 | wxPyEndAllowThreads(__tstate); | |
5374 | if (PyErr_Occurred()) SWIG_fail; | |
5375 | } | |
5376 | Py_INCREF(Py_None); resultobj = Py_None; | |
5377 | return resultobj; | |
5378 | fail: | |
5379 | return NULL; | |
5380 | } | |
5381 | ||
5382 | ||
5383 | static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5384 | PyObject *resultobj; | |
5385 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5386 | int arg2 ; | |
5387 | int arg3 ; | |
5388 | bool result; | |
5389 | PyObject * obj0 = 0 ; | |
5390 | PyObject * obj1 = 0 ; | |
5391 | PyObject * obj2 = 0 ; | |
5392 | char *kwnames[] = { | |
5393 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5394 | }; | |
5395 | ||
5396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5399 | arg2 = (int) SWIG_AsInt(obj1); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | arg3 = (int) SWIG_AsInt(obj2); | |
5402 | if (PyErr_Occurred()) SWIG_fail; | |
5403 | { | |
5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5405 | result = (bool)(arg1)->Offset(arg2,arg3); | |
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_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5420 | PyObject *resultobj; | |
5421 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5422 | int arg2 ; | |
5423 | int arg3 ; | |
5424 | int result; | |
5425 | PyObject * obj0 = 0 ; | |
5426 | PyObject * obj1 = 0 ; | |
5427 | PyObject * obj2 = 0 ; | |
5428 | char *kwnames[] = { | |
5429 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5430 | }; | |
5431 | ||
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5435 | arg2 = (int) SWIG_AsInt(obj1); | |
5436 | if (PyErr_Occurred()) SWIG_fail; | |
5437 | arg3 = (int) SWIG_AsInt(obj2); | |
5438 | if (PyErr_Occurred()) SWIG_fail; | |
5439 | { | |
5440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5441 | result = (int)(arg1)->Contains(arg2,arg3); | |
5442 | ||
5443 | wxPyEndAllowThreads(__tstate); | |
5444 | if (PyErr_Occurred()) SWIG_fail; | |
5445 | } | |
5446 | resultobj = SWIG_FromInt((int)result); | |
5447 | return resultobj; | |
5448 | fail: | |
5449 | return NULL; | |
5450 | } | |
5451 | ||
5452 | ||
5453 | static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject *resultobj; | |
5455 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5456 | wxPoint *arg2 = 0 ; | |
5457 | int result; | |
5458 | wxPoint temp2 ; | |
5459 | PyObject * obj0 = 0 ; | |
5460 | PyObject * obj1 = 0 ; | |
5461 | char *kwnames[] = { | |
5462 | (char *) "self",(char *) "pt", NULL | |
5463 | }; | |
5464 | ||
5465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail; | |
5466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5468 | { | |
5469 | arg2 = &temp2; | |
5470 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5471 | } | |
5472 | { | |
5473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5474 | result = (int)(arg1)->Contains((wxPoint const &)*arg2); | |
5475 | ||
5476 | wxPyEndAllowThreads(__tstate); | |
5477 | if (PyErr_Occurred()) SWIG_fail; | |
5478 | } | |
5479 | resultobj = SWIG_FromInt((int)result); | |
5480 | return resultobj; | |
5481 | fail: | |
5482 | return NULL; | |
5483 | } | |
5484 | ||
5485 | ||
5486 | static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5487 | PyObject *resultobj; | |
5488 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5489 | wxRect *arg2 = 0 ; | |
5490 | int result; | |
5491 | wxRect temp2 ; | |
5492 | PyObject * obj0 = 0 ; | |
5493 | PyObject * obj1 = 0 ; | |
5494 | char *kwnames[] = { | |
5495 | (char *) "self",(char *) "rect", NULL | |
5496 | }; | |
5497 | ||
5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail; | |
5499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5501 | { | |
5502 | arg2 = &temp2; | |
5503 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5504 | } | |
5505 | { | |
5506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5507 | result = (int)(arg1)->Contains((wxRect const &)*arg2); | |
5508 | ||
5509 | wxPyEndAllowThreads(__tstate); | |
5510 | if (PyErr_Occurred()) SWIG_fail; | |
5511 | } | |
5512 | resultobj = SWIG_FromInt((int)result); | |
5513 | return resultobj; | |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5522 | int arg2 ; | |
5523 | int arg3 ; | |
5524 | int arg4 ; | |
5525 | int arg5 ; | |
5526 | int result; | |
5527 | PyObject * obj0 = 0 ; | |
5528 | PyObject * obj1 = 0 ; | |
5529 | PyObject * obj2 = 0 ; | |
5530 | PyObject * obj3 = 0 ; | |
5531 | PyObject * obj4 = 0 ; | |
5532 | char *kwnames[] = { | |
5533 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
5534 | }; | |
5535 | ||
5536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5539 | arg2 = (int) SWIG_AsInt(obj1); | |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
5541 | arg3 = (int) SWIG_AsInt(obj2); | |
5542 | if (PyErr_Occurred()) SWIG_fail; | |
5543 | arg4 = (int) SWIG_AsInt(obj3); | |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
5545 | arg5 = (int) SWIG_AsInt(obj4); | |
5546 | if (PyErr_Occurred()) SWIG_fail; | |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | resultobj = SWIG_FromInt((int)result); | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject *resultobj; | |
5563 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5564 | wxRect result; | |
5565 | PyObject * obj0 = 0 ; | |
5566 | char *kwnames[] = { | |
5567 | (char *) "self", NULL | |
5568 | }; | |
5569 | ||
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail; | |
5571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5573 | { | |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | result = (arg1)->GetBox(); | |
5576 | ||
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) SWIG_fail; | |
5579 | } | |
5580 | { | |
5581 | wxRect * resultptr; | |
5582 | resultptr = new wxRect((wxRect &) result); | |
5583 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5584 | } | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5592 | PyObject *resultobj; | |
5593 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5594 | int arg2 ; | |
5595 | int arg3 ; | |
5596 | int arg4 ; | |
5597 | int arg5 ; | |
5598 | bool result; | |
5599 | PyObject * obj0 = 0 ; | |
5600 | PyObject * obj1 = 0 ; | |
5601 | PyObject * obj2 = 0 ; | |
5602 | PyObject * obj3 = 0 ; | |
5603 | PyObject * obj4 = 0 ; | |
5604 | char *kwnames[] = { | |
5605 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5606 | }; | |
5607 | ||
5608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5611 | arg2 = (int) SWIG_AsInt(obj1); | |
5612 | if (PyErr_Occurred()) SWIG_fail; | |
5613 | arg3 = (int) SWIG_AsInt(obj2); | |
5614 | if (PyErr_Occurred()) SWIG_fail; | |
5615 | arg4 = (int) SWIG_AsInt(obj3); | |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
5617 | arg5 = (int) SWIG_AsInt(obj4); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | { | |
5620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5621 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
5622 | ||
5623 | wxPyEndAllowThreads(__tstate); | |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
5625 | } | |
5626 | { | |
5627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5628 | } | |
5629 | return resultobj; | |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
5635 | static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject *resultobj; | |
5637 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5638 | wxRect *arg2 = 0 ; | |
5639 | bool result; | |
5640 | wxRect temp2 ; | |
5641 | PyObject * obj0 = 0 ; | |
5642 | PyObject * obj1 = 0 ; | |
5643 | char *kwnames[] = { | |
5644 | (char *) "self",(char *) "rect", NULL | |
5645 | }; | |
5646 | ||
5647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5650 | { | |
5651 | arg2 = &temp2; | |
5652 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5653 | } | |
5654 | { | |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
5657 | ||
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
5661 | { | |
5662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5663 | } | |
5664 | return resultobj; | |
5665 | fail: | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
5670 | static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5671 | PyObject *resultobj; | |
5672 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5673 | wxRegion *arg2 = 0 ; | |
5674 | bool result; | |
5675 | PyObject * obj0 = 0 ; | |
5676 | PyObject * obj1 = 0 ; | |
5677 | char *kwnames[] = { | |
5678 | (char *) "self",(char *) "region", NULL | |
5679 | }; | |
5680 | ||
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail; | |
5682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5685 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5686 | SWIG_fail; | |
5687 | if (arg2 == NULL) { | |
5688 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5689 | SWIG_fail; | |
5690 | } | |
5691 | { | |
5692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5693 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
5694 | ||
5695 | wxPyEndAllowThreads(__tstate); | |
5696 | if (PyErr_Occurred()) SWIG_fail; | |
5697 | } | |
5698 | { | |
5699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5700 | } | |
5701 | return resultobj; | |
5702 | fail: | |
5703 | return NULL; | |
5704 | } | |
5705 | ||
5706 | ||
5707 | static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject *resultobj; | |
5709 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5710 | bool result; | |
5711 | PyObject * obj0 = 0 ; | |
5712 | char *kwnames[] = { | |
5713 | (char *) "self", NULL | |
5714 | }; | |
5715 | ||
5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail; | |
5717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5719 | { | |
5720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5721 | result = (bool)(arg1)->IsEmpty(); | |
5722 | ||
5723 | wxPyEndAllowThreads(__tstate); | |
5724 | if (PyErr_Occurred()) SWIG_fail; | |
5725 | } | |
5726 | { | |
5727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5728 | } | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | return NULL; | |
5732 | } | |
5733 | ||
5734 | ||
5735 | static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5736 | PyObject *resultobj; | |
5737 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5738 | int arg2 ; | |
5739 | int arg3 ; | |
5740 | int arg4 ; | |
5741 | int arg5 ; | |
5742 | bool result; | |
5743 | PyObject * obj0 = 0 ; | |
5744 | PyObject * obj1 = 0 ; | |
5745 | PyObject * obj2 = 0 ; | |
5746 | PyObject * obj3 = 0 ; | |
5747 | PyObject * obj4 = 0 ; | |
5748 | char *kwnames[] = { | |
5749 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5750 | }; | |
5751 | ||
5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5755 | arg2 = (int) SWIG_AsInt(obj1); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | arg3 = (int) SWIG_AsInt(obj2); | |
5758 | if (PyErr_Occurred()) SWIG_fail; | |
5759 | arg4 = (int) SWIG_AsInt(obj3); | |
5760 | if (PyErr_Occurred()) SWIG_fail; | |
5761 | arg5 = (int) SWIG_AsInt(obj4); | |
5762 | if (PyErr_Occurred()) SWIG_fail; | |
5763 | { | |
5764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5765 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
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_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject *resultobj; | |
5781 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5782 | wxRect *arg2 = 0 ; | |
5783 | bool result; | |
5784 | wxRect temp2 ; | |
5785 | PyObject * obj0 = 0 ; | |
5786 | PyObject * obj1 = 0 ; | |
5787 | char *kwnames[] = { | |
5788 | (char *) "self",(char *) "rect", NULL | |
5789 | }; | |
5790 | ||
5791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail; | |
5792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5794 | { | |
5795 | arg2 = &temp2; | |
5796 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5797 | } | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
5805 | { | |
5806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5807 | } | |
5808 | return resultobj; | |
5809 | fail: | |
5810 | return NULL; | |
5811 | } | |
5812 | ||
5813 | ||
5814 | static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5815 | PyObject *resultobj; | |
5816 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5817 | wxRegion *arg2 = 0 ; | |
5818 | bool result; | |
5819 | PyObject * obj0 = 0 ; | |
5820 | PyObject * obj1 = 0 ; | |
5821 | char *kwnames[] = { | |
5822 | (char *) "self",(char *) "region", NULL | |
5823 | }; | |
5824 | ||
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail; | |
5826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5828 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5829 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5830 | SWIG_fail; | |
5831 | if (arg2 == NULL) { | |
5832 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5833 | SWIG_fail; | |
5834 | } | |
5835 | { | |
5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5837 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
5838 | ||
5839 | wxPyEndAllowThreads(__tstate); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
5841 | } | |
5842 | { | |
5843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5844 | } | |
5845 | return resultobj; | |
5846 | fail: | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
5851 | static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5852 | PyObject *resultobj; | |
5853 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5854 | int arg2 ; | |
5855 | int arg3 ; | |
5856 | int arg4 ; | |
5857 | int arg5 ; | |
5858 | bool result; | |
5859 | PyObject * obj0 = 0 ; | |
5860 | PyObject * obj1 = 0 ; | |
5861 | PyObject * obj2 = 0 ; | |
5862 | PyObject * obj3 = 0 ; | |
5863 | PyObject * obj4 = 0 ; | |
5864 | char *kwnames[] = { | |
5865 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5866 | }; | |
5867 | ||
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5871 | arg2 = (int) SWIG_AsInt(obj1); | |
5872 | if (PyErr_Occurred()) SWIG_fail; | |
5873 | arg3 = (int) SWIG_AsInt(obj2); | |
5874 | if (PyErr_Occurred()) SWIG_fail; | |
5875 | arg4 = (int) SWIG_AsInt(obj3); | |
5876 | if (PyErr_Occurred()) SWIG_fail; | |
5877 | arg5 = (int) SWIG_AsInt(obj4); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | { | |
5880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5881 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
5882 | ||
5883 | wxPyEndAllowThreads(__tstate); | |
5884 | if (PyErr_Occurred()) SWIG_fail; | |
5885 | } | |
5886 | { | |
5887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5888 | } | |
5889 | return resultobj; | |
5890 | fail: | |
5891 | return NULL; | |
5892 | } | |
5893 | ||
5894 | ||
5895 | static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject *resultobj; | |
5897 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5898 | wxRect *arg2 = 0 ; | |
5899 | bool result; | |
5900 | wxRect temp2 ; | |
5901 | PyObject * obj0 = 0 ; | |
5902 | PyObject * obj1 = 0 ; | |
5903 | char *kwnames[] = { | |
5904 | (char *) "self",(char *) "rect", NULL | |
5905 | }; | |
5906 | ||
5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail; | |
5908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5910 | { | |
5911 | arg2 = &temp2; | |
5912 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
5913 | } | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | { | |
5922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5923 | } | |
5924 | return resultobj; | |
5925 | fail: | |
5926 | return NULL; | |
5927 | } | |
5928 | ||
5929 | ||
5930 | static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5931 | PyObject *resultobj; | |
5932 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5933 | wxRegion *arg2 = 0 ; | |
5934 | bool result; | |
5935 | PyObject * obj0 = 0 ; | |
5936 | PyObject * obj1 = 0 ; | |
5937 | char *kwnames[] = { | |
5938 | (char *) "self",(char *) "region", NULL | |
5939 | }; | |
5940 | ||
5941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail; | |
5942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
5945 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5946 | SWIG_fail; | |
5947 | if (arg2 == NULL) { | |
5948 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5949 | SWIG_fail; | |
5950 | } | |
5951 | { | |
5952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5953 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
5954 | ||
5955 | wxPyEndAllowThreads(__tstate); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
5957 | } | |
5958 | { | |
5959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5960 | } | |
5961 | return resultobj; | |
5962 | fail: | |
5963 | return NULL; | |
5964 | } | |
5965 | ||
5966 | ||
5967 | static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5968 | PyObject *resultobj; | |
5969 | wxRegion *arg1 = (wxRegion *) 0 ; | |
5970 | int arg2 ; | |
5971 | int arg3 ; | |
5972 | int arg4 ; | |
5973 | int arg5 ; | |
5974 | bool result; | |
5975 | PyObject * obj0 = 0 ; | |
5976 | PyObject * obj1 = 0 ; | |
5977 | PyObject * obj2 = 0 ; | |
5978 | PyObject * obj3 = 0 ; | |
5979 | PyObject * obj4 = 0 ; | |
5980 | char *kwnames[] = { | |
5981 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5982 | }; | |
5983 | ||
5984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
5986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5987 | arg2 = (int) SWIG_AsInt(obj1); | |
5988 | if (PyErr_Occurred()) SWIG_fail; | |
5989 | arg3 = (int) SWIG_AsInt(obj2); | |
5990 | if (PyErr_Occurred()) SWIG_fail; | |
5991 | arg4 = (int) SWIG_AsInt(obj3); | |
5992 | if (PyErr_Occurred()) SWIG_fail; | |
5993 | arg5 = (int) SWIG_AsInt(obj4); | |
5994 | if (PyErr_Occurred()) SWIG_fail; | |
5995 | { | |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
5998 | ||
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | { | |
6003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6004 | } | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj; | |
6013 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6014 | wxRect *arg2 = 0 ; | |
6015 | bool result; | |
6016 | wxRect temp2 ; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | PyObject * obj1 = 0 ; | |
6019 | char *kwnames[] = { | |
6020 | (char *) "self",(char *) "rect", NULL | |
6021 | }; | |
6022 | ||
6023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail; | |
6024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6026 | { | |
6027 | arg2 = &temp2; | |
6028 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6029 | } | |
6030 | { | |
6031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6032 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
6033 | ||
6034 | wxPyEndAllowThreads(__tstate); | |
6035 | if (PyErr_Occurred()) SWIG_fail; | |
6036 | } | |
6037 | { | |
6038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6039 | } | |
6040 | return resultobj; | |
6041 | fail: | |
6042 | return NULL; | |
6043 | } | |
6044 | ||
6045 | ||
6046 | static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6047 | PyObject *resultobj; | |
6048 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6049 | wxRegion *arg2 = 0 ; | |
6050 | bool result; | |
6051 | PyObject * obj0 = 0 ; | |
6052 | PyObject * obj1 = 0 ; | |
6053 | char *kwnames[] = { | |
6054 | (char *) "self",(char *) "region", NULL | |
6055 | }; | |
6056 | ||
6057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail; | |
6058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6060 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
6061 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6062 | SWIG_fail; | |
6063 | if (arg2 == NULL) { | |
6064 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6065 | SWIG_fail; | |
6066 | } | |
6067 | { | |
6068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6069 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
6070 | ||
6071 | wxPyEndAllowThreads(__tstate); | |
6072 | if (PyErr_Occurred()) SWIG_fail; | |
6073 | } | |
6074 | { | |
6075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6076 | } | |
6077 | return resultobj; | |
6078 | fail: | |
6079 | return NULL; | |
6080 | } | |
6081 | ||
6082 | ||
6083 | static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6084 | PyObject *resultobj; | |
6085 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6086 | SwigValueWrapper< wxBitmap > result; | |
6087 | PyObject * obj0 = 0 ; | |
6088 | char *kwnames[] = { | |
6089 | (char *) "self", NULL | |
6090 | }; | |
6091 | ||
6092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
6093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6095 | { | |
6096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6097 | result = (arg1)->ConvertToBitmap(); | |
6098 | ||
6099 | wxPyEndAllowThreads(__tstate); | |
6100 | if (PyErr_Occurred()) SWIG_fail; | |
6101 | } | |
6102 | { | |
6103 | wxBitmap * resultptr; | |
6104 | resultptr = new wxBitmap((wxBitmap &) result); | |
6105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
6106 | } | |
6107 | return resultobj; | |
6108 | fail: | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
6113 | static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject *resultobj; | |
6115 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6116 | wxBitmap *arg2 = 0 ; | |
a2569024 RD |
6117 | bool result; |
6118 | PyObject * obj0 = 0 ; | |
6119 | PyObject * obj1 = 0 ; | |
6120 | char *kwnames[] = { | |
6121 | (char *) "self",(char *) "bmp", NULL | |
6122 | }; | |
6123 | ||
6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail; | |
6125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6129 | SWIG_fail; | |
6130 | if (arg2 == NULL) { | |
6131 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6132 | SWIG_fail; | |
6133 | } | |
6134 | { | |
6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6136 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | { | |
6142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6143 | } | |
6144 | return resultobj; | |
6145 | fail: | |
6146 | return NULL; | |
6147 | } | |
6148 | ||
6149 | ||
6150 | static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6151 | PyObject *resultobj; | |
6152 | wxRegion *arg1 = (wxRegion *) 0 ; | |
6153 | wxBitmap *arg2 = 0 ; | |
6154 | wxColour *arg3 = 0 ; | |
d55e5bfc RD |
6155 | int arg4 = (int) 0 ; |
6156 | bool result; | |
6157 | wxColour temp3 ; | |
6158 | PyObject * obj0 = 0 ; | |
6159 | PyObject * obj1 = 0 ; | |
6160 | PyObject * obj2 = 0 ; | |
6161 | PyObject * obj3 = 0 ; | |
6162 | char *kwnames[] = { | |
6163 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
6164 | }; | |
6165 | ||
a2569024 | 6166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
6167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, |
6168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6169 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
6170 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6171 | SWIG_fail; | |
6172 | if (arg2 == NULL) { | |
6173 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6174 | SWIG_fail; | |
6175 | } | |
a2569024 RD |
6176 | { |
6177 | arg3 = &temp3; | |
6178 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
6179 | } |
6180 | if (obj3) { | |
6181 | arg4 = (int) SWIG_AsInt(obj3); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
6184 | { | |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
6187 | ||
6188 | wxPyEndAllowThreads(__tstate); | |
6189 | if (PyErr_Occurred()) SWIG_fail; | |
6190 | } | |
6191 | { | |
6192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6193 | } | |
6194 | return resultobj; | |
6195 | fail: | |
6196 | return NULL; | |
6197 | } | |
6198 | ||
6199 | ||
6200 | static PyObject * Region_swigregister(PyObject *self, PyObject *args) { | |
6201 | PyObject *obj; | |
6202 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6203 | SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj); | |
6204 | Py_INCREF(obj); | |
6205 | return Py_BuildValue((char *)""); | |
6206 | } | |
6207 | static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6208 | PyObject *resultobj; | |
6209 | wxRegion *arg1 = 0 ; | |
6210 | wxRegionIterator *result; | |
6211 | PyObject * obj0 = 0 ; | |
6212 | char *kwnames[] = { | |
6213 | (char *) "region", NULL | |
6214 | }; | |
6215 | ||
6216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail; | |
6217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion, | |
6218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6219 | SWIG_fail; | |
6220 | if (arg1 == NULL) { | |
6221 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6222 | SWIG_fail; | |
6223 | } | |
6224 | { | |
0439c23b | 6225 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6227 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
6228 | ||
6229 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6230 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6231 | } |
6232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1); | |
6233 | return resultobj; | |
6234 | fail: | |
6235 | return NULL; | |
6236 | } | |
6237 | ||
6238 | ||
6239 | static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6240 | PyObject *resultobj; | |
6241 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6242 | PyObject * obj0 = 0 ; | |
6243 | char *kwnames[] = { | |
6244 | (char *) "self", NULL | |
6245 | }; | |
6246 | ||
6247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail; | |
6248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6250 | { | |
6251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6252 | delete arg1; | |
6253 | ||
6254 | wxPyEndAllowThreads(__tstate); | |
6255 | if (PyErr_Occurred()) SWIG_fail; | |
6256 | } | |
6257 | Py_INCREF(Py_None); resultobj = Py_None; | |
6258 | return resultobj; | |
6259 | fail: | |
6260 | return NULL; | |
6261 | } | |
6262 | ||
6263 | ||
6264 | static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6265 | PyObject *resultobj; | |
6266 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6267 | int result; | |
6268 | PyObject * obj0 = 0 ; | |
6269 | char *kwnames[] = { | |
6270 | (char *) "self", NULL | |
6271 | }; | |
6272 | ||
6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail; | |
6274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6276 | { | |
6277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6278 | result = (int)(arg1)->GetX(); | |
6279 | ||
6280 | wxPyEndAllowThreads(__tstate); | |
6281 | if (PyErr_Occurred()) SWIG_fail; | |
6282 | } | |
6283 | resultobj = SWIG_FromInt((int)result); | |
6284 | return resultobj; | |
6285 | fail: | |
6286 | return NULL; | |
6287 | } | |
6288 | ||
6289 | ||
6290 | static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6291 | PyObject *resultobj; | |
6292 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6293 | int result; | |
6294 | PyObject * obj0 = 0 ; | |
6295 | char *kwnames[] = { | |
6296 | (char *) "self", NULL | |
6297 | }; | |
6298 | ||
6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail; | |
6300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6302 | { | |
6303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6304 | result = (int)(arg1)->GetY(); | |
6305 | ||
6306 | wxPyEndAllowThreads(__tstate); | |
6307 | if (PyErr_Occurred()) SWIG_fail; | |
6308 | } | |
6309 | resultobj = SWIG_FromInt((int)result); | |
6310 | return resultobj; | |
6311 | fail: | |
6312 | return NULL; | |
6313 | } | |
6314 | ||
6315 | ||
6316 | static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6317 | PyObject *resultobj; | |
6318 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6319 | int result; | |
6320 | PyObject * obj0 = 0 ; | |
6321 | char *kwnames[] = { | |
6322 | (char *) "self", NULL | |
6323 | }; | |
6324 | ||
6325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail; | |
6326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6328 | { | |
6329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6330 | result = (int)(arg1)->GetW(); | |
6331 | ||
6332 | wxPyEndAllowThreads(__tstate); | |
6333 | if (PyErr_Occurred()) SWIG_fail; | |
6334 | } | |
6335 | resultobj = SWIG_FromInt((int)result); | |
6336 | return resultobj; | |
6337 | fail: | |
6338 | return NULL; | |
6339 | } | |
6340 | ||
6341 | ||
6342 | static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6343 | PyObject *resultobj; | |
6344 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6345 | int result; | |
6346 | PyObject * obj0 = 0 ; | |
6347 | char *kwnames[] = { | |
6348 | (char *) "self", NULL | |
6349 | }; | |
6350 | ||
6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail; | |
6352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6354 | { | |
6355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6356 | result = (int)(arg1)->GetWidth(); | |
6357 | ||
6358 | wxPyEndAllowThreads(__tstate); | |
6359 | if (PyErr_Occurred()) SWIG_fail; | |
6360 | } | |
6361 | resultobj = SWIG_FromInt((int)result); | |
6362 | return resultobj; | |
6363 | fail: | |
6364 | return NULL; | |
6365 | } | |
6366 | ||
6367 | ||
6368 | static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6369 | PyObject *resultobj; | |
6370 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6371 | int result; | |
6372 | PyObject * obj0 = 0 ; | |
6373 | char *kwnames[] = { | |
6374 | (char *) "self", NULL | |
6375 | }; | |
6376 | ||
6377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail; | |
6378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6380 | { | |
6381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6382 | result = (int)(arg1)->GetH(); | |
6383 | ||
6384 | wxPyEndAllowThreads(__tstate); | |
6385 | if (PyErr_Occurred()) SWIG_fail; | |
6386 | } | |
6387 | resultobj = SWIG_FromInt((int)result); | |
6388 | return resultobj; | |
6389 | fail: | |
6390 | return NULL; | |
6391 | } | |
6392 | ||
6393 | ||
6394 | static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6395 | PyObject *resultobj; | |
6396 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6397 | int result; | |
6398 | PyObject * obj0 = 0 ; | |
6399 | char *kwnames[] = { | |
6400 | (char *) "self", NULL | |
6401 | }; | |
6402 | ||
6403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail; | |
6404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6406 | { | |
6407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6408 | result = (int)(arg1)->GetHeight(); | |
6409 | ||
6410 | wxPyEndAllowThreads(__tstate); | |
6411 | if (PyErr_Occurred()) SWIG_fail; | |
6412 | } | |
6413 | resultobj = SWIG_FromInt((int)result); | |
6414 | return resultobj; | |
6415 | fail: | |
6416 | return NULL; | |
6417 | } | |
6418 | ||
6419 | ||
6420 | static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6421 | PyObject *resultobj; | |
6422 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6423 | wxRect result; | |
6424 | PyObject * obj0 = 0 ; | |
6425 | char *kwnames[] = { | |
6426 | (char *) "self", NULL | |
6427 | }; | |
6428 | ||
6429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail; | |
6430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6432 | { | |
6433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6434 | result = (arg1)->GetRect(); | |
6435 | ||
6436 | wxPyEndAllowThreads(__tstate); | |
6437 | if (PyErr_Occurred()) SWIG_fail; | |
6438 | } | |
6439 | { | |
6440 | wxRect * resultptr; | |
6441 | resultptr = new wxRect((wxRect &) result); | |
6442 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
6443 | } | |
6444 | return resultobj; | |
6445 | fail: | |
6446 | return NULL; | |
6447 | } | |
6448 | ||
6449 | ||
6450 | static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6451 | PyObject *resultobj; | |
6452 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6453 | bool result; | |
6454 | PyObject * obj0 = 0 ; | |
6455 | char *kwnames[] = { | |
6456 | (char *) "self", NULL | |
6457 | }; | |
6458 | ||
6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail; | |
6460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6462 | { | |
6463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6464 | result = (bool)(arg1)->HaveRects(); | |
6465 | ||
6466 | wxPyEndAllowThreads(__tstate); | |
6467 | if (PyErr_Occurred()) SWIG_fail; | |
6468 | } | |
6469 | { | |
6470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6471 | } | |
6472 | return resultobj; | |
6473 | fail: | |
6474 | return NULL; | |
6475 | } | |
6476 | ||
6477 | ||
6478 | static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6479 | PyObject *resultobj; | |
6480 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6481 | PyObject * obj0 = 0 ; | |
6482 | char *kwnames[] = { | |
6483 | (char *) "self", NULL | |
6484 | }; | |
6485 | ||
6486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail; | |
6487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6489 | { | |
6490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6491 | (arg1)->Reset(); | |
6492 | ||
6493 | wxPyEndAllowThreads(__tstate); | |
6494 | if (PyErr_Occurred()) SWIG_fail; | |
6495 | } | |
6496 | Py_INCREF(Py_None); resultobj = Py_None; | |
6497 | return resultobj; | |
6498 | fail: | |
6499 | return NULL; | |
6500 | } | |
6501 | ||
6502 | ||
6503 | static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6504 | PyObject *resultobj; | |
6505 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6506 | PyObject * obj0 = 0 ; | |
6507 | char *kwnames[] = { | |
6508 | (char *) "self", NULL | |
6509 | }; | |
6510 | ||
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail; | |
6512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6514 | { | |
6515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6516 | wxRegionIterator_Next(arg1); | |
6517 | ||
6518 | wxPyEndAllowThreads(__tstate); | |
6519 | if (PyErr_Occurred()) SWIG_fail; | |
6520 | } | |
6521 | Py_INCREF(Py_None); resultobj = Py_None; | |
6522 | return resultobj; | |
6523 | fail: | |
6524 | return NULL; | |
6525 | } | |
6526 | ||
6527 | ||
6528 | static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6529 | PyObject *resultobj; | |
6530 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
6531 | bool result; | |
6532 | PyObject * obj0 = 0 ; | |
6533 | char *kwnames[] = { | |
6534 | (char *) "self", NULL | |
6535 | }; | |
6536 | ||
6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail; | |
6538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator, | |
6539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6540 | { | |
6541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6542 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
6543 | ||
6544 | wxPyEndAllowThreads(__tstate); | |
6545 | if (PyErr_Occurred()) SWIG_fail; | |
6546 | } | |
6547 | { | |
6548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6549 | } | |
6550 | return resultobj; | |
6551 | fail: | |
6552 | return NULL; | |
6553 | } | |
6554 | ||
6555 | ||
6556 | static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) { | |
6557 | PyObject *obj; | |
6558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6559 | SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj); | |
6560 | Py_INCREF(obj); | |
6561 | return Py_BuildValue((char *)""); | |
6562 | } | |
6563 | static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6564 | PyObject *resultobj; | |
6565 | wxNativeFontInfo *result; | |
6566 | char *kwnames[] = { | |
6567 | NULL | |
6568 | }; | |
6569 | ||
6570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail; | |
6571 | { | |
6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6573 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
6574 | ||
6575 | wxPyEndAllowThreads(__tstate); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | } | |
6578 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1); | |
6579 | return resultobj; | |
6580 | fail: | |
6581 | return NULL; | |
6582 | } | |
6583 | ||
6584 | ||
6585 | static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6586 | PyObject *resultobj; | |
6587 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6588 | PyObject * obj0 = 0 ; | |
6589 | char *kwnames[] = { | |
6590 | (char *) "self", NULL | |
6591 | }; | |
6592 | ||
6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail; | |
6594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6596 | { | |
6597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6598 | delete arg1; | |
6599 | ||
6600 | wxPyEndAllowThreads(__tstate); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | Py_INCREF(Py_None); resultobj = Py_None; | |
6604 | return resultobj; | |
6605 | fail: | |
6606 | return NULL; | |
6607 | } | |
6608 | ||
6609 | ||
6610 | static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6611 | PyObject *resultobj; | |
6612 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6613 | PyObject * obj0 = 0 ; | |
6614 | char *kwnames[] = { | |
6615 | (char *) "self", NULL | |
6616 | }; | |
6617 | ||
6618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail; | |
6619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6621 | { | |
6622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6623 | (arg1)->Init(); | |
6624 | ||
6625 | wxPyEndAllowThreads(__tstate); | |
6626 | if (PyErr_Occurred()) SWIG_fail; | |
6627 | } | |
6628 | Py_INCREF(Py_None); resultobj = Py_None; | |
6629 | return resultobj; | |
6630 | fail: | |
6631 | return NULL; | |
6632 | } | |
6633 | ||
6634 | ||
6635 | static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6636 | PyObject *resultobj; | |
6637 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6638 | wxFont *arg2 = 0 ; | |
6639 | PyObject * obj0 = 0 ; | |
6640 | PyObject * obj1 = 0 ; | |
6641 | char *kwnames[] = { | |
6642 | (char *) "self",(char *) "font", NULL | |
6643 | }; | |
6644 | ||
6645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail; | |
6646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6650 | SWIG_fail; | |
6651 | if (arg2 == NULL) { | |
6652 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6653 | SWIG_fail; | |
6654 | } | |
6655 | { | |
6656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6657 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
6658 | ||
6659 | wxPyEndAllowThreads(__tstate); | |
6660 | if (PyErr_Occurred()) SWIG_fail; | |
6661 | } | |
6662 | Py_INCREF(Py_None); resultobj = Py_None; | |
6663 | return resultobj; | |
6664 | fail: | |
6665 | return NULL; | |
6666 | } | |
6667 | ||
6668 | ||
6669 | static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6670 | PyObject *resultobj; | |
6671 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6672 | int result; | |
6673 | PyObject * obj0 = 0 ; | |
6674 | char *kwnames[] = { | |
6675 | (char *) "self", NULL | |
6676 | }; | |
6677 | ||
6678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail; | |
6679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6681 | { | |
6682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6683 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
6684 | ||
6685 | wxPyEndAllowThreads(__tstate); | |
6686 | if (PyErr_Occurred()) SWIG_fail; | |
6687 | } | |
6688 | resultobj = SWIG_FromInt((int)result); | |
6689 | return resultobj; | |
6690 | fail: | |
6691 | return NULL; | |
6692 | } | |
6693 | ||
6694 | ||
6695 | static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6696 | PyObject *resultobj; | |
6697 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6698 | int result; | |
6699 | PyObject * obj0 = 0 ; | |
6700 | char *kwnames[] = { | |
6701 | (char *) "self", NULL | |
6702 | }; | |
6703 | ||
6704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail; | |
6705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6707 | { | |
6708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6709 | result = (int)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
6710 | ||
6711 | wxPyEndAllowThreads(__tstate); | |
6712 | if (PyErr_Occurred()) SWIG_fail; | |
6713 | } | |
6714 | resultobj = SWIG_FromInt((int)result); | |
6715 | return resultobj; | |
6716 | fail: | |
6717 | return NULL; | |
6718 | } | |
6719 | ||
6720 | ||
6721 | static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6722 | PyObject *resultobj; | |
6723 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6724 | int result; | |
6725 | PyObject * obj0 = 0 ; | |
6726 | char *kwnames[] = { | |
6727 | (char *) "self", NULL | |
6728 | }; | |
6729 | ||
6730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail; | |
6731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6733 | { | |
6734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6735 | result = (int)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
6736 | ||
6737 | wxPyEndAllowThreads(__tstate); | |
6738 | if (PyErr_Occurred()) SWIG_fail; | |
6739 | } | |
6740 | resultobj = SWIG_FromInt((int)result); | |
6741 | return resultobj; | |
6742 | fail: | |
6743 | return NULL; | |
6744 | } | |
6745 | ||
6746 | ||
6747 | static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6748 | PyObject *resultobj; | |
6749 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6750 | bool result; | |
6751 | PyObject * obj0 = 0 ; | |
6752 | char *kwnames[] = { | |
6753 | (char *) "self", NULL | |
6754 | }; | |
6755 | ||
6756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail; | |
6757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6759 | { | |
6760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6761 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
6762 | ||
6763 | wxPyEndAllowThreads(__tstate); | |
6764 | if (PyErr_Occurred()) SWIG_fail; | |
6765 | } | |
6766 | { | |
6767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6768 | } | |
6769 | return resultobj; | |
6770 | fail: | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
6775 | static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject *resultobj; | |
6777 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6778 | wxString result; | |
6779 | PyObject * obj0 = 0 ; | |
6780 | char *kwnames[] = { | |
6781 | (char *) "self", NULL | |
6782 | }; | |
6783 | ||
6784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail; | |
6785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6787 | { | |
6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6789 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
6790 | ||
6791 | wxPyEndAllowThreads(__tstate); | |
6792 | if (PyErr_Occurred()) SWIG_fail; | |
6793 | } | |
6794 | { | |
6795 | #if wxUSE_UNICODE | |
6796 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6797 | #else | |
6798 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6799 | #endif | |
6800 | } | |
6801 | return resultobj; | |
6802 | fail: | |
6803 | return NULL; | |
6804 | } | |
6805 | ||
6806 | ||
6807 | static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6808 | PyObject *resultobj; | |
6809 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6810 | int result; | |
6811 | PyObject * obj0 = 0 ; | |
6812 | char *kwnames[] = { | |
6813 | (char *) "self", NULL | |
6814 | }; | |
6815 | ||
6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail; | |
6817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6819 | { | |
6820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6821 | result = (int)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
6822 | ||
6823 | wxPyEndAllowThreads(__tstate); | |
6824 | if (PyErr_Occurred()) SWIG_fail; | |
6825 | } | |
6826 | resultobj = SWIG_FromInt((int)result); | |
6827 | return resultobj; | |
6828 | fail: | |
6829 | return NULL; | |
6830 | } | |
6831 | ||
6832 | ||
6833 | static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6834 | PyObject *resultobj; | |
6835 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6836 | int result; | |
6837 | PyObject * obj0 = 0 ; | |
6838 | char *kwnames[] = { | |
6839 | (char *) "self", NULL | |
6840 | }; | |
6841 | ||
6842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail; | |
6843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6845 | { | |
6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6847 | result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
6848 | ||
6849 | wxPyEndAllowThreads(__tstate); | |
6850 | if (PyErr_Occurred()) SWIG_fail; | |
6851 | } | |
6852 | resultobj = SWIG_FromInt((int)result); | |
6853 | return resultobj; | |
6854 | fail: | |
6855 | return NULL; | |
6856 | } | |
6857 | ||
6858 | ||
6859 | static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6860 | PyObject *resultobj; | |
6861 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6862 | int arg2 ; | |
6863 | PyObject * obj0 = 0 ; | |
6864 | PyObject * obj1 = 0 ; | |
6865 | char *kwnames[] = { | |
6866 | (char *) "self",(char *) "pointsize", NULL | |
6867 | }; | |
6868 | ||
6869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
6870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6872 | arg2 = (int) SWIG_AsInt(obj1); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | { | |
6875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6876 | (arg1)->SetPointSize(arg2); | |
6877 | ||
6878 | wxPyEndAllowThreads(__tstate); | |
6879 | if (PyErr_Occurred()) SWIG_fail; | |
6880 | } | |
6881 | Py_INCREF(Py_None); resultobj = Py_None; | |
6882 | return resultobj; | |
6883 | fail: | |
6884 | return NULL; | |
6885 | } | |
6886 | ||
6887 | ||
6888 | static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6889 | PyObject *resultobj; | |
6890 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6891 | int arg2 ; | |
6892 | PyObject * obj0 = 0 ; | |
6893 | PyObject * obj1 = 0 ; | |
6894 | char *kwnames[] = { | |
6895 | (char *) "self",(char *) "style", NULL | |
6896 | }; | |
6897 | ||
6898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
6899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6901 | arg2 = (wxFontStyle) SWIG_AsInt(obj1); | |
6902 | if (PyErr_Occurred()) SWIG_fail; | |
6903 | { | |
6904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6905 | (arg1)->SetStyle((wxFontStyle )arg2); | |
6906 | ||
6907 | wxPyEndAllowThreads(__tstate); | |
6908 | if (PyErr_Occurred()) SWIG_fail; | |
6909 | } | |
6910 | Py_INCREF(Py_None); resultobj = Py_None; | |
6911 | return resultobj; | |
6912 | fail: | |
6913 | return NULL; | |
6914 | } | |
6915 | ||
6916 | ||
6917 | static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6918 | PyObject *resultobj; | |
6919 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6920 | int arg2 ; | |
6921 | PyObject * obj0 = 0 ; | |
6922 | PyObject * obj1 = 0 ; | |
6923 | char *kwnames[] = { | |
6924 | (char *) "self",(char *) "weight", NULL | |
6925 | }; | |
6926 | ||
6927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
6928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6930 | arg2 = (wxFontWeight) SWIG_AsInt(obj1); | |
6931 | if (PyErr_Occurred()) SWIG_fail; | |
6932 | { | |
6933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6934 | (arg1)->SetWeight((wxFontWeight )arg2); | |
6935 | ||
6936 | wxPyEndAllowThreads(__tstate); | |
6937 | if (PyErr_Occurred()) SWIG_fail; | |
6938 | } | |
6939 | Py_INCREF(Py_None); resultobj = Py_None; | |
6940 | return resultobj; | |
6941 | fail: | |
6942 | return NULL; | |
6943 | } | |
6944 | ||
6945 | ||
6946 | static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6947 | PyObject *resultobj; | |
6948 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6949 | bool arg2 ; | |
6950 | PyObject * obj0 = 0 ; | |
6951 | PyObject * obj1 = 0 ; | |
6952 | char *kwnames[] = { | |
6953 | (char *) "self",(char *) "underlined", NULL | |
6954 | }; | |
6955 | ||
6956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
6957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6959 | arg2 = (bool) SWIG_AsBool(obj1); | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | (arg1)->SetUnderlined(arg2); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | Py_INCREF(Py_None); resultobj = Py_None; | |
6969 | return resultobj; | |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
6975 | static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6976 | PyObject *resultobj; | |
6977 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
6978 | wxString arg2 ; | |
6979 | PyObject * obj0 = 0 ; | |
6980 | PyObject * obj1 = 0 ; | |
6981 | char *kwnames[] = { | |
6982 | (char *) "self",(char *) "facename", NULL | |
6983 | }; | |
6984 | ||
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
6986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
6987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6988 | { | |
6989 | wxString* sptr = wxString_in_helper(obj1); | |
6990 | if (sptr == NULL) SWIG_fail; | |
6991 | arg2 = *sptr; | |
6992 | delete sptr; | |
6993 | } | |
6994 | { | |
6995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6996 | (arg1)->SetFaceName(arg2); | |
6997 | ||
6998 | wxPyEndAllowThreads(__tstate); | |
6999 | if (PyErr_Occurred()) SWIG_fail; | |
7000 | } | |
7001 | Py_INCREF(Py_None); resultobj = Py_None; | |
7002 | return resultobj; | |
7003 | fail: | |
7004 | return NULL; | |
7005 | } | |
7006 | ||
7007 | ||
7008 | static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7009 | PyObject *resultobj; | |
7010 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7011 | int arg2 ; | |
7012 | PyObject * obj0 = 0 ; | |
7013 | PyObject * obj1 = 0 ; | |
7014 | char *kwnames[] = { | |
7015 | (char *) "self",(char *) "family", NULL | |
7016 | }; | |
7017 | ||
7018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
7019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7021 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
7022 | if (PyErr_Occurred()) SWIG_fail; | |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | (arg1)->SetFamily((wxFontFamily )arg2); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
7030 | Py_INCREF(Py_None); resultobj = Py_None; | |
7031 | return resultobj; | |
7032 | fail: | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
7037 | static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7038 | PyObject *resultobj; | |
7039 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7040 | int arg2 ; | |
7041 | PyObject * obj0 = 0 ; | |
7042 | PyObject * obj1 = 0 ; | |
7043 | char *kwnames[] = { | |
7044 | (char *) "self",(char *) "encoding", NULL | |
7045 | }; | |
7046 | ||
7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
7048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7050 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7051 | if (PyErr_Occurred()) SWIG_fail; | |
7052 | { | |
7053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7054 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
7055 | ||
7056 | wxPyEndAllowThreads(__tstate); | |
7057 | if (PyErr_Occurred()) SWIG_fail; | |
7058 | } | |
7059 | Py_INCREF(Py_None); resultobj = Py_None; | |
7060 | return resultobj; | |
7061 | fail: | |
7062 | return NULL; | |
7063 | } | |
7064 | ||
7065 | ||
7066 | static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7067 | PyObject *resultobj; | |
7068 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7069 | wxString *arg2 = 0 ; | |
7070 | bool result; | |
7071 | bool temp2 = False ; | |
7072 | PyObject * obj0 = 0 ; | |
7073 | PyObject * obj1 = 0 ; | |
7074 | char *kwnames[] = { | |
7075 | (char *) "self",(char *) "s", NULL | |
7076 | }; | |
7077 | ||
7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7081 | { | |
7082 | arg2 = wxString_in_helper(obj1); | |
7083 | if (arg2 == NULL) SWIG_fail; | |
7084 | temp2 = True; | |
7085 | } | |
7086 | { | |
7087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7088 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7089 | ||
7090 | wxPyEndAllowThreads(__tstate); | |
7091 | if (PyErr_Occurred()) SWIG_fail; | |
7092 | } | |
7093 | { | |
7094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7095 | } | |
7096 | { | |
7097 | if (temp2) | |
7098 | delete arg2; | |
7099 | } | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | { | |
7103 | if (temp2) | |
7104 | delete arg2; | |
7105 | } | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj; | |
7112 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7113 | wxString result; | |
7114 | PyObject * obj0 = 0 ; | |
7115 | char *kwnames[] = { | |
7116 | (char *) "self", NULL | |
7117 | }; | |
7118 | ||
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail; | |
7120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7122 | { | |
7123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7124 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
7125 | ||
7126 | wxPyEndAllowThreads(__tstate); | |
7127 | if (PyErr_Occurred()) SWIG_fail; | |
7128 | } | |
7129 | { | |
7130 | #if wxUSE_UNICODE | |
7131 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7132 | #else | |
7133 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7134 | #endif | |
7135 | } | |
7136 | return resultobj; | |
7137 | fail: | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
7142 | static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7143 | PyObject *resultobj; | |
7144 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7145 | wxString result; | |
7146 | PyObject * obj0 = 0 ; | |
7147 | char *kwnames[] = { | |
7148 | (char *) "self", NULL | |
7149 | }; | |
7150 | ||
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail; | |
7152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7154 | { | |
7155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7156 | result = wxNativeFontInfo___str__(arg1); | |
7157 | ||
7158 | wxPyEndAllowThreads(__tstate); | |
7159 | if (PyErr_Occurred()) SWIG_fail; | |
7160 | } | |
7161 | { | |
7162 | #if wxUSE_UNICODE | |
7163 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7164 | #else | |
7165 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7166 | #endif | |
7167 | } | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
7174 | static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject *resultobj; | |
7176 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7177 | wxString *arg2 = 0 ; | |
7178 | bool result; | |
7179 | bool temp2 = False ; | |
7180 | PyObject * obj0 = 0 ; | |
7181 | PyObject * obj1 = 0 ; | |
7182 | char *kwnames[] = { | |
7183 | (char *) "self",(char *) "s", NULL | |
7184 | }; | |
7185 | ||
7186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail; | |
7187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7189 | { | |
7190 | arg2 = wxString_in_helper(obj1); | |
7191 | if (arg2 == NULL) SWIG_fail; | |
7192 | temp2 = True; | |
7193 | } | |
7194 | { | |
7195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7196 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
7197 | ||
7198 | wxPyEndAllowThreads(__tstate); | |
7199 | if (PyErr_Occurred()) SWIG_fail; | |
7200 | } | |
7201 | { | |
7202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7203 | } | |
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_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7219 | PyObject *resultobj; | |
7220 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
7221 | wxString result; | |
7222 | PyObject * obj0 = 0 ; | |
7223 | char *kwnames[] = { | |
7224 | (char *) "self", NULL | |
7225 | }; | |
7226 | ||
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail; | |
7228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
7229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7230 | { | |
7231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7232 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
7233 | ||
7234 | wxPyEndAllowThreads(__tstate); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
7236 | } | |
7237 | { | |
7238 | #if wxUSE_UNICODE | |
7239 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7240 | #else | |
7241 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7242 | #endif | |
7243 | } | |
7244 | return resultobj; | |
7245 | fail: | |
7246 | return NULL; | |
7247 | } | |
7248 | ||
7249 | ||
7250 | static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) { | |
7251 | PyObject *obj; | |
7252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7253 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj); | |
7254 | Py_INCREF(obj); | |
7255 | return Py_BuildValue((char *)""); | |
7256 | } | |
7257 | static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7258 | PyObject *resultobj; | |
7259 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7260 | wxString *arg2 = (wxString *) 0 ; | |
7261 | bool temp2 = False ; | |
7262 | PyObject * obj0 = 0 ; | |
7263 | PyObject * obj1 = 0 ; | |
7264 | char *kwnames[] = { | |
7265 | (char *) "self",(char *) "facename", NULL | |
7266 | }; | |
7267 | ||
7268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail; | |
7269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7271 | { | |
7272 | arg2 = wxString_in_helper(obj1); | |
7273 | if (arg2 == NULL) SWIG_fail; | |
7274 | temp2 = True; | |
7275 | } | |
7276 | if (arg1) (arg1)->facename = *arg2; | |
7277 | ||
7278 | Py_INCREF(Py_None); resultobj = Py_None; | |
7279 | { | |
7280 | if (temp2) | |
7281 | delete arg2; | |
7282 | } | |
7283 | return resultobj; | |
7284 | fail: | |
7285 | { | |
7286 | if (temp2) | |
7287 | delete arg2; | |
7288 | } | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
7295 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7296 | wxString *result; | |
7297 | PyObject * obj0 = 0 ; | |
7298 | char *kwnames[] = { | |
7299 | (char *) "self", NULL | |
7300 | }; | |
7301 | ||
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail; | |
7303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7305 | result = (wxString *)& ((arg1)->facename); | |
7306 | ||
7307 | { | |
7308 | #if wxUSE_UNICODE | |
7309 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
7310 | #else | |
7311 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
7312 | #endif | |
7313 | } | |
7314 | return resultobj; | |
7315 | fail: | |
7316 | return NULL; | |
7317 | } | |
7318 | ||
7319 | ||
7320 | static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7321 | PyObject *resultobj; | |
7322 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7323 | int arg2 ; | |
7324 | PyObject * obj0 = 0 ; | |
7325 | PyObject * obj1 = 0 ; | |
7326 | char *kwnames[] = { | |
7327 | (char *) "self",(char *) "encoding", NULL | |
7328 | }; | |
7329 | ||
7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail; | |
7331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7333 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7334 | if (PyErr_Occurred()) SWIG_fail; | |
7335 | if (arg1) (arg1)->encoding = (wxFontEncoding )arg2; | |
7336 | ||
7337 | Py_INCREF(Py_None); resultobj = Py_None; | |
7338 | return resultobj; | |
7339 | fail: | |
7340 | return NULL; | |
7341 | } | |
7342 | ||
7343 | ||
7344 | static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7345 | PyObject *resultobj; | |
7346 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7347 | int result; | |
7348 | PyObject * obj0 = 0 ; | |
7349 | char *kwnames[] = { | |
7350 | (char *) "self", NULL | |
7351 | }; | |
7352 | ||
7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail; | |
7354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7356 | result = (int) ((arg1)->encoding); | |
7357 | ||
7358 | resultobj = SWIG_FromInt((int)result); | |
7359 | return resultobj; | |
7360 | fail: | |
7361 | return NULL; | |
7362 | } | |
7363 | ||
7364 | ||
7365 | static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7366 | PyObject *resultobj; | |
7367 | wxNativeEncodingInfo *result; | |
7368 | char *kwnames[] = { | |
7369 | NULL | |
7370 | }; | |
7371 | ||
7372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail; | |
7373 | { | |
7374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7375 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
7376 | ||
7377 | wxPyEndAllowThreads(__tstate); | |
7378 | if (PyErr_Occurred()) SWIG_fail; | |
7379 | } | |
7380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1); | |
7381 | return resultobj; | |
7382 | fail: | |
7383 | return NULL; | |
7384 | } | |
7385 | ||
7386 | ||
7387 | static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7388 | PyObject *resultobj; | |
7389 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7390 | PyObject * obj0 = 0 ; | |
7391 | char *kwnames[] = { | |
7392 | (char *) "self", NULL | |
7393 | }; | |
7394 | ||
7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail; | |
7396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7398 | { | |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | delete arg1; | |
7401 | ||
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
7405 | Py_INCREF(Py_None); resultobj = Py_None; | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | return NULL; | |
7409 | } | |
7410 | ||
7411 | ||
7412 | static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject *resultobj; | |
7414 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7415 | wxString *arg2 = 0 ; | |
7416 | bool result; | |
7417 | bool temp2 = False ; | |
7418 | PyObject * obj0 = 0 ; | |
7419 | PyObject * obj1 = 0 ; | |
7420 | char *kwnames[] = { | |
7421 | (char *) "self",(char *) "s", NULL | |
7422 | }; | |
7423 | ||
7424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail; | |
7425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7427 | { | |
7428 | arg2 = wxString_in_helper(obj1); | |
7429 | if (arg2 == NULL) SWIG_fail; | |
7430 | temp2 = True; | |
7431 | } | |
7432 | { | |
7433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7434 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
7435 | ||
7436 | wxPyEndAllowThreads(__tstate); | |
7437 | if (PyErr_Occurred()) SWIG_fail; | |
7438 | } | |
7439 | { | |
7440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7441 | } | |
7442 | { | |
7443 | if (temp2) | |
7444 | delete arg2; | |
7445 | } | |
7446 | return resultobj; | |
7447 | fail: | |
7448 | { | |
7449 | if (temp2) | |
7450 | delete arg2; | |
7451 | } | |
7452 | return NULL; | |
7453 | } | |
7454 | ||
7455 | ||
7456 | static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject *resultobj; | |
7458 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
7459 | wxString result; | |
7460 | PyObject * obj0 = 0 ; | |
7461 | char *kwnames[] = { | |
7462 | (char *) "self", NULL | |
7463 | }; | |
7464 | ||
7465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail; | |
7466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7468 | { | |
7469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7470 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
7471 | ||
7472 | wxPyEndAllowThreads(__tstate); | |
7473 | if (PyErr_Occurred()) SWIG_fail; | |
7474 | } | |
7475 | { | |
7476 | #if wxUSE_UNICODE | |
7477 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7478 | #else | |
7479 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7480 | #endif | |
7481 | } | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) { | |
7489 | PyObject *obj; | |
7490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7491 | SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj); | |
7492 | Py_INCREF(obj); | |
7493 | return Py_BuildValue((char *)""); | |
7494 | } | |
7495 | static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7496 | PyObject *resultobj; | |
7497 | int arg1 ; | |
7498 | wxNativeEncodingInfo *result; | |
7499 | PyObject * obj0 = 0 ; | |
7500 | char *kwnames[] = { | |
7501 | (char *) "encoding", NULL | |
7502 | }; | |
7503 | ||
7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail; | |
7505 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7506 | if (PyErr_Occurred()) SWIG_fail; | |
7507 | { | |
7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7509 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1); | |
7510 | ||
7511 | wxPyEndAllowThreads(__tstate); | |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
7513 | } | |
7514 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0); | |
7515 | return resultobj; | |
7516 | fail: | |
7517 | return NULL; | |
7518 | } | |
7519 | ||
7520 | ||
7521 | static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7522 | PyObject *resultobj; | |
7523 | wxNativeEncodingInfo *arg1 = 0 ; | |
7524 | bool result; | |
7525 | PyObject * obj0 = 0 ; | |
7526 | char *kwnames[] = { | |
7527 | (char *) "info", NULL | |
7528 | }; | |
7529 | ||
7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail; | |
7531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo, | |
7532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7533 | SWIG_fail; | |
7534 | if (arg1 == NULL) { | |
7535 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7536 | SWIG_fail; | |
7537 | } | |
7538 | { | |
7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7540 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
7541 | ||
7542 | wxPyEndAllowThreads(__tstate); | |
7543 | if (PyErr_Occurred()) SWIG_fail; | |
7544 | } | |
7545 | { | |
7546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7547 | } | |
7548 | return resultobj; | |
7549 | fail: | |
7550 | return NULL; | |
7551 | } | |
7552 | ||
7553 | ||
7554 | static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7555 | PyObject *resultobj; | |
7556 | wxFontMapper *result; | |
7557 | char *kwnames[] = { | |
7558 | NULL | |
7559 | }; | |
7560 | ||
7561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail; | |
7562 | { | |
7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7564 | result = (wxFontMapper *)new wxFontMapper(); | |
7565 | ||
7566 | wxPyEndAllowThreads(__tstate); | |
7567 | if (PyErr_Occurred()) SWIG_fail; | |
7568 | } | |
7569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1); | |
7570 | return resultobj; | |
7571 | fail: | |
7572 | return NULL; | |
7573 | } | |
7574 | ||
7575 | ||
7576 | static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7577 | PyObject *resultobj; | |
7578 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7579 | PyObject * obj0 = 0 ; | |
7580 | char *kwnames[] = { | |
7581 | (char *) "self", NULL | |
7582 | }; | |
7583 | ||
7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail; | |
7585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7587 | { | |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | delete arg1; | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | Py_INCREF(Py_None); resultobj = Py_None; | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
7601 | static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7602 | PyObject *resultobj; | |
7603 | wxFontMapper *result; | |
7604 | char *kwnames[] = { | |
7605 | NULL | |
7606 | }; | |
7607 | ||
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail; | |
7609 | { | |
7610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7611 | result = (wxFontMapper *)wxFontMapper::Get(); | |
7612 | ||
7613 | wxPyEndAllowThreads(__tstate); | |
7614 | if (PyErr_Occurred()) SWIG_fail; | |
7615 | } | |
7616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7617 | return resultobj; | |
7618 | fail: | |
7619 | return NULL; | |
7620 | } | |
7621 | ||
7622 | ||
7623 | static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7624 | PyObject *resultobj; | |
7625 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7626 | wxFontMapper *result; | |
7627 | PyObject * obj0 = 0 ; | |
7628 | char *kwnames[] = { | |
7629 | (char *) "mapper", NULL | |
7630 | }; | |
7631 | ||
7632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail; | |
7633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7635 | { | |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
7642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0); | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
7649 | static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7650 | PyObject *resultobj; | |
7651 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7652 | wxString *arg2 = 0 ; | |
7653 | bool arg3 = (bool) True ; | |
7654 | int result; | |
7655 | bool temp2 = False ; | |
7656 | PyObject * obj0 = 0 ; | |
7657 | PyObject * obj1 = 0 ; | |
7658 | PyObject * obj2 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
7661 | }; | |
7662 | ||
7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7666 | { | |
7667 | arg2 = wxString_in_helper(obj1); | |
7668 | if (arg2 == NULL) SWIG_fail; | |
7669 | temp2 = True; | |
7670 | } | |
7671 | if (obj2) { | |
7672 | arg3 = (bool) SWIG_AsBool(obj2); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | } | |
7675 | { | |
7676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7677 | result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
7678 | ||
7679 | wxPyEndAllowThreads(__tstate); | |
7680 | if (PyErr_Occurred()) SWIG_fail; | |
7681 | } | |
7682 | resultobj = SWIG_FromInt((int)result); | |
7683 | { | |
7684 | if (temp2) | |
7685 | delete arg2; | |
7686 | } | |
7687 | return resultobj; | |
7688 | fail: | |
7689 | { | |
7690 | if (temp2) | |
7691 | delete arg2; | |
7692 | } | |
7693 | return NULL; | |
7694 | } | |
7695 | ||
7696 | ||
7697 | static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7698 | PyObject *resultobj; | |
7699 | size_t result; | |
7700 | char *kwnames[] = { | |
7701 | NULL | |
7702 | }; | |
7703 | ||
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail; | |
7705 | { | |
7706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7707 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
7708 | ||
7709 | wxPyEndAllowThreads(__tstate); | |
7710 | if (PyErr_Occurred()) SWIG_fail; | |
7711 | } | |
7712 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
7713 | return resultobj; | |
7714 | fail: | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
7719 | static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7720 | PyObject *resultobj; | |
7721 | size_t arg1 ; | |
7722 | int result; | |
7723 | PyObject * obj0 = 0 ; | |
7724 | char *kwnames[] = { | |
7725 | (char *) "n", NULL | |
7726 | }; | |
7727 | ||
7728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail; | |
7729 | arg1 = (size_t) SWIG_AsUnsignedLong(obj0); | |
7730 | if (PyErr_Occurred()) SWIG_fail; | |
7731 | { | |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | result = (int)wxFontMapper::GetEncoding(arg1); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | resultobj = SWIG_FromInt((int)result); | |
7739 | return resultobj; | |
7740 | fail: | |
7741 | return NULL; | |
7742 | } | |
7743 | ||
7744 | ||
7745 | static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7746 | PyObject *resultobj; | |
7747 | int arg1 ; | |
7748 | wxString result; | |
7749 | PyObject * obj0 = 0 ; | |
7750 | char *kwnames[] = { | |
7751 | (char *) "encoding", NULL | |
7752 | }; | |
7753 | ||
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail; | |
7755 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7756 | if (PyErr_Occurred()) SWIG_fail; | |
7757 | { | |
7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7759 | result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1); | |
7760 | ||
7761 | wxPyEndAllowThreads(__tstate); | |
7762 | if (PyErr_Occurred()) SWIG_fail; | |
7763 | } | |
7764 | { | |
7765 | #if wxUSE_UNICODE | |
7766 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7767 | #else | |
7768 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7769 | #endif | |
7770 | } | |
7771 | return resultobj; | |
7772 | fail: | |
7773 | return NULL; | |
7774 | } | |
7775 | ||
7776 | ||
7777 | static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7778 | PyObject *resultobj; | |
7779 | int arg1 ; | |
7780 | wxString result; | |
7781 | PyObject * obj0 = 0 ; | |
7782 | char *kwnames[] = { | |
7783 | (char *) "encoding", NULL | |
7784 | }; | |
7785 | ||
7786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail; | |
7787 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
7796 | { | |
7797 | #if wxUSE_UNICODE | |
7798 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7799 | #else | |
7800 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7801 | #endif | |
7802 | } | |
7803 | return resultobj; | |
7804 | fail: | |
7805 | return NULL; | |
7806 | } | |
7807 | ||
7808 | ||
7809 | static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7810 | PyObject *resultobj; | |
7811 | wxString *arg1 = 0 ; | |
7812 | int result; | |
7813 | bool temp1 = False ; | |
7814 | PyObject * obj0 = 0 ; | |
7815 | char *kwnames[] = { | |
7816 | (char *) "name", NULL | |
7817 | }; | |
7818 | ||
7819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail; | |
7820 | { | |
7821 | arg1 = wxString_in_helper(obj0); | |
7822 | if (arg1 == NULL) SWIG_fail; | |
7823 | temp1 = True; | |
7824 | } | |
7825 | { | |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
7828 | ||
7829 | wxPyEndAllowThreads(__tstate); | |
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
7832 | resultobj = SWIG_FromInt((int)result); | |
7833 | { | |
7834 | if (temp1) | |
7835 | delete arg1; | |
7836 | } | |
7837 | return resultobj; | |
7838 | fail: | |
7839 | { | |
7840 | if (temp1) | |
7841 | delete arg1; | |
7842 | } | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
7847 | static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject *resultobj; | |
7849 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7850 | wxConfigBase *arg2 = (wxConfigBase *) 0 ; | |
7851 | PyObject * obj0 = 0 ; | |
7852 | PyObject * obj1 = 0 ; | |
7853 | char *kwnames[] = { | |
7854 | (char *) "self",(char *) "config", NULL | |
7855 | }; | |
7856 | ||
7857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail; | |
7858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase, | |
7861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7862 | { | |
7863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7864 | (arg1)->SetConfig(arg2); | |
7865 | ||
7866 | wxPyEndAllowThreads(__tstate); | |
7867 | if (PyErr_Occurred()) SWIG_fail; | |
7868 | } | |
7869 | Py_INCREF(Py_None); resultobj = Py_None; | |
7870 | return resultobj; | |
7871 | fail: | |
7872 | return NULL; | |
7873 | } | |
7874 | ||
7875 | ||
7876 | static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7877 | PyObject *resultobj; | |
7878 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7879 | wxString *arg2 = 0 ; | |
7880 | bool temp2 = False ; | |
7881 | PyObject * obj0 = 0 ; | |
7882 | PyObject * obj1 = 0 ; | |
7883 | char *kwnames[] = { | |
7884 | (char *) "self",(char *) "prefix", NULL | |
7885 | }; | |
7886 | ||
7887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail; | |
7888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7890 | { | |
7891 | arg2 = wxString_in_helper(obj1); | |
7892 | if (arg2 == NULL) SWIG_fail; | |
7893 | temp2 = True; | |
7894 | } | |
7895 | { | |
7896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7897 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
7898 | ||
7899 | wxPyEndAllowThreads(__tstate); | |
7900 | if (PyErr_Occurred()) SWIG_fail; | |
7901 | } | |
7902 | Py_INCREF(Py_None); resultobj = Py_None; | |
7903 | { | |
7904 | if (temp2) | |
7905 | delete arg2; | |
7906 | } | |
7907 | return resultobj; | |
7908 | fail: | |
7909 | { | |
7910 | if (temp2) | |
7911 | delete arg2; | |
7912 | } | |
7913 | return NULL; | |
7914 | } | |
7915 | ||
7916 | ||
7917 | static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7918 | PyObject *resultobj; | |
7919 | wxString result; | |
7920 | char *kwnames[] = { | |
7921 | NULL | |
7922 | }; | |
7923 | ||
7924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail; | |
7925 | { | |
7926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7927 | result = wxFontMapper::GetDefaultConfigPath(); | |
7928 | ||
7929 | wxPyEndAllowThreads(__tstate); | |
7930 | if (PyErr_Occurred()) SWIG_fail; | |
7931 | } | |
7932 | { | |
7933 | #if wxUSE_UNICODE | |
7934 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7935 | #else | |
7936 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7937 | #endif | |
7938 | } | |
7939 | return resultobj; | |
7940 | fail: | |
7941 | return NULL; | |
7942 | } | |
7943 | ||
7944 | ||
7945 | static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject *resultobj; | |
7947 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
7948 | int arg2 ; | |
7949 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7950 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7951 | bool arg4 = (bool) True ; | |
7952 | PyObject *result; | |
7953 | bool temp3 = False ; | |
7954 | PyObject * obj0 = 0 ; | |
7955 | PyObject * obj1 = 0 ; | |
7956 | PyObject * obj2 = 0 ; | |
7957 | PyObject * obj3 = 0 ; | |
7958 | char *kwnames[] = { | |
7959 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
7960 | }; | |
7961 | ||
7962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
7964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7965 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | if (obj2) { | |
7968 | { | |
7969 | arg3 = wxString_in_helper(obj2); | |
7970 | if (arg3 == NULL) SWIG_fail; | |
7971 | temp3 = True; | |
7972 | } | |
7973 | } | |
7974 | if (obj3) { | |
7975 | arg4 = (bool) SWIG_AsBool(obj3); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | } | |
7978 | { | |
7979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7980 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4); | |
7981 | ||
7982 | wxPyEndAllowThreads(__tstate); | |
7983 | if (PyErr_Occurred()) SWIG_fail; | |
7984 | } | |
7985 | resultobj = result; | |
7986 | { | |
7987 | if (temp3) | |
7988 | delete arg3; | |
7989 | } | |
7990 | return resultobj; | |
7991 | fail: | |
7992 | { | |
7993 | if (temp3) | |
7994 | delete arg3; | |
7995 | } | |
7996 | return NULL; | |
7997 | } | |
7998 | ||
7999 | ||
8000 | static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8001 | PyObject *resultobj; | |
8002 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8003 | int arg2 ; | |
8004 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
8005 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8006 | bool result; | |
8007 | bool temp3 = False ; | |
8008 | PyObject * obj0 = 0 ; | |
8009 | PyObject * obj1 = 0 ; | |
8010 | PyObject * obj2 = 0 ; | |
8011 | char *kwnames[] = { | |
8012 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
8013 | }; | |
8014 | ||
8015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8018 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | if (obj2) { | |
8021 | { | |
8022 | arg3 = wxString_in_helper(obj2); | |
8023 | if (arg3 == NULL) SWIG_fail; | |
8024 | temp3 = True; | |
8025 | } | |
8026 | } | |
8027 | { | |
8028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8029 | result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3); | |
8030 | ||
8031 | wxPyEndAllowThreads(__tstate); | |
8032 | if (PyErr_Occurred()) SWIG_fail; | |
8033 | } | |
8034 | { | |
8035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8036 | } | |
8037 | { | |
8038 | if (temp3) | |
8039 | delete arg3; | |
8040 | } | |
8041 | return resultobj; | |
8042 | fail: | |
8043 | { | |
8044 | if (temp3) | |
8045 | delete arg3; | |
8046 | } | |
8047 | return NULL; | |
8048 | } | |
8049 | ||
8050 | ||
8051 | static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8052 | PyObject *resultobj; | |
8053 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8054 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8055 | PyObject * obj0 = 0 ; | |
8056 | PyObject * obj1 = 0 ; | |
8057 | char *kwnames[] = { | |
8058 | (char *) "self",(char *) "parent", NULL | |
8059 | }; | |
8060 | ||
8061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail; | |
8062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8066 | { | |
8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8068 | (arg1)->SetDialogParent(arg2); | |
8069 | ||
8070 | wxPyEndAllowThreads(__tstate); | |
8071 | if (PyErr_Occurred()) SWIG_fail; | |
8072 | } | |
8073 | Py_INCREF(Py_None); resultobj = Py_None; | |
8074 | return resultobj; | |
8075 | fail: | |
8076 | return NULL; | |
8077 | } | |
8078 | ||
8079 | ||
8080 | static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8081 | PyObject *resultobj; | |
8082 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
8083 | wxString *arg2 = 0 ; | |
8084 | bool temp2 = False ; | |
8085 | PyObject * obj0 = 0 ; | |
8086 | PyObject * obj1 = 0 ; | |
8087 | char *kwnames[] = { | |
8088 | (char *) "self",(char *) "title", NULL | |
8089 | }; | |
8090 | ||
8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail; | |
8092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper, | |
8093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8094 | { | |
8095 | arg2 = wxString_in_helper(obj1); | |
8096 | if (arg2 == NULL) SWIG_fail; | |
8097 | temp2 = True; | |
8098 | } | |
8099 | { | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
8102 | ||
8103 | wxPyEndAllowThreads(__tstate); | |
8104 | if (PyErr_Occurred()) SWIG_fail; | |
8105 | } | |
8106 | Py_INCREF(Py_None); resultobj = Py_None; | |
8107 | { | |
8108 | if (temp2) | |
8109 | delete arg2; | |
8110 | } | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | { | |
8114 | if (temp2) | |
8115 | delete arg2; | |
8116 | } | |
8117 | return NULL; | |
8118 | } | |
8119 | ||
8120 | ||
8121 | static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) { | |
8122 | PyObject *obj; | |
8123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8124 | SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj); | |
8125 | Py_INCREF(obj); | |
8126 | return Py_BuildValue((char *)""); | |
8127 | } | |
8128 | static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8129 | PyObject *resultobj; | |
8130 | int arg1 ; | |
8131 | int arg2 ; | |
8132 | int arg3 ; | |
8133 | int arg4 ; | |
8134 | bool arg5 = (bool) False ; | |
8135 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
8136 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8137 | int arg7 = (int) wxFONTENCODING_DEFAULT ; | |
8138 | wxFont *result; | |
8139 | bool temp6 = False ; | |
8140 | PyObject * obj0 = 0 ; | |
8141 | PyObject * obj1 = 0 ; | |
8142 | PyObject * obj2 = 0 ; | |
8143 | PyObject * obj3 = 0 ; | |
8144 | PyObject * obj4 = 0 ; | |
8145 | PyObject * obj5 = 0 ; | |
8146 | PyObject * obj6 = 0 ; | |
8147 | char *kwnames[] = { | |
8148 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
8149 | }; | |
8150 | ||
8151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
8152 | arg1 = (int) SWIG_AsInt(obj0); | |
8153 | if (PyErr_Occurred()) SWIG_fail; | |
8154 | arg2 = (int) SWIG_AsInt(obj1); | |
8155 | if (PyErr_Occurred()) SWIG_fail; | |
8156 | arg3 = (int) SWIG_AsInt(obj2); | |
8157 | if (PyErr_Occurred()) SWIG_fail; | |
8158 | arg4 = (int) SWIG_AsInt(obj3); | |
8159 | if (PyErr_Occurred()) SWIG_fail; | |
8160 | if (obj4) { | |
8161 | arg5 = (bool) SWIG_AsBool(obj4); | |
8162 | if (PyErr_Occurred()) SWIG_fail; | |
8163 | } | |
8164 | if (obj5) { | |
8165 | { | |
8166 | arg6 = wxString_in_helper(obj5); | |
8167 | if (arg6 == NULL) SWIG_fail; | |
8168 | temp6 = True; | |
8169 | } | |
8170 | } | |
8171 | if (obj6) { | |
8172 | arg7 = (wxFontEncoding) SWIG_AsInt(obj6); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | { | |
0439c23b | 8176 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8178 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7); | |
8179 | ||
8180 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8181 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8182 | } |
8183 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8184 | { | |
8185 | if (temp6) | |
8186 | delete arg6; | |
8187 | } | |
8188 | return resultobj; | |
8189 | fail: | |
8190 | { | |
8191 | if (temp6) | |
8192 | delete arg6; | |
8193 | } | |
8194 | return NULL; | |
8195 | } | |
8196 | ||
8197 | ||
8198 | static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8199 | PyObject *resultobj; | |
8200 | wxFont *arg1 = (wxFont *) 0 ; | |
8201 | PyObject * obj0 = 0 ; | |
8202 | char *kwnames[] = { | |
8203 | (char *) "self", NULL | |
8204 | }; | |
8205 | ||
8206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail; | |
8207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | delete arg1; | |
8212 | ||
8213 | wxPyEndAllowThreads(__tstate); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | Py_INCREF(Py_None); resultobj = Py_None; | |
8217 | return resultobj; | |
8218 | fail: | |
8219 | return NULL; | |
8220 | } | |
8221 | ||
8222 | ||
8223 | static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8224 | PyObject *resultobj; | |
8225 | wxNativeFontInfo *arg1 = 0 ; | |
8226 | wxFont *result; | |
8227 | PyObject * obj0 = 0 ; | |
8228 | char *kwnames[] = { | |
8229 | (char *) "info", NULL | |
8230 | }; | |
8231 | ||
8232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail; | |
8233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo, | |
8234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8235 | SWIG_fail; | |
8236 | if (arg1 == NULL) { | |
8237 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8238 | SWIG_fail; | |
8239 | } | |
8240 | { | |
0439c23b | 8241 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8243 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
8244 | ||
8245 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8246 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8247 | } |
8248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8249 | return resultobj; | |
8250 | fail: | |
8251 | return NULL; | |
8252 | } | |
8253 | ||
8254 | ||
8255 | static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8256 | PyObject *resultobj; | |
8257 | wxString *arg1 = 0 ; | |
8258 | wxFont *result; | |
8259 | bool temp1 = False ; | |
8260 | PyObject * obj0 = 0 ; | |
8261 | char *kwnames[] = { | |
8262 | (char *) "info", NULL | |
8263 | }; | |
8264 | ||
8265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail; | |
8266 | { | |
8267 | arg1 = wxString_in_helper(obj0); | |
8268 | if (arg1 == NULL) SWIG_fail; | |
8269 | temp1 = True; | |
8270 | } | |
8271 | { | |
0439c23b | 8272 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8274 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
8275 | ||
8276 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8277 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8278 | } |
8279 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8280 | { | |
8281 | if (temp1) | |
8282 | delete arg1; | |
8283 | } | |
8284 | return resultobj; | |
8285 | fail: | |
8286 | { | |
8287 | if (temp1) | |
8288 | delete arg1; | |
8289 | } | |
8290 | return NULL; | |
8291 | } | |
8292 | ||
8293 | ||
8294 | static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject *resultobj; | |
8296 | int arg1 ; | |
8297 | int arg2 ; | |
8298 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
8299 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
8300 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8301 | int arg5 = (int) wxFONTENCODING_DEFAULT ; | |
8302 | wxFont *result; | |
8303 | bool temp4 = False ; | |
8304 | PyObject * obj0 = 0 ; | |
8305 | PyObject * obj1 = 0 ; | |
8306 | PyObject * obj2 = 0 ; | |
8307 | PyObject * obj3 = 0 ; | |
8308 | PyObject * obj4 = 0 ; | |
8309 | char *kwnames[] = { | |
8310 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
8311 | }; | |
8312 | ||
8313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
8314 | arg1 = (int) SWIG_AsInt(obj0); | |
8315 | if (PyErr_Occurred()) SWIG_fail; | |
8316 | arg2 = (wxFontFamily) SWIG_AsInt(obj1); | |
8317 | if (PyErr_Occurred()) SWIG_fail; | |
8318 | if (obj2) { | |
8319 | arg3 = (int) SWIG_AsInt(obj2); | |
8320 | if (PyErr_Occurred()) SWIG_fail; | |
8321 | } | |
8322 | if (obj3) { | |
8323 | { | |
8324 | arg4 = wxString_in_helper(obj3); | |
8325 | if (arg4 == NULL) SWIG_fail; | |
8326 | temp4 = True; | |
8327 | } | |
8328 | } | |
8329 | if (obj4) { | |
8330 | arg5 = (wxFontEncoding) SWIG_AsInt(obj4); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
8332 | } | |
8333 | { | |
0439c23b | 8334 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8336 | result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5); | |
8337 | ||
8338 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8339 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8340 | } |
8341 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1); | |
8342 | { | |
8343 | if (temp4) | |
8344 | delete arg4; | |
8345 | } | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | { | |
8349 | if (temp4) | |
8350 | delete arg4; | |
8351 | } | |
8352 | return NULL; | |
8353 | } | |
8354 | ||
8355 | ||
8356 | static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8357 | PyObject *resultobj; | |
8358 | wxFont *arg1 = (wxFont *) 0 ; | |
8359 | bool result; | |
8360 | PyObject * obj0 = 0 ; | |
8361 | char *kwnames[] = { | |
8362 | (char *) "self", NULL | |
8363 | }; | |
8364 | ||
8365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail; | |
8366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8368 | { | |
8369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8370 | result = (bool)((wxFont const *)arg1)->Ok(); | |
8371 | ||
8372 | wxPyEndAllowThreads(__tstate); | |
8373 | if (PyErr_Occurred()) SWIG_fail; | |
8374 | } | |
8375 | { | |
8376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8377 | } | |
8378 | return resultobj; | |
8379 | fail: | |
8380 | return NULL; | |
8381 | } | |
8382 | ||
8383 | ||
8384 | static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8385 | PyObject *resultobj; | |
8386 | wxFont *arg1 = (wxFont *) 0 ; | |
8387 | wxFont *arg2 = (wxFont *) 0 ; | |
8388 | bool result; | |
8389 | PyObject * obj0 = 0 ; | |
8390 | PyObject * obj1 = 0 ; | |
8391 | char *kwnames[] = { | |
8392 | (char *) "self",(char *) "other", NULL | |
8393 | }; | |
8394 | ||
8395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail; | |
8396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8398 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8400 | { | |
8401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8402 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
8403 | ||
8404 | wxPyEndAllowThreads(__tstate); | |
8405 | if (PyErr_Occurred()) SWIG_fail; | |
8406 | } | |
8407 | { | |
8408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8409 | } | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8417 | PyObject *resultobj; | |
8418 | wxFont *arg1 = (wxFont *) 0 ; | |
8419 | wxFont *arg2 = (wxFont *) 0 ; | |
8420 | bool result; | |
8421 | PyObject * obj0 = 0 ; | |
8422 | PyObject * obj1 = 0 ; | |
8423 | char *kwnames[] = { | |
8424 | (char *) "self",(char *) "other", NULL | |
8425 | }; | |
8426 | ||
8427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail; | |
8428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8430 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
8431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8432 | { | |
8433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8434 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
8435 | ||
8436 | wxPyEndAllowThreads(__tstate); | |
8437 | if (PyErr_Occurred()) SWIG_fail; | |
8438 | } | |
8439 | { | |
8440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8441 | } | |
8442 | return resultobj; | |
8443 | fail: | |
8444 | return NULL; | |
8445 | } | |
8446 | ||
8447 | ||
8448 | static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8449 | PyObject *resultobj; | |
8450 | wxFont *arg1 = (wxFont *) 0 ; | |
8451 | int result; | |
8452 | PyObject * obj0 = 0 ; | |
8453 | char *kwnames[] = { | |
8454 | (char *) "self", NULL | |
8455 | }; | |
8456 | ||
8457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",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 = (int)((wxFont const *)arg1)->GetPointSize(); | |
8463 | ||
8464 | wxPyEndAllowThreads(__tstate); | |
8465 | if (PyErr_Occurred()) SWIG_fail; | |
8466 | } | |
8467 | resultobj = SWIG_FromInt((int)result); | |
8468 | return resultobj; | |
8469 | fail: | |
8470 | return NULL; | |
8471 | } | |
8472 | ||
8473 | ||
8474 | static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8475 | PyObject *resultobj; | |
8476 | wxFont *arg1 = (wxFont *) 0 ; | |
8477 | int result; | |
8478 | PyObject * obj0 = 0 ; | |
8479 | char *kwnames[] = { | |
8480 | (char *) "self", NULL | |
8481 | }; | |
8482 | ||
8483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail; | |
8484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8486 | { | |
8487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8488 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
8489 | ||
8490 | wxPyEndAllowThreads(__tstate); | |
8491 | if (PyErr_Occurred()) SWIG_fail; | |
8492 | } | |
8493 | resultobj = SWIG_FromInt((int)result); | |
8494 | return resultobj; | |
8495 | fail: | |
8496 | return NULL; | |
8497 | } | |
8498 | ||
8499 | ||
8500 | static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8501 | PyObject *resultobj; | |
8502 | wxFont *arg1 = (wxFont *) 0 ; | |
8503 | int result; | |
8504 | PyObject * obj0 = 0 ; | |
8505 | char *kwnames[] = { | |
8506 | (char *) "self", NULL | |
8507 | }; | |
8508 | ||
8509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail; | |
8510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8512 | { | |
8513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8514 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
8515 | ||
8516 | wxPyEndAllowThreads(__tstate); | |
8517 | if (PyErr_Occurred()) SWIG_fail; | |
8518 | } | |
8519 | resultobj = SWIG_FromInt((int)result); | |
8520 | return resultobj; | |
8521 | fail: | |
8522 | return NULL; | |
8523 | } | |
8524 | ||
8525 | ||
8526 | static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8527 | PyObject *resultobj; | |
8528 | wxFont *arg1 = (wxFont *) 0 ; | |
8529 | int result; | |
8530 | PyObject * obj0 = 0 ; | |
8531 | char *kwnames[] = { | |
8532 | (char *) "self", NULL | |
8533 | }; | |
8534 | ||
8535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail; | |
8536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8538 | { | |
8539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8540 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
8541 | ||
8542 | wxPyEndAllowThreads(__tstate); | |
8543 | if (PyErr_Occurred()) SWIG_fail; | |
8544 | } | |
8545 | resultobj = SWIG_FromInt((int)result); | |
8546 | return resultobj; | |
8547 | fail: | |
8548 | return NULL; | |
8549 | } | |
8550 | ||
8551 | ||
8552 | static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8553 | PyObject *resultobj; | |
8554 | wxFont *arg1 = (wxFont *) 0 ; | |
8555 | bool result; | |
8556 | PyObject * obj0 = 0 ; | |
8557 | char *kwnames[] = { | |
8558 | (char *) "self", NULL | |
8559 | }; | |
8560 | ||
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail; | |
8562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8564 | { | |
8565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8566 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
8567 | ||
8568 | wxPyEndAllowThreads(__tstate); | |
8569 | if (PyErr_Occurred()) SWIG_fail; | |
8570 | } | |
8571 | { | |
8572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8573 | } | |
8574 | return resultobj; | |
8575 | fail: | |
8576 | return NULL; | |
8577 | } | |
8578 | ||
8579 | ||
8580 | static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8581 | PyObject *resultobj; | |
8582 | wxFont *arg1 = (wxFont *) 0 ; | |
8583 | wxString result; | |
8584 | PyObject * obj0 = 0 ; | |
8585 | char *kwnames[] = { | |
8586 | (char *) "self", NULL | |
8587 | }; | |
8588 | ||
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail; | |
8590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8592 | { | |
8593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8594 | result = ((wxFont const *)arg1)->GetFaceName(); | |
8595 | ||
8596 | wxPyEndAllowThreads(__tstate); | |
8597 | if (PyErr_Occurred()) SWIG_fail; | |
8598 | } | |
8599 | { | |
8600 | #if wxUSE_UNICODE | |
8601 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8602 | #else | |
8603 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8604 | #endif | |
8605 | } | |
8606 | return resultobj; | |
8607 | fail: | |
8608 | return NULL; | |
8609 | } | |
8610 | ||
8611 | ||
8612 | static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8613 | PyObject *resultobj; | |
8614 | wxFont *arg1 = (wxFont *) 0 ; | |
8615 | int result; | |
8616 | PyObject * obj0 = 0 ; | |
8617 | char *kwnames[] = { | |
8618 | (char *) "self", NULL | |
8619 | }; | |
8620 | ||
8621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail; | |
8622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8624 | { | |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | result = (int)((wxFont const *)arg1)->GetEncoding(); | |
8627 | ||
8628 | wxPyEndAllowThreads(__tstate); | |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
8631 | resultobj = SWIG_FromInt((int)result); | |
8632 | return resultobj; | |
8633 | fail: | |
8634 | return NULL; | |
8635 | } | |
8636 | ||
8637 | ||
8638 | static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8639 | PyObject *resultobj; | |
8640 | wxFont *arg1 = (wxFont *) 0 ; | |
8641 | wxNativeFontInfo *result; | |
8642 | PyObject * obj0 = 0 ; | |
8643 | char *kwnames[] = { | |
8644 | (char *) "self", NULL | |
8645 | }; | |
8646 | ||
8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail; | |
8648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8650 | { | |
8651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8652 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
8653 | ||
8654 | wxPyEndAllowThreads(__tstate); | |
8655 | if (PyErr_Occurred()) SWIG_fail; | |
8656 | } | |
8657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0); | |
8658 | return resultobj; | |
8659 | fail: | |
8660 | return NULL; | |
8661 | } | |
8662 | ||
8663 | ||
8664 | static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8665 | PyObject *resultobj; | |
8666 | wxFont *arg1 = (wxFont *) 0 ; | |
8667 | bool result; | |
8668 | PyObject * obj0 = 0 ; | |
8669 | char *kwnames[] = { | |
8670 | (char *) "self", NULL | |
8671 | }; | |
8672 | ||
8673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail; | |
8674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8676 | { | |
8677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8678 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
8679 | ||
8680 | wxPyEndAllowThreads(__tstate); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | } | |
8683 | { | |
8684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8685 | } | |
8686 | return resultobj; | |
8687 | fail: | |
8688 | return NULL; | |
8689 | } | |
8690 | ||
8691 | ||
8692 | static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8693 | PyObject *resultobj; | |
8694 | wxFont *arg1 = (wxFont *) 0 ; | |
8695 | wxString result; | |
8696 | PyObject * obj0 = 0 ; | |
8697 | char *kwnames[] = { | |
8698 | (char *) "self", NULL | |
8699 | }; | |
8700 | ||
8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail; | |
8702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8704 | { | |
8705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8706 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
8707 | ||
8708 | wxPyEndAllowThreads(__tstate); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | } | |
8711 | { | |
8712 | #if wxUSE_UNICODE | |
8713 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8714 | #else | |
8715 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8716 | #endif | |
8717 | } | |
8718 | return resultobj; | |
8719 | fail: | |
8720 | return NULL; | |
8721 | } | |
8722 | ||
8723 | ||
8724 | static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8725 | PyObject *resultobj; | |
8726 | wxFont *arg1 = (wxFont *) 0 ; | |
8727 | wxString result; | |
8728 | PyObject * obj0 = 0 ; | |
8729 | char *kwnames[] = { | |
8730 | (char *) "self", NULL | |
8731 | }; | |
8732 | ||
8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail; | |
8734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8736 | { | |
8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8738 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
8739 | ||
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | { | |
8744 | #if wxUSE_UNICODE | |
8745 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8746 | #else | |
8747 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8748 | #endif | |
8749 | } | |
8750 | return resultobj; | |
8751 | fail: | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
8756 | static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8757 | PyObject *resultobj; | |
8758 | wxFont *arg1 = (wxFont *) 0 ; | |
8759 | int arg2 ; | |
8760 | PyObject * obj0 = 0 ; | |
8761 | PyObject * obj1 = 0 ; | |
8762 | char *kwnames[] = { | |
8763 | (char *) "self",(char *) "pointSize", NULL | |
8764 | }; | |
8765 | ||
8766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail; | |
8767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8769 | arg2 = (int) SWIG_AsInt(obj1); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | { | |
8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8773 | (arg1)->SetPointSize(arg2); | |
8774 | ||
8775 | wxPyEndAllowThreads(__tstate); | |
8776 | if (PyErr_Occurred()) SWIG_fail; | |
8777 | } | |
8778 | Py_INCREF(Py_None); resultobj = Py_None; | |
8779 | return resultobj; | |
8780 | fail: | |
8781 | return NULL; | |
8782 | } | |
8783 | ||
8784 | ||
8785 | static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8786 | PyObject *resultobj; | |
8787 | wxFont *arg1 = (wxFont *) 0 ; | |
8788 | int arg2 ; | |
8789 | PyObject * obj0 = 0 ; | |
8790 | PyObject * obj1 = 0 ; | |
8791 | char *kwnames[] = { | |
8792 | (char *) "self",(char *) "family", NULL | |
8793 | }; | |
8794 | ||
8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail; | |
8796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8798 | arg2 = (int) SWIG_AsInt(obj1); | |
8799 | if (PyErr_Occurred()) SWIG_fail; | |
8800 | { | |
8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8802 | (arg1)->SetFamily(arg2); | |
8803 | ||
8804 | wxPyEndAllowThreads(__tstate); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
8807 | Py_INCREF(Py_None); resultobj = Py_None; | |
8808 | return resultobj; | |
8809 | fail: | |
8810 | return NULL; | |
8811 | } | |
8812 | ||
8813 | ||
8814 | static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8815 | PyObject *resultobj; | |
8816 | wxFont *arg1 = (wxFont *) 0 ; | |
8817 | int arg2 ; | |
8818 | PyObject * obj0 = 0 ; | |
8819 | PyObject * obj1 = 0 ; | |
8820 | char *kwnames[] = { | |
8821 | (char *) "self",(char *) "style", NULL | |
8822 | }; | |
8823 | ||
8824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
8825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8827 | arg2 = (int) SWIG_AsInt(obj1); | |
8828 | if (PyErr_Occurred()) SWIG_fail; | |
8829 | { | |
8830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8831 | (arg1)->SetStyle(arg2); | |
8832 | ||
8833 | wxPyEndAllowThreads(__tstate); | |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
8835 | } | |
8836 | Py_INCREF(Py_None); resultobj = Py_None; | |
8837 | return resultobj; | |
8838 | fail: | |
8839 | return NULL; | |
8840 | } | |
8841 | ||
8842 | ||
8843 | static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8844 | PyObject *resultobj; | |
8845 | wxFont *arg1 = (wxFont *) 0 ; | |
8846 | int arg2 ; | |
8847 | PyObject * obj0 = 0 ; | |
8848 | PyObject * obj1 = 0 ; | |
8849 | char *kwnames[] = { | |
8850 | (char *) "self",(char *) "weight", NULL | |
8851 | }; | |
8852 | ||
8853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail; | |
8854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8856 | arg2 = (int) SWIG_AsInt(obj1); | |
8857 | if (PyErr_Occurred()) SWIG_fail; | |
8858 | { | |
8859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8860 | (arg1)->SetWeight(arg2); | |
8861 | ||
8862 | wxPyEndAllowThreads(__tstate); | |
8863 | if (PyErr_Occurred()) SWIG_fail; | |
8864 | } | |
8865 | Py_INCREF(Py_None); resultobj = Py_None; | |
8866 | return resultobj; | |
8867 | fail: | |
8868 | return NULL; | |
8869 | } | |
8870 | ||
8871 | ||
8872 | static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8873 | PyObject *resultobj; | |
8874 | wxFont *arg1 = (wxFont *) 0 ; | |
8875 | wxString *arg2 = 0 ; | |
8876 | bool temp2 = False ; | |
8877 | PyObject * obj0 = 0 ; | |
8878 | PyObject * obj1 = 0 ; | |
8879 | char *kwnames[] = { | |
8880 | (char *) "self",(char *) "faceName", NULL | |
8881 | }; | |
8882 | ||
8883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail; | |
8884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8886 | { | |
8887 | arg2 = wxString_in_helper(obj1); | |
8888 | if (arg2 == NULL) SWIG_fail; | |
8889 | temp2 = True; | |
8890 | } | |
8891 | { | |
8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8893 | (arg1)->SetFaceName((wxString const &)*arg2); | |
8894 | ||
8895 | wxPyEndAllowThreads(__tstate); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
8898 | Py_INCREF(Py_None); resultobj = Py_None; | |
8899 | { | |
8900 | if (temp2) | |
8901 | delete arg2; | |
8902 | } | |
8903 | return resultobj; | |
8904 | fail: | |
8905 | { | |
8906 | if (temp2) | |
8907 | delete arg2; | |
8908 | } | |
8909 | return NULL; | |
8910 | } | |
8911 | ||
8912 | ||
8913 | static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8914 | PyObject *resultobj; | |
8915 | wxFont *arg1 = (wxFont *) 0 ; | |
8916 | bool arg2 ; | |
8917 | PyObject * obj0 = 0 ; | |
8918 | PyObject * obj1 = 0 ; | |
8919 | char *kwnames[] = { | |
8920 | (char *) "self",(char *) "underlined", NULL | |
8921 | }; | |
8922 | ||
8923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail; | |
8924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8926 | arg2 = (bool) SWIG_AsBool(obj1); | |
8927 | if (PyErr_Occurred()) SWIG_fail; | |
8928 | { | |
8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8930 | (arg1)->SetUnderlined(arg2); | |
8931 | ||
8932 | wxPyEndAllowThreads(__tstate); | |
8933 | if (PyErr_Occurred()) SWIG_fail; | |
8934 | } | |
8935 | Py_INCREF(Py_None); resultobj = Py_None; | |
8936 | return resultobj; | |
8937 | fail: | |
8938 | return NULL; | |
8939 | } | |
8940 | ||
8941 | ||
8942 | static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8943 | PyObject *resultobj; | |
8944 | wxFont *arg1 = (wxFont *) 0 ; | |
8945 | int arg2 ; | |
8946 | PyObject * obj0 = 0 ; | |
8947 | PyObject * obj1 = 0 ; | |
8948 | char *kwnames[] = { | |
8949 | (char *) "self",(char *) "encoding", NULL | |
8950 | }; | |
8951 | ||
8952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail; | |
8953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8955 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | { | |
8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8959 | (arg1)->SetEncoding((wxFontEncoding )arg2); | |
8960 | ||
8961 | wxPyEndAllowThreads(__tstate); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | Py_INCREF(Py_None); resultobj = Py_None; | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | return NULL; | |
8968 | } | |
8969 | ||
8970 | ||
8971 | static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8972 | PyObject *resultobj; | |
8973 | wxFont *arg1 = (wxFont *) 0 ; | |
8974 | wxNativeFontInfo *arg2 = 0 ; | |
8975 | PyObject * obj0 = 0 ; | |
8976 | PyObject * obj1 = 0 ; | |
8977 | char *kwnames[] = { | |
8978 | (char *) "self",(char *) "info", NULL | |
8979 | }; | |
8980 | ||
8981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail; | |
8982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
8983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo, | |
8985 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8986 | SWIG_fail; | |
8987 | if (arg2 == NULL) { | |
8988 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8989 | SWIG_fail; | |
8990 | } | |
8991 | { | |
8992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8993 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
8994 | ||
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8998 | Py_INCREF(Py_None); resultobj = Py_None; | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj; | |
9007 | wxFont *arg1 = (wxFont *) 0 ; | |
9008 | wxString *arg2 = 0 ; | |
9009 | bool temp2 = False ; | |
9010 | PyObject * obj0 = 0 ; | |
9011 | PyObject * obj1 = 0 ; | |
9012 | char *kwnames[] = { | |
9013 | (char *) "self",(char *) "info", NULL | |
9014 | }; | |
9015 | ||
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail; | |
9017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9019 | { | |
9020 | arg2 = wxString_in_helper(obj1); | |
9021 | if (arg2 == NULL) SWIG_fail; | |
9022 | temp2 = True; | |
9023 | } | |
9024 | { | |
9025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9026 | (arg1)->SetNativeFontInfo((wxString const &)*arg2); | |
9027 | ||
9028 | wxPyEndAllowThreads(__tstate); | |
9029 | if (PyErr_Occurred()) SWIG_fail; | |
9030 | } | |
9031 | Py_INCREF(Py_None); resultobj = Py_None; | |
9032 | { | |
9033 | if (temp2) | |
9034 | delete arg2; | |
9035 | } | |
9036 | return resultobj; | |
9037 | fail: | |
9038 | { | |
9039 | if (temp2) | |
9040 | delete arg2; | |
9041 | } | |
9042 | return NULL; | |
9043 | } | |
9044 | ||
9045 | ||
9046 | static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9047 | PyObject *resultobj; | |
9048 | wxFont *arg1 = (wxFont *) 0 ; | |
9049 | wxString *arg2 = 0 ; | |
9050 | bool temp2 = False ; | |
9051 | PyObject * obj0 = 0 ; | |
9052 | PyObject * obj1 = 0 ; | |
9053 | char *kwnames[] = { | |
9054 | (char *) "self",(char *) "info", NULL | |
9055 | }; | |
9056 | ||
9057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail; | |
9058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9060 | { | |
9061 | arg2 = wxString_in_helper(obj1); | |
9062 | if (arg2 == NULL) SWIG_fail; | |
9063 | temp2 = True; | |
9064 | } | |
9065 | { | |
9066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9067 | (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); | |
9068 | ||
9069 | wxPyEndAllowThreads(__tstate); | |
9070 | if (PyErr_Occurred()) SWIG_fail; | |
9071 | } | |
9072 | Py_INCREF(Py_None); resultobj = Py_None; | |
9073 | { | |
9074 | if (temp2) | |
9075 | delete arg2; | |
9076 | } | |
9077 | return resultobj; | |
9078 | fail: | |
9079 | { | |
9080 | if (temp2) | |
9081 | delete arg2; | |
9082 | } | |
9083 | return NULL; | |
9084 | } | |
9085 | ||
9086 | ||
9087 | static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9088 | PyObject *resultobj; | |
9089 | wxFont *arg1 = (wxFont *) 0 ; | |
9090 | wxString result; | |
9091 | PyObject * obj0 = 0 ; | |
9092 | char *kwnames[] = { | |
9093 | (char *) "self", NULL | |
9094 | }; | |
9095 | ||
9096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail; | |
9097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9099 | { | |
9100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9101 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
9102 | ||
9103 | wxPyEndAllowThreads(__tstate); | |
9104 | if (PyErr_Occurred()) SWIG_fail; | |
9105 | } | |
9106 | { | |
9107 | #if wxUSE_UNICODE | |
9108 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9109 | #else | |
9110 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9111 | #endif | |
9112 | } | |
9113 | return resultobj; | |
9114 | fail: | |
9115 | return NULL; | |
9116 | } | |
9117 | ||
9118 | ||
9119 | static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9120 | PyObject *resultobj; | |
9121 | wxFont *arg1 = (wxFont *) 0 ; | |
9122 | wxString result; | |
9123 | PyObject * obj0 = 0 ; | |
9124 | char *kwnames[] = { | |
9125 | (char *) "self", NULL | |
9126 | }; | |
9127 | ||
9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail; | |
9129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9131 | { | |
9132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9133 | result = ((wxFont const *)arg1)->GetStyleString(); | |
9134 | ||
9135 | wxPyEndAllowThreads(__tstate); | |
9136 | if (PyErr_Occurred()) SWIG_fail; | |
9137 | } | |
9138 | { | |
9139 | #if wxUSE_UNICODE | |
9140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9141 | #else | |
9142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9143 | #endif | |
9144 | } | |
9145 | return resultobj; | |
9146 | fail: | |
9147 | return NULL; | |
9148 | } | |
9149 | ||
9150 | ||
9151 | static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9152 | PyObject *resultobj; | |
9153 | wxFont *arg1 = (wxFont *) 0 ; | |
9154 | wxString result; | |
9155 | PyObject * obj0 = 0 ; | |
9156 | char *kwnames[] = { | |
9157 | (char *) "self", NULL | |
9158 | }; | |
9159 | ||
9160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail; | |
9161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9163 | { | |
9164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9165 | result = ((wxFont const *)arg1)->GetWeightString(); | |
9166 | ||
9167 | wxPyEndAllowThreads(__tstate); | |
9168 | if (PyErr_Occurred()) SWIG_fail; | |
9169 | } | |
9170 | { | |
9171 | #if wxUSE_UNICODE | |
9172 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9173 | #else | |
9174 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9175 | #endif | |
9176 | } | |
9177 | return resultobj; | |
9178 | fail: | |
9179 | return NULL; | |
9180 | } | |
9181 | ||
9182 | ||
9183 | static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9184 | PyObject *resultobj; | |
9185 | wxFont *arg1 = (wxFont *) 0 ; | |
9186 | bool arg2 = (bool) True ; | |
9187 | PyObject * obj0 = 0 ; | |
9188 | PyObject * obj1 = 0 ; | |
9189 | char *kwnames[] = { | |
9190 | (char *) "self",(char *) "no", NULL | |
9191 | }; | |
9192 | ||
9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail; | |
9194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9196 | if (obj1) { | |
9197 | arg2 = (bool) SWIG_AsBool(obj1); | |
9198 | if (PyErr_Occurred()) SWIG_fail; | |
9199 | } | |
9200 | { | |
9201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9202 | (arg1)->SetNoAntiAliasing(arg2); | |
9203 | ||
9204 | wxPyEndAllowThreads(__tstate); | |
9205 | if (PyErr_Occurred()) SWIG_fail; | |
9206 | } | |
9207 | Py_INCREF(Py_None); resultobj = Py_None; | |
9208 | return resultobj; | |
9209 | fail: | |
9210 | return NULL; | |
9211 | } | |
9212 | ||
9213 | ||
9214 | static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9215 | PyObject *resultobj; | |
9216 | wxFont *arg1 = (wxFont *) 0 ; | |
9217 | bool result; | |
9218 | PyObject * obj0 = 0 ; | |
9219 | char *kwnames[] = { | |
9220 | (char *) "self", NULL | |
9221 | }; | |
9222 | ||
9223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail; | |
9224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont, | |
9225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9226 | { | |
9227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9228 | result = (bool)(arg1)->GetNoAntiAliasing(); | |
9229 | ||
9230 | wxPyEndAllowThreads(__tstate); | |
9231 | if (PyErr_Occurred()) SWIG_fail; | |
9232 | } | |
9233 | { | |
9234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9235 | } | |
9236 | return resultobj; | |
9237 | fail: | |
9238 | return NULL; | |
9239 | } | |
9240 | ||
9241 | ||
9242 | static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9243 | PyObject *resultobj; | |
9244 | int result; | |
9245 | char *kwnames[] = { | |
9246 | NULL | |
9247 | }; | |
9248 | ||
9249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail; | |
9250 | { | |
0439c23b | 9251 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9253 | result = (int)wxFont::GetDefaultEncoding(); | |
9254 | ||
9255 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9256 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9257 | } |
9258 | resultobj = SWIG_FromInt((int)result); | |
9259 | return resultobj; | |
9260 | fail: | |
9261 | return NULL; | |
9262 | } | |
9263 | ||
9264 | ||
9265 | static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9266 | PyObject *resultobj; | |
9267 | int arg1 ; | |
9268 | PyObject * obj0 = 0 ; | |
9269 | char *kwnames[] = { | |
9270 | (char *) "encoding", NULL | |
9271 | }; | |
9272 | ||
9273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail; | |
9274 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | { | |
0439c23b | 9277 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9279 | wxFont::SetDefaultEncoding((wxFontEncoding )arg1); | |
9280 | ||
9281 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9282 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9283 | } |
9284 | Py_INCREF(Py_None); resultobj = Py_None; | |
9285 | return resultobj; | |
9286 | fail: | |
9287 | return NULL; | |
9288 | } | |
9289 | ||
9290 | ||
9291 | static PyObject * Font_swigregister(PyObject *self, PyObject *args) { | |
9292 | PyObject *obj; | |
9293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9294 | SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj); | |
9295 | Py_INCREF(obj); | |
9296 | return Py_BuildValue((char *)""); | |
9297 | } | |
9298 | static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9299 | PyObject *resultobj; | |
9300 | wxPyFontEnumerator *result; | |
9301 | char *kwnames[] = { | |
9302 | NULL | |
9303 | }; | |
9304 | ||
9305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail; | |
9306 | { | |
0439c23b | 9307 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9309 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
9310 | ||
9311 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 9312 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9313 | } |
9314 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1); | |
9315 | return resultobj; | |
9316 | fail: | |
9317 | return NULL; | |
9318 | } | |
9319 | ||
9320 | ||
9321 | static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9322 | PyObject *resultobj; | |
9323 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9324 | PyObject * obj0 = 0 ; | |
9325 | char *kwnames[] = { | |
9326 | (char *) "self", NULL | |
9327 | }; | |
9328 | ||
9329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail; | |
9330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9332 | { | |
9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9334 | delete arg1; | |
9335 | ||
9336 | wxPyEndAllowThreads(__tstate); | |
9337 | if (PyErr_Occurred()) SWIG_fail; | |
9338 | } | |
9339 | Py_INCREF(Py_None); resultobj = Py_None; | |
9340 | return resultobj; | |
9341 | fail: | |
9342 | return NULL; | |
9343 | } | |
9344 | ||
9345 | ||
9346 | static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9347 | PyObject *resultobj; | |
9348 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9349 | PyObject *arg2 = (PyObject *) 0 ; | |
9350 | PyObject *arg3 = (PyObject *) 0 ; | |
9351 | bool arg4 ; | |
9352 | PyObject * obj0 = 0 ; | |
9353 | PyObject * obj1 = 0 ; | |
9354 | PyObject * obj2 = 0 ; | |
9355 | PyObject * obj3 = 0 ; | |
9356 | char *kwnames[] = { | |
9357 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
9358 | }; | |
9359 | ||
9360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9363 | arg2 = obj1; | |
9364 | arg3 = obj2; | |
9365 | arg4 = (bool) SWIG_AsBool(obj3); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | { | |
9368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9369 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
9370 | ||
9371 | wxPyEndAllowThreads(__tstate); | |
9372 | if (PyErr_Occurred()) SWIG_fail; | |
9373 | } | |
9374 | Py_INCREF(Py_None); resultobj = Py_None; | |
9375 | return resultobj; | |
9376 | fail: | |
9377 | return NULL; | |
9378 | } | |
9379 | ||
9380 | ||
9381 | static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9382 | PyObject *resultobj; | |
9383 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9384 | int arg2 = (int) wxFONTENCODING_SYSTEM ; | |
9385 | bool arg3 = (bool) False ; | |
9386 | bool result; | |
9387 | PyObject * obj0 = 0 ; | |
9388 | PyObject * obj1 = 0 ; | |
9389 | PyObject * obj2 = 0 ; | |
9390 | char *kwnames[] = { | |
9391 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
9392 | }; | |
9393 | ||
9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9397 | if (obj1) { | |
9398 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
9401 | if (obj2) { | |
9402 | arg3 = (bool) SWIG_AsBool(obj2); | |
9403 | if (PyErr_Occurred()) SWIG_fail; | |
9404 | } | |
9405 | { | |
9406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9407 | result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3); | |
9408 | ||
9409 | wxPyEndAllowThreads(__tstate); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
9411 | } | |
9412 | { | |
9413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9414 | } | |
9415 | return resultobj; | |
9416 | fail: | |
9417 | return NULL; | |
9418 | } | |
9419 | ||
9420 | ||
9421 | static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9422 | PyObject *resultobj; | |
9423 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9424 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
9425 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
9426 | bool result; | |
9427 | bool temp2 = False ; | |
9428 | PyObject * obj0 = 0 ; | |
9429 | PyObject * obj1 = 0 ; | |
9430 | char *kwnames[] = { | |
9431 | (char *) "self",(char *) "facename", NULL | |
9432 | }; | |
9433 | ||
9434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail; | |
9435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9437 | if (obj1) { | |
9438 | { | |
9439 | arg2 = wxString_in_helper(obj1); | |
9440 | if (arg2 == NULL) SWIG_fail; | |
9441 | temp2 = True; | |
9442 | } | |
9443 | } | |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
9451 | { | |
9452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9453 | } | |
9454 | { | |
9455 | if (temp2) | |
9456 | delete arg2; | |
9457 | } | |
9458 | return resultobj; | |
9459 | fail: | |
9460 | { | |
9461 | if (temp2) | |
9462 | delete arg2; | |
9463 | } | |
9464 | return NULL; | |
9465 | } | |
9466 | ||
9467 | ||
9468 | static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9469 | PyObject *resultobj; | |
9470 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9471 | PyObject *result; | |
9472 | PyObject * obj0 = 0 ; | |
9473 | char *kwnames[] = { | |
9474 | (char *) "self", NULL | |
9475 | }; | |
9476 | ||
9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail; | |
9478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9480 | { | |
9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9482 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1); | |
9483 | ||
9484 | wxPyEndAllowThreads(__tstate); | |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | } | |
9487 | resultobj = result; | |
9488 | return resultobj; | |
9489 | fail: | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
9494 | static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9495 | PyObject *resultobj; | |
9496 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
9497 | PyObject *result; | |
9498 | PyObject * obj0 = 0 ; | |
9499 | char *kwnames[] = { | |
9500 | (char *) "self", NULL | |
9501 | }; | |
9502 | ||
9503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail; | |
9504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator, | |
9505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9506 | { | |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9508 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1); | |
9509 | ||
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
9513 | resultobj = result; | |
9514 | return resultobj; | |
9515 | fail: | |
9516 | return NULL; | |
9517 | } | |
9518 | ||
9519 | ||
9520 | static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) { | |
9521 | PyObject *obj; | |
9522 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9523 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj); | |
9524 | Py_INCREF(obj); | |
9525 | return Py_BuildValue((char *)""); | |
9526 | } | |
9527 | static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9528 | PyObject *resultobj; | |
9529 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9530 | int arg2 ; | |
9531 | PyObject * obj0 = 0 ; | |
9532 | PyObject * obj1 = 0 ; | |
9533 | char *kwnames[] = { | |
9534 | (char *) "self",(char *) "Language", NULL | |
9535 | }; | |
9536 | ||
9537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail; | |
9538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9540 | arg2 = (int) SWIG_AsInt(obj1); | |
9541 | if (PyErr_Occurred()) SWIG_fail; | |
9542 | if (arg1) (arg1)->Language = arg2; | |
9543 | ||
9544 | Py_INCREF(Py_None); resultobj = Py_None; | |
9545 | return resultobj; | |
9546 | fail: | |
9547 | return NULL; | |
9548 | } | |
9549 | ||
9550 | ||
9551 | static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9552 | PyObject *resultobj; | |
9553 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9554 | int result; | |
9555 | PyObject * obj0 = 0 ; | |
9556 | char *kwnames[] = { | |
9557 | (char *) "self", NULL | |
9558 | }; | |
9559 | ||
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail; | |
9561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9563 | result = (int) ((arg1)->Language); | |
9564 | ||
9565 | resultobj = SWIG_FromInt((int)result); | |
9566 | return resultobj; | |
9567 | fail: | |
9568 | return NULL; | |
9569 | } | |
9570 | ||
9571 | ||
9572 | static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9573 | PyObject *resultobj; | |
9574 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9575 | wxString *arg2 = (wxString *) 0 ; | |
9576 | bool temp2 = False ; | |
9577 | PyObject * obj0 = 0 ; | |
9578 | PyObject * obj1 = 0 ; | |
9579 | char *kwnames[] = { | |
9580 | (char *) "self",(char *) "CanonicalName", NULL | |
9581 | }; | |
9582 | ||
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail; | |
9584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9586 | { | |
9587 | arg2 = wxString_in_helper(obj1); | |
9588 | if (arg2 == NULL) SWIG_fail; | |
9589 | temp2 = True; | |
9590 | } | |
9591 | if (arg1) (arg1)->CanonicalName = *arg2; | |
9592 | ||
9593 | Py_INCREF(Py_None); resultobj = Py_None; | |
9594 | { | |
9595 | if (temp2) | |
9596 | delete arg2; | |
9597 | } | |
9598 | return resultobj; | |
9599 | fail: | |
9600 | { | |
9601 | if (temp2) | |
9602 | delete arg2; | |
9603 | } | |
9604 | return NULL; | |
9605 | } | |
9606 | ||
9607 | ||
9608 | static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9609 | PyObject *resultobj; | |
9610 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9611 | wxString *result; | |
9612 | PyObject * obj0 = 0 ; | |
9613 | char *kwnames[] = { | |
9614 | (char *) "self", NULL | |
9615 | }; | |
9616 | ||
9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail; | |
9618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9620 | result = (wxString *)& ((arg1)->CanonicalName); | |
9621 | ||
9622 | { | |
9623 | #if wxUSE_UNICODE | |
9624 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9625 | #else | |
9626 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9627 | #endif | |
9628 | } | |
9629 | return resultobj; | |
9630 | fail: | |
9631 | return NULL; | |
9632 | } | |
9633 | ||
9634 | ||
9635 | static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9636 | PyObject *resultobj; | |
9637 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9638 | wxString *arg2 = (wxString *) 0 ; | |
9639 | bool temp2 = False ; | |
9640 | PyObject * obj0 = 0 ; | |
9641 | PyObject * obj1 = 0 ; | |
9642 | char *kwnames[] = { | |
9643 | (char *) "self",(char *) "Description", NULL | |
9644 | }; | |
9645 | ||
9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail; | |
9647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9649 | { | |
9650 | arg2 = wxString_in_helper(obj1); | |
9651 | if (arg2 == NULL) SWIG_fail; | |
9652 | temp2 = True; | |
9653 | } | |
9654 | if (arg1) (arg1)->Description = *arg2; | |
9655 | ||
9656 | Py_INCREF(Py_None); resultobj = Py_None; | |
9657 | { | |
9658 | if (temp2) | |
9659 | delete arg2; | |
9660 | } | |
9661 | return resultobj; | |
9662 | fail: | |
9663 | { | |
9664 | if (temp2) | |
9665 | delete arg2; | |
9666 | } | |
9667 | return NULL; | |
9668 | } | |
9669 | ||
9670 | ||
9671 | static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9672 | PyObject *resultobj; | |
9673 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
9674 | wxString *result; | |
9675 | PyObject * obj0 = 0 ; | |
9676 | char *kwnames[] = { | |
9677 | (char *) "self", NULL | |
9678 | }; | |
9679 | ||
9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail; | |
9681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
9682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9683 | result = (wxString *)& ((arg1)->Description); | |
9684 | ||
9685 | { | |
9686 | #if wxUSE_UNICODE | |
9687 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9688 | #else | |
9689 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9690 | #endif | |
9691 | } | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | return NULL; | |
9695 | } | |
9696 | ||
9697 | ||
9698 | static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) { | |
9699 | PyObject *obj; | |
9700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9701 | SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj); | |
9702 | Py_INCREF(obj); | |
9703 | return Py_BuildValue((char *)""); | |
9704 | } | |
9705 | static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9706 | PyObject *resultobj; | |
79fccf9d | 9707 | int arg1 = (int) -1 ; |
d55e5bfc RD |
9708 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; |
9709 | wxLocale *result; | |
9710 | PyObject * obj0 = 0 ; | |
9711 | PyObject * obj1 = 0 ; | |
9712 | char *kwnames[] = { | |
9713 | (char *) "language",(char *) "flags", NULL | |
9714 | }; | |
9715 | ||
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail; | |
9717 | if (obj0) { | |
9718 | arg1 = (int) SWIG_AsInt(obj0); | |
9719 | if (PyErr_Occurred()) SWIG_fail; | |
9720 | } | |
9721 | if (obj1) { | |
9722 | arg2 = (int) SWIG_AsInt(obj1); | |
9723 | if (PyErr_Occurred()) SWIG_fail; | |
9724 | } | |
9725 | { | |
9726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
79fccf9d | 9727 | result = (wxLocale *)new_wxLocale(arg1,arg2); |
d55e5bfc RD |
9728 | |
9729 | wxPyEndAllowThreads(__tstate); | |
9730 | if (PyErr_Occurred()) SWIG_fail; | |
9731 | } | |
9732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1); | |
9733 | return resultobj; | |
9734 | fail: | |
9735 | return NULL; | |
9736 | } | |
9737 | ||
9738 | ||
9739 | static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9740 | PyObject *resultobj; | |
9741 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9742 | PyObject * obj0 = 0 ; | |
9743 | char *kwnames[] = { | |
9744 | (char *) "self", NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail; | |
9748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9750 | { | |
9751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9752 | delete arg1; | |
9753 | ||
9754 | wxPyEndAllowThreads(__tstate); | |
9755 | if (PyErr_Occurred()) SWIG_fail; | |
9756 | } | |
9757 | Py_INCREF(Py_None); resultobj = Py_None; | |
9758 | return resultobj; | |
9759 | fail: | |
9760 | return NULL; | |
9761 | } | |
9762 | ||
9763 | ||
9764 | static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9765 | PyObject *resultobj; | |
9766 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9767 | wxString *arg2 = 0 ; | |
9768 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
9769 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9770 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
9771 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9772 | bool arg5 = (bool) True ; | |
9773 | bool arg6 = (bool) False ; | |
9774 | bool result; | |
9775 | bool temp2 = False ; | |
9776 | bool temp3 = False ; | |
9777 | bool temp4 = False ; | |
9778 | PyObject * obj0 = 0 ; | |
9779 | PyObject * obj1 = 0 ; | |
9780 | PyObject * obj2 = 0 ; | |
9781 | PyObject * obj3 = 0 ; | |
9782 | PyObject * obj4 = 0 ; | |
9783 | PyObject * obj5 = 0 ; | |
9784 | char *kwnames[] = { | |
9785 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
9786 | }; | |
9787 | ||
9788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9791 | { | |
9792 | arg2 = wxString_in_helper(obj1); | |
9793 | if (arg2 == NULL) SWIG_fail; | |
9794 | temp2 = True; | |
9795 | } | |
9796 | if (obj2) { | |
9797 | { | |
9798 | arg3 = wxString_in_helper(obj2); | |
9799 | if (arg3 == NULL) SWIG_fail; | |
9800 | temp3 = True; | |
9801 | } | |
9802 | } | |
9803 | if (obj3) { | |
9804 | { | |
9805 | arg4 = wxString_in_helper(obj3); | |
9806 | if (arg4 == NULL) SWIG_fail; | |
9807 | temp4 = True; | |
9808 | } | |
9809 | } | |
9810 | if (obj4) { | |
9811 | arg5 = (bool) SWIG_AsBool(obj4); | |
9812 | if (PyErr_Occurred()) SWIG_fail; | |
9813 | } | |
9814 | if (obj5) { | |
9815 | arg6 = (bool) SWIG_AsBool(obj5); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | { | |
9819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9820 | result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
9821 | ||
9822 | wxPyEndAllowThreads(__tstate); | |
9823 | if (PyErr_Occurred()) SWIG_fail; | |
9824 | } | |
9825 | { | |
9826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9827 | } | |
9828 | { | |
9829 | if (temp2) | |
9830 | delete arg2; | |
9831 | } | |
9832 | { | |
9833 | if (temp3) | |
9834 | delete arg3; | |
9835 | } | |
9836 | { | |
9837 | if (temp4) | |
9838 | delete arg4; | |
9839 | } | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | { | |
9843 | if (temp2) | |
9844 | delete arg2; | |
9845 | } | |
9846 | { | |
9847 | if (temp3) | |
9848 | delete arg3; | |
9849 | } | |
9850 | { | |
9851 | if (temp4) | |
9852 | delete arg4; | |
9853 | } | |
9854 | return NULL; | |
9855 | } | |
9856 | ||
9857 | ||
9858 | static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9859 | PyObject *resultobj; | |
9860 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9861 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
9862 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
9863 | bool result; | |
9864 | PyObject * obj0 = 0 ; | |
9865 | PyObject * obj1 = 0 ; | |
9866 | PyObject * obj2 = 0 ; | |
9867 | char *kwnames[] = { | |
9868 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
9869 | }; | |
9870 | ||
9871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9874 | if (obj1) { | |
9875 | arg2 = (int) SWIG_AsInt(obj1); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
9877 | } | |
9878 | if (obj2) { | |
9879 | arg3 = (int) SWIG_AsInt(obj2); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
9882 | { | |
9883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9884 | result = (bool)(arg1)->Init(arg2,arg3); | |
9885 | ||
9886 | wxPyEndAllowThreads(__tstate); | |
9887 | if (PyErr_Occurred()) SWIG_fail; | |
9888 | } | |
9889 | { | |
9890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9891 | } | |
9892 | return resultobj; | |
9893 | fail: | |
9894 | return NULL; | |
9895 | } | |
9896 | ||
9897 | ||
9898 | static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9899 | PyObject *resultobj; | |
9900 | int result; | |
9901 | char *kwnames[] = { | |
9902 | NULL | |
9903 | }; | |
9904 | ||
9905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail; | |
9906 | { | |
9907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9908 | result = (int)wxLocale::GetSystemLanguage(); | |
9909 | ||
9910 | wxPyEndAllowThreads(__tstate); | |
9911 | if (PyErr_Occurred()) SWIG_fail; | |
9912 | } | |
9913 | resultobj = SWIG_FromInt((int)result); | |
9914 | return resultobj; | |
9915 | fail: | |
9916 | return NULL; | |
9917 | } | |
9918 | ||
9919 | ||
9920 | static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9921 | PyObject *resultobj; | |
9922 | int result; | |
9923 | char *kwnames[] = { | |
9924 | NULL | |
9925 | }; | |
9926 | ||
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail; | |
9928 | { | |
9929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9930 | result = (int)wxLocale::GetSystemEncoding(); | |
9931 | ||
9932 | wxPyEndAllowThreads(__tstate); | |
9933 | if (PyErr_Occurred()) SWIG_fail; | |
9934 | } | |
9935 | resultobj = SWIG_FromInt((int)result); | |
9936 | return resultobj; | |
9937 | fail: | |
9938 | return NULL; | |
9939 | } | |
9940 | ||
9941 | ||
9942 | static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9943 | PyObject *resultobj; | |
9944 | wxString result; | |
9945 | char *kwnames[] = { | |
9946 | NULL | |
9947 | }; | |
9948 | ||
9949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail; | |
9950 | { | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | result = wxLocale::GetSystemEncodingName(); | |
9953 | ||
9954 | wxPyEndAllowThreads(__tstate); | |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
9957 | { | |
9958 | #if wxUSE_UNICODE | |
9959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9960 | #else | |
9961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9962 | #endif | |
9963 | } | |
9964 | return resultobj; | |
9965 | fail: | |
9966 | return NULL; | |
9967 | } | |
9968 | ||
9969 | ||
9970 | static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9971 | PyObject *resultobj; | |
9972 | wxLocale *arg1 = (wxLocale *) 0 ; | |
9973 | bool result; | |
9974 | PyObject * obj0 = 0 ; | |
9975 | char *kwnames[] = { | |
9976 | (char *) "self", NULL | |
9977 | }; | |
9978 | ||
9979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail; | |
9980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
9981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9982 | { | |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
9989 | { | |
9990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9991 | } | |
9992 | return resultobj; | |
9993 | fail: | |
9994 | return NULL; | |
9995 | } | |
9996 | ||
9997 | ||
9998 | static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9999 | PyObject *resultobj; | |
10000 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10001 | wxString result; | |
10002 | PyObject * obj0 = 0 ; | |
10003 | char *kwnames[] = { | |
10004 | (char *) "self", NULL | |
10005 | }; | |
10006 | ||
10007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail; | |
10008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10010 | { | |
10011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10012 | result = ((wxLocale const *)arg1)->GetLocale(); | |
10013 | ||
10014 | wxPyEndAllowThreads(__tstate); | |
10015 | if (PyErr_Occurred()) SWIG_fail; | |
10016 | } | |
10017 | { | |
10018 | #if wxUSE_UNICODE | |
10019 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10020 | #else | |
10021 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10022 | #endif | |
10023 | } | |
10024 | return resultobj; | |
10025 | fail: | |
10026 | return NULL; | |
10027 | } | |
10028 | ||
10029 | ||
10030 | static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10031 | PyObject *resultobj; | |
10032 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10033 | int result; | |
10034 | PyObject * obj0 = 0 ; | |
10035 | char *kwnames[] = { | |
10036 | (char *) "self", NULL | |
10037 | }; | |
10038 | ||
10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail; | |
10040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10042 | { | |
10043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
10045 | ||
10046 | wxPyEndAllowThreads(__tstate); | |
10047 | if (PyErr_Occurred()) SWIG_fail; | |
10048 | } | |
10049 | resultobj = SWIG_FromInt((int)result); | |
10050 | return resultobj; | |
10051 | fail: | |
10052 | return NULL; | |
10053 | } | |
10054 | ||
10055 | ||
10056 | static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10057 | PyObject *resultobj; | |
10058 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10059 | wxString result; | |
10060 | PyObject * obj0 = 0 ; | |
10061 | char *kwnames[] = { | |
10062 | (char *) "self", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail; | |
10066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10068 | { | |
10069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10070 | result = ((wxLocale const *)arg1)->GetSysName(); | |
10071 | ||
10072 | wxPyEndAllowThreads(__tstate); | |
10073 | if (PyErr_Occurred()) SWIG_fail; | |
10074 | } | |
10075 | { | |
10076 | #if wxUSE_UNICODE | |
10077 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10078 | #else | |
10079 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10080 | #endif | |
10081 | } | |
10082 | return resultobj; | |
10083 | fail: | |
10084 | return NULL; | |
10085 | } | |
10086 | ||
10087 | ||
10088 | static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10089 | PyObject *resultobj; | |
10090 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10091 | wxString result; | |
10092 | PyObject * obj0 = 0 ; | |
10093 | char *kwnames[] = { | |
10094 | (char *) "self", NULL | |
10095 | }; | |
10096 | ||
10097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail; | |
10098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10102 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
10103 | ||
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
10107 | { | |
10108 | #if wxUSE_UNICODE | |
10109 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10110 | #else | |
10111 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10112 | #endif | |
10113 | } | |
10114 | return resultobj; | |
10115 | fail: | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10121 | PyObject *resultobj; | |
10122 | wxString *arg1 = 0 ; | |
10123 | bool temp1 = False ; | |
10124 | PyObject * obj0 = 0 ; | |
10125 | char *kwnames[] = { | |
10126 | (char *) "prefix", NULL | |
10127 | }; | |
10128 | ||
10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail; | |
10130 | { | |
10131 | arg1 = wxString_in_helper(obj0); | |
10132 | if (arg1 == NULL) SWIG_fail; | |
10133 | temp1 = True; | |
10134 | } | |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
10142 | Py_INCREF(Py_None); resultobj = Py_None; | |
10143 | { | |
10144 | if (temp1) | |
10145 | delete arg1; | |
10146 | } | |
10147 | return resultobj; | |
10148 | fail: | |
10149 | { | |
10150 | if (temp1) | |
10151 | delete arg1; | |
10152 | } | |
10153 | return NULL; | |
10154 | } | |
10155 | ||
10156 | ||
10157 | static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10158 | PyObject *resultobj; | |
10159 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10160 | wxString *arg2 = 0 ; | |
10161 | bool result; | |
10162 | bool temp2 = False ; | |
10163 | PyObject * obj0 = 0 ; | |
10164 | PyObject * obj1 = 0 ; | |
10165 | char *kwnames[] = { | |
10166 | (char *) "self",(char *) "szDomain", NULL | |
10167 | }; | |
10168 | ||
10169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail; | |
10170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10172 | { | |
10173 | arg2 = wxString_in_helper(obj1); | |
10174 | if (arg2 == NULL) SWIG_fail; | |
10175 | temp2 = True; | |
10176 | } | |
10177 | { | |
10178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10179 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
10180 | ||
10181 | wxPyEndAllowThreads(__tstate); | |
10182 | if (PyErr_Occurred()) SWIG_fail; | |
10183 | } | |
10184 | { | |
10185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10186 | } | |
10187 | { | |
10188 | if (temp2) | |
10189 | delete arg2; | |
10190 | } | |
10191 | return resultobj; | |
10192 | fail: | |
10193 | { | |
10194 | if (temp2) | |
10195 | delete arg2; | |
10196 | } | |
10197 | return NULL; | |
10198 | } | |
10199 | ||
10200 | ||
10201 | static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10202 | PyObject *resultobj; | |
10203 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10204 | wxString *arg2 = 0 ; | |
10205 | bool result; | |
10206 | bool temp2 = False ; | |
10207 | PyObject * obj0 = 0 ; | |
10208 | PyObject * obj1 = 0 ; | |
10209 | char *kwnames[] = { | |
10210 | (char *) "self",(char *) "szDomain", NULL | |
10211 | }; | |
10212 | ||
10213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail; | |
10214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10216 | { | |
10217 | arg2 = wxString_in_helper(obj1); | |
10218 | if (arg2 == NULL) SWIG_fail; | |
10219 | temp2 = True; | |
10220 | } | |
10221 | { | |
10222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10223 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
10224 | ||
10225 | wxPyEndAllowThreads(__tstate); | |
10226 | if (PyErr_Occurred()) SWIG_fail; | |
10227 | } | |
10228 | { | |
10229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10230 | } | |
10231 | { | |
10232 | if (temp2) | |
10233 | delete arg2; | |
10234 | } | |
10235 | return resultobj; | |
10236 | fail: | |
10237 | { | |
10238 | if (temp2) | |
10239 | delete arg2; | |
10240 | } | |
10241 | return NULL; | |
10242 | } | |
10243 | ||
10244 | ||
10245 | static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10246 | PyObject *resultobj; | |
10247 | int arg1 ; | |
10248 | wxLanguageInfo *result; | |
10249 | PyObject * obj0 = 0 ; | |
10250 | char *kwnames[] = { | |
10251 | (char *) "lang", NULL | |
10252 | }; | |
10253 | ||
10254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail; | |
10255 | arg1 = (int) SWIG_AsInt(obj0); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | { | |
10258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10259 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
10260 | ||
10261 | wxPyEndAllowThreads(__tstate); | |
10262 | if (PyErr_Occurred()) SWIG_fail; | |
10263 | } | |
10264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10265 | return resultobj; | |
10266 | fail: | |
10267 | return NULL; | |
10268 | } | |
10269 | ||
10270 | ||
10271 | static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10272 | PyObject *resultobj; | |
10273 | int arg1 ; | |
10274 | wxString result; | |
10275 | PyObject * obj0 = 0 ; | |
10276 | char *kwnames[] = { | |
10277 | (char *) "lang", NULL | |
10278 | }; | |
10279 | ||
10280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail; | |
10281 | arg1 = (int) SWIG_AsInt(obj0); | |
10282 | if (PyErr_Occurred()) SWIG_fail; | |
10283 | { | |
10284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10285 | result = wxLocale::GetLanguageName(arg1); | |
10286 | ||
10287 | wxPyEndAllowThreads(__tstate); | |
10288 | if (PyErr_Occurred()) SWIG_fail; | |
10289 | } | |
10290 | { | |
10291 | #if wxUSE_UNICODE | |
10292 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10293 | #else | |
10294 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10295 | #endif | |
10296 | } | |
10297 | return resultobj; | |
10298 | fail: | |
10299 | return NULL; | |
10300 | } | |
10301 | ||
10302 | ||
10303 | static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10304 | PyObject *resultobj; | |
10305 | wxString *arg1 = 0 ; | |
10306 | wxLanguageInfo *result; | |
10307 | bool temp1 = False ; | |
10308 | PyObject * obj0 = 0 ; | |
10309 | char *kwnames[] = { | |
10310 | (char *) "locale", NULL | |
10311 | }; | |
10312 | ||
10313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail; | |
10314 | { | |
10315 | arg1 = wxString_in_helper(obj0); | |
10316 | if (arg1 == NULL) SWIG_fail; | |
10317 | temp1 = True; | |
10318 | } | |
10319 | { | |
10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10321 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); | |
10322 | ||
10323 | wxPyEndAllowThreads(__tstate); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
10325 | } | |
10326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0); | |
10327 | { | |
10328 | if (temp1) | |
10329 | delete arg1; | |
10330 | } | |
10331 | return resultobj; | |
10332 | fail: | |
10333 | { | |
10334 | if (temp1) | |
10335 | delete arg1; | |
10336 | } | |
10337 | return NULL; | |
10338 | } | |
10339 | ||
10340 | ||
10341 | static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10342 | PyObject *resultobj; | |
10343 | wxLanguageInfo *arg1 = 0 ; | |
10344 | PyObject * obj0 = 0 ; | |
10345 | char *kwnames[] = { | |
10346 | (char *) "info", NULL | |
10347 | }; | |
10348 | ||
10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail; | |
10350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo, | |
10351 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10352 | SWIG_fail; | |
10353 | if (arg1 == NULL) { | |
10354 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10355 | SWIG_fail; | |
10356 | } | |
10357 | { | |
10358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10359 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
10360 | ||
10361 | wxPyEndAllowThreads(__tstate); | |
10362 | if (PyErr_Occurred()) SWIG_fail; | |
10363 | } | |
10364 | Py_INCREF(Py_None); resultobj = Py_None; | |
10365 | return resultobj; | |
10366 | fail: | |
10367 | return NULL; | |
10368 | } | |
10369 | ||
10370 | ||
10371 | static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10372 | PyObject *resultobj; | |
10373 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10374 | wxString *arg2 = 0 ; | |
10375 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10376 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10377 | wxString result; | |
10378 | bool temp2 = False ; | |
10379 | bool temp3 = False ; | |
10380 | PyObject * obj0 = 0 ; | |
10381 | PyObject * obj1 = 0 ; | |
10382 | PyObject * obj2 = 0 ; | |
10383 | char *kwnames[] = { | |
10384 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
10385 | }; | |
10386 | ||
10387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10390 | { | |
10391 | arg2 = wxString_in_helper(obj1); | |
10392 | if (arg2 == NULL) SWIG_fail; | |
10393 | temp2 = True; | |
10394 | } | |
10395 | if (obj2) { | |
10396 | { | |
10397 | arg3 = wxString_in_helper(obj2); | |
10398 | if (arg3 == NULL) SWIG_fail; | |
10399 | temp3 = True; | |
10400 | } | |
10401 | } | |
10402 | { | |
10403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10404 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
10405 | ||
10406 | wxPyEndAllowThreads(__tstate); | |
10407 | if (PyErr_Occurred()) SWIG_fail; | |
10408 | } | |
10409 | { | |
10410 | #if wxUSE_UNICODE | |
10411 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10412 | #else | |
10413 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10414 | #endif | |
10415 | } | |
10416 | { | |
10417 | if (temp2) | |
10418 | delete arg2; | |
10419 | } | |
10420 | { | |
10421 | if (temp3) | |
10422 | delete arg3; | |
10423 | } | |
10424 | return resultobj; | |
10425 | fail: | |
10426 | { | |
10427 | if (temp2) | |
10428 | delete arg2; | |
10429 | } | |
10430 | { | |
10431 | if (temp3) | |
10432 | delete arg3; | |
10433 | } | |
10434 | return NULL; | |
10435 | } | |
10436 | ||
10437 | ||
10438 | static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10439 | PyObject *resultobj; | |
10440 | wxLocale *arg1 = (wxLocale *) 0 ; | |
10441 | wxString *result; | |
10442 | PyObject * obj0 = 0 ; | |
10443 | char *kwnames[] = { | |
10444 | (char *) "self", NULL | |
10445 | }; | |
10446 | ||
10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail; | |
10448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale, | |
10449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10450 | { | |
10451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10452 | { | |
10453 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
10454 | result = (wxString *) &_result_ref; | |
10455 | } | |
10456 | ||
10457 | wxPyEndAllowThreads(__tstate); | |
10458 | if (PyErr_Occurred()) SWIG_fail; | |
10459 | } | |
10460 | { | |
10461 | #if wxUSE_UNICODE | |
10462 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10463 | #else | |
10464 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10465 | #endif | |
10466 | } | |
10467 | return resultobj; | |
10468 | fail: | |
10469 | return NULL; | |
10470 | } | |
10471 | ||
10472 | ||
10473 | static PyObject * Locale_swigregister(PyObject *self, PyObject *args) { | |
10474 | PyObject *obj; | |
10475 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10476 | SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj); | |
10477 | Py_INCREF(obj); | |
10478 | return Py_BuildValue((char *)""); | |
10479 | } | |
10480 | static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10481 | PyObject *resultobj; | |
10482 | wxLocale *result; | |
10483 | char *kwnames[] = { | |
10484 | NULL | |
10485 | }; | |
10486 | ||
10487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail; | |
10488 | { | |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10490 | result = (wxLocale *)wxGetLocale(); | |
10491 | ||
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
10495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0); | |
10496 | return resultobj; | |
10497 | fail: | |
10498 | return NULL; | |
10499 | } | |
10500 | ||
10501 | ||
10502 | static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) { | |
10503 | PyObject *resultobj; | |
10504 | wxString *arg1 = 0 ; | |
10505 | wxString result; | |
10506 | bool temp1 = False ; | |
10507 | PyObject * obj0 = 0 ; | |
10508 | ||
10509 | if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail; | |
10510 | { | |
10511 | arg1 = wxString_in_helper(obj0); | |
10512 | if (arg1 == NULL) SWIG_fail; | |
10513 | temp1 = True; | |
10514 | } | |
10515 | { | |
10516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10517 | result = wxGetTranslation((wxString const &)*arg1); | |
10518 | ||
10519 | wxPyEndAllowThreads(__tstate); | |
10520 | if (PyErr_Occurred()) SWIG_fail; | |
10521 | } | |
10522 | { | |
10523 | #if wxUSE_UNICODE | |
10524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10525 | #else | |
10526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10527 | #endif | |
10528 | } | |
10529 | { | |
10530 | if (temp1) | |
10531 | delete arg1; | |
10532 | } | |
10533 | return resultobj; | |
10534 | fail: | |
10535 | { | |
10536 | if (temp1) | |
10537 | delete arg1; | |
10538 | } | |
10539 | return NULL; | |
10540 | } | |
10541 | ||
10542 | ||
10543 | static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) { | |
10544 | PyObject *resultobj; | |
10545 | wxString *arg1 = 0 ; | |
10546 | wxString *arg2 = 0 ; | |
10547 | size_t arg3 ; | |
10548 | wxString result; | |
10549 | bool temp1 = False ; | |
10550 | bool temp2 = False ; | |
10551 | PyObject * obj0 = 0 ; | |
10552 | PyObject * obj1 = 0 ; | |
10553 | PyObject * obj2 = 0 ; | |
10554 | ||
10555 | if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail; | |
10556 | { | |
10557 | arg1 = wxString_in_helper(obj0); | |
10558 | if (arg1 == NULL) SWIG_fail; | |
10559 | temp1 = True; | |
10560 | } | |
10561 | { | |
10562 | arg2 = wxString_in_helper(obj1); | |
10563 | if (arg2 == NULL) SWIG_fail; | |
10564 | temp2 = True; | |
10565 | } | |
10566 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10567 | if (PyErr_Occurred()) SWIG_fail; | |
10568 | { | |
10569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10570 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
10571 | ||
10572 | wxPyEndAllowThreads(__tstate); | |
10573 | if (PyErr_Occurred()) SWIG_fail; | |
10574 | } | |
10575 | { | |
10576 | #if wxUSE_UNICODE | |
10577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10578 | #else | |
10579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10580 | #endif | |
10581 | } | |
10582 | { | |
10583 | if (temp1) | |
10584 | delete arg1; | |
10585 | } | |
10586 | { | |
10587 | if (temp2) | |
10588 | delete arg2; | |
10589 | } | |
10590 | return resultobj; | |
10591 | fail: | |
10592 | { | |
10593 | if (temp1) | |
10594 | delete arg1; | |
10595 | } | |
10596 | { | |
10597 | if (temp2) | |
10598 | delete arg2; | |
10599 | } | |
10600 | return NULL; | |
10601 | } | |
10602 | ||
10603 | ||
10604 | static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { | |
10605 | int argc; | |
10606 | PyObject *argv[4]; | |
10607 | int ii; | |
10608 | ||
10609 | argc = PyObject_Length(args); | |
10610 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
10611 | argv[ii] = PyTuple_GetItem(args,ii); | |
10612 | } | |
10613 | if (argc == 1) { | |
10614 | int _v; | |
10615 | { | |
10616 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10617 | } | |
10618 | if (_v) { | |
10619 | return _wrap_GetTranslation__SWIG_0(self,args); | |
10620 | } | |
10621 | } | |
10622 | if (argc == 3) { | |
10623 | int _v; | |
10624 | { | |
10625 | _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]); | |
10626 | } | |
10627 | if (_v) { | |
10628 | { | |
10629 | _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]); | |
10630 | } | |
10631 | if (_v) { | |
10632 | _v = SWIG_CheckUnsignedLong(argv[2]); | |
10633 | if (_v) { | |
10634 | return _wrap_GetTranslation__SWIG_1(self,args); | |
10635 | } | |
10636 | } | |
10637 | } | |
10638 | } | |
10639 | ||
10640 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'"); | |
10641 | return NULL; | |
10642 | } | |
10643 | ||
10644 | ||
10645 | static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10646 | PyObject *resultobj; | |
10647 | wxEncodingConverter *result; | |
10648 | char *kwnames[] = { | |
10649 | NULL | |
10650 | }; | |
10651 | ||
10652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail; | |
10653 | { | |
10654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10655 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
10656 | ||
10657 | wxPyEndAllowThreads(__tstate); | |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
10659 | } | |
10660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1); | |
10661 | return resultobj; | |
10662 | fail: | |
10663 | return NULL; | |
10664 | } | |
10665 | ||
10666 | ||
10667 | static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10668 | PyObject *resultobj; | |
10669 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10670 | PyObject * obj0 = 0 ; | |
10671 | char *kwnames[] = { | |
10672 | (char *) "self", NULL | |
10673 | }; | |
10674 | ||
10675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail; | |
10676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10678 | { | |
10679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10680 | delete arg1; | |
10681 | ||
10682 | wxPyEndAllowThreads(__tstate); | |
10683 | if (PyErr_Occurred()) SWIG_fail; | |
10684 | } | |
10685 | Py_INCREF(Py_None); resultobj = Py_None; | |
10686 | return resultobj; | |
10687 | fail: | |
10688 | return NULL; | |
10689 | } | |
10690 | ||
10691 | ||
10692 | static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10693 | PyObject *resultobj; | |
10694 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10695 | int arg2 ; | |
10696 | int arg3 ; | |
10697 | int arg4 = (int) wxCONVERT_STRICT ; | |
10698 | bool result; | |
10699 | PyObject * obj0 = 0 ; | |
10700 | PyObject * obj1 = 0 ; | |
10701 | PyObject * obj2 = 0 ; | |
10702 | PyObject * obj3 = 0 ; | |
10703 | char *kwnames[] = { | |
10704 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
10705 | }; | |
10706 | ||
10707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10710 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | arg3 = (wxFontEncoding) SWIG_AsInt(obj2); | |
10713 | if (PyErr_Occurred()) SWIG_fail; | |
10714 | if (obj3) { | |
10715 | arg4 = (int) SWIG_AsInt(obj3); | |
10716 | if (PyErr_Occurred()) SWIG_fail; | |
10717 | } | |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
10725 | { | |
10726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10727 | } | |
10728 | return resultobj; | |
10729 | fail: | |
10730 | return NULL; | |
10731 | } | |
10732 | ||
10733 | ||
10734 | static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10735 | PyObject *resultobj; | |
10736 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
10737 | wxString *arg2 = 0 ; | |
10738 | wxString result; | |
10739 | bool temp2 = False ; | |
10740 | PyObject * obj0 = 0 ; | |
10741 | PyObject * obj1 = 0 ; | |
10742 | char *kwnames[] = { | |
10743 | (char *) "self",(char *) "input", NULL | |
10744 | }; | |
10745 | ||
10746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail; | |
10747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter, | |
10748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10749 | { | |
10750 | arg2 = wxString_in_helper(obj1); | |
10751 | if (arg2 == NULL) SWIG_fail; | |
10752 | temp2 = True; | |
10753 | } | |
10754 | { | |
10755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10756 | result = (arg1)->Convert((wxString const &)*arg2); | |
10757 | ||
10758 | wxPyEndAllowThreads(__tstate); | |
10759 | if (PyErr_Occurred()) SWIG_fail; | |
10760 | } | |
10761 | { | |
10762 | #if wxUSE_UNICODE | |
10763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10764 | #else | |
10765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10766 | #endif | |
10767 | } | |
10768 | { | |
10769 | if (temp2) | |
10770 | delete arg2; | |
10771 | } | |
10772 | return resultobj; | |
10773 | fail: | |
10774 | { | |
10775 | if (temp2) | |
10776 | delete arg2; | |
10777 | } | |
10778 | return NULL; | |
10779 | } | |
10780 | ||
10781 | ||
10782 | static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10783 | PyObject *resultobj; | |
10784 | int arg1 ; | |
10785 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
10786 | wxFontEncodingArray result; | |
10787 | PyObject * obj0 = 0 ; | |
10788 | PyObject * obj1 = 0 ; | |
10789 | char *kwnames[] = { | |
10790 | (char *) "enc",(char *) "platform", NULL | |
10791 | }; | |
10792 | ||
10793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail; | |
10794 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10795 | if (PyErr_Occurred()) SWIG_fail; | |
10796 | if (obj1) { | |
10797 | arg2 = (int) SWIG_AsInt(obj1); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
10800 | { | |
10801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10802 | result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2); | |
10803 | ||
10804 | wxPyEndAllowThreads(__tstate); | |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
10806 | } | |
10807 | { | |
10808 | resultobj = PyList_New(0); | |
10809 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10810 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10811 | PyList_Append(resultobj, number); | |
10812 | Py_DECREF(number); | |
10813 | } | |
10814 | } | |
10815 | return resultobj; | |
10816 | fail: | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
10821 | static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10822 | PyObject *resultobj; | |
10823 | int arg1 ; | |
10824 | wxFontEncodingArray result; | |
10825 | PyObject * obj0 = 0 ; | |
10826 | char *kwnames[] = { | |
10827 | (char *) "enc", NULL | |
10828 | }; | |
10829 | ||
10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail; | |
10831 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | { | |
10841 | resultobj = PyList_New(0); | |
10842 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
10843 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
10844 | PyList_Append(resultobj, number); | |
10845 | Py_DECREF(number); | |
10846 | } | |
10847 | } | |
10848 | return resultobj; | |
10849 | fail: | |
10850 | return NULL; | |
10851 | } | |
10852 | ||
10853 | ||
10854 | static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10855 | PyObject *resultobj; | |
10856 | int arg1 ; | |
10857 | int arg2 ; | |
10858 | bool result; | |
10859 | PyObject * obj0 = 0 ; | |
10860 | PyObject * obj1 = 0 ; | |
10861 | char *kwnames[] = { | |
10862 | (char *) "encIn",(char *) "encOut", NULL | |
10863 | }; | |
10864 | ||
10865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail; | |
10866 | arg1 = (wxFontEncoding) SWIG_AsInt(obj0); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | arg2 = (wxFontEncoding) SWIG_AsInt(obj1); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | { | |
10871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10872 | result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2); | |
10873 | ||
10874 | wxPyEndAllowThreads(__tstate); | |
10875 | if (PyErr_Occurred()) SWIG_fail; | |
10876 | } | |
10877 | { | |
10878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10879 | } | |
10880 | return resultobj; | |
10881 | fail: | |
10882 | return NULL; | |
10883 | } | |
10884 | ||
10885 | ||
10886 | static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) { | |
10887 | PyObject *obj; | |
10888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10889 | SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj); | |
10890 | Py_INCREF(obj); | |
10891 | return Py_BuildValue((char *)""); | |
10892 | } | |
10893 | static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10894 | PyObject *resultobj; | |
10895 | wxDC *arg1 = (wxDC *) 0 ; | |
10896 | PyObject * obj0 = 0 ; | |
10897 | char *kwnames[] = { | |
10898 | (char *) "self", NULL | |
10899 | }; | |
10900 | ||
10901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail; | |
10902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10904 | { | |
10905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10906 | delete arg1; | |
10907 | ||
10908 | wxPyEndAllowThreads(__tstate); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | } | |
10911 | Py_INCREF(Py_None); resultobj = Py_None; | |
10912 | return resultobj; | |
10913 | fail: | |
10914 | return NULL; | |
10915 | } | |
10916 | ||
10917 | ||
10918 | static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10919 | PyObject *resultobj; | |
10920 | wxDC *arg1 = (wxDC *) 0 ; | |
10921 | PyObject * obj0 = 0 ; | |
10922 | char *kwnames[] = { | |
10923 | (char *) "self", NULL | |
10924 | }; | |
10925 | ||
10926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail; | |
10927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10929 | { | |
10930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10931 | (arg1)->BeginDrawing(); | |
10932 | ||
10933 | wxPyEndAllowThreads(__tstate); | |
10934 | if (PyErr_Occurred()) SWIG_fail; | |
10935 | } | |
10936 | Py_INCREF(Py_None); resultobj = Py_None; | |
10937 | return resultobj; | |
10938 | fail: | |
10939 | return NULL; | |
10940 | } | |
10941 | ||
10942 | ||
10943 | static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10944 | PyObject *resultobj; | |
10945 | wxDC *arg1 = (wxDC *) 0 ; | |
10946 | PyObject * obj0 = 0 ; | |
10947 | char *kwnames[] = { | |
10948 | (char *) "self", NULL | |
10949 | }; | |
10950 | ||
10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail; | |
10952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
10953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10954 | { | |
10955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10956 | (arg1)->EndDrawing(); | |
10957 | ||
10958 | wxPyEndAllowThreads(__tstate); | |
10959 | if (PyErr_Occurred()) SWIG_fail; | |
10960 | } | |
10961 | Py_INCREF(Py_None); resultobj = Py_None; | |
10962 | return resultobj; | |
10963 | fail: | |
10964 | return NULL; | |
10965 | } | |
10966 | ||
10967 | ||
c24da6d6 | 10968 | static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10969 | PyObject *resultobj; |
10970 | wxDC *arg1 = (wxDC *) 0 ; | |
10971 | int arg2 ; | |
10972 | int arg3 ; | |
10973 | wxColour *arg4 = 0 ; | |
10974 | int arg5 = (int) wxFLOOD_SURFACE ; | |
10975 | bool result; | |
10976 | wxColour temp4 ; | |
10977 | PyObject * obj0 = 0 ; | |
10978 | PyObject * obj1 = 0 ; | |
10979 | PyObject * obj2 = 0 ; | |
10980 | PyObject * obj3 = 0 ; | |
10981 | PyObject * obj4 = 0 ; | |
10982 | char *kwnames[] = { | |
10983 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
10984 | }; | |
10985 | ||
c24da6d6 | 10986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
10987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
10988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10989 | arg2 = (int) SWIG_AsInt(obj1); | |
10990 | if (PyErr_Occurred()) SWIG_fail; | |
10991 | arg3 = (int) SWIG_AsInt(obj2); | |
10992 | if (PyErr_Occurred()) SWIG_fail; | |
10993 | { | |
10994 | arg4 = &temp4; | |
10995 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
10996 | } | |
10997 | if (obj4) { | |
10998 | arg5 = (int) SWIG_AsInt(obj4); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | } | |
11001 | { | |
11002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11003 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
11004 | ||
11005 | wxPyEndAllowThreads(__tstate); | |
11006 | if (PyErr_Occurred()) SWIG_fail; | |
11007 | } | |
11008 | { | |
11009 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11010 | } | |
11011 | return resultobj; | |
11012 | fail: | |
11013 | return NULL; | |
11014 | } | |
11015 | ||
11016 | ||
c24da6d6 | 11017 | static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11018 | PyObject *resultobj; |
11019 | wxDC *arg1 = (wxDC *) 0 ; | |
11020 | wxPoint *arg2 = 0 ; | |
11021 | wxColour *arg3 = 0 ; | |
11022 | int arg4 = (int) wxFLOOD_SURFACE ; | |
11023 | bool result; | |
11024 | wxPoint temp2 ; | |
11025 | wxColour temp3 ; | |
11026 | PyObject * obj0 = 0 ; | |
11027 | PyObject * obj1 = 0 ; | |
11028 | PyObject * obj2 = 0 ; | |
11029 | PyObject * obj3 = 0 ; | |
11030 | char *kwnames[] = { | |
11031 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
11032 | }; | |
11033 | ||
c24da6d6 | 11034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11037 | { | |
11038 | arg2 = &temp2; | |
11039 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11040 | } | |
11041 | { | |
11042 | arg3 = &temp3; | |
11043 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11044 | } | |
11045 | if (obj3) { | |
11046 | arg4 = (int) SWIG_AsInt(obj3); | |
11047 | if (PyErr_Occurred()) SWIG_fail; | |
11048 | } | |
11049 | { | |
11050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11051 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
11052 | ||
11053 | wxPyEndAllowThreads(__tstate); | |
11054 | if (PyErr_Occurred()) SWIG_fail; | |
11055 | } | |
11056 | { | |
11057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11058 | } | |
11059 | return resultobj; | |
11060 | fail: | |
11061 | return NULL; | |
11062 | } | |
11063 | ||
11064 | ||
c24da6d6 | 11065 | static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11066 | PyObject *resultobj; |
11067 | wxDC *arg1 = (wxDC *) 0 ; | |
11068 | int arg2 ; | |
11069 | int arg3 ; | |
11070 | wxColour result; | |
11071 | PyObject * obj0 = 0 ; | |
11072 | PyObject * obj1 = 0 ; | |
11073 | PyObject * obj2 = 0 ; | |
11074 | char *kwnames[] = { | |
11075 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11076 | }; | |
11077 | ||
c24da6d6 | 11078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",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 | arg2 = (int) SWIG_AsInt(obj1); | |
11082 | if (PyErr_Occurred()) SWIG_fail; | |
11083 | arg3 = (int) SWIG_AsInt(obj2); | |
11084 | if (PyErr_Occurred()) SWIG_fail; | |
11085 | { | |
11086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11087 | result = wxDC_GetPixel(arg1,arg2,arg3); |
d55e5bfc RD |
11088 | |
11089 | wxPyEndAllowThreads(__tstate); | |
11090 | if (PyErr_Occurred()) SWIG_fail; | |
11091 | } | |
11092 | { | |
11093 | wxColour * resultptr; | |
11094 | resultptr = new wxColour((wxColour &) result); | |
11095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11096 | } | |
11097 | return resultobj; | |
11098 | fail: | |
11099 | return NULL; | |
11100 | } | |
11101 | ||
11102 | ||
c24da6d6 | 11103 | static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11104 | PyObject *resultobj; |
11105 | wxDC *arg1 = (wxDC *) 0 ; | |
11106 | wxPoint *arg2 = 0 ; | |
11107 | wxColour result; | |
11108 | wxPoint temp2 ; | |
11109 | PyObject * obj0 = 0 ; | |
11110 | PyObject * obj1 = 0 ; | |
11111 | char *kwnames[] = { | |
11112 | (char *) "self",(char *) "pt", NULL | |
11113 | }; | |
11114 | ||
c24da6d6 | 11115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11118 | { | |
11119 | arg2 = &temp2; | |
11120 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11121 | } | |
11122 | { | |
11123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11124 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); |
d55e5bfc RD |
11125 | |
11126 | wxPyEndAllowThreads(__tstate); | |
11127 | if (PyErr_Occurred()) SWIG_fail; | |
11128 | } | |
11129 | { | |
11130 | wxColour * resultptr; | |
11131 | resultptr = new wxColour((wxColour &) result); | |
11132 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11133 | } | |
11134 | return resultobj; | |
11135 | fail: | |
11136 | return NULL; | |
11137 | } | |
11138 | ||
11139 | ||
c24da6d6 | 11140 | static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11141 | PyObject *resultobj; |
11142 | wxDC *arg1 = (wxDC *) 0 ; | |
11143 | int arg2 ; | |
11144 | int arg3 ; | |
11145 | int arg4 ; | |
11146 | int arg5 ; | |
11147 | PyObject * obj0 = 0 ; | |
11148 | PyObject * obj1 = 0 ; | |
11149 | PyObject * obj2 = 0 ; | |
11150 | PyObject * obj3 = 0 ; | |
11151 | PyObject * obj4 = 0 ; | |
11152 | char *kwnames[] = { | |
11153 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
11154 | }; | |
11155 | ||
c24da6d6 | 11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11159 | arg2 = (int) SWIG_AsInt(obj1); | |
11160 | if (PyErr_Occurred()) SWIG_fail; | |
11161 | arg3 = (int) SWIG_AsInt(obj2); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | arg4 = (int) SWIG_AsInt(obj3); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | arg5 = (int) SWIG_AsInt(obj4); | |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
11167 | { | |
11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11169 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
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 | ||
c24da6d6 | 11181 | static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11182 | PyObject *resultobj; |
11183 | wxDC *arg1 = (wxDC *) 0 ; | |
11184 | wxPoint *arg2 = 0 ; | |
11185 | wxPoint *arg3 = 0 ; | |
11186 | wxPoint temp2 ; | |
11187 | wxPoint temp3 ; | |
11188 | PyObject * obj0 = 0 ; | |
11189 | PyObject * obj1 = 0 ; | |
11190 | PyObject * obj2 = 0 ; | |
11191 | char *kwnames[] = { | |
11192 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
11193 | }; | |
11194 | ||
c24da6d6 | 11195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11198 | { | |
11199 | arg2 = &temp2; | |
11200 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11201 | } | |
11202 | { | |
11203 | arg3 = &temp3; | |
11204 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11205 | } | |
11206 | { | |
11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11208 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
11209 | ||
11210 | wxPyEndAllowThreads(__tstate); | |
11211 | if (PyErr_Occurred()) SWIG_fail; | |
11212 | } | |
11213 | Py_INCREF(Py_None); resultobj = Py_None; | |
11214 | return resultobj; | |
11215 | fail: | |
11216 | return NULL; | |
11217 | } | |
11218 | ||
11219 | ||
c24da6d6 | 11220 | static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11221 | PyObject *resultobj; |
11222 | wxDC *arg1 = (wxDC *) 0 ; | |
11223 | int arg2 ; | |
11224 | int arg3 ; | |
11225 | PyObject * obj0 = 0 ; | |
11226 | PyObject * obj1 = 0 ; | |
11227 | PyObject * obj2 = 0 ; | |
11228 | char *kwnames[] = { | |
11229 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11230 | }; | |
11231 | ||
c24da6d6 | 11232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11235 | arg2 = (int) SWIG_AsInt(obj1); | |
11236 | if (PyErr_Occurred()) SWIG_fail; | |
11237 | arg3 = (int) SWIG_AsInt(obj2); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | { | |
11240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11241 | (arg1)->CrossHair(arg2,arg3); | |
11242 | ||
11243 | wxPyEndAllowThreads(__tstate); | |
11244 | if (PyErr_Occurred()) SWIG_fail; | |
11245 | } | |
11246 | Py_INCREF(Py_None); resultobj = Py_None; | |
11247 | return resultobj; | |
11248 | fail: | |
11249 | return NULL; | |
11250 | } | |
11251 | ||
11252 | ||
c24da6d6 | 11253 | static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11254 | PyObject *resultobj; |
11255 | wxDC *arg1 = (wxDC *) 0 ; | |
11256 | wxPoint *arg2 = 0 ; | |
11257 | wxPoint temp2 ; | |
11258 | PyObject * obj0 = 0 ; | |
11259 | PyObject * obj1 = 0 ; | |
11260 | char *kwnames[] = { | |
11261 | (char *) "self",(char *) "pt", NULL | |
11262 | }; | |
11263 | ||
c24da6d6 | 11264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11267 | { | |
11268 | arg2 = &temp2; | |
11269 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11270 | } | |
11271 | { | |
11272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11273 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
11274 | ||
11275 | wxPyEndAllowThreads(__tstate); | |
11276 | if (PyErr_Occurred()) SWIG_fail; | |
11277 | } | |
11278 | Py_INCREF(Py_None); resultobj = Py_None; | |
11279 | return resultobj; | |
11280 | fail: | |
11281 | return NULL; | |
11282 | } | |
11283 | ||
11284 | ||
c24da6d6 | 11285 | static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11286 | PyObject *resultobj; |
11287 | wxDC *arg1 = (wxDC *) 0 ; | |
11288 | int arg2 ; | |
11289 | int arg3 ; | |
11290 | int arg4 ; | |
11291 | int arg5 ; | |
11292 | int arg6 ; | |
11293 | int arg7 ; | |
11294 | PyObject * obj0 = 0 ; | |
11295 | PyObject * obj1 = 0 ; | |
11296 | PyObject * obj2 = 0 ; | |
11297 | PyObject * obj3 = 0 ; | |
11298 | PyObject * obj4 = 0 ; | |
11299 | PyObject * obj5 = 0 ; | |
11300 | PyObject * obj6 = 0 ; | |
11301 | char *kwnames[] = { | |
11302 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
11303 | }; | |
11304 | ||
c24da6d6 | 11305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11308 | arg2 = (int) SWIG_AsInt(obj1); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | arg3 = (int) SWIG_AsInt(obj2); | |
11311 | if (PyErr_Occurred()) SWIG_fail; | |
11312 | arg4 = (int) SWIG_AsInt(obj3); | |
11313 | if (PyErr_Occurred()) SWIG_fail; | |
11314 | arg5 = (int) SWIG_AsInt(obj4); | |
11315 | if (PyErr_Occurred()) SWIG_fail; | |
11316 | arg6 = (int) SWIG_AsInt(obj5); | |
11317 | if (PyErr_Occurred()) SWIG_fail; | |
11318 | arg7 = (int) SWIG_AsInt(obj6); | |
11319 | if (PyErr_Occurred()) SWIG_fail; | |
11320 | { | |
11321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11322 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11323 | ||
11324 | wxPyEndAllowThreads(__tstate); | |
11325 | if (PyErr_Occurred()) SWIG_fail; | |
11326 | } | |
11327 | Py_INCREF(Py_None); resultobj = Py_None; | |
11328 | return resultobj; | |
11329 | fail: | |
11330 | return NULL; | |
11331 | } | |
11332 | ||
11333 | ||
c24da6d6 | 11334 | static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11335 | PyObject *resultobj; |
11336 | wxDC *arg1 = (wxDC *) 0 ; | |
11337 | wxPoint *arg2 = 0 ; | |
11338 | wxPoint *arg3 = 0 ; | |
11339 | wxPoint *arg4 = 0 ; | |
11340 | wxPoint temp2 ; | |
11341 | wxPoint temp3 ; | |
11342 | wxPoint temp4 ; | |
11343 | PyObject * obj0 = 0 ; | |
11344 | PyObject * obj1 = 0 ; | |
11345 | PyObject * obj2 = 0 ; | |
11346 | PyObject * obj3 = 0 ; | |
11347 | char *kwnames[] = { | |
11348 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL | |
11349 | }; | |
11350 | ||
c24da6d6 | 11351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11354 | { | |
11355 | arg2 = &temp2; | |
11356 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11357 | } | |
11358 | { | |
11359 | arg3 = &temp3; | |
11360 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11361 | } | |
11362 | { | |
11363 | arg4 = &temp4; | |
11364 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11365 | } | |
11366 | { | |
11367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11368 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
11369 | ||
11370 | wxPyEndAllowThreads(__tstate); | |
11371 | if (PyErr_Occurred()) SWIG_fail; | |
11372 | } | |
11373 | Py_INCREF(Py_None); resultobj = Py_None; | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | return NULL; | |
11377 | } | |
11378 | ||
11379 | ||
c24da6d6 | 11380 | static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11381 | PyObject *resultobj; |
11382 | wxDC *arg1 = (wxDC *) 0 ; | |
11383 | int arg2 ; | |
11384 | int arg3 ; | |
11385 | int arg4 ; | |
11386 | int arg5 ; | |
11387 | PyObject * obj0 = 0 ; | |
11388 | PyObject * obj1 = 0 ; | |
11389 | PyObject * obj2 = 0 ; | |
11390 | PyObject * obj3 = 0 ; | |
11391 | PyObject * obj4 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11394 | }; | |
11395 | ||
c24da6d6 | 11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11399 | arg2 = (int) SWIG_AsInt(obj1); | |
11400 | if (PyErr_Occurred()) SWIG_fail; | |
11401 | arg3 = (int) SWIG_AsInt(obj2); | |
11402 | if (PyErr_Occurred()) SWIG_fail; | |
11403 | arg4 = (int) SWIG_AsInt(obj3); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
11405 | arg5 = (int) SWIG_AsInt(obj4); | |
11406 | if (PyErr_Occurred()) SWIG_fail; | |
11407 | { | |
11408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11409 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
11410 | ||
11411 | wxPyEndAllowThreads(__tstate); | |
11412 | if (PyErr_Occurred()) SWIG_fail; | |
11413 | } | |
11414 | Py_INCREF(Py_None); resultobj = Py_None; | |
11415 | return resultobj; | |
11416 | fail: | |
11417 | return NULL; | |
11418 | } | |
11419 | ||
11420 | ||
c24da6d6 | 11421 | static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11422 | PyObject *resultobj; |
11423 | wxDC *arg1 = (wxDC *) 0 ; | |
11424 | wxRect *arg2 = 0 ; | |
11425 | wxRect temp2 ; | |
11426 | PyObject * obj0 = 0 ; | |
11427 | PyObject * obj1 = 0 ; | |
11428 | char *kwnames[] = { | |
11429 | (char *) "self",(char *) "rect", NULL | |
11430 | }; | |
11431 | ||
c24da6d6 | 11432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11435 | { | |
11436 | arg2 = &temp2; | |
11437 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11438 | } | |
11439 | { | |
11440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11441 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
11442 | ||
11443 | wxPyEndAllowThreads(__tstate); | |
11444 | if (PyErr_Occurred()) SWIG_fail; | |
11445 | } | |
11446 | Py_INCREF(Py_None); resultobj = Py_None; | |
11447 | return resultobj; | |
11448 | fail: | |
11449 | return NULL; | |
11450 | } | |
11451 | ||
11452 | ||
c24da6d6 | 11453 | static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11454 | PyObject *resultobj; |
11455 | wxDC *arg1 = (wxDC *) 0 ; | |
11456 | int arg2 ; | |
11457 | int arg3 ; | |
11458 | int arg4 ; | |
11459 | int arg5 ; | |
11460 | double arg6 ; | |
11461 | double arg7 ; | |
11462 | PyObject * obj0 = 0 ; | |
11463 | PyObject * obj1 = 0 ; | |
11464 | PyObject * obj2 = 0 ; | |
11465 | PyObject * obj3 = 0 ; | |
11466 | PyObject * obj4 = 0 ; | |
11467 | PyObject * obj5 = 0 ; | |
11468 | PyObject * obj6 = 0 ; | |
11469 | char *kwnames[] = { | |
11470 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL | |
11471 | }; | |
11472 | ||
c24da6d6 | 11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
11474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11476 | arg2 = (int) SWIG_AsInt(obj1); | |
11477 | if (PyErr_Occurred()) SWIG_fail; | |
11478 | arg3 = (int) SWIG_AsInt(obj2); | |
11479 | if (PyErr_Occurred()) SWIG_fail; | |
11480 | arg4 = (int) SWIG_AsInt(obj3); | |
11481 | if (PyErr_Occurred()) SWIG_fail; | |
11482 | arg5 = (int) SWIG_AsInt(obj4); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | arg6 = (double) SWIG_AsDouble(obj5); | |
11485 | if (PyErr_Occurred()) SWIG_fail; | |
11486 | arg7 = (double) SWIG_AsDouble(obj6); | |
11487 | if (PyErr_Occurred()) SWIG_fail; | |
11488 | { | |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
11491 | ||
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
11495 | Py_INCREF(Py_None); resultobj = Py_None; | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | return NULL; | |
11499 | } | |
11500 | ||
11501 | ||
c24da6d6 | 11502 | static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11503 | PyObject *resultobj; |
11504 | wxDC *arg1 = (wxDC *) 0 ; | |
11505 | wxPoint *arg2 = 0 ; | |
11506 | wxSize *arg3 = 0 ; | |
11507 | double arg4 ; | |
11508 | double arg5 ; | |
11509 | wxPoint temp2 ; | |
11510 | wxSize temp3 ; | |
11511 | PyObject * obj0 = 0 ; | |
11512 | PyObject * obj1 = 0 ; | |
11513 | PyObject * obj2 = 0 ; | |
11514 | PyObject * obj3 = 0 ; | |
11515 | PyObject * obj4 = 0 ; | |
11516 | char *kwnames[] = { | |
11517 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL | |
11518 | }; | |
11519 | ||
c24da6d6 | 11520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11523 | { | |
11524 | arg2 = &temp2; | |
11525 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11526 | } | |
11527 | { | |
11528 | arg3 = &temp3; | |
11529 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11530 | } | |
11531 | arg4 = (double) SWIG_AsDouble(obj3); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | arg5 = (double) SWIG_AsDouble(obj4); | |
11534 | if (PyErr_Occurred()) SWIG_fail; | |
11535 | { | |
11536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11537 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
11538 | ||
11539 | wxPyEndAllowThreads(__tstate); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
11542 | Py_INCREF(Py_None); resultobj = Py_None; | |
11543 | return resultobj; | |
11544 | fail: | |
11545 | return NULL; | |
11546 | } | |
11547 | ||
11548 | ||
c24da6d6 | 11549 | static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11550 | PyObject *resultobj; |
11551 | wxDC *arg1 = (wxDC *) 0 ; | |
11552 | int arg2 ; | |
11553 | int arg3 ; | |
11554 | PyObject * obj0 = 0 ; | |
11555 | PyObject * obj1 = 0 ; | |
11556 | PyObject * obj2 = 0 ; | |
11557 | char *kwnames[] = { | |
11558 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11559 | }; | |
11560 | ||
c24da6d6 | 11561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11564 | arg2 = (int) SWIG_AsInt(obj1); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
11566 | arg3 = (int) SWIG_AsInt(obj2); | |
11567 | if (PyErr_Occurred()) SWIG_fail; | |
11568 | { | |
11569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11570 | (arg1)->DrawPoint(arg2,arg3); | |
11571 | ||
11572 | wxPyEndAllowThreads(__tstate); | |
11573 | if (PyErr_Occurred()) SWIG_fail; | |
11574 | } | |
11575 | Py_INCREF(Py_None); resultobj = Py_None; | |
11576 | return resultobj; | |
11577 | fail: | |
11578 | return NULL; | |
11579 | } | |
11580 | ||
11581 | ||
c24da6d6 | 11582 | static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11583 | PyObject *resultobj; |
11584 | wxDC *arg1 = (wxDC *) 0 ; | |
11585 | wxPoint *arg2 = 0 ; | |
11586 | wxPoint temp2 ; | |
11587 | PyObject * obj0 = 0 ; | |
11588 | PyObject * obj1 = 0 ; | |
11589 | char *kwnames[] = { | |
11590 | (char *) "self",(char *) "pt", NULL | |
11591 | }; | |
11592 | ||
c24da6d6 | 11593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11596 | { | |
11597 | arg2 = &temp2; | |
11598 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11599 | } | |
11600 | { | |
11601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11602 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
11603 | ||
11604 | wxPyEndAllowThreads(__tstate); | |
11605 | if (PyErr_Occurred()) SWIG_fail; | |
11606 | } | |
11607 | Py_INCREF(Py_None); resultobj = Py_None; | |
11608 | return resultobj; | |
11609 | fail: | |
11610 | return NULL; | |
11611 | } | |
11612 | ||
11613 | ||
c24da6d6 | 11614 | static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11615 | PyObject *resultobj; |
11616 | wxDC *arg1 = (wxDC *) 0 ; | |
11617 | int arg2 ; | |
11618 | int arg3 ; | |
11619 | int arg4 ; | |
11620 | int arg5 ; | |
11621 | PyObject * obj0 = 0 ; | |
11622 | PyObject * obj1 = 0 ; | |
11623 | PyObject * obj2 = 0 ; | |
11624 | PyObject * obj3 = 0 ; | |
11625 | PyObject * obj4 = 0 ; | |
11626 | char *kwnames[] = { | |
11627 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11628 | }; | |
11629 | ||
c24da6d6 | 11630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11633 | arg2 = (int) SWIG_AsInt(obj1); | |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
11635 | arg3 = (int) SWIG_AsInt(obj2); | |
11636 | if (PyErr_Occurred()) SWIG_fail; | |
11637 | arg4 = (int) SWIG_AsInt(obj3); | |
11638 | if (PyErr_Occurred()) SWIG_fail; | |
11639 | arg5 = (int) SWIG_AsInt(obj4); | |
11640 | if (PyErr_Occurred()) SWIG_fail; | |
11641 | { | |
11642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11643 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
11644 | ||
11645 | wxPyEndAllowThreads(__tstate); | |
11646 | if (PyErr_Occurred()) SWIG_fail; | |
11647 | } | |
11648 | Py_INCREF(Py_None); resultobj = Py_None; | |
11649 | return resultobj; | |
11650 | fail: | |
11651 | return NULL; | |
11652 | } | |
11653 | ||
11654 | ||
c24da6d6 | 11655 | static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11656 | PyObject *resultobj; |
11657 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11658 | wxRect *arg2 = 0 ; |
11659 | wxRect temp2 ; | |
d55e5bfc RD |
11660 | PyObject * obj0 = 0 ; |
11661 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11662 | char *kwnames[] = { |
c24da6d6 | 11663 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11664 | }; |
11665 | ||
c24da6d6 | 11666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11669 | { | |
11670 | arg2 = &temp2; | |
c24da6d6 | 11671 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11672 | } |
11673 | { | |
11674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11675 | (arg1)->DrawRectangle((wxRect const &)*arg2); |
d55e5bfc RD |
11676 | |
11677 | wxPyEndAllowThreads(__tstate); | |
11678 | if (PyErr_Occurred()) SWIG_fail; | |
11679 | } | |
11680 | Py_INCREF(Py_None); resultobj = Py_None; | |
11681 | return resultobj; | |
11682 | fail: | |
11683 | return NULL; | |
11684 | } | |
11685 | ||
11686 | ||
c24da6d6 | 11687 | static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11688 | PyObject *resultobj; |
11689 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11690 | wxPoint *arg2 = 0 ; |
11691 | wxSize *arg3 = 0 ; | |
11692 | wxPoint temp2 ; | |
11693 | wxSize temp3 ; | |
d55e5bfc RD |
11694 | PyObject * obj0 = 0 ; |
11695 | PyObject * obj1 = 0 ; | |
c24da6d6 | 11696 | PyObject * obj2 = 0 ; |
d55e5bfc | 11697 | char *kwnames[] = { |
c24da6d6 | 11698 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
11699 | }; |
11700 | ||
c24da6d6 | 11701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11704 | { | |
11705 | arg2 = &temp2; | |
c24da6d6 RD |
11706 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
11707 | } | |
11708 | { | |
11709 | arg3 = &temp3; | |
11710 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
11711 | } |
11712 | { | |
11713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11714 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
11715 | |
11716 | wxPyEndAllowThreads(__tstate); | |
11717 | if (PyErr_Occurred()) SWIG_fail; | |
11718 | } | |
11719 | Py_INCREF(Py_None); resultobj = Py_None; | |
11720 | return resultobj; | |
11721 | fail: | |
11722 | return NULL; | |
11723 | } | |
11724 | ||
11725 | ||
c24da6d6 | 11726 | static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11727 | PyObject *resultobj; |
11728 | wxDC *arg1 = (wxDC *) 0 ; | |
11729 | int arg2 ; | |
11730 | int arg3 ; | |
11731 | int arg4 ; | |
11732 | int arg5 ; | |
11733 | double arg6 ; | |
11734 | PyObject * obj0 = 0 ; | |
11735 | PyObject * obj1 = 0 ; | |
11736 | PyObject * obj2 = 0 ; | |
11737 | PyObject * obj3 = 0 ; | |
11738 | PyObject * obj4 = 0 ; | |
11739 | PyObject * obj5 = 0 ; | |
11740 | char *kwnames[] = { | |
11741 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
11742 | }; | |
11743 | ||
c24da6d6 | 11744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
11745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11747 | arg2 = (int) SWIG_AsInt(obj1); | |
11748 | if (PyErr_Occurred()) SWIG_fail; | |
11749 | arg3 = (int) SWIG_AsInt(obj2); | |
11750 | if (PyErr_Occurred()) SWIG_fail; | |
11751 | arg4 = (int) SWIG_AsInt(obj3); | |
11752 | if (PyErr_Occurred()) SWIG_fail; | |
11753 | arg5 = (int) SWIG_AsInt(obj4); | |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
11755 | arg6 = (double) SWIG_AsDouble(obj5); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | { | |
11758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11759 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
11760 | ||
11761 | wxPyEndAllowThreads(__tstate); | |
11762 | if (PyErr_Occurred()) SWIG_fail; | |
11763 | } | |
11764 | Py_INCREF(Py_None); resultobj = Py_None; | |
11765 | return resultobj; | |
11766 | fail: | |
11767 | return NULL; | |
11768 | } | |
11769 | ||
11770 | ||
c24da6d6 | 11771 | static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11772 | PyObject *resultobj; |
11773 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11774 | wxRect *arg2 = 0 ; |
11775 | double arg3 ; | |
11776 | wxRect temp2 ; | |
d55e5bfc RD |
11777 | PyObject * obj0 = 0 ; |
11778 | PyObject * obj1 = 0 ; | |
11779 | PyObject * obj2 = 0 ; | |
d55e5bfc | 11780 | char *kwnames[] = { |
c24da6d6 | 11781 | (char *) "self",(char *) "r",(char *) "radius", NULL |
d55e5bfc RD |
11782 | }; |
11783 | ||
c24da6d6 | 11784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11787 | { | |
11788 | arg2 = &temp2; | |
c24da6d6 | 11789 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11790 | } |
c24da6d6 | 11791 | arg3 = (double) SWIG_AsDouble(obj2); |
d55e5bfc RD |
11792 | if (PyErr_Occurred()) SWIG_fail; |
11793 | { | |
11794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11795 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); |
d55e5bfc RD |
11796 | |
11797 | wxPyEndAllowThreads(__tstate); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
11800 | Py_INCREF(Py_None); resultobj = Py_None; | |
11801 | return resultobj; | |
11802 | fail: | |
11803 | return NULL; | |
11804 | } | |
11805 | ||
11806 | ||
c24da6d6 | 11807 | static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11808 | PyObject *resultobj; |
11809 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11810 | wxPoint *arg2 = 0 ; |
11811 | wxSize *arg3 = 0 ; | |
11812 | double arg4 ; | |
11813 | wxPoint temp2 ; | |
11814 | wxSize temp3 ; | |
d55e5bfc RD |
11815 | PyObject * obj0 = 0 ; |
11816 | PyObject * obj1 = 0 ; | |
11817 | PyObject * obj2 = 0 ; | |
c24da6d6 | 11818 | PyObject * obj3 = 0 ; |
d55e5bfc | 11819 | char *kwnames[] = { |
c24da6d6 | 11820 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL |
d55e5bfc RD |
11821 | }; |
11822 | ||
c24da6d6 | 11823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11826 | { | |
11827 | arg2 = &temp2; | |
c24da6d6 | 11828 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc | 11829 | } |
c24da6d6 RD |
11830 | { |
11831 | arg3 = &temp3; | |
11832 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
11833 | } | |
11834 | arg4 = (double) SWIG_AsDouble(obj3); | |
d55e5bfc RD |
11835 | if (PyErr_Occurred()) SWIG_fail; |
11836 | { | |
11837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11838 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); |
d55e5bfc RD |
11839 | |
11840 | wxPyEndAllowThreads(__tstate); | |
11841 | if (PyErr_Occurred()) SWIG_fail; | |
11842 | } | |
11843 | Py_INCREF(Py_None); resultobj = Py_None; | |
11844 | return resultobj; | |
11845 | fail: | |
11846 | return NULL; | |
11847 | } | |
11848 | ||
11849 | ||
c24da6d6 | 11850 | static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11851 | PyObject *resultobj; |
11852 | wxDC *arg1 = (wxDC *) 0 ; | |
11853 | int arg2 ; | |
11854 | int arg3 ; | |
11855 | int arg4 ; | |
11856 | PyObject * obj0 = 0 ; | |
11857 | PyObject * obj1 = 0 ; | |
11858 | PyObject * obj2 = 0 ; | |
11859 | PyObject * obj3 = 0 ; | |
11860 | char *kwnames[] = { | |
11861 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
11862 | }; | |
11863 | ||
c24da6d6 | 11864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
11865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11867 | arg2 = (int) SWIG_AsInt(obj1); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | arg3 = (int) SWIG_AsInt(obj2); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | arg4 = (int) SWIG_AsInt(obj3); | |
11872 | if (PyErr_Occurred()) SWIG_fail; | |
11873 | { | |
11874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11875 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
11876 | ||
11877 | wxPyEndAllowThreads(__tstate); | |
11878 | if (PyErr_Occurred()) SWIG_fail; | |
11879 | } | |
11880 | Py_INCREF(Py_None); resultobj = Py_None; | |
11881 | return resultobj; | |
11882 | fail: | |
11883 | return NULL; | |
11884 | } | |
11885 | ||
11886 | ||
c24da6d6 | 11887 | static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11888 | PyObject *resultobj; |
11889 | wxDC *arg1 = (wxDC *) 0 ; | |
11890 | wxPoint *arg2 = 0 ; | |
11891 | int arg3 ; | |
11892 | wxPoint temp2 ; | |
11893 | PyObject * obj0 = 0 ; | |
11894 | PyObject * obj1 = 0 ; | |
11895 | PyObject * obj2 = 0 ; | |
11896 | char *kwnames[] = { | |
11897 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
11898 | }; | |
11899 | ||
c24da6d6 | 11900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
11901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11903 | { | |
11904 | arg2 = &temp2; | |
11905 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11906 | } | |
11907 | arg3 = (int) SWIG_AsInt(obj2); | |
11908 | if (PyErr_Occurred()) SWIG_fail; | |
11909 | { | |
11910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11911 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
11912 | ||
11913 | wxPyEndAllowThreads(__tstate); | |
11914 | if (PyErr_Occurred()) SWIG_fail; | |
11915 | } | |
11916 | Py_INCREF(Py_None); resultobj = Py_None; | |
11917 | return resultobj; | |
11918 | fail: | |
11919 | return NULL; | |
11920 | } | |
11921 | ||
11922 | ||
c24da6d6 | 11923 | static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11924 | PyObject *resultobj; |
11925 | wxDC *arg1 = (wxDC *) 0 ; | |
11926 | int arg2 ; | |
11927 | int arg3 ; | |
11928 | int arg4 ; | |
11929 | int arg5 ; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | PyObject * obj1 = 0 ; | |
11932 | PyObject * obj2 = 0 ; | |
11933 | PyObject * obj3 = 0 ; | |
11934 | PyObject * obj4 = 0 ; | |
11935 | char *kwnames[] = { | |
11936 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11937 | }; | |
11938 | ||
c24da6d6 | 11939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
11940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11942 | arg2 = (int) SWIG_AsInt(obj1); | |
11943 | if (PyErr_Occurred()) SWIG_fail; | |
11944 | arg3 = (int) SWIG_AsInt(obj2); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | arg4 = (int) SWIG_AsInt(obj3); | |
11947 | if (PyErr_Occurred()) SWIG_fail; | |
11948 | arg5 = (int) SWIG_AsInt(obj4); | |
11949 | if (PyErr_Occurred()) SWIG_fail; | |
11950 | { | |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | Py_INCREF(Py_None); resultobj = Py_None; | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
c24da6d6 | 11964 | static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11965 | PyObject *resultobj; |
11966 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11967 | wxRect *arg2 = 0 ; |
11968 | wxRect temp2 ; | |
d55e5bfc RD |
11969 | PyObject * obj0 = 0 ; |
11970 | PyObject * obj1 = 0 ; | |
d55e5bfc | 11971 | char *kwnames[] = { |
c24da6d6 | 11972 | (char *) "self",(char *) "rect", NULL |
d55e5bfc RD |
11973 | }; |
11974 | ||
c24da6d6 | 11975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
11977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11978 | { | |
11979 | arg2 = &temp2; | |
c24da6d6 | 11980 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; |
d55e5bfc RD |
11981 | } |
11982 | { | |
11983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 11984 | (arg1)->DrawEllipse((wxRect const &)*arg2); |
d55e5bfc RD |
11985 | |
11986 | wxPyEndAllowThreads(__tstate); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
11988 | } | |
11989 | Py_INCREF(Py_None); resultobj = Py_None; | |
11990 | return resultobj; | |
11991 | fail: | |
11992 | return NULL; | |
11993 | } | |
11994 | ||
11995 | ||
c24da6d6 | 11996 | static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11997 | PyObject *resultobj; |
11998 | wxDC *arg1 = (wxDC *) 0 ; | |
c24da6d6 RD |
11999 | wxPoint *arg2 = 0 ; |
12000 | wxSize *arg3 = 0 ; | |
12001 | wxPoint temp2 ; | |
12002 | wxSize temp3 ; | |
d55e5bfc RD |
12003 | PyObject * obj0 = 0 ; |
12004 | PyObject * obj1 = 0 ; | |
c24da6d6 | 12005 | PyObject * obj2 = 0 ; |
d55e5bfc | 12006 | char *kwnames[] = { |
c24da6d6 | 12007 | (char *) "self",(char *) "pt",(char *) "sz", NULL |
d55e5bfc RD |
12008 | }; |
12009 | ||
c24da6d6 | 12010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12013 | { | |
12014 | arg2 = &temp2; | |
c24da6d6 RD |
12015 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; |
12016 | } | |
12017 | { | |
12018 | arg3 = &temp3; | |
12019 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
12020 | } |
12021 | { | |
12022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 12023 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); |
d55e5bfc RD |
12024 | |
12025 | wxPyEndAllowThreads(__tstate); | |
12026 | if (PyErr_Occurred()) SWIG_fail; | |
12027 | } | |
12028 | Py_INCREF(Py_None); resultobj = Py_None; | |
12029 | return resultobj; | |
12030 | fail: | |
12031 | return NULL; | |
12032 | } | |
12033 | ||
12034 | ||
c24da6d6 | 12035 | static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12036 | PyObject *resultobj; |
12037 | wxDC *arg1 = (wxDC *) 0 ; | |
12038 | wxIcon *arg2 = 0 ; | |
12039 | int arg3 ; | |
12040 | int arg4 ; | |
12041 | PyObject * obj0 = 0 ; | |
12042 | PyObject * obj1 = 0 ; | |
12043 | PyObject * obj2 = 0 ; | |
12044 | PyObject * obj3 = 0 ; | |
12045 | char *kwnames[] = { | |
12046 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
12047 | }; | |
12048 | ||
c24da6d6 | 12049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12053 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12054 | SWIG_fail; | |
12055 | if (arg2 == NULL) { | |
12056 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12057 | SWIG_fail; | |
12058 | } | |
12059 | arg3 = (int) SWIG_AsInt(obj2); | |
12060 | if (PyErr_Occurred()) SWIG_fail; | |
12061 | arg4 = (int) SWIG_AsInt(obj3); | |
12062 | if (PyErr_Occurred()) SWIG_fail; | |
12063 | { | |
12064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12065 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
12066 | ||
12067 | wxPyEndAllowThreads(__tstate); | |
12068 | if (PyErr_Occurred()) SWIG_fail; | |
12069 | } | |
12070 | Py_INCREF(Py_None); resultobj = Py_None; | |
12071 | return resultobj; | |
12072 | fail: | |
12073 | return NULL; | |
12074 | } | |
12075 | ||
12076 | ||
c24da6d6 | 12077 | static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12078 | PyObject *resultobj; |
12079 | wxDC *arg1 = (wxDC *) 0 ; | |
12080 | wxIcon *arg2 = 0 ; | |
12081 | wxPoint *arg3 = 0 ; | |
12082 | wxPoint temp3 ; | |
12083 | PyObject * obj0 = 0 ; | |
12084 | PyObject * obj1 = 0 ; | |
12085 | PyObject * obj2 = 0 ; | |
12086 | char *kwnames[] = { | |
12087 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
12088 | }; | |
12089 | ||
c24da6d6 | 12090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
12094 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12095 | SWIG_fail; | |
12096 | if (arg2 == NULL) { | |
12097 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12098 | SWIG_fail; | |
12099 | } | |
12100 | { | |
12101 | arg3 = &temp3; | |
12102 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12103 | } | |
12104 | { | |
12105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12106 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
12107 | ||
12108 | wxPyEndAllowThreads(__tstate); | |
12109 | if (PyErr_Occurred()) SWIG_fail; | |
12110 | } | |
12111 | Py_INCREF(Py_None); resultobj = Py_None; | |
12112 | return resultobj; | |
12113 | fail: | |
12114 | return NULL; | |
12115 | } | |
12116 | ||
12117 | ||
c24da6d6 | 12118 | static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12119 | PyObject *resultobj; |
12120 | wxDC *arg1 = (wxDC *) 0 ; | |
12121 | wxBitmap *arg2 = 0 ; | |
12122 | int arg3 ; | |
12123 | int arg4 ; | |
12124 | bool arg5 = (bool) False ; | |
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 *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
12132 | }; | |
12133 | ||
c24da6d6 | 12134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12137 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12138 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12139 | SWIG_fail; | |
12140 | if (arg2 == NULL) { | |
12141 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12142 | SWIG_fail; | |
12143 | } | |
12144 | arg3 = (int) SWIG_AsInt(obj2); | |
12145 | if (PyErr_Occurred()) SWIG_fail; | |
12146 | arg4 = (int) SWIG_AsInt(obj3); | |
12147 | if (PyErr_Occurred()) SWIG_fail; | |
12148 | if (obj4) { | |
12149 | arg5 = (bool) SWIG_AsBool(obj4); | |
12150 | if (PyErr_Occurred()) SWIG_fail; | |
12151 | } | |
12152 | { | |
12153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12154 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
12155 | ||
12156 | wxPyEndAllowThreads(__tstate); | |
12157 | if (PyErr_Occurred()) SWIG_fail; | |
12158 | } | |
12159 | Py_INCREF(Py_None); resultobj = Py_None; | |
12160 | return resultobj; | |
12161 | fail: | |
12162 | return NULL; | |
12163 | } | |
12164 | ||
12165 | ||
c24da6d6 | 12166 | static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12167 | PyObject *resultobj; |
12168 | wxDC *arg1 = (wxDC *) 0 ; | |
12169 | wxBitmap *arg2 = 0 ; | |
12170 | wxPoint *arg3 = 0 ; | |
12171 | bool arg4 = (bool) False ; | |
12172 | wxPoint temp3 ; | |
12173 | PyObject * obj0 = 0 ; | |
12174 | PyObject * obj1 = 0 ; | |
12175 | PyObject * obj2 = 0 ; | |
12176 | PyObject * obj3 = 0 ; | |
12177 | char *kwnames[] = { | |
12178 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
12179 | }; | |
12180 | ||
c24da6d6 | 12181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12184 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
12185 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12186 | SWIG_fail; | |
12187 | if (arg2 == NULL) { | |
12188 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12189 | SWIG_fail; | |
12190 | } | |
12191 | { | |
12192 | arg3 = &temp3; | |
12193 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12194 | } | |
12195 | if (obj3) { | |
12196 | arg4 = (bool) SWIG_AsBool(obj3); | |
12197 | if (PyErr_Occurred()) SWIG_fail; | |
12198 | } | |
12199 | { | |
12200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12201 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12202 | ||
12203 | wxPyEndAllowThreads(__tstate); | |
12204 | if (PyErr_Occurred()) SWIG_fail; | |
12205 | } | |
12206 | Py_INCREF(Py_None); resultobj = Py_None; | |
12207 | return resultobj; | |
12208 | fail: | |
12209 | return NULL; | |
12210 | } | |
12211 | ||
12212 | ||
c24da6d6 | 12213 | static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12214 | PyObject *resultobj; |
12215 | wxDC *arg1 = (wxDC *) 0 ; | |
12216 | wxString *arg2 = 0 ; | |
12217 | int arg3 ; | |
12218 | int arg4 ; | |
12219 | bool temp2 = False ; | |
12220 | PyObject * obj0 = 0 ; | |
12221 | PyObject * obj1 = 0 ; | |
12222 | PyObject * obj2 = 0 ; | |
12223 | PyObject * obj3 = 0 ; | |
12224 | char *kwnames[] = { | |
12225 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
12226 | }; | |
12227 | ||
c24da6d6 | 12228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12231 | { | |
12232 | arg2 = wxString_in_helper(obj1); | |
12233 | if (arg2 == NULL) SWIG_fail; | |
12234 | temp2 = True; | |
12235 | } | |
12236 | arg3 = (int) SWIG_AsInt(obj2); | |
12237 | if (PyErr_Occurred()) SWIG_fail; | |
12238 | arg4 = (int) SWIG_AsInt(obj3); | |
12239 | if (PyErr_Occurred()) SWIG_fail; | |
12240 | { | |
12241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12242 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
12243 | ||
12244 | wxPyEndAllowThreads(__tstate); | |
12245 | if (PyErr_Occurred()) SWIG_fail; | |
12246 | } | |
12247 | Py_INCREF(Py_None); resultobj = Py_None; | |
12248 | { | |
12249 | if (temp2) | |
12250 | delete arg2; | |
12251 | } | |
12252 | return resultobj; | |
12253 | fail: | |
12254 | { | |
12255 | if (temp2) | |
12256 | delete arg2; | |
12257 | } | |
12258 | return NULL; | |
12259 | } | |
12260 | ||
12261 | ||
c24da6d6 | 12262 | static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12263 | PyObject *resultobj; |
12264 | wxDC *arg1 = (wxDC *) 0 ; | |
12265 | wxString *arg2 = 0 ; | |
12266 | wxPoint *arg3 = 0 ; | |
12267 | bool temp2 = False ; | |
12268 | wxPoint temp3 ; | |
12269 | PyObject * obj0 = 0 ; | |
12270 | PyObject * obj1 = 0 ; | |
12271 | PyObject * obj2 = 0 ; | |
12272 | char *kwnames[] = { | |
12273 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
12274 | }; | |
12275 | ||
c24da6d6 | 12276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
12277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12279 | { | |
12280 | arg2 = wxString_in_helper(obj1); | |
12281 | if (arg2 == NULL) SWIG_fail; | |
12282 | temp2 = True; | |
12283 | } | |
12284 | { | |
12285 | arg3 = &temp3; | |
12286 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12287 | } | |
12288 | { | |
12289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12290 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
12291 | ||
12292 | wxPyEndAllowThreads(__tstate); | |
12293 | if (PyErr_Occurred()) SWIG_fail; | |
12294 | } | |
12295 | Py_INCREF(Py_None); resultobj = Py_None; | |
12296 | { | |
12297 | if (temp2) | |
12298 | delete arg2; | |
12299 | } | |
12300 | return resultobj; | |
12301 | fail: | |
12302 | { | |
12303 | if (temp2) | |
12304 | delete arg2; | |
12305 | } | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
c24da6d6 | 12310 | static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12311 | PyObject *resultobj; |
12312 | wxDC *arg1 = (wxDC *) 0 ; | |
12313 | wxString *arg2 = 0 ; | |
12314 | int arg3 ; | |
12315 | int arg4 ; | |
12316 | double arg5 ; | |
12317 | bool temp2 = False ; | |
12318 | PyObject * obj0 = 0 ; | |
12319 | PyObject * obj1 = 0 ; | |
12320 | PyObject * obj2 = 0 ; | |
12321 | PyObject * obj3 = 0 ; | |
12322 | PyObject * obj4 = 0 ; | |
12323 | char *kwnames[] = { | |
12324 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
12325 | }; | |
12326 | ||
c24da6d6 | 12327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
12328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12330 | { | |
12331 | arg2 = wxString_in_helper(obj1); | |
12332 | if (arg2 == NULL) SWIG_fail; | |
12333 | temp2 = True; | |
12334 | } | |
12335 | arg3 = (int) SWIG_AsInt(obj2); | |
12336 | if (PyErr_Occurred()) SWIG_fail; | |
12337 | arg4 = (int) SWIG_AsInt(obj3); | |
12338 | if (PyErr_Occurred()) SWIG_fail; | |
12339 | arg5 = (double) SWIG_AsDouble(obj4); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | { | |
12342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12343 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
12344 | ||
12345 | wxPyEndAllowThreads(__tstate); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
12347 | } | |
12348 | Py_INCREF(Py_None); resultobj = Py_None; | |
12349 | { | |
12350 | if (temp2) | |
12351 | delete arg2; | |
12352 | } | |
12353 | return resultobj; | |
12354 | fail: | |
12355 | { | |
12356 | if (temp2) | |
12357 | delete arg2; | |
12358 | } | |
12359 | return NULL; | |
12360 | } | |
12361 | ||
12362 | ||
c24da6d6 | 12363 | static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12364 | PyObject *resultobj; |
12365 | wxDC *arg1 = (wxDC *) 0 ; | |
12366 | wxString *arg2 = 0 ; | |
12367 | wxPoint *arg3 = 0 ; | |
12368 | double arg4 ; | |
12369 | bool temp2 = False ; | |
12370 | wxPoint temp3 ; | |
12371 | PyObject * obj0 = 0 ; | |
12372 | PyObject * obj1 = 0 ; | |
12373 | PyObject * obj2 = 0 ; | |
12374 | PyObject * obj3 = 0 ; | |
12375 | char *kwnames[] = { | |
12376 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
12377 | }; | |
12378 | ||
c24da6d6 | 12379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
12380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12382 | { | |
12383 | arg2 = wxString_in_helper(obj1); | |
12384 | if (arg2 == NULL) SWIG_fail; | |
12385 | temp2 = True; | |
12386 | } | |
12387 | { | |
12388 | arg3 = &temp3; | |
12389 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12390 | } | |
12391 | arg4 = (double) SWIG_AsDouble(obj3); | |
12392 | if (PyErr_Occurred()) SWIG_fail; | |
12393 | { | |
12394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12395 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
12396 | ||
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
12400 | Py_INCREF(Py_None); resultobj = Py_None; | |
12401 | { | |
12402 | if (temp2) | |
12403 | delete arg2; | |
12404 | } | |
12405 | return resultobj; | |
12406 | fail: | |
12407 | { | |
12408 | if (temp2) | |
12409 | delete arg2; | |
12410 | } | |
12411 | return NULL; | |
12412 | } | |
12413 | ||
12414 | ||
c24da6d6 | 12415 | static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12416 | PyObject *resultobj; |
12417 | wxDC *arg1 = (wxDC *) 0 ; | |
12418 | int arg2 ; | |
12419 | int arg3 ; | |
12420 | int arg4 ; | |
12421 | int arg5 ; | |
12422 | wxDC *arg6 = (wxDC *) 0 ; | |
12423 | int arg7 ; | |
12424 | int arg8 ; | |
12425 | int arg9 = (int) wxCOPY ; | |
12426 | bool arg10 = (bool) False ; | |
12427 | int arg11 = (int) -1 ; | |
12428 | int arg12 = (int) -1 ; | |
12429 | bool result; | |
12430 | PyObject * obj0 = 0 ; | |
12431 | PyObject * obj1 = 0 ; | |
12432 | PyObject * obj2 = 0 ; | |
12433 | PyObject * obj3 = 0 ; | |
12434 | PyObject * obj4 = 0 ; | |
12435 | PyObject * obj5 = 0 ; | |
12436 | PyObject * obj6 = 0 ; | |
12437 | PyObject * obj7 = 0 ; | |
12438 | PyObject * obj8 = 0 ; | |
12439 | PyObject * obj9 = 0 ; | |
12440 | PyObject * obj10 = 0 ; | |
12441 | PyObject * obj11 = 0 ; | |
12442 | char *kwnames[] = { | |
12443 | (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 | |
12444 | }; | |
12445 | ||
c24da6d6 | 12446 | 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 |
12447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12449 | arg2 = (int) SWIG_AsInt(obj1); | |
12450 | if (PyErr_Occurred()) SWIG_fail; | |
12451 | arg3 = (int) SWIG_AsInt(obj2); | |
12452 | if (PyErr_Occurred()) SWIG_fail; | |
12453 | arg4 = (int) SWIG_AsInt(obj3); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | arg5 = (int) SWIG_AsInt(obj4); | |
12456 | if (PyErr_Occurred()) SWIG_fail; | |
12457 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC, | |
12458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12459 | arg7 = (int) SWIG_AsInt(obj6); | |
12460 | if (PyErr_Occurred()) SWIG_fail; | |
12461 | arg8 = (int) SWIG_AsInt(obj7); | |
12462 | if (PyErr_Occurred()) SWIG_fail; | |
12463 | if (obj8) { | |
12464 | arg9 = (int) SWIG_AsInt(obj8); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | if (obj9) { | |
12468 | arg10 = (bool) SWIG_AsBool(obj9); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | } | |
12471 | if (obj10) { | |
12472 | arg11 = (int) SWIG_AsInt(obj10); | |
12473 | if (PyErr_Occurred()) SWIG_fail; | |
12474 | } | |
12475 | if (obj11) { | |
12476 | arg12 = (int) SWIG_AsInt(obj11); | |
12477 | if (PyErr_Occurred()) SWIG_fail; | |
12478 | } | |
12479 | { | |
12480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12481 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
12482 | ||
12483 | wxPyEndAllowThreads(__tstate); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
12486 | { | |
12487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12488 | } | |
12489 | return resultobj; | |
12490 | fail: | |
12491 | return NULL; | |
12492 | } | |
12493 | ||
12494 | ||
c24da6d6 | 12495 | static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12496 | PyObject *resultobj; |
12497 | wxDC *arg1 = (wxDC *) 0 ; | |
12498 | wxPoint *arg2 = 0 ; | |
12499 | wxSize *arg3 = 0 ; | |
12500 | wxDC *arg4 = (wxDC *) 0 ; | |
12501 | wxPoint *arg5 = 0 ; | |
12502 | int arg6 = (int) wxCOPY ; | |
12503 | bool arg7 = (bool) False ; | |
12504 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
12505 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
12506 | bool result; | |
12507 | wxPoint temp2 ; | |
12508 | wxSize temp3 ; | |
12509 | wxPoint temp5 ; | |
12510 | wxPoint temp8 ; | |
12511 | PyObject * obj0 = 0 ; | |
12512 | PyObject * obj1 = 0 ; | |
12513 | PyObject * obj2 = 0 ; | |
12514 | PyObject * obj3 = 0 ; | |
12515 | PyObject * obj4 = 0 ; | |
12516 | PyObject * obj5 = 0 ; | |
12517 | PyObject * obj6 = 0 ; | |
12518 | PyObject * obj7 = 0 ; | |
12519 | char *kwnames[] = { | |
12520 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
12521 | }; | |
12522 | ||
c24da6d6 | 12523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, |
12525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12526 | { | |
12527 | arg2 = &temp2; | |
12528 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12529 | } | |
12530 | { | |
12531 | arg3 = &temp3; | |
12532 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12533 | } | |
12534 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC, | |
12535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12536 | { | |
12537 | arg5 = &temp5; | |
12538 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12539 | } | |
12540 | if (obj5) { | |
12541 | arg6 = (int) SWIG_AsInt(obj5); | |
12542 | if (PyErr_Occurred()) SWIG_fail; | |
12543 | } | |
12544 | if (obj6) { | |
12545 | arg7 = (bool) SWIG_AsBool(obj6); | |
12546 | if (PyErr_Occurred()) SWIG_fail; | |
12547 | } | |
12548 | if (obj7) { | |
12549 | { | |
12550 | arg8 = &temp8; | |
12551 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
12552 | } | |
12553 | } | |
12554 | { | |
12555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 RD |
12556 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); |
12557 | ||
12558 | wxPyEndAllowThreads(__tstate); | |
12559 | if (PyErr_Occurred()) SWIG_fail; | |
12560 | } | |
12561 | { | |
12562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12563 | } | |
12564 | return resultobj; | |
12565 | fail: | |
12566 | return NULL; | |
12567 | } | |
12568 | ||
12569 | ||
12570 | static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12571 | PyObject *resultobj; | |
12572 | wxDC *arg1 = (wxDC *) 0 ; | |
12573 | int arg2 ; | |
12574 | int arg3 ; | |
12575 | int arg4 ; | |
12576 | int arg5 ; | |
12577 | PyObject * obj0 = 0 ; | |
12578 | PyObject * obj1 = 0 ; | |
12579 | PyObject * obj2 = 0 ; | |
12580 | PyObject * obj3 = 0 ; | |
12581 | PyObject * obj4 = 0 ; | |
12582 | char *kwnames[] = { | |
12583 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12584 | }; | |
12585 | ||
12586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12589 | arg2 = (int) SWIG_AsInt(obj1); | |
12590 | if (PyErr_Occurred()) SWIG_fail; | |
12591 | arg3 = (int) SWIG_AsInt(obj2); | |
12592 | if (PyErr_Occurred()) SWIG_fail; | |
12593 | arg4 = (int) SWIG_AsInt(obj3); | |
12594 | if (PyErr_Occurred()) SWIG_fail; | |
12595 | arg5 = (int) SWIG_AsInt(obj4); | |
12596 | if (PyErr_Occurred()) SWIG_fail; | |
12597 | { | |
12598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12599 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
12600 | ||
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | Py_INCREF(Py_None); resultobj = Py_None; | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
12608 | } | |
12609 | ||
12610 | ||
12611 | static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12612 | PyObject *resultobj; | |
12613 | wxDC *arg1 = (wxDC *) 0 ; | |
12614 | wxPoint *arg2 = 0 ; | |
12615 | wxSize *arg3 = 0 ; | |
12616 | wxPoint temp2 ; | |
12617 | wxSize temp3 ; | |
12618 | PyObject * obj0 = 0 ; | |
12619 | PyObject * obj1 = 0 ; | |
12620 | PyObject * obj2 = 0 ; | |
12621 | char *kwnames[] = { | |
12622 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
12623 | }; | |
12624 | ||
12625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12628 | { | |
12629 | arg2 = &temp2; | |
12630 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12631 | } | |
12632 | { | |
12633 | arg3 = &temp3; | |
12634 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
12635 | } | |
12636 | { | |
12637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12638 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
12639 | ||
12640 | wxPyEndAllowThreads(__tstate); | |
12641 | if (PyErr_Occurred()) SWIG_fail; | |
12642 | } | |
12643 | Py_INCREF(Py_None); resultobj = Py_None; | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
12650 | static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12651 | PyObject *resultobj; | |
12652 | wxDC *arg1 = (wxDC *) 0 ; | |
12653 | wxRegion *arg2 = 0 ; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | PyObject * obj1 = 0 ; | |
12656 | char *kwnames[] = { | |
12657 | (char *) "self",(char *) "region", NULL | |
12658 | }; | |
12659 | ||
12660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail; | |
12661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12663 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
12664 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12665 | SWIG_fail; | |
12666 | if (arg2 == NULL) { | |
12667 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12668 | SWIG_fail; | |
12669 | } | |
12670 | { | |
12671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12672 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
12673 | ||
12674 | wxPyEndAllowThreads(__tstate); | |
12675 | if (PyErr_Occurred()) SWIG_fail; | |
12676 | } | |
12677 | Py_INCREF(Py_None); resultobj = Py_None; | |
12678 | return resultobj; | |
12679 | fail: | |
12680 | return NULL; | |
12681 | } | |
12682 | ||
12683 | ||
12684 | static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12685 | PyObject *resultobj; | |
12686 | wxDC *arg1 = (wxDC *) 0 ; | |
12687 | wxRect *arg2 = 0 ; | |
12688 | wxRect temp2 ; | |
12689 | PyObject * obj0 = 0 ; | |
12690 | PyObject * obj1 = 0 ; | |
12691 | char *kwnames[] = { | |
12692 | (char *) "self",(char *) "rect", NULL | |
12693 | }; | |
12694 | ||
12695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail; | |
12696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12698 | { | |
12699 | arg2 = &temp2; | |
12700 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12701 | } | |
12702 | { | |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
d55e5bfc RD |
12705 | |
12706 | wxPyEndAllowThreads(__tstate); | |
12707 | if (PyErr_Occurred()) SWIG_fail; | |
12708 | } | |
c24da6d6 | 12709 | Py_INCREF(Py_None); resultobj = Py_None; |
d55e5bfc RD |
12710 | return resultobj; |
12711 | fail: | |
12712 | return NULL; | |
12713 | } | |
12714 | ||
12715 | ||
12716 | static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12717 | PyObject *resultobj; | |
12718 | wxDC *arg1 = (wxDC *) 0 ; | |
12719 | int arg2 ; | |
12720 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12721 | int arg4 = (int) 0 ; | |
12722 | int arg5 = (int) 0 ; | |
12723 | PyObject * obj0 = 0 ; | |
12724 | PyObject * obj1 = 0 ; | |
12725 | PyObject * obj2 = 0 ; | |
12726 | PyObject * obj3 = 0 ; | |
12727 | char *kwnames[] = { | |
12728 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
12729 | }; | |
12730 | ||
12731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12734 | { | |
12735 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12736 | if (arg3 == NULL) SWIG_fail; | |
12737 | } | |
12738 | if (obj2) { | |
12739 | arg4 = (int) SWIG_AsInt(obj2); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | } | |
12742 | if (obj3) { | |
12743 | arg5 = (int) SWIG_AsInt(obj3); | |
12744 | if (PyErr_Occurred()) SWIG_fail; | |
12745 | } | |
12746 | { | |
12747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12748 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
12749 | ||
12750 | wxPyEndAllowThreads(__tstate); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
12753 | Py_INCREF(Py_None); resultobj = Py_None; | |
12754 | { | |
12755 | if (arg3) delete [] arg3; | |
12756 | } | |
12757 | return resultobj; | |
12758 | fail: | |
12759 | { | |
12760 | if (arg3) delete [] arg3; | |
12761 | } | |
12762 | return NULL; | |
12763 | } | |
12764 | ||
12765 | ||
12766 | static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12767 | PyObject *resultobj; | |
12768 | wxDC *arg1 = (wxDC *) 0 ; | |
12769 | int arg2 ; | |
12770 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12771 | int arg4 = (int) 0 ; | |
12772 | int arg5 = (int) 0 ; | |
12773 | int arg6 = (int) wxODDEVEN_RULE ; | |
12774 | PyObject * obj0 = 0 ; | |
12775 | PyObject * obj1 = 0 ; | |
12776 | PyObject * obj2 = 0 ; | |
12777 | PyObject * obj3 = 0 ; | |
12778 | PyObject * obj4 = 0 ; | |
12779 | char *kwnames[] = { | |
12780 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
12781 | }; | |
12782 | ||
12783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12786 | { | |
12787 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12788 | if (arg3 == NULL) SWIG_fail; | |
12789 | } | |
12790 | if (obj2) { | |
12791 | arg4 = (int) SWIG_AsInt(obj2); | |
12792 | if (PyErr_Occurred()) SWIG_fail; | |
12793 | } | |
12794 | if (obj3) { | |
12795 | arg5 = (int) SWIG_AsInt(obj3); | |
12796 | if (PyErr_Occurred()) SWIG_fail; | |
12797 | } | |
12798 | if (obj4) { | |
12799 | arg6 = (int) SWIG_AsInt(obj4); | |
12800 | if (PyErr_Occurred()) SWIG_fail; | |
12801 | } | |
12802 | { | |
12803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12804 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
12805 | ||
12806 | wxPyEndAllowThreads(__tstate); | |
12807 | if (PyErr_Occurred()) SWIG_fail; | |
12808 | } | |
12809 | Py_INCREF(Py_None); resultobj = Py_None; | |
12810 | { | |
12811 | if (arg3) delete [] arg3; | |
12812 | } | |
12813 | return resultobj; | |
12814 | fail: | |
12815 | { | |
12816 | if (arg3) delete [] arg3; | |
12817 | } | |
12818 | return NULL; | |
12819 | } | |
12820 | ||
12821 | ||
12822 | static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12823 | PyObject *resultobj; | |
12824 | wxDC *arg1 = (wxDC *) 0 ; | |
12825 | wxString *arg2 = 0 ; | |
12826 | wxRect *arg3 = 0 ; | |
12827 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12828 | int arg5 = (int) -1 ; | |
12829 | bool temp2 = False ; | |
12830 | wxRect temp3 ; | |
12831 | PyObject * obj0 = 0 ; | |
12832 | PyObject * obj1 = 0 ; | |
12833 | PyObject * obj2 = 0 ; | |
12834 | PyObject * obj3 = 0 ; | |
12835 | PyObject * obj4 = 0 ; | |
12836 | char *kwnames[] = { | |
12837 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12838 | }; | |
12839 | ||
12840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12843 | { | |
12844 | arg2 = wxString_in_helper(obj1); | |
12845 | if (arg2 == NULL) SWIG_fail; | |
12846 | temp2 = True; | |
12847 | } | |
12848 | { | |
12849 | arg3 = &temp3; | |
12850 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
12851 | } | |
12852 | if (obj3) { | |
12853 | arg4 = (int) SWIG_AsInt(obj3); | |
12854 | if (PyErr_Occurred()) SWIG_fail; | |
12855 | } | |
12856 | if (obj4) { | |
12857 | arg5 = (int) SWIG_AsInt(obj4); | |
12858 | if (PyErr_Occurred()) SWIG_fail; | |
12859 | } | |
12860 | { | |
12861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12862 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
12863 | ||
12864 | wxPyEndAllowThreads(__tstate); | |
12865 | if (PyErr_Occurred()) SWIG_fail; | |
12866 | } | |
12867 | Py_INCREF(Py_None); resultobj = Py_None; | |
12868 | { | |
12869 | if (temp2) | |
12870 | delete arg2; | |
12871 | } | |
12872 | return resultobj; | |
12873 | fail: | |
12874 | { | |
12875 | if (temp2) | |
12876 | delete arg2; | |
12877 | } | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
12882 | static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12883 | PyObject *resultobj; | |
12884 | wxDC *arg1 = (wxDC *) 0 ; | |
12885 | wxString *arg2 = 0 ; | |
12886 | wxBitmap *arg3 = 0 ; | |
12887 | wxRect *arg4 = 0 ; | |
12888 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
12889 | int arg6 = (int) -1 ; | |
12890 | wxRect result; | |
12891 | bool temp2 = False ; | |
12892 | wxRect temp4 ; | |
12893 | PyObject * obj0 = 0 ; | |
12894 | PyObject * obj1 = 0 ; | |
12895 | PyObject * obj2 = 0 ; | |
12896 | PyObject * obj3 = 0 ; | |
12897 | PyObject * obj4 = 0 ; | |
12898 | PyObject * obj5 = 0 ; | |
12899 | char *kwnames[] = { | |
12900 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
12901 | }; | |
12902 | ||
12903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12906 | { | |
12907 | arg2 = wxString_in_helper(obj1); | |
12908 | if (arg2 == NULL) SWIG_fail; | |
12909 | temp2 = True; | |
12910 | } | |
12911 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
12912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12913 | SWIG_fail; | |
12914 | if (arg3 == NULL) { | |
12915 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12916 | SWIG_fail; | |
12917 | } | |
12918 | { | |
12919 | arg4 = &temp4; | |
12920 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
12921 | } | |
12922 | if (obj4) { | |
12923 | arg5 = (int) SWIG_AsInt(obj4); | |
12924 | if (PyErr_Occurred()) SWIG_fail; | |
12925 | } | |
12926 | if (obj5) { | |
12927 | arg6 = (int) SWIG_AsInt(obj5); | |
12928 | if (PyErr_Occurred()) SWIG_fail; | |
12929 | } | |
12930 | { | |
12931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12932 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
12933 | ||
12934 | wxPyEndAllowThreads(__tstate); | |
12935 | if (PyErr_Occurred()) SWIG_fail; | |
12936 | } | |
12937 | { | |
12938 | wxRect * resultptr; | |
12939 | resultptr = new wxRect((wxRect &) result); | |
12940 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
12941 | } | |
12942 | { | |
12943 | if (temp2) | |
12944 | delete arg2; | |
12945 | } | |
12946 | return resultobj; | |
12947 | fail: | |
12948 | { | |
12949 | if (temp2) | |
12950 | delete arg2; | |
12951 | } | |
12952 | return NULL; | |
12953 | } | |
12954 | ||
12955 | ||
12956 | static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12957 | PyObject *resultobj; | |
12958 | wxDC *arg1 = (wxDC *) 0 ; | |
12959 | int arg2 ; | |
12960 | wxPoint *arg3 = (wxPoint *) 0 ; | |
12961 | PyObject * obj0 = 0 ; | |
12962 | PyObject * obj1 = 0 ; | |
12963 | char *kwnames[] = { | |
12964 | (char *) "self",(char *) "points", NULL | |
12965 | }; | |
12966 | ||
12967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail; | |
12968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
12969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12970 | { | |
12971 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
12972 | if (arg3 == NULL) SWIG_fail; | |
12973 | } | |
12974 | { | |
12975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12976 | (arg1)->DrawSpline(arg2,arg3); | |
12977 | ||
12978 | wxPyEndAllowThreads(__tstate); | |
12979 | if (PyErr_Occurred()) SWIG_fail; | |
12980 | } | |
12981 | Py_INCREF(Py_None); resultobj = Py_None; | |
12982 | { | |
12983 | if (arg3) delete [] arg3; | |
12984 | } | |
12985 | return resultobj; | |
12986 | fail: | |
12987 | { | |
12988 | if (arg3) delete [] arg3; | |
12989 | } | |
12990 | return NULL; | |
12991 | } | |
12992 | ||
12993 | ||
12994 | static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12995 | PyObject *resultobj; | |
12996 | wxDC *arg1 = (wxDC *) 0 ; | |
12997 | PyObject * obj0 = 0 ; | |
12998 | char *kwnames[] = { | |
12999 | (char *) "self", NULL | |
13000 | }; | |
13001 | ||
13002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail; | |
13003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13005 | { | |
13006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13007 | (arg1)->Clear(); | |
13008 | ||
13009 | wxPyEndAllowThreads(__tstate); | |
13010 | if (PyErr_Occurred()) SWIG_fail; | |
13011 | } | |
13012 | Py_INCREF(Py_None); resultobj = Py_None; | |
13013 | return resultobj; | |
13014 | fail: | |
13015 | return NULL; | |
13016 | } | |
13017 | ||
13018 | ||
13019 | static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13020 | PyObject *resultobj; | |
13021 | wxDC *arg1 = (wxDC *) 0 ; | |
13022 | wxString *arg2 = 0 ; | |
13023 | bool result; | |
13024 | bool temp2 = False ; | |
13025 | PyObject * obj0 = 0 ; | |
13026 | PyObject * obj1 = 0 ; | |
13027 | char *kwnames[] = { | |
13028 | (char *) "self",(char *) "message", NULL | |
13029 | }; | |
13030 | ||
13031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail; | |
13032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13034 | { | |
13035 | arg2 = wxString_in_helper(obj1); | |
13036 | if (arg2 == NULL) SWIG_fail; | |
13037 | temp2 = True; | |
13038 | } | |
13039 | { | |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | { | |
13047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13048 | } | |
13049 | { | |
13050 | if (temp2) | |
13051 | delete arg2; | |
13052 | } | |
13053 | return resultobj; | |
13054 | fail: | |
13055 | { | |
13056 | if (temp2) | |
13057 | delete arg2; | |
13058 | } | |
13059 | return NULL; | |
13060 | } | |
13061 | ||
13062 | ||
13063 | static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13064 | PyObject *resultobj; | |
13065 | wxDC *arg1 = (wxDC *) 0 ; | |
13066 | PyObject * obj0 = 0 ; | |
13067 | char *kwnames[] = { | |
13068 | (char *) "self", NULL | |
13069 | }; | |
13070 | ||
13071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail; | |
13072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13074 | { | |
13075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13076 | (arg1)->EndDoc(); | |
13077 | ||
13078 | wxPyEndAllowThreads(__tstate); | |
13079 | if (PyErr_Occurred()) SWIG_fail; | |
13080 | } | |
13081 | Py_INCREF(Py_None); resultobj = Py_None; | |
13082 | return resultobj; | |
13083 | fail: | |
13084 | return NULL; | |
13085 | } | |
13086 | ||
13087 | ||
13088 | static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13089 | PyObject *resultobj; | |
13090 | wxDC *arg1 = (wxDC *) 0 ; | |
13091 | PyObject * obj0 = 0 ; | |
13092 | char *kwnames[] = { | |
13093 | (char *) "self", NULL | |
13094 | }; | |
13095 | ||
13096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail; | |
13097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13099 | { | |
13100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13101 | (arg1)->StartPage(); | |
13102 | ||
13103 | wxPyEndAllowThreads(__tstate); | |
13104 | if (PyErr_Occurred()) SWIG_fail; | |
13105 | } | |
13106 | Py_INCREF(Py_None); resultobj = Py_None; | |
13107 | return resultobj; | |
13108 | fail: | |
13109 | return NULL; | |
13110 | } | |
13111 | ||
13112 | ||
13113 | static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13114 | PyObject *resultobj; | |
13115 | wxDC *arg1 = (wxDC *) 0 ; | |
13116 | PyObject * obj0 = 0 ; | |
13117 | char *kwnames[] = { | |
13118 | (char *) "self", NULL | |
13119 | }; | |
13120 | ||
13121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail; | |
13122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13124 | { | |
13125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13126 | (arg1)->EndPage(); | |
13127 | ||
13128 | wxPyEndAllowThreads(__tstate); | |
13129 | if (PyErr_Occurred()) SWIG_fail; | |
13130 | } | |
13131 | Py_INCREF(Py_None); resultobj = Py_None; | |
13132 | return resultobj; | |
13133 | fail: | |
13134 | return NULL; | |
13135 | } | |
13136 | ||
13137 | ||
13138 | static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13139 | PyObject *resultobj; | |
13140 | wxDC *arg1 = (wxDC *) 0 ; | |
13141 | wxFont *arg2 = 0 ; | |
13142 | PyObject * obj0 = 0 ; | |
13143 | PyObject * obj1 = 0 ; | |
13144 | char *kwnames[] = { | |
13145 | (char *) "self",(char *) "font", NULL | |
13146 | }; | |
13147 | ||
13148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
13149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13153 | SWIG_fail; | |
13154 | if (arg2 == NULL) { | |
13155 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13156 | SWIG_fail; | |
13157 | } | |
13158 | { | |
13159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13160 | (arg1)->SetFont((wxFont const &)*arg2); | |
13161 | ||
13162 | wxPyEndAllowThreads(__tstate); | |
13163 | if (PyErr_Occurred()) SWIG_fail; | |
13164 | } | |
13165 | Py_INCREF(Py_None); resultobj = Py_None; | |
13166 | return resultobj; | |
13167 | fail: | |
13168 | return NULL; | |
13169 | } | |
13170 | ||
13171 | ||
13172 | static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13173 | PyObject *resultobj; | |
13174 | wxDC *arg1 = (wxDC *) 0 ; | |
13175 | wxPen *arg2 = 0 ; | |
13176 | PyObject * obj0 = 0 ; | |
13177 | PyObject * obj1 = 0 ; | |
13178 | char *kwnames[] = { | |
13179 | (char *) "self",(char *) "pen", NULL | |
13180 | }; | |
13181 | ||
13182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail; | |
13183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13185 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
13186 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13187 | SWIG_fail; | |
13188 | if (arg2 == NULL) { | |
13189 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13190 | SWIG_fail; | |
13191 | } | |
13192 | { | |
13193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13194 | (arg1)->SetPen((wxPen const &)*arg2); | |
13195 | ||
13196 | wxPyEndAllowThreads(__tstate); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | } | |
13199 | Py_INCREF(Py_None); resultobj = Py_None; | |
13200 | return resultobj; | |
13201 | fail: | |
13202 | return NULL; | |
13203 | } | |
13204 | ||
13205 | ||
13206 | static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13207 | PyObject *resultobj; | |
13208 | wxDC *arg1 = (wxDC *) 0 ; | |
13209 | wxBrush *arg2 = 0 ; | |
13210 | PyObject * obj0 = 0 ; | |
13211 | PyObject * obj1 = 0 ; | |
13212 | char *kwnames[] = { | |
13213 | (char *) "self",(char *) "brush", NULL | |
13214 | }; | |
13215 | ||
13216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail; | |
13217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13219 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13220 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13221 | SWIG_fail; | |
13222 | if (arg2 == NULL) { | |
13223 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13224 | SWIG_fail; | |
13225 | } | |
13226 | { | |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
13229 | ||
13230 | wxPyEndAllowThreads(__tstate); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
13232 | } | |
13233 | Py_INCREF(Py_None); resultobj = Py_None; | |
13234 | return resultobj; | |
13235 | fail: | |
13236 | return NULL; | |
13237 | } | |
13238 | ||
13239 | ||
13240 | static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13241 | PyObject *resultobj; | |
13242 | wxDC *arg1 = (wxDC *) 0 ; | |
13243 | wxBrush *arg2 = 0 ; | |
13244 | PyObject * obj0 = 0 ; | |
13245 | PyObject * obj1 = 0 ; | |
13246 | char *kwnames[] = { | |
13247 | (char *) "self",(char *) "brush", NULL | |
13248 | }; | |
13249 | ||
13250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail; | |
13251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13253 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
13254 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13255 | SWIG_fail; | |
13256 | if (arg2 == NULL) { | |
13257 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13258 | SWIG_fail; | |
13259 | } | |
13260 | { | |
13261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13262 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
13263 | ||
13264 | wxPyEndAllowThreads(__tstate); | |
13265 | if (PyErr_Occurred()) SWIG_fail; | |
13266 | } | |
13267 | Py_INCREF(Py_None); resultobj = Py_None; | |
13268 | return resultobj; | |
13269 | fail: | |
13270 | return NULL; | |
13271 | } | |
13272 | ||
13273 | ||
13274 | static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13275 | PyObject *resultobj; | |
13276 | wxDC *arg1 = (wxDC *) 0 ; | |
13277 | int arg2 ; | |
13278 | PyObject * obj0 = 0 ; | |
13279 | PyObject * obj1 = 0 ; | |
13280 | char *kwnames[] = { | |
13281 | (char *) "self",(char *) "mode", NULL | |
13282 | }; | |
13283 | ||
13284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail; | |
13285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13287 | arg2 = (int) SWIG_AsInt(obj1); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | { | |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | (arg1)->SetBackgroundMode(arg2); | |
13292 | ||
13293 | wxPyEndAllowThreads(__tstate); | |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
13295 | } | |
13296 | Py_INCREF(Py_None); resultobj = Py_None; | |
13297 | return resultobj; | |
13298 | fail: | |
13299 | return NULL; | |
13300 | } | |
13301 | ||
13302 | ||
13303 | static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13304 | PyObject *resultobj; | |
13305 | wxDC *arg1 = (wxDC *) 0 ; | |
13306 | wxPalette *arg2 = 0 ; | |
13307 | PyObject * obj0 = 0 ; | |
13308 | PyObject * obj1 = 0 ; | |
13309 | char *kwnames[] = { | |
13310 | (char *) "self",(char *) "palette", NULL | |
13311 | }; | |
13312 | ||
13313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail; | |
13314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13316 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette, | |
13317 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13318 | SWIG_fail; | |
13319 | if (arg2 == NULL) { | |
13320 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13321 | SWIG_fail; | |
13322 | } | |
13323 | { | |
13324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13325 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
13326 | ||
13327 | wxPyEndAllowThreads(__tstate); | |
13328 | if (PyErr_Occurred()) SWIG_fail; | |
13329 | } | |
13330 | Py_INCREF(Py_None); resultobj = Py_None; | |
13331 | return resultobj; | |
13332 | fail: | |
13333 | return NULL; | |
13334 | } | |
13335 | ||
13336 | ||
d55e5bfc RD |
13337 | static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
13338 | PyObject *resultobj; | |
13339 | wxDC *arg1 = (wxDC *) 0 ; | |
13340 | PyObject * obj0 = 0 ; | |
13341 | char *kwnames[] = { | |
13342 | (char *) "self", NULL | |
13343 | }; | |
13344 | ||
13345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail; | |
13346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13348 | { | |
13349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13350 | (arg1)->DestroyClippingRegion(); | |
13351 | ||
13352 | wxPyEndAllowThreads(__tstate); | |
13353 | if (PyErr_Occurred()) SWIG_fail; | |
13354 | } | |
13355 | Py_INCREF(Py_None); resultobj = Py_None; | |
13356 | return resultobj; | |
13357 | fail: | |
13358 | return NULL; | |
13359 | } | |
13360 | ||
13361 | ||
13362 | static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13363 | PyObject *resultobj; | |
13364 | wxDC *arg1 = (wxDC *) 0 ; | |
13365 | int *arg2 = (int *) 0 ; | |
13366 | int *arg3 = (int *) 0 ; | |
13367 | int *arg4 = (int *) 0 ; | |
13368 | int *arg5 = (int *) 0 ; | |
13369 | int temp2 ; | |
13370 | int temp3 ; | |
13371 | int temp4 ; | |
13372 | int temp5 ; | |
13373 | PyObject * obj0 = 0 ; | |
13374 | char *kwnames[] = { | |
13375 | (char *) "self", NULL | |
13376 | }; | |
13377 | ||
13378 | arg2 = &temp2; | |
13379 | arg3 = &temp3; | |
13380 | arg4 = &temp4; | |
13381 | arg5 = &temp5; | |
13382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail; | |
13383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13385 | { | |
13386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13387 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
13388 | ||
13389 | wxPyEndAllowThreads(__tstate); | |
13390 | if (PyErr_Occurred()) SWIG_fail; | |
13391 | } | |
13392 | Py_INCREF(Py_None); resultobj = Py_None; | |
13393 | { | |
13394 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13395 | resultobj = t_output_helper(resultobj,o); | |
13396 | } | |
13397 | { | |
13398 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13399 | resultobj = t_output_helper(resultobj,o); | |
13400 | } | |
13401 | { | |
13402 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13403 | resultobj = t_output_helper(resultobj,o); | |
13404 | } | |
13405 | { | |
13406 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13407 | resultobj = t_output_helper(resultobj,o); | |
13408 | } | |
13409 | return resultobj; | |
13410 | fail: | |
13411 | return NULL; | |
13412 | } | |
13413 | ||
13414 | ||
13415 | static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13416 | PyObject *resultobj; | |
13417 | wxDC *arg1 = (wxDC *) 0 ; | |
13418 | wxRect result; | |
13419 | PyObject * obj0 = 0 ; | |
13420 | char *kwnames[] = { | |
13421 | (char *) "self", NULL | |
13422 | }; | |
13423 | ||
13424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail; | |
13425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13427 | { | |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | result = wxDC_GetClippingRect(arg1); | |
13430 | ||
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | { | |
13435 | wxRect * resultptr; | |
13436 | resultptr = new wxRect((wxRect &) result); | |
13437 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
13438 | } | |
13439 | return resultobj; | |
13440 | fail: | |
13441 | return NULL; | |
13442 | } | |
13443 | ||
13444 | ||
13445 | static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13446 | PyObject *resultobj; | |
13447 | wxDC *arg1 = (wxDC *) 0 ; | |
13448 | int result; | |
13449 | PyObject * obj0 = 0 ; | |
13450 | char *kwnames[] = { | |
13451 | (char *) "self", NULL | |
13452 | }; | |
13453 | ||
13454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",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 = (int)((wxDC const *)arg1)->GetCharHeight(); | |
13460 | ||
13461 | wxPyEndAllowThreads(__tstate); | |
13462 | if (PyErr_Occurred()) SWIG_fail; | |
13463 | } | |
13464 | resultobj = SWIG_FromInt((int)result); | |
13465 | return resultobj; | |
13466 | fail: | |
13467 | return NULL; | |
13468 | } | |
13469 | ||
13470 | ||
13471 | static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13472 | PyObject *resultobj; | |
13473 | wxDC *arg1 = (wxDC *) 0 ; | |
13474 | int result; | |
13475 | PyObject * obj0 = 0 ; | |
13476 | char *kwnames[] = { | |
13477 | (char *) "self", NULL | |
13478 | }; | |
13479 | ||
13480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail; | |
13481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13483 | { | |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
13486 | ||
13487 | wxPyEndAllowThreads(__tstate); | |
13488 | if (PyErr_Occurred()) SWIG_fail; | |
13489 | } | |
13490 | resultobj = SWIG_FromInt((int)result); | |
13491 | return resultobj; | |
13492 | fail: | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
13497 | static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13498 | PyObject *resultobj; | |
13499 | wxDC *arg1 = (wxDC *) 0 ; | |
13500 | wxString *arg2 = 0 ; | |
13501 | int *arg3 = (int *) 0 ; | |
13502 | int *arg4 = (int *) 0 ; | |
13503 | bool temp2 = False ; | |
13504 | int temp3 ; | |
13505 | int temp4 ; | |
13506 | PyObject * obj0 = 0 ; | |
13507 | PyObject * obj1 = 0 ; | |
13508 | char *kwnames[] = { | |
13509 | (char *) "self",(char *) "string", NULL | |
13510 | }; | |
13511 | ||
13512 | arg3 = &temp3; | |
13513 | arg4 = &temp4; | |
13514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
13515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13517 | { | |
13518 | arg2 = wxString_in_helper(obj1); | |
13519 | if (arg2 == NULL) SWIG_fail; | |
13520 | temp2 = True; | |
13521 | } | |
13522 | { | |
13523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13524 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
13525 | ||
13526 | wxPyEndAllowThreads(__tstate); | |
13527 | if (PyErr_Occurred()) SWIG_fail; | |
13528 | } | |
13529 | Py_INCREF(Py_None); resultobj = Py_None; | |
13530 | { | |
13531 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13532 | resultobj = t_output_helper(resultobj,o); | |
13533 | } | |
13534 | { | |
13535 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13536 | resultobj = t_output_helper(resultobj,o); | |
13537 | } | |
13538 | { | |
13539 | if (temp2) | |
13540 | delete arg2; | |
13541 | } | |
13542 | return resultobj; | |
13543 | fail: | |
13544 | { | |
13545 | if (temp2) | |
13546 | delete arg2; | |
13547 | } | |
13548 | return NULL; | |
13549 | } | |
13550 | ||
13551 | ||
13552 | static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj; | |
13554 | wxDC *arg1 = (wxDC *) 0 ; | |
13555 | wxString *arg2 = 0 ; | |
13556 | int *arg3 = (int *) 0 ; | |
13557 | int *arg4 = (int *) 0 ; | |
13558 | int *arg5 = (int *) 0 ; | |
13559 | int *arg6 = (int *) 0 ; | |
13560 | wxFont *arg7 = (wxFont *) NULL ; | |
13561 | bool temp2 = False ; | |
13562 | int temp3 ; | |
13563 | int temp4 ; | |
13564 | int temp5 ; | |
13565 | int temp6 ; | |
13566 | PyObject * obj0 = 0 ; | |
13567 | PyObject * obj1 = 0 ; | |
13568 | PyObject * obj2 = 0 ; | |
13569 | char *kwnames[] = { | |
13570 | (char *) "self",(char *) "string",(char *) "font", NULL | |
13571 | }; | |
13572 | ||
13573 | arg3 = &temp3; | |
13574 | arg4 = &temp4; | |
13575 | arg5 = &temp5; | |
13576 | arg6 = &temp6; | |
13577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13580 | { | |
13581 | arg2 = wxString_in_helper(obj1); | |
13582 | if (arg2 == NULL) SWIG_fail; | |
13583 | temp2 = True; | |
13584 | } | |
13585 | if (obj2) { | |
13586 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
13587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13588 | } | |
13589 | { | |
13590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13591 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
13592 | ||
13593 | wxPyEndAllowThreads(__tstate); | |
13594 | if (PyErr_Occurred()) SWIG_fail; | |
13595 | } | |
13596 | Py_INCREF(Py_None); resultobj = Py_None; | |
13597 | { | |
13598 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13599 | resultobj = t_output_helper(resultobj,o); | |
13600 | } | |
13601 | { | |
13602 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13603 | resultobj = t_output_helper(resultobj,o); | |
13604 | } | |
13605 | { | |
13606 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13607 | resultobj = t_output_helper(resultobj,o); | |
13608 | } | |
13609 | { | |
13610 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
13611 | resultobj = t_output_helper(resultobj,o); | |
13612 | } | |
13613 | { | |
13614 | if (temp2) | |
13615 | delete arg2; | |
13616 | } | |
13617 | return resultobj; | |
13618 | fail: | |
13619 | { | |
13620 | if (temp2) | |
13621 | delete arg2; | |
13622 | } | |
13623 | return NULL; | |
13624 | } | |
13625 | ||
13626 | ||
13627 | static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13628 | PyObject *resultobj; | |
13629 | wxDC *arg1 = (wxDC *) 0 ; | |
13630 | wxString *arg2 = 0 ; | |
13631 | int *arg3 = (int *) 0 ; | |
13632 | int *arg4 = (int *) 0 ; | |
13633 | int *arg5 = (int *) 0 ; | |
13634 | wxFont *arg6 = (wxFont *) NULL ; | |
13635 | bool temp2 = False ; | |
13636 | int temp3 ; | |
13637 | int temp4 ; | |
13638 | int temp5 ; | |
13639 | PyObject * obj0 = 0 ; | |
13640 | PyObject * obj1 = 0 ; | |
13641 | PyObject * obj2 = 0 ; | |
13642 | char *kwnames[] = { | |
13643 | (char *) "self",(char *) "text",(char *) "font", NULL | |
13644 | }; | |
13645 | ||
13646 | arg3 = &temp3; | |
13647 | arg4 = &temp4; | |
13648 | arg5 = &temp5; | |
13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13652 | { | |
13653 | arg2 = wxString_in_helper(obj1); | |
13654 | if (arg2 == NULL) SWIG_fail; | |
13655 | temp2 = True; | |
13656 | } | |
13657 | if (obj2) { | |
13658 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont, | |
13659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13660 | } | |
13661 | { | |
13662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13663 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
13664 | ||
13665 | wxPyEndAllowThreads(__tstate); | |
13666 | if (PyErr_Occurred()) SWIG_fail; | |
13667 | } | |
13668 | Py_INCREF(Py_None); resultobj = Py_None; | |
13669 | { | |
13670 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13671 | resultobj = t_output_helper(resultobj,o); | |
13672 | } | |
13673 | { | |
13674 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
13675 | resultobj = t_output_helper(resultobj,o); | |
13676 | } | |
13677 | { | |
13678 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
13679 | resultobj = t_output_helper(resultobj,o); | |
13680 | } | |
13681 | { | |
13682 | if (temp2) | |
13683 | delete arg2; | |
13684 | } | |
13685 | return resultobj; | |
13686 | fail: | |
13687 | { | |
13688 | if (temp2) | |
13689 | delete arg2; | |
13690 | } | |
13691 | return NULL; | |
13692 | } | |
13693 | ||
13694 | ||
13695 | static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13696 | PyObject *resultobj; | |
13697 | wxDC *arg1 = (wxDC *) 0 ; | |
13698 | wxString *arg2 = 0 ; | |
13699 | wxArrayInt result; | |
13700 | bool temp2 = False ; | |
13701 | PyObject * obj0 = 0 ; | |
13702 | PyObject * obj1 = 0 ; | |
13703 | char *kwnames[] = { | |
13704 | (char *) "self",(char *) "text", NULL | |
13705 | }; | |
13706 | ||
13707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail; | |
13708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13710 | { | |
13711 | arg2 = wxString_in_helper(obj1); | |
13712 | if (arg2 == NULL) SWIG_fail; | |
13713 | temp2 = True; | |
13714 | } | |
13715 | { | |
13716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13717 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
13718 | ||
13719 | wxPyEndAllowThreads(__tstate); | |
13720 | if (PyErr_Occurred()) SWIG_fail; | |
13721 | } | |
13722 | { | |
13723 | resultobj = PyList_New(0); | |
13724 | size_t idx; | |
13725 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
13726 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
13727 | PyList_Append(resultobj, val); | |
13728 | Py_DECREF(val); | |
13729 | } | |
13730 | } | |
13731 | { | |
13732 | if (temp2) | |
13733 | delete arg2; | |
13734 | } | |
13735 | return resultobj; | |
13736 | fail: | |
13737 | { | |
13738 | if (temp2) | |
13739 | delete arg2; | |
13740 | } | |
13741 | return NULL; | |
13742 | } | |
13743 | ||
13744 | ||
13745 | static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13746 | PyObject *resultobj; | |
13747 | wxDC *arg1 = (wxDC *) 0 ; | |
13748 | wxSize result; | |
13749 | PyObject * obj0 = 0 ; | |
13750 | char *kwnames[] = { | |
13751 | (char *) "self", NULL | |
13752 | }; | |
13753 | ||
13754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail; | |
13755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13757 | { | |
13758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13759 | result = (arg1)->GetSize(); | |
13760 | ||
13761 | wxPyEndAllowThreads(__tstate); | |
13762 | if (PyErr_Occurred()) SWIG_fail; | |
13763 | } | |
13764 | { | |
13765 | wxSize * resultptr; | |
13766 | resultptr = new wxSize((wxSize &) result); | |
13767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13768 | } | |
13769 | return resultobj; | |
13770 | fail: | |
13771 | return NULL; | |
13772 | } | |
13773 | ||
13774 | ||
13775 | static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13776 | PyObject *resultobj; | |
13777 | wxDC *arg1 = (wxDC *) 0 ; | |
13778 | int *arg2 = (int *) 0 ; | |
13779 | int *arg3 = (int *) 0 ; | |
13780 | int temp2 ; | |
13781 | int temp3 ; | |
13782 | PyObject * obj0 = 0 ; | |
13783 | char *kwnames[] = { | |
13784 | (char *) "self", NULL | |
13785 | }; | |
13786 | ||
13787 | arg2 = &temp2; | |
13788 | arg3 = &temp3; | |
13789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail; | |
13790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13792 | { | |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13794 | (arg1)->GetSize(arg2,arg3); | |
13795 | ||
13796 | wxPyEndAllowThreads(__tstate); | |
13797 | if (PyErr_Occurred()) SWIG_fail; | |
13798 | } | |
13799 | Py_INCREF(Py_None); resultobj = Py_None; | |
13800 | { | |
13801 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13802 | resultobj = t_output_helper(resultobj,o); | |
13803 | } | |
13804 | { | |
13805 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13806 | resultobj = t_output_helper(resultobj,o); | |
13807 | } | |
13808 | return resultobj; | |
13809 | fail: | |
13810 | return NULL; | |
13811 | } | |
13812 | ||
13813 | ||
13814 | static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13815 | PyObject *resultobj; | |
13816 | wxDC *arg1 = (wxDC *) 0 ; | |
13817 | wxSize result; | |
13818 | PyObject * obj0 = 0 ; | |
13819 | char *kwnames[] = { | |
13820 | (char *) "self", NULL | |
13821 | }; | |
13822 | ||
13823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail; | |
13824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13826 | { | |
13827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13828 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
13829 | ||
13830 | wxPyEndAllowThreads(__tstate); | |
13831 | if (PyErr_Occurred()) SWIG_fail; | |
13832 | } | |
13833 | { | |
13834 | wxSize * resultptr; | |
13835 | resultptr = new wxSize((wxSize &) result); | |
13836 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13837 | } | |
13838 | return resultobj; | |
13839 | fail: | |
13840 | return NULL; | |
13841 | } | |
13842 | ||
13843 | ||
13844 | static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13845 | PyObject *resultobj; | |
13846 | wxDC *arg1 = (wxDC *) 0 ; | |
13847 | int *arg2 = (int *) 0 ; | |
13848 | int *arg3 = (int *) 0 ; | |
13849 | int temp2 ; | |
13850 | int temp3 ; | |
13851 | PyObject * obj0 = 0 ; | |
13852 | char *kwnames[] = { | |
13853 | (char *) "self", NULL | |
13854 | }; | |
13855 | ||
13856 | arg2 = &temp2; | |
13857 | arg3 = &temp3; | |
13858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail; | |
13859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13861 | { | |
13862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13863 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
13864 | ||
13865 | wxPyEndAllowThreads(__tstate); | |
13866 | if (PyErr_Occurred()) SWIG_fail; | |
13867 | } | |
13868 | Py_INCREF(Py_None); resultobj = Py_None; | |
13869 | { | |
13870 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
13871 | resultobj = t_output_helper(resultobj,o); | |
13872 | } | |
13873 | { | |
13874 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
13875 | resultobj = t_output_helper(resultobj,o); | |
13876 | } | |
13877 | return resultobj; | |
13878 | fail: | |
13879 | return NULL; | |
13880 | } | |
13881 | ||
13882 | ||
13883 | static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13884 | PyObject *resultobj; | |
13885 | wxDC *arg1 = (wxDC *) 0 ; | |
13886 | int arg2 ; | |
13887 | int result; | |
13888 | PyObject * obj0 = 0 ; | |
13889 | PyObject * obj1 = 0 ; | |
13890 | char *kwnames[] = { | |
13891 | (char *) "self",(char *) "x", NULL | |
13892 | }; | |
13893 | ||
13894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail; | |
13895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13897 | arg2 = (int) SWIG_AsInt(obj1); | |
13898 | if (PyErr_Occurred()) SWIG_fail; | |
13899 | { | |
13900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13901 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
13902 | ||
13903 | wxPyEndAllowThreads(__tstate); | |
13904 | if (PyErr_Occurred()) SWIG_fail; | |
13905 | } | |
13906 | resultobj = SWIG_FromInt((int)result); | |
13907 | return resultobj; | |
13908 | fail: | |
13909 | return NULL; | |
13910 | } | |
13911 | ||
13912 | ||
13913 | static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13914 | PyObject *resultobj; | |
13915 | wxDC *arg1 = (wxDC *) 0 ; | |
13916 | int arg2 ; | |
13917 | int result; | |
13918 | PyObject * obj0 = 0 ; | |
13919 | PyObject * obj1 = 0 ; | |
13920 | char *kwnames[] = { | |
13921 | (char *) "self",(char *) "y", NULL | |
13922 | }; | |
13923 | ||
13924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail; | |
13925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13927 | arg2 = (int) SWIG_AsInt(obj1); | |
13928 | if (PyErr_Occurred()) SWIG_fail; | |
13929 | { | |
13930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13931 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
13932 | ||
13933 | wxPyEndAllowThreads(__tstate); | |
13934 | if (PyErr_Occurred()) SWIG_fail; | |
13935 | } | |
13936 | resultobj = SWIG_FromInt((int)result); | |
13937 | return resultobj; | |
13938 | fail: | |
13939 | return NULL; | |
13940 | } | |
13941 | ||
13942 | ||
13943 | static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13944 | PyObject *resultobj; | |
13945 | wxDC *arg1 = (wxDC *) 0 ; | |
13946 | int arg2 ; | |
13947 | int result; | |
13948 | PyObject * obj0 = 0 ; | |
13949 | PyObject * obj1 = 0 ; | |
13950 | char *kwnames[] = { | |
13951 | (char *) "self",(char *) "x", NULL | |
13952 | }; | |
13953 | ||
13954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail; | |
13955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13957 | arg2 = (int) SWIG_AsInt(obj1); | |
13958 | if (PyErr_Occurred()) SWIG_fail; | |
13959 | { | |
13960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13961 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
13962 | ||
13963 | wxPyEndAllowThreads(__tstate); | |
13964 | if (PyErr_Occurred()) SWIG_fail; | |
13965 | } | |
13966 | resultobj = SWIG_FromInt((int)result); | |
13967 | return resultobj; | |
13968 | fail: | |
13969 | return NULL; | |
13970 | } | |
13971 | ||
13972 | ||
13973 | static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13974 | PyObject *resultobj; | |
13975 | wxDC *arg1 = (wxDC *) 0 ; | |
13976 | int arg2 ; | |
13977 | int result; | |
13978 | PyObject * obj0 = 0 ; | |
13979 | PyObject * obj1 = 0 ; | |
13980 | char *kwnames[] = { | |
13981 | (char *) "self",(char *) "y", NULL | |
13982 | }; | |
13983 | ||
13984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail; | |
13985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
13986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13987 | arg2 = (int) SWIG_AsInt(obj1); | |
13988 | if (PyErr_Occurred()) SWIG_fail; | |
13989 | { | |
13990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13991 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
13992 | ||
13993 | wxPyEndAllowThreads(__tstate); | |
13994 | if (PyErr_Occurred()) SWIG_fail; | |
13995 | } | |
13996 | resultobj = SWIG_FromInt((int)result); | |
13997 | return resultobj; | |
13998 | fail: | |
13999 | return NULL; | |
14000 | } | |
14001 | ||
14002 | ||
14003 | static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14004 | PyObject *resultobj; | |
14005 | wxDC *arg1 = (wxDC *) 0 ; | |
14006 | int arg2 ; | |
14007 | int result; | |
14008 | PyObject * obj0 = 0 ; | |
14009 | PyObject * obj1 = 0 ; | |
14010 | char *kwnames[] = { | |
14011 | (char *) "self",(char *) "x", NULL | |
14012 | }; | |
14013 | ||
14014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail; | |
14015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14017 | arg2 = (int) SWIG_AsInt(obj1); | |
14018 | if (PyErr_Occurred()) SWIG_fail; | |
14019 | { | |
14020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14021 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
14022 | ||
14023 | wxPyEndAllowThreads(__tstate); | |
14024 | if (PyErr_Occurred()) SWIG_fail; | |
14025 | } | |
14026 | resultobj = SWIG_FromInt((int)result); | |
14027 | return resultobj; | |
14028 | fail: | |
14029 | return NULL; | |
14030 | } | |
14031 | ||
14032 | ||
14033 | static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14034 | PyObject *resultobj; | |
14035 | wxDC *arg1 = (wxDC *) 0 ; | |
14036 | int arg2 ; | |
14037 | int result; | |
14038 | PyObject * obj0 = 0 ; | |
14039 | PyObject * obj1 = 0 ; | |
14040 | char *kwnames[] = { | |
14041 | (char *) "self",(char *) "y", NULL | |
14042 | }; | |
14043 | ||
14044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail; | |
14045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14047 | arg2 = (int) SWIG_AsInt(obj1); | |
14048 | if (PyErr_Occurred()) SWIG_fail; | |
14049 | { | |
14050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14051 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
14052 | ||
14053 | wxPyEndAllowThreads(__tstate); | |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
14055 | } | |
14056 | resultobj = SWIG_FromInt((int)result); | |
14057 | return resultobj; | |
14058 | fail: | |
14059 | return NULL; | |
14060 | } | |
14061 | ||
14062 | ||
14063 | static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14064 | PyObject *resultobj; | |
14065 | wxDC *arg1 = (wxDC *) 0 ; | |
14066 | int arg2 ; | |
14067 | int result; | |
14068 | PyObject * obj0 = 0 ; | |
14069 | PyObject * obj1 = 0 ; | |
14070 | char *kwnames[] = { | |
14071 | (char *) "self",(char *) "x", NULL | |
14072 | }; | |
14073 | ||
14074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail; | |
14075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14077 | arg2 = (int) SWIG_AsInt(obj1); | |
14078 | if (PyErr_Occurred()) SWIG_fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
14086 | resultobj = SWIG_FromInt((int)result); | |
14087 | return resultobj; | |
14088 | fail: | |
14089 | return NULL; | |
14090 | } | |
14091 | ||
14092 | ||
14093 | static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14094 | PyObject *resultobj; | |
14095 | wxDC *arg1 = (wxDC *) 0 ; | |
14096 | int arg2 ; | |
14097 | int result; | |
14098 | PyObject * obj0 = 0 ; | |
14099 | PyObject * obj1 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self",(char *) "y", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail; | |
14105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14107 | arg2 = (int) SWIG_AsInt(obj1); | |
14108 | if (PyErr_Occurred()) SWIG_fail; | |
14109 | { | |
14110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14111 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
14112 | ||
14113 | wxPyEndAllowThreads(__tstate); | |
14114 | if (PyErr_Occurred()) SWIG_fail; | |
14115 | } | |
14116 | resultobj = SWIG_FromInt((int)result); | |
14117 | return resultobj; | |
14118 | fail: | |
14119 | return NULL; | |
14120 | } | |
14121 | ||
14122 | ||
14123 | static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14124 | PyObject *resultobj; | |
14125 | wxDC *arg1 = (wxDC *) 0 ; | |
14126 | bool result; | |
14127 | PyObject * obj0 = 0 ; | |
14128 | char *kwnames[] = { | |
14129 | (char *) "self", NULL | |
14130 | }; | |
14131 | ||
14132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail; | |
14133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14135 | { | |
14136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14137 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
14138 | ||
14139 | wxPyEndAllowThreads(__tstate); | |
14140 | if (PyErr_Occurred()) SWIG_fail; | |
14141 | } | |
14142 | { | |
14143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14144 | } | |
14145 | return resultobj; | |
14146 | fail: | |
14147 | return NULL; | |
14148 | } | |
14149 | ||
14150 | ||
14151 | static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14152 | PyObject *resultobj; | |
14153 | wxDC *arg1 = (wxDC *) 0 ; | |
14154 | bool result; | |
14155 | PyObject * obj0 = 0 ; | |
14156 | char *kwnames[] = { | |
14157 | (char *) "self", NULL | |
14158 | }; | |
14159 | ||
14160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail; | |
14161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14163 | { | |
14164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14165 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
14166 | ||
14167 | wxPyEndAllowThreads(__tstate); | |
14168 | if (PyErr_Occurred()) SWIG_fail; | |
14169 | } | |
14170 | { | |
14171 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14172 | } | |
14173 | return resultobj; | |
14174 | fail: | |
14175 | return NULL; | |
14176 | } | |
14177 | ||
14178 | ||
14179 | static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14180 | PyObject *resultobj; | |
14181 | wxDC *arg1 = (wxDC *) 0 ; | |
14182 | int result; | |
14183 | PyObject * obj0 = 0 ; | |
14184 | char *kwnames[] = { | |
14185 | (char *) "self", NULL | |
14186 | }; | |
14187 | ||
14188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail; | |
14189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14191 | { | |
14192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14193 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
14194 | ||
14195 | wxPyEndAllowThreads(__tstate); | |
14196 | if (PyErr_Occurred()) SWIG_fail; | |
14197 | } | |
14198 | resultobj = SWIG_FromInt((int)result); | |
14199 | return resultobj; | |
14200 | fail: | |
14201 | return NULL; | |
14202 | } | |
14203 | ||
14204 | ||
14205 | static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14206 | PyObject *resultobj; | |
14207 | wxDC *arg1 = (wxDC *) 0 ; | |
14208 | wxSize result; | |
14209 | PyObject * obj0 = 0 ; | |
14210 | char *kwnames[] = { | |
14211 | (char *) "self", NULL | |
14212 | }; | |
14213 | ||
14214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail; | |
14215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14217 | { | |
14218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14219 | result = ((wxDC const *)arg1)->GetPPI(); | |
14220 | ||
14221 | wxPyEndAllowThreads(__tstate); | |
14222 | if (PyErr_Occurred()) SWIG_fail; | |
14223 | } | |
14224 | { | |
14225 | wxSize * resultptr; | |
14226 | resultptr = new wxSize((wxSize &) result); | |
14227 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14228 | } | |
14229 | return resultobj; | |
14230 | fail: | |
14231 | return NULL; | |
14232 | } | |
14233 | ||
14234 | ||
14235 | static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14236 | PyObject *resultobj; | |
14237 | wxDC *arg1 = (wxDC *) 0 ; | |
14238 | bool result; | |
14239 | PyObject * obj0 = 0 ; | |
14240 | char *kwnames[] = { | |
14241 | (char *) "self", NULL | |
14242 | }; | |
14243 | ||
14244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail; | |
14245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14247 | { | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | result = (bool)((wxDC const *)arg1)->Ok(); | |
14250 | ||
14251 | wxPyEndAllowThreads(__tstate); | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | } | |
14254 | { | |
14255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14256 | } | |
14257 | return resultobj; | |
14258 | fail: | |
14259 | return NULL; | |
14260 | } | |
14261 | ||
14262 | ||
14263 | static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14264 | PyObject *resultobj; | |
14265 | wxDC *arg1 = (wxDC *) 0 ; | |
14266 | int result; | |
14267 | PyObject * obj0 = 0 ; | |
14268 | char *kwnames[] = { | |
14269 | (char *) "self", NULL | |
14270 | }; | |
14271 | ||
14272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail; | |
14273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14275 | { | |
14276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14277 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
14278 | ||
14279 | wxPyEndAllowThreads(__tstate); | |
14280 | if (PyErr_Occurred()) SWIG_fail; | |
14281 | } | |
14282 | resultobj = SWIG_FromInt((int)result); | |
14283 | return resultobj; | |
14284 | fail: | |
14285 | return NULL; | |
14286 | } | |
14287 | ||
14288 | ||
14289 | static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14290 | PyObject *resultobj; | |
14291 | wxDC *arg1 = (wxDC *) 0 ; | |
14292 | wxBrush *result; | |
14293 | PyObject * obj0 = 0 ; | |
14294 | char *kwnames[] = { | |
14295 | (char *) "self", NULL | |
14296 | }; | |
14297 | ||
14298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail; | |
14299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14301 | { | |
14302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14303 | { | |
14304 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); | |
14305 | result = (wxBrush *) &_result_ref; | |
14306 | } | |
14307 | ||
14308 | wxPyEndAllowThreads(__tstate); | |
14309 | if (PyErr_Occurred()) SWIG_fail; | |
14310 | } | |
14311 | { | |
14312 | wxBrush* resultptr = new wxBrush(*result); | |
14313 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14314 | } | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxDC *arg1 = (wxDC *) 0 ; | |
14324 | wxBrush *result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "self", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14333 | { | |
14334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14335 | { | |
14336 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); | |
14337 | result = (wxBrush *) &_result_ref; | |
14338 | } | |
14339 | ||
14340 | wxPyEndAllowThreads(__tstate); | |
14341 | if (PyErr_Occurred()) SWIG_fail; | |
14342 | } | |
14343 | { | |
14344 | wxBrush* resultptr = new wxBrush(*result); | |
14345 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
14346 | } | |
14347 | return resultobj; | |
14348 | fail: | |
14349 | return NULL; | |
14350 | } | |
14351 | ||
14352 | ||
14353 | static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14354 | PyObject *resultobj; | |
14355 | wxDC *arg1 = (wxDC *) 0 ; | |
14356 | wxFont *result; | |
14357 | PyObject * obj0 = 0 ; | |
14358 | char *kwnames[] = { | |
14359 | (char *) "self", NULL | |
14360 | }; | |
14361 | ||
14362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail; | |
14363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14365 | { | |
14366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14367 | { | |
14368 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); | |
14369 | result = (wxFont *) &_result_ref; | |
14370 | } | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | { | |
14376 | wxFont* resultptr = new wxFont(*result); | |
14377 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
14378 | } | |
14379 | return resultobj; | |
14380 | fail: | |
14381 | return NULL; | |
14382 | } | |
14383 | ||
14384 | ||
14385 | static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14386 | PyObject *resultobj; | |
14387 | wxDC *arg1 = (wxDC *) 0 ; | |
14388 | wxPen *result; | |
14389 | PyObject * obj0 = 0 ; | |
14390 | char *kwnames[] = { | |
14391 | (char *) "self", NULL | |
14392 | }; | |
14393 | ||
14394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail; | |
14395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14397 | { | |
14398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14399 | { | |
14400 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); | |
14401 | result = (wxPen *) &_result_ref; | |
14402 | } | |
14403 | ||
14404 | wxPyEndAllowThreads(__tstate); | |
14405 | if (PyErr_Occurred()) SWIG_fail; | |
14406 | } | |
14407 | { | |
14408 | wxPen* resultptr = new wxPen(*result); | |
14409 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
14410 | } | |
14411 | return resultobj; | |
14412 | fail: | |
14413 | return NULL; | |
14414 | } | |
14415 | ||
14416 | ||
14417 | static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14418 | PyObject *resultobj; | |
14419 | wxDC *arg1 = (wxDC *) 0 ; | |
14420 | wxColour *result; | |
14421 | PyObject * obj0 = 0 ; | |
14422 | char *kwnames[] = { | |
14423 | (char *) "self", NULL | |
14424 | }; | |
14425 | ||
14426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",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 | { | |
14432 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); | |
14433 | result = (wxColour *) &_result_ref; | |
14434 | } | |
14435 | ||
14436 | wxPyEndAllowThreads(__tstate); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
14439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14440 | return resultobj; | |
14441 | fail: | |
14442 | return NULL; | |
14443 | } | |
14444 | ||
14445 | ||
14446 | static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14447 | PyObject *resultobj; | |
14448 | wxDC *arg1 = (wxDC *) 0 ; | |
14449 | wxColour *result; | |
14450 | PyObject * obj0 = 0 ; | |
14451 | char *kwnames[] = { | |
14452 | (char *) "self", NULL | |
14453 | }; | |
14454 | ||
14455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail; | |
14456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14458 | { | |
14459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14460 | { | |
14461 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); | |
14462 | result = (wxColour *) &_result_ref; | |
14463 | } | |
14464 | ||
14465 | wxPyEndAllowThreads(__tstate); | |
14466 | if (PyErr_Occurred()) SWIG_fail; | |
14467 | } | |
14468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
14469 | return resultobj; | |
14470 | fail: | |
14471 | return NULL; | |
14472 | } | |
14473 | ||
14474 | ||
14475 | static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14476 | PyObject *resultobj; | |
14477 | wxDC *arg1 = (wxDC *) 0 ; | |
14478 | wxColour *arg2 = 0 ; | |
14479 | wxColour temp2 ; | |
14480 | PyObject * obj0 = 0 ; | |
14481 | PyObject * obj1 = 0 ; | |
14482 | char *kwnames[] = { | |
14483 | (char *) "self",(char *) "colour", NULL | |
14484 | }; | |
14485 | ||
14486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail; | |
14487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14489 | { | |
14490 | arg2 = &temp2; | |
14491 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14492 | } | |
14493 | { | |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
14500 | Py_INCREF(Py_None); resultobj = Py_None; | |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxDC *arg1 = (wxDC *) 0 ; | |
14510 | wxColour *arg2 = 0 ; | |
14511 | wxColour temp2 ; | |
14512 | PyObject * obj0 = 0 ; | |
14513 | PyObject * obj1 = 0 ; | |
14514 | char *kwnames[] = { | |
14515 | (char *) "self",(char *) "colour", NULL | |
14516 | }; | |
14517 | ||
14518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail; | |
14519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14521 | { | |
14522 | arg2 = &temp2; | |
14523 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
14524 | } | |
14525 | { | |
14526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14527 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
14528 | ||
14529 | wxPyEndAllowThreads(__tstate); | |
14530 | if (PyErr_Occurred()) SWIG_fail; | |
14531 | } | |
14532 | Py_INCREF(Py_None); resultobj = Py_None; | |
14533 | return resultobj; | |
14534 | fail: | |
14535 | return NULL; | |
14536 | } | |
14537 | ||
14538 | ||
14539 | static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14540 | PyObject *resultobj; | |
14541 | wxDC *arg1 = (wxDC *) 0 ; | |
14542 | int result; | |
14543 | PyObject * obj0 = 0 ; | |
14544 | char *kwnames[] = { | |
14545 | (char *) "self", NULL | |
14546 | }; | |
14547 | ||
14548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail; | |
14549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14551 | { | |
14552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14553 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
14554 | ||
14555 | wxPyEndAllowThreads(__tstate); | |
14556 | if (PyErr_Occurred()) SWIG_fail; | |
14557 | } | |
14558 | resultobj = SWIG_FromInt((int)result); | |
14559 | return resultobj; | |
14560 | fail: | |
14561 | return NULL; | |
14562 | } | |
14563 | ||
14564 | ||
14565 | static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14566 | PyObject *resultobj; | |
14567 | wxDC *arg1 = (wxDC *) 0 ; | |
14568 | int arg2 ; | |
14569 | PyObject * obj0 = 0 ; | |
14570 | PyObject * obj1 = 0 ; | |
14571 | char *kwnames[] = { | |
14572 | (char *) "self",(char *) "mode", NULL | |
14573 | }; | |
14574 | ||
14575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail; | |
14576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14578 | arg2 = (int) SWIG_AsInt(obj1); | |
14579 | if (PyErr_Occurred()) SWIG_fail; | |
14580 | { | |
14581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14582 | (arg1)->SetMapMode(arg2); | |
14583 | ||
14584 | wxPyEndAllowThreads(__tstate); | |
14585 | if (PyErr_Occurred()) SWIG_fail; | |
14586 | } | |
14587 | Py_INCREF(Py_None); resultobj = Py_None; | |
14588 | return resultobj; | |
14589 | fail: | |
14590 | return NULL; | |
14591 | } | |
14592 | ||
14593 | ||
14594 | static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14595 | PyObject *resultobj; | |
14596 | wxDC *arg1 = (wxDC *) 0 ; | |
14597 | double *arg2 = (double *) 0 ; | |
14598 | double *arg3 = (double *) 0 ; | |
14599 | double temp2 ; | |
14600 | double temp3 ; | |
14601 | PyObject * obj0 = 0 ; | |
14602 | char *kwnames[] = { | |
14603 | (char *) "self", NULL | |
14604 | }; | |
14605 | ||
14606 | arg2 = &temp2; | |
14607 | arg3 = &temp3; | |
14608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail; | |
14609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14611 | { | |
14612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14613 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
14614 | ||
14615 | wxPyEndAllowThreads(__tstate); | |
14616 | if (PyErr_Occurred()) SWIG_fail; | |
14617 | } | |
14618 | Py_INCREF(Py_None); resultobj = Py_None; | |
14619 | { | |
14620 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14621 | resultobj = t_output_helper(resultobj,o); | |
14622 | } | |
14623 | { | |
14624 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14625 | resultobj = t_output_helper(resultobj,o); | |
14626 | } | |
14627 | return resultobj; | |
14628 | fail: | |
14629 | return NULL; | |
14630 | } | |
14631 | ||
14632 | ||
14633 | static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14634 | PyObject *resultobj; | |
14635 | wxDC *arg1 = (wxDC *) 0 ; | |
14636 | double arg2 ; | |
14637 | double arg3 ; | |
14638 | PyObject * obj0 = 0 ; | |
14639 | PyObject * obj1 = 0 ; | |
14640 | PyObject * obj2 = 0 ; | |
14641 | char *kwnames[] = { | |
14642 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14643 | }; | |
14644 | ||
14645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14648 | arg2 = (double) SWIG_AsDouble(obj1); | |
14649 | if (PyErr_Occurred()) SWIG_fail; | |
14650 | arg3 = (double) SWIG_AsDouble(obj2); | |
14651 | if (PyErr_Occurred()) SWIG_fail; | |
14652 | { | |
14653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14654 | (arg1)->SetUserScale(arg2,arg3); | |
14655 | ||
14656 | wxPyEndAllowThreads(__tstate); | |
14657 | if (PyErr_Occurred()) SWIG_fail; | |
14658 | } | |
14659 | Py_INCREF(Py_None); resultobj = Py_None; | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
14666 | static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14667 | PyObject *resultobj; | |
14668 | wxDC *arg1 = (wxDC *) 0 ; | |
14669 | double *arg2 = (double *) 0 ; | |
14670 | double *arg3 = (double *) 0 ; | |
14671 | double temp2 ; | |
14672 | double temp3 ; | |
14673 | PyObject * obj0 = 0 ; | |
14674 | char *kwnames[] = { | |
14675 | (char *) "self", NULL | |
14676 | }; | |
14677 | ||
14678 | arg2 = &temp2; | |
14679 | arg3 = &temp3; | |
14680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail; | |
14681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14683 | { | |
14684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14685 | (arg1)->GetLogicalScale(arg2,arg3); | |
14686 | ||
14687 | wxPyEndAllowThreads(__tstate); | |
14688 | if (PyErr_Occurred()) SWIG_fail; | |
14689 | } | |
14690 | Py_INCREF(Py_None); resultobj = Py_None; | |
14691 | { | |
14692 | PyObject *o = PyFloat_FromDouble((double) (*arg2)); | |
14693 | resultobj = t_output_helper(resultobj,o); | |
14694 | } | |
14695 | { | |
14696 | PyObject *o = PyFloat_FromDouble((double) (*arg3)); | |
14697 | resultobj = t_output_helper(resultobj,o); | |
14698 | } | |
14699 | return resultobj; | |
14700 | fail: | |
14701 | return NULL; | |
14702 | } | |
14703 | ||
14704 | ||
14705 | static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14706 | PyObject *resultobj; | |
14707 | wxDC *arg1 = (wxDC *) 0 ; | |
14708 | double arg2 ; | |
14709 | double arg3 ; | |
14710 | PyObject * obj0 = 0 ; | |
14711 | PyObject * obj1 = 0 ; | |
14712 | PyObject * obj2 = 0 ; | |
14713 | char *kwnames[] = { | |
14714 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14715 | }; | |
14716 | ||
14717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14720 | arg2 = (double) SWIG_AsDouble(obj1); | |
14721 | if (PyErr_Occurred()) SWIG_fail; | |
14722 | arg3 = (double) SWIG_AsDouble(obj2); | |
14723 | if (PyErr_Occurred()) SWIG_fail; | |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | (arg1)->SetLogicalScale(arg2,arg3); | |
14727 | ||
14728 | wxPyEndAllowThreads(__tstate); | |
14729 | if (PyErr_Occurred()) SWIG_fail; | |
14730 | } | |
14731 | Py_INCREF(Py_None); resultobj = Py_None; | |
14732 | return resultobj; | |
14733 | fail: | |
14734 | return NULL; | |
14735 | } | |
14736 | ||
14737 | ||
14738 | static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14739 | PyObject *resultobj; | |
14740 | wxDC *arg1 = (wxDC *) 0 ; | |
14741 | wxPoint result; | |
14742 | PyObject * obj0 = 0 ; | |
14743 | char *kwnames[] = { | |
14744 | (char *) "self", NULL | |
14745 | }; | |
14746 | ||
14747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail; | |
14748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14750 | { | |
14751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14752 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
14753 | ||
14754 | wxPyEndAllowThreads(__tstate); | |
14755 | if (PyErr_Occurred()) SWIG_fail; | |
14756 | } | |
14757 | { | |
14758 | wxPoint * resultptr; | |
14759 | resultptr = new wxPoint((wxPoint &) result); | |
14760 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14761 | } | |
14762 | return resultobj; | |
14763 | fail: | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
14768 | static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | wxDC *arg1 = (wxDC *) 0 ; | |
14771 | int *arg2 = (int *) 0 ; | |
14772 | int *arg3 = (int *) 0 ; | |
14773 | int temp2 ; | |
14774 | int temp3 ; | |
14775 | PyObject * obj0 = 0 ; | |
14776 | char *kwnames[] = { | |
14777 | (char *) "self", NULL | |
14778 | }; | |
14779 | ||
14780 | arg2 = &temp2; | |
14781 | arg3 = &temp3; | |
14782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail; | |
14783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14785 | { | |
14786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14787 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
14788 | ||
14789 | wxPyEndAllowThreads(__tstate); | |
14790 | if (PyErr_Occurred()) SWIG_fail; | |
14791 | } | |
14792 | Py_INCREF(Py_None); resultobj = Py_None; | |
14793 | { | |
14794 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14795 | resultobj = t_output_helper(resultobj,o); | |
14796 | } | |
14797 | { | |
14798 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14799 | resultobj = t_output_helper(resultobj,o); | |
14800 | } | |
14801 | return resultobj; | |
14802 | fail: | |
14803 | return NULL; | |
14804 | } | |
14805 | ||
14806 | ||
14807 | static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14808 | PyObject *resultobj; | |
14809 | wxDC *arg1 = (wxDC *) 0 ; | |
14810 | int arg2 ; | |
14811 | int arg3 ; | |
14812 | PyObject * obj0 = 0 ; | |
14813 | PyObject * obj1 = 0 ; | |
14814 | PyObject * obj2 = 0 ; | |
14815 | char *kwnames[] = { | |
14816 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14817 | }; | |
14818 | ||
14819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14822 | arg2 = (int) SWIG_AsInt(obj1); | |
14823 | if (PyErr_Occurred()) SWIG_fail; | |
14824 | arg3 = (int) SWIG_AsInt(obj2); | |
14825 | if (PyErr_Occurred()) SWIG_fail; | |
14826 | { | |
14827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14828 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
14829 | ||
14830 | wxPyEndAllowThreads(__tstate); | |
14831 | if (PyErr_Occurred()) SWIG_fail; | |
14832 | } | |
14833 | Py_INCREF(Py_None); resultobj = Py_None; | |
14834 | return resultobj; | |
14835 | fail: | |
14836 | return NULL; | |
14837 | } | |
14838 | ||
14839 | ||
c24da6d6 RD |
14840 | static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14841 | PyObject *resultobj; | |
14842 | wxDC *arg1 = (wxDC *) 0 ; | |
14843 | wxPoint *arg2 = 0 ; | |
14844 | wxPoint temp2 ; | |
14845 | PyObject * obj0 = 0 ; | |
14846 | PyObject * obj1 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self",(char *) "point", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14854 | { | |
14855 | arg2 = &temp2; | |
14856 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14857 | } | |
14858 | { | |
14859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14860 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
14861 | ||
14862 | wxPyEndAllowThreads(__tstate); | |
14863 | if (PyErr_Occurred()) SWIG_fail; | |
14864 | } | |
14865 | Py_INCREF(Py_None); resultobj = Py_None; | |
14866 | return resultobj; | |
14867 | fail: | |
14868 | return NULL; | |
14869 | } | |
14870 | ||
14871 | ||
d55e5bfc RD |
14872 | static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
14873 | PyObject *resultobj; | |
14874 | wxDC *arg1 = (wxDC *) 0 ; | |
14875 | wxPoint result; | |
14876 | PyObject * obj0 = 0 ; | |
14877 | char *kwnames[] = { | |
14878 | (char *) "self", NULL | |
14879 | }; | |
14880 | ||
14881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail; | |
14882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14884 | { | |
14885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14886 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
14887 | ||
14888 | wxPyEndAllowThreads(__tstate); | |
14889 | if (PyErr_Occurred()) SWIG_fail; | |
14890 | } | |
14891 | { | |
14892 | wxPoint * resultptr; | |
14893 | resultptr = new wxPoint((wxPoint &) result); | |
14894 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14895 | } | |
14896 | return resultobj; | |
14897 | fail: | |
14898 | return NULL; | |
14899 | } | |
14900 | ||
14901 | ||
14902 | static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14903 | PyObject *resultobj; | |
14904 | wxDC *arg1 = (wxDC *) 0 ; | |
14905 | int *arg2 = (int *) 0 ; | |
14906 | int *arg3 = (int *) 0 ; | |
14907 | int temp2 ; | |
14908 | int temp3 ; | |
14909 | PyObject * obj0 = 0 ; | |
14910 | char *kwnames[] = { | |
14911 | (char *) "self", NULL | |
14912 | }; | |
14913 | ||
14914 | arg2 = &temp2; | |
14915 | arg3 = &temp3; | |
14916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail; | |
14917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
14922 | ||
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | Py_INCREF(Py_None); resultobj = Py_None; | |
14927 | { | |
14928 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14929 | resultobj = t_output_helper(resultobj,o); | |
14930 | } | |
14931 | { | |
14932 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14933 | resultobj = t_output_helper(resultobj,o); | |
14934 | } | |
14935 | return resultobj; | |
14936 | fail: | |
14937 | return NULL; | |
14938 | } | |
14939 | ||
14940 | ||
14941 | static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14942 | PyObject *resultobj; | |
14943 | wxDC *arg1 = (wxDC *) 0 ; | |
14944 | int arg2 ; | |
14945 | int arg3 ; | |
14946 | PyObject * obj0 = 0 ; | |
14947 | PyObject * obj1 = 0 ; | |
14948 | PyObject * obj2 = 0 ; | |
14949 | char *kwnames[] = { | |
14950 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14951 | }; | |
14952 | ||
14953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14956 | arg2 = (int) SWIG_AsInt(obj1); | |
14957 | if (PyErr_Occurred()) SWIG_fail; | |
14958 | arg3 = (int) SWIG_AsInt(obj2); | |
14959 | if (PyErr_Occurred()) SWIG_fail; | |
14960 | { | |
14961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14962 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
14963 | ||
14964 | wxPyEndAllowThreads(__tstate); | |
14965 | if (PyErr_Occurred()) SWIG_fail; | |
14966 | } | |
14967 | Py_INCREF(Py_None); resultobj = Py_None; | |
14968 | return resultobj; | |
14969 | fail: | |
14970 | return NULL; | |
14971 | } | |
14972 | ||
14973 | ||
c24da6d6 RD |
14974 | static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
14975 | PyObject *resultobj; | |
14976 | wxDC *arg1 = (wxDC *) 0 ; | |
14977 | wxPoint *arg2 = 0 ; | |
14978 | wxPoint temp2 ; | |
14979 | PyObject * obj0 = 0 ; | |
14980 | PyObject * obj1 = 0 ; | |
14981 | char *kwnames[] = { | |
14982 | (char *) "self",(char *) "point", NULL | |
14983 | }; | |
14984 | ||
14985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail; | |
14986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
14987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14988 | { | |
14989 | arg2 = &temp2; | |
14990 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14991 | } | |
14992 | { | |
14993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14994 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
14995 | ||
14996 | wxPyEndAllowThreads(__tstate); | |
14997 | if (PyErr_Occurred()) SWIG_fail; | |
14998 | } | |
14999 | Py_INCREF(Py_None); resultobj = Py_None; | |
15000 | return resultobj; | |
15001 | fail: | |
15002 | return NULL; | |
15003 | } | |
15004 | ||
15005 | ||
d55e5bfc RD |
15006 | static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
15007 | PyObject *resultobj; | |
15008 | wxDC *arg1 = (wxDC *) 0 ; | |
15009 | bool arg2 ; | |
15010 | bool arg3 ; | |
15011 | PyObject * obj0 = 0 ; | |
15012 | PyObject * obj1 = 0 ; | |
15013 | PyObject * obj2 = 0 ; | |
15014 | char *kwnames[] = { | |
15015 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
15016 | }; | |
15017 | ||
15018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15021 | arg2 = (bool) SWIG_AsBool(obj1); | |
15022 | if (PyErr_Occurred()) SWIG_fail; | |
15023 | arg3 = (bool) SWIG_AsBool(obj2); | |
15024 | if (PyErr_Occurred()) SWIG_fail; | |
15025 | { | |
15026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15027 | (arg1)->SetAxisOrientation(arg2,arg3); | |
15028 | ||
15029 | wxPyEndAllowThreads(__tstate); | |
15030 | if (PyErr_Occurred()) SWIG_fail; | |
15031 | } | |
15032 | Py_INCREF(Py_None); resultobj = Py_None; | |
15033 | return resultobj; | |
15034 | fail: | |
15035 | return NULL; | |
15036 | } | |
15037 | ||
15038 | ||
15039 | static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15040 | PyObject *resultobj; | |
15041 | wxDC *arg1 = (wxDC *) 0 ; | |
15042 | int result; | |
15043 | PyObject * obj0 = 0 ; | |
15044 | char *kwnames[] = { | |
15045 | (char *) "self", NULL | |
15046 | }; | |
15047 | ||
15048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail; | |
15049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15051 | { | |
15052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15053 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
15054 | ||
15055 | wxPyEndAllowThreads(__tstate); | |
15056 | if (PyErr_Occurred()) SWIG_fail; | |
15057 | } | |
15058 | resultobj = SWIG_FromInt((int)result); | |
15059 | return resultobj; | |
15060 | fail: | |
15061 | return NULL; | |
15062 | } | |
15063 | ||
15064 | ||
15065 | static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15066 | PyObject *resultobj; | |
15067 | wxDC *arg1 = (wxDC *) 0 ; | |
15068 | int arg2 ; | |
15069 | PyObject * obj0 = 0 ; | |
15070 | PyObject * obj1 = 0 ; | |
15071 | char *kwnames[] = { | |
15072 | (char *) "self",(char *) "function", NULL | |
15073 | }; | |
15074 | ||
15075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail; | |
15076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15078 | arg2 = (int) SWIG_AsInt(obj1); | |
15079 | if (PyErr_Occurred()) SWIG_fail; | |
15080 | { | |
15081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15082 | (arg1)->SetLogicalFunction(arg2); | |
15083 | ||
15084 | wxPyEndAllowThreads(__tstate); | |
15085 | if (PyErr_Occurred()) SWIG_fail; | |
15086 | } | |
15087 | Py_INCREF(Py_None); resultobj = Py_None; | |
15088 | return resultobj; | |
15089 | fail: | |
15090 | return NULL; | |
15091 | } | |
15092 | ||
15093 | ||
15094 | static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15095 | PyObject *resultobj; | |
15096 | wxDC *arg1 = (wxDC *) 0 ; | |
15097 | bool arg2 ; | |
15098 | PyObject * obj0 = 0 ; | |
15099 | PyObject * obj1 = 0 ; | |
15100 | char *kwnames[] = { | |
15101 | (char *) "self",(char *) "opt", NULL | |
15102 | }; | |
15103 | ||
15104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail; | |
15105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15107 | arg2 = (bool) SWIG_AsBool(obj1); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | { | |
15110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15111 | (arg1)->SetOptimization(arg2); | |
15112 | ||
15113 | wxPyEndAllowThreads(__tstate); | |
15114 | if (PyErr_Occurred()) SWIG_fail; | |
15115 | } | |
15116 | Py_INCREF(Py_None); resultobj = Py_None; | |
15117 | return resultobj; | |
15118 | fail: | |
15119 | return NULL; | |
15120 | } | |
15121 | ||
15122 | ||
15123 | static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15124 | PyObject *resultobj; | |
15125 | wxDC *arg1 = (wxDC *) 0 ; | |
15126 | bool result; | |
15127 | PyObject * obj0 = 0 ; | |
15128 | char *kwnames[] = { | |
15129 | (char *) "self", NULL | |
15130 | }; | |
15131 | ||
15132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail; | |
15133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15135 | { | |
15136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15137 | result = (bool)(arg1)->GetOptimization(); | |
15138 | ||
15139 | wxPyEndAllowThreads(__tstate); | |
15140 | if (PyErr_Occurred()) SWIG_fail; | |
15141 | } | |
15142 | { | |
15143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15144 | } | |
15145 | return resultobj; | |
15146 | fail: | |
15147 | return NULL; | |
15148 | } | |
15149 | ||
15150 | ||
15151 | static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15152 | PyObject *resultobj; | |
15153 | wxDC *arg1 = (wxDC *) 0 ; | |
15154 | int arg2 ; | |
15155 | int arg3 ; | |
15156 | PyObject * obj0 = 0 ; | |
15157 | PyObject * obj1 = 0 ; | |
15158 | PyObject * obj2 = 0 ; | |
15159 | char *kwnames[] = { | |
15160 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15161 | }; | |
15162 | ||
15163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15166 | arg2 = (int) SWIG_AsInt(obj1); | |
15167 | if (PyErr_Occurred()) SWIG_fail; | |
15168 | arg3 = (int) SWIG_AsInt(obj2); | |
15169 | if (PyErr_Occurred()) SWIG_fail; | |
15170 | { | |
15171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15172 | (arg1)->CalcBoundingBox(arg2,arg3); | |
15173 | ||
15174 | wxPyEndAllowThreads(__tstate); | |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
15176 | } | |
15177 | Py_INCREF(Py_None); resultobj = Py_None; | |
15178 | return resultobj; | |
15179 | fail: | |
15180 | return NULL; | |
15181 | } | |
15182 | ||
15183 | ||
c24da6d6 RD |
15184 | static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
15185 | PyObject *resultobj; | |
15186 | wxDC *arg1 = (wxDC *) 0 ; | |
15187 | wxPoint *arg2 = 0 ; | |
15188 | wxPoint temp2 ; | |
15189 | PyObject * obj0 = 0 ; | |
15190 | PyObject * obj1 = 0 ; | |
15191 | char *kwnames[] = { | |
15192 | (char *) "self",(char *) "point", NULL | |
15193 | }; | |
15194 | ||
15195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail; | |
15196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15198 | { | |
15199 | arg2 = &temp2; | |
15200 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15201 | } | |
15202 | { | |
15203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15204 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
15205 | ||
15206 | wxPyEndAllowThreads(__tstate); | |
15207 | if (PyErr_Occurred()) SWIG_fail; | |
15208 | } | |
15209 | Py_INCREF(Py_None); resultobj = Py_None; | |
15210 | return resultobj; | |
15211 | fail: | |
15212 | return NULL; | |
15213 | } | |
15214 | ||
15215 | ||
d55e5bfc RD |
15216 | static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
15217 | PyObject *resultobj; | |
15218 | wxDC *arg1 = (wxDC *) 0 ; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | char *kwnames[] = { | |
15221 | (char *) "self", NULL | |
15222 | }; | |
15223 | ||
15224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail; | |
15225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15227 | { | |
15228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15229 | (arg1)->ResetBoundingBox(); | |
15230 | ||
15231 | wxPyEndAllowThreads(__tstate); | |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
15233 | } | |
15234 | Py_INCREF(Py_None); resultobj = Py_None; | |
15235 | return resultobj; | |
15236 | fail: | |
15237 | return NULL; | |
15238 | } | |
15239 | ||
15240 | ||
15241 | static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15242 | PyObject *resultobj; | |
15243 | wxDC *arg1 = (wxDC *) 0 ; | |
15244 | int result; | |
15245 | PyObject * obj0 = 0 ; | |
15246 | char *kwnames[] = { | |
15247 | (char *) "self", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail; | |
15251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15253 | { | |
15254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15255 | result = (int)((wxDC const *)arg1)->MinX(); | |
15256 | ||
15257 | wxPyEndAllowThreads(__tstate); | |
15258 | if (PyErr_Occurred()) SWIG_fail; | |
15259 | } | |
15260 | resultobj = SWIG_FromInt((int)result); | |
15261 | return resultobj; | |
15262 | fail: | |
15263 | return NULL; | |
15264 | } | |
15265 | ||
15266 | ||
15267 | static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15268 | PyObject *resultobj; | |
15269 | wxDC *arg1 = (wxDC *) 0 ; | |
15270 | int result; | |
15271 | PyObject * obj0 = 0 ; | |
15272 | char *kwnames[] = { | |
15273 | (char *) "self", NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail; | |
15277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15279 | { | |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (int)((wxDC const *)arg1)->MaxX(); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
15286 | resultobj = SWIG_FromInt((int)result); | |
15287 | return resultobj; | |
15288 | fail: | |
15289 | return NULL; | |
15290 | } | |
15291 | ||
15292 | ||
15293 | static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15294 | PyObject *resultobj; | |
15295 | wxDC *arg1 = (wxDC *) 0 ; | |
15296 | int result; | |
15297 | PyObject * obj0 = 0 ; | |
15298 | char *kwnames[] = { | |
15299 | (char *) "self", NULL | |
15300 | }; | |
15301 | ||
15302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail; | |
15303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15305 | { | |
15306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15307 | result = (int)((wxDC const *)arg1)->MinY(); | |
15308 | ||
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
15312 | resultobj = SWIG_FromInt((int)result); | |
15313 | return resultobj; | |
15314 | fail: | |
15315 | return NULL; | |
15316 | } | |
15317 | ||
15318 | ||
15319 | static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15320 | PyObject *resultobj; | |
15321 | wxDC *arg1 = (wxDC *) 0 ; | |
15322 | int result; | |
15323 | PyObject * obj0 = 0 ; | |
15324 | char *kwnames[] = { | |
15325 | (char *) "self", NULL | |
15326 | }; | |
15327 | ||
15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail; | |
15329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15331 | { | |
15332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15333 | result = (int)((wxDC const *)arg1)->MaxY(); | |
15334 | ||
15335 | wxPyEndAllowThreads(__tstate); | |
15336 | if (PyErr_Occurred()) SWIG_fail; | |
15337 | } | |
15338 | resultobj = SWIG_FromInt((int)result); | |
15339 | return resultobj; | |
15340 | fail: | |
15341 | return NULL; | |
15342 | } | |
15343 | ||
15344 | ||
15345 | static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15346 | PyObject *resultobj; | |
15347 | wxDC *arg1 = (wxDC *) 0 ; | |
15348 | int *arg2 = (int *) 0 ; | |
15349 | int *arg3 = (int *) 0 ; | |
15350 | int *arg4 = (int *) 0 ; | |
15351 | int *arg5 = (int *) 0 ; | |
15352 | int temp2 ; | |
15353 | int temp3 ; | |
15354 | int temp4 ; | |
15355 | int temp5 ; | |
15356 | PyObject * obj0 = 0 ; | |
15357 | char *kwnames[] = { | |
15358 | (char *) "self", NULL | |
15359 | }; | |
15360 | ||
15361 | arg2 = &temp2; | |
15362 | arg3 = &temp3; | |
15363 | arg4 = &temp4; | |
15364 | arg5 = &temp5; | |
15365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail; | |
15366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15368 | { | |
15369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15370 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
15371 | ||
15372 | wxPyEndAllowThreads(__tstate); | |
15373 | if (PyErr_Occurred()) SWIG_fail; | |
15374 | } | |
15375 | Py_INCREF(Py_None); resultobj = Py_None; | |
15376 | { | |
15377 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15378 | resultobj = t_output_helper(resultobj,o); | |
15379 | } | |
15380 | { | |
15381 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15382 | resultobj = t_output_helper(resultobj,o); | |
15383 | } | |
15384 | { | |
15385 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
15386 | resultobj = t_output_helper(resultobj,o); | |
15387 | } | |
15388 | { | |
15389 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
15390 | resultobj = t_output_helper(resultobj,o); | |
15391 | } | |
15392 | return resultobj; | |
15393 | fail: | |
15394 | return NULL; | |
15395 | } | |
15396 | ||
15397 | ||
0439c23b RD |
15398 | static PyObject *_wrap_DC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
15399 | PyObject *resultobj; | |
15400 | wxDC *arg1 = (wxDC *) 0 ; | |
15401 | long result; | |
15402 | PyObject * obj0 = 0 ; | |
15403 | char *kwnames[] = { | |
15404 | (char *) "self", NULL | |
15405 | }; | |
15406 | ||
15407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail; | |
15408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15410 | { | |
15411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15412 | result = (long)(arg1)->GetHDC(); | |
15413 | ||
15414 | wxPyEndAllowThreads(__tstate); | |
15415 | if (PyErr_Occurred()) SWIG_fail; | |
15416 | } | |
15417 | resultobj = SWIG_FromLong((long)result); | |
15418 | return resultobj; | |
15419 | fail: | |
15420 | return NULL; | |
15421 | } | |
15422 | ||
15423 | ||
d55e5bfc RD |
15424 | static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { |
15425 | PyObject *resultobj; | |
15426 | wxDC *arg1 = (wxDC *) 0 ; | |
15427 | PyObject *arg2 = (PyObject *) 0 ; | |
15428 | PyObject *arg3 = (PyObject *) 0 ; | |
15429 | PyObject *arg4 = (PyObject *) 0 ; | |
15430 | PyObject *result; | |
15431 | PyObject * obj0 = 0 ; | |
15432 | PyObject * obj1 = 0 ; | |
15433 | PyObject * obj2 = 0 ; | |
15434 | PyObject * obj3 = 0 ; | |
15435 | char *kwnames[] = { | |
15436 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15437 | }; | |
15438 | ||
15439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15442 | arg2 = obj1; | |
15443 | arg3 = obj2; | |
15444 | arg4 = obj3; | |
15445 | { | |
15446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15447 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
15448 | ||
15449 | wxPyEndAllowThreads(__tstate); | |
15450 | if (PyErr_Occurred()) SWIG_fail; | |
15451 | } | |
15452 | resultobj = result; | |
15453 | return resultobj; | |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15460 | PyObject *resultobj; | |
15461 | wxDC *arg1 = (wxDC *) 0 ; | |
15462 | PyObject *arg2 = (PyObject *) 0 ; | |
15463 | PyObject *arg3 = (PyObject *) 0 ; | |
15464 | PyObject *arg4 = (PyObject *) 0 ; | |
15465 | PyObject *result; | |
15466 | PyObject * obj0 = 0 ; | |
15467 | PyObject * obj1 = 0 ; | |
15468 | PyObject * obj2 = 0 ; | |
15469 | PyObject * obj3 = 0 ; | |
15470 | char *kwnames[] = { | |
15471 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15472 | }; | |
15473 | ||
15474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15477 | arg2 = obj1; | |
15478 | arg3 = obj2; | |
15479 | arg4 = obj3; | |
15480 | { | |
15481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15482 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
15483 | ||
15484 | wxPyEndAllowThreads(__tstate); | |
15485 | if (PyErr_Occurred()) SWIG_fail; | |
15486 | } | |
15487 | resultobj = result; | |
15488 | return resultobj; | |
15489 | fail: | |
15490 | return NULL; | |
15491 | } | |
15492 | ||
15493 | ||
15494 | static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15495 | PyObject *resultobj; | |
15496 | wxDC *arg1 = (wxDC *) 0 ; | |
15497 | PyObject *arg2 = (PyObject *) 0 ; | |
15498 | PyObject *arg3 = (PyObject *) 0 ; | |
15499 | PyObject *arg4 = (PyObject *) 0 ; | |
15500 | PyObject *result; | |
15501 | PyObject * obj0 = 0 ; | |
15502 | PyObject * obj1 = 0 ; | |
15503 | PyObject * obj2 = 0 ; | |
15504 | PyObject * obj3 = 0 ; | |
15505 | char *kwnames[] = { | |
15506 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15507 | }; | |
15508 | ||
15509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15512 | arg2 = obj1; | |
15513 | arg3 = obj2; | |
15514 | arg4 = obj3; | |
15515 | { | |
15516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15517 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
15518 | ||
15519 | wxPyEndAllowThreads(__tstate); | |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
15521 | } | |
15522 | resultobj = result; | |
15523 | return resultobj; | |
15524 | fail: | |
15525 | return NULL; | |
15526 | } | |
15527 | ||
15528 | ||
15529 | static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15530 | PyObject *resultobj; | |
15531 | wxDC *arg1 = (wxDC *) 0 ; | |
15532 | PyObject *arg2 = (PyObject *) 0 ; | |
15533 | PyObject *arg3 = (PyObject *) 0 ; | |
15534 | PyObject *arg4 = (PyObject *) 0 ; | |
15535 | PyObject *result; | |
15536 | PyObject * obj0 = 0 ; | |
15537 | PyObject * obj1 = 0 ; | |
15538 | PyObject * obj2 = 0 ; | |
15539 | PyObject * obj3 = 0 ; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15547 | arg2 = obj1; | |
15548 | arg3 = obj2; | |
15549 | arg4 = obj3; | |
15550 | { | |
15551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15552 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
15553 | ||
15554 | wxPyEndAllowThreads(__tstate); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | } | |
15557 | resultobj = result; | |
15558 | return resultobj; | |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
15564 | static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15565 | PyObject *resultobj; | |
15566 | wxDC *arg1 = (wxDC *) 0 ; | |
15567 | PyObject *arg2 = (PyObject *) 0 ; | |
15568 | PyObject *arg3 = (PyObject *) 0 ; | |
15569 | PyObject *arg4 = (PyObject *) 0 ; | |
15570 | PyObject *result; | |
15571 | PyObject * obj0 = 0 ; | |
15572 | PyObject * obj1 = 0 ; | |
15573 | PyObject * obj2 = 0 ; | |
15574 | PyObject * obj3 = 0 ; | |
15575 | char *kwnames[] = { | |
15576 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
15577 | }; | |
15578 | ||
15579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15582 | arg2 = obj1; | |
15583 | arg3 = obj2; | |
15584 | arg4 = obj3; | |
15585 | { | |
15586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15587 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
15588 | ||
15589 | wxPyEndAllowThreads(__tstate); | |
15590 | if (PyErr_Occurred()) SWIG_fail; | |
15591 | } | |
15592 | resultobj = result; | |
15593 | return resultobj; | |
15594 | fail: | |
15595 | return NULL; | |
15596 | } | |
15597 | ||
15598 | ||
15599 | static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15600 | PyObject *resultobj; | |
15601 | wxDC *arg1 = (wxDC *) 0 ; | |
15602 | PyObject *arg2 = (PyObject *) 0 ; | |
15603 | PyObject *arg3 = (PyObject *) 0 ; | |
15604 | PyObject *arg4 = (PyObject *) 0 ; | |
15605 | PyObject *arg5 = (PyObject *) 0 ; | |
15606 | PyObject *result; | |
15607 | PyObject * obj0 = 0 ; | |
15608 | PyObject * obj1 = 0 ; | |
15609 | PyObject * obj2 = 0 ; | |
15610 | PyObject * obj3 = 0 ; | |
15611 | PyObject * obj4 = 0 ; | |
15612 | char *kwnames[] = { | |
15613 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
15614 | }; | |
15615 | ||
15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15619 | arg2 = obj1; | |
15620 | arg3 = obj2; | |
15621 | arg4 = obj3; | |
15622 | arg5 = obj4; | |
15623 | { | |
15624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15625 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
15626 | ||
15627 | wxPyEndAllowThreads(__tstate); | |
15628 | if (PyErr_Occurred()) SWIG_fail; | |
15629 | } | |
15630 | resultobj = result; | |
15631 | return resultobj; | |
15632 | fail: | |
15633 | return NULL; | |
15634 | } | |
15635 | ||
15636 | ||
15637 | static PyObject * DC_swigregister(PyObject *self, PyObject *args) { | |
15638 | PyObject *obj; | |
15639 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15640 | SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj); | |
15641 | Py_INCREF(obj); | |
15642 | return Py_BuildValue((char *)""); | |
15643 | } | |
15644 | static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15645 | PyObject *resultobj; | |
15646 | wxMemoryDC *result; | |
15647 | char *kwnames[] = { | |
15648 | NULL | |
15649 | }; | |
15650 | ||
15651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail; | |
15652 | { | |
0439c23b | 15653 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15655 | result = (wxMemoryDC *)new wxMemoryDC(); | |
15656 | ||
15657 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15658 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15659 | } |
15660 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
15667 | static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15668 | PyObject *resultobj; | |
15669 | wxDC *arg1 = (wxDC *) 0 ; | |
15670 | wxMemoryDC *result; | |
15671 | PyObject * obj0 = 0 ; | |
15672 | char *kwnames[] = { | |
15673 | (char *) "oldDC", NULL | |
15674 | }; | |
15675 | ||
15676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail; | |
15677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15679 | { | |
0439c23b | 15680 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15682 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
15683 | ||
15684 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15685 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15686 | } |
15687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1); | |
15688 | return resultobj; | |
15689 | fail: | |
15690 | return NULL; | |
15691 | } | |
15692 | ||
15693 | ||
15694 | static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15695 | PyObject *resultobj; | |
15696 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
15697 | wxBitmap *arg2 = 0 ; | |
15698 | PyObject * obj0 = 0 ; | |
15699 | PyObject * obj1 = 0 ; | |
15700 | char *kwnames[] = { | |
15701 | (char *) "self",(char *) "bitmap", NULL | |
15702 | }; | |
15703 | ||
15704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail; | |
15705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC, | |
15706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15707 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15708 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15709 | SWIG_fail; | |
15710 | if (arg2 == NULL) { | |
15711 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15712 | SWIG_fail; | |
15713 | } | |
15714 | { | |
15715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15716 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
15717 | ||
15718 | wxPyEndAllowThreads(__tstate); | |
15719 | if (PyErr_Occurred()) SWIG_fail; | |
15720 | } | |
15721 | Py_INCREF(Py_None); resultobj = Py_None; | |
15722 | return resultobj; | |
15723 | fail: | |
15724 | return NULL; | |
15725 | } | |
15726 | ||
15727 | ||
15728 | static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) { | |
15729 | PyObject *obj; | |
15730 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15731 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj); | |
15732 | Py_INCREF(obj); | |
15733 | return Py_BuildValue((char *)""); | |
15734 | } | |
15735 | static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) { | |
15736 | PyObject *resultobj; | |
15737 | wxDC *arg1 = (wxDC *) 0 ; | |
15738 | wxBitmap *arg2 = 0 ; | |
15739 | wxBufferedDC *result; | |
15740 | PyObject * obj0 = 0 ; | |
15741 | PyObject * obj1 = 0 ; | |
15742 | ||
15743 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15747 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15748 | SWIG_fail; | |
15749 | if (arg2 == NULL) { | |
15750 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15751 | SWIG_fail; | |
15752 | } | |
15753 | { | |
0439c23b | 15754 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15756 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2); | |
15757 | ||
15758 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15759 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15760 | } |
15761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15762 | return resultobj; | |
15763 | fail: | |
15764 | return NULL; | |
15765 | } | |
15766 | ||
15767 | ||
15768 | static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) { | |
15769 | PyObject *resultobj; | |
15770 | wxDC *arg1 = (wxDC *) 0 ; | |
15771 | wxSize *arg2 = 0 ; | |
15772 | wxBufferedDC *result; | |
15773 | wxSize temp2 ; | |
15774 | PyObject * obj0 = 0 ; | |
15775 | PyObject * obj1 = 0 ; | |
15776 | ||
15777 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail; | |
15778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15780 | { | |
15781 | arg2 = &temp2; | |
15782 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15783 | } | |
15784 | { | |
0439c23b | 15785 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15787 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15788 | ||
15789 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15790 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15791 | } |
15792 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15793 | return resultobj; | |
15794 | fail: | |
15795 | return NULL; | |
15796 | } | |
15797 | ||
15798 | ||
15799 | static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
15800 | int argc; | |
15801 | PyObject *argv[3]; | |
15802 | int ii; | |
15803 | ||
15804 | argc = PyObject_Length(args); | |
15805 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
15806 | argv[ii] = PyTuple_GetItem(args,ii); | |
15807 | } | |
15808 | if (argc == 2) { | |
15809 | int _v; | |
15810 | { | |
15811 | void *ptr; | |
15812 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15813 | _v = 0; | |
15814 | PyErr_Clear(); | |
15815 | } else { | |
15816 | _v = 1; | |
15817 | } | |
15818 | } | |
15819 | if (_v) { | |
15820 | { | |
15821 | void *ptr; | |
15822 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) { | |
15823 | _v = 0; | |
15824 | PyErr_Clear(); | |
15825 | } else { | |
15826 | _v = 1; | |
15827 | } | |
15828 | } | |
15829 | if (_v) { | |
15830 | return _wrap_new_BufferedDC__SWIG_0(self,args); | |
15831 | } | |
15832 | } | |
15833 | } | |
15834 | if (argc == 2) { | |
15835 | int _v; | |
15836 | { | |
15837 | void *ptr; | |
15838 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) { | |
15839 | _v = 0; | |
15840 | PyErr_Clear(); | |
15841 | } else { | |
15842 | _v = 1; | |
15843 | } | |
15844 | } | |
15845 | if (_v) { | |
15846 | { | |
15847 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
15848 | } | |
15849 | if (_v) { | |
15850 | return _wrap_new_BufferedDC__SWIG_1(self,args); | |
15851 | } | |
15852 | } | |
15853 | } | |
15854 | ||
15855 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'"); | |
15856 | return NULL; | |
15857 | } | |
15858 | ||
15859 | ||
15860 | static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) { | |
15861 | PyObject *resultobj; | |
15862 | wxDC *arg1 = (wxDC *) 0 ; | |
15863 | wxSize *arg2 = 0 ; | |
15864 | wxBufferedDC *result; | |
15865 | wxSize temp2 ; | |
15866 | PyObject * obj0 = 0 ; | |
15867 | PyObject * obj1 = 0 ; | |
15868 | ||
15869 | if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail; | |
15870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
15871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15872 | { | |
15873 | arg2 = &temp2; | |
15874 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15875 | } | |
15876 | { | |
0439c23b | 15877 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15879 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2); | |
15880 | ||
15881 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15882 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15883 | } |
15884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1); | |
15885 | return resultobj; | |
15886 | fail: | |
15887 | return NULL; | |
15888 | } | |
15889 | ||
15890 | ||
15891 | static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15892 | PyObject *resultobj; | |
15893 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15894 | PyObject * obj0 = 0 ; | |
15895 | char *kwnames[] = { | |
15896 | (char *) "self", NULL | |
15897 | }; | |
15898 | ||
15899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail; | |
15900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15902 | { | |
15903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15904 | delete arg1; | |
15905 | ||
15906 | wxPyEndAllowThreads(__tstate); | |
15907 | if (PyErr_Occurred()) SWIG_fail; | |
15908 | } | |
15909 | Py_INCREF(Py_None); resultobj = Py_None; | |
15910 | return resultobj; | |
15911 | fail: | |
15912 | return NULL; | |
15913 | } | |
15914 | ||
15915 | ||
15916 | static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15917 | PyObject *resultobj; | |
15918 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
15919 | PyObject * obj0 = 0 ; | |
15920 | char *kwnames[] = { | |
15921 | (char *) "self", NULL | |
15922 | }; | |
15923 | ||
15924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail; | |
15925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC, | |
15926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15927 | { | |
15928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15929 | (arg1)->UnMask(); | |
15930 | ||
15931 | wxPyEndAllowThreads(__tstate); | |
15932 | if (PyErr_Occurred()) SWIG_fail; | |
15933 | } | |
15934 | Py_INCREF(Py_None); resultobj = Py_None; | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
15938 | } | |
15939 | ||
15940 | ||
15941 | static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) { | |
15942 | PyObject *obj; | |
15943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15944 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj); | |
15945 | Py_INCREF(obj); | |
15946 | return Py_BuildValue((char *)""); | |
15947 | } | |
15948 | static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15949 | PyObject *resultobj; | |
15950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15951 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
15952 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
15953 | wxBufferedPaintDC *result; | |
15954 | PyObject * obj0 = 0 ; | |
15955 | PyObject * obj1 = 0 ; | |
15956 | char *kwnames[] = { | |
15957 | (char *) "window",(char *) "buffer", NULL | |
15958 | }; | |
15959 | ||
15960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail; | |
15961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15963 | if (obj1) { | |
15964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15966 | SWIG_fail; | |
15967 | if (arg2 == NULL) { | |
15968 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15969 | SWIG_fail; | |
15970 | } | |
15971 | } | |
15972 | { | |
0439c23b | 15973 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15975 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2); | |
15976 | ||
15977 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15978 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15979 | } |
15980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1); | |
15981 | return resultobj; | |
15982 | fail: | |
15983 | return NULL; | |
15984 | } | |
15985 | ||
15986 | ||
15987 | static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) { | |
15988 | PyObject *obj; | |
15989 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15990 | SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj); | |
15991 | Py_INCREF(obj); | |
15992 | return Py_BuildValue((char *)""); | |
15993 | } | |
15994 | static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15995 | PyObject *resultobj; | |
15996 | wxScreenDC *result; | |
15997 | char *kwnames[] = { | |
15998 | NULL | |
15999 | }; | |
16000 | ||
16001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail; | |
16002 | { | |
0439c23b | 16003 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16005 | result = (wxScreenDC *)new wxScreenDC(); | |
16006 | ||
16007 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16008 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16009 | } |
16010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1); | |
16011 | return resultobj; | |
16012 | fail: | |
16013 | return NULL; | |
16014 | } | |
16015 | ||
16016 | ||
16017 | static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16018 | PyObject *resultobj; | |
16019 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16020 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16021 | bool result; | |
16022 | PyObject * obj0 = 0 ; | |
16023 | PyObject * obj1 = 0 ; | |
16024 | char *kwnames[] = { | |
16025 | (char *) "self",(char *) "window", NULL | |
16026 | }; | |
16027 | ||
16028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail; | |
16029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16031 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16033 | { | |
16034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16035 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16036 | ||
16037 | wxPyEndAllowThreads(__tstate); | |
16038 | if (PyErr_Occurred()) SWIG_fail; | |
16039 | } | |
16040 | { | |
16041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16042 | } | |
16043 | return resultobj; | |
16044 | fail: | |
16045 | return NULL; | |
16046 | } | |
16047 | ||
16048 | ||
16049 | static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16050 | PyObject *resultobj; | |
16051 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16052 | wxRect *arg2 = (wxRect *) NULL ; | |
16053 | bool result; | |
16054 | PyObject * obj0 = 0 ; | |
16055 | PyObject * obj1 = 0 ; | |
16056 | char *kwnames[] = { | |
16057 | (char *) "self",(char *) "rect", NULL | |
16058 | }; | |
16059 | ||
16060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail; | |
16061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16063 | if (obj1) { | |
16064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16066 | } | |
16067 | { | |
16068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16069 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
16070 | ||
16071 | wxPyEndAllowThreads(__tstate); | |
16072 | if (PyErr_Occurred()) SWIG_fail; | |
16073 | } | |
16074 | { | |
16075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16076 | } | |
16077 | return resultobj; | |
16078 | fail: | |
16079 | return NULL; | |
16080 | } | |
16081 | ||
16082 | ||
16083 | static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16084 | PyObject *resultobj; | |
16085 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
16086 | bool result; | |
16087 | PyObject * obj0 = 0 ; | |
16088 | char *kwnames[] = { | |
16089 | (char *) "self", NULL | |
16090 | }; | |
16091 | ||
16092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail; | |
16093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC, | |
16094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16095 | { | |
16096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16097 | result = (bool)(arg1)->EndDrawingOnTop(); | |
16098 | ||
16099 | wxPyEndAllowThreads(__tstate); | |
16100 | if (PyErr_Occurred()) SWIG_fail; | |
16101 | } | |
16102 | { | |
16103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16104 | } | |
16105 | return resultobj; | |
16106 | fail: | |
16107 | return NULL; | |
16108 | } | |
16109 | ||
16110 | ||
16111 | static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) { | |
16112 | PyObject *obj; | |
16113 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16114 | SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj); | |
16115 | Py_INCREF(obj); | |
16116 | return Py_BuildValue((char *)""); | |
16117 | } | |
16118 | static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16119 | PyObject *resultobj; | |
16120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16121 | wxClientDC *result; | |
16122 | PyObject * obj0 = 0 ; | |
16123 | char *kwnames[] = { | |
16124 | (char *) "win", NULL | |
16125 | }; | |
16126 | ||
16127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail; | |
16128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16130 | { | |
0439c23b | 16131 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16133 | result = (wxClientDC *)new wxClientDC(arg1); | |
16134 | ||
16135 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16136 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16137 | } |
16138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1); | |
16139 | return resultobj; | |
16140 | fail: | |
16141 | return NULL; | |
16142 | } | |
16143 | ||
16144 | ||
16145 | static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) { | |
16146 | PyObject *obj; | |
16147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16148 | SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj); | |
16149 | Py_INCREF(obj); | |
16150 | return Py_BuildValue((char *)""); | |
16151 | } | |
16152 | static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16153 | PyObject *resultobj; | |
16154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16155 | wxPaintDC *result; | |
16156 | PyObject * obj0 = 0 ; | |
16157 | char *kwnames[] = { | |
16158 | (char *) "win", NULL | |
16159 | }; | |
16160 | ||
16161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail; | |
16162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16164 | { | |
0439c23b | 16165 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16167 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
16168 | ||
16169 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16170 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16171 | } |
16172 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1); | |
16173 | return resultobj; | |
16174 | fail: | |
16175 | return NULL; | |
16176 | } | |
16177 | ||
16178 | ||
16179 | static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) { | |
16180 | PyObject *obj; | |
16181 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16182 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj); | |
16183 | Py_INCREF(obj); | |
16184 | return Py_BuildValue((char *)""); | |
16185 | } | |
16186 | static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16187 | PyObject *resultobj; | |
16188 | wxWindow *arg1 = (wxWindow *) 0 ; | |
16189 | wxWindowDC *result; | |
16190 | PyObject * obj0 = 0 ; | |
16191 | char *kwnames[] = { | |
16192 | (char *) "win", NULL | |
16193 | }; | |
16194 | ||
16195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail; | |
16196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16198 | { | |
0439c23b | 16199 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16201 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
16202 | ||
16203 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16204 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16205 | } |
16206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1); | |
16207 | return resultobj; | |
16208 | fail: | |
16209 | return NULL; | |
16210 | } | |
16211 | ||
16212 | ||
16213 | static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) { | |
16214 | PyObject *obj; | |
16215 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16216 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj); | |
16217 | Py_INCREF(obj); | |
16218 | return Py_BuildValue((char *)""); | |
16219 | } | |
16220 | static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16221 | PyObject *resultobj; | |
16222 | wxDC *arg1 = 0 ; | |
16223 | bool arg2 ; | |
16224 | wxMirrorDC *result; | |
16225 | PyObject * obj0 = 0 ; | |
16226 | PyObject * obj1 = 0 ; | |
16227 | char *kwnames[] = { | |
16228 | (char *) "dc",(char *) "mirror", NULL | |
16229 | }; | |
16230 | ||
16231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail; | |
16232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC, | |
16233 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16234 | SWIG_fail; | |
16235 | if (arg1 == NULL) { | |
16236 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16237 | SWIG_fail; | |
16238 | } | |
16239 | arg2 = (bool) SWIG_AsBool(obj1); | |
16240 | if (PyErr_Occurred()) SWIG_fail; | |
16241 | { | |
0439c23b | 16242 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16244 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
16245 | ||
16246 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16247 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16248 | } |
16249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1); | |
16250 | return resultobj; | |
16251 | fail: | |
16252 | return NULL; | |
16253 | } | |
16254 | ||
16255 | ||
16256 | static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) { | |
16257 | PyObject *obj; | |
16258 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16259 | SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj); | |
16260 | Py_INCREF(obj); | |
16261 | return Py_BuildValue((char *)""); | |
16262 | } | |
16263 | static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16264 | PyObject *resultobj; | |
16265 | wxPrintData *arg1 = 0 ; | |
16266 | wxPostScriptDC *result; | |
16267 | PyObject * obj0 = 0 ; | |
16268 | char *kwnames[] = { | |
16269 | (char *) "printData", NULL | |
16270 | }; | |
16271 | ||
16272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail; | |
16273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16274 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16275 | SWIG_fail; | |
16276 | if (arg1 == NULL) { | |
16277 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16278 | SWIG_fail; | |
16279 | } | |
16280 | { | |
0439c23b | 16281 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16283 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
16284 | ||
16285 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16286 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16287 | } |
16288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1); | |
16289 | return resultobj; | |
16290 | fail: | |
16291 | return NULL; | |
16292 | } | |
16293 | ||
16294 | ||
16295 | static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16296 | PyObject *resultobj; | |
16297 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16298 | wxPrintData *result; | |
16299 | PyObject * obj0 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "self", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail; | |
16305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16307 | { | |
16308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16309 | { | |
16310 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
16311 | result = (wxPrintData *) &_result_ref; | |
16312 | } | |
16313 | ||
16314 | wxPyEndAllowThreads(__tstate); | |
16315 | if (PyErr_Occurred()) SWIG_fail; | |
16316 | } | |
16317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
16318 | return resultobj; | |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
16324 | static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16325 | PyObject *resultobj; | |
16326 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
16327 | wxPrintData *arg2 = 0 ; | |
16328 | PyObject * obj0 = 0 ; | |
16329 | PyObject * obj1 = 0 ; | |
16330 | char *kwnames[] = { | |
16331 | (char *) "self",(char *) "data", NULL | |
16332 | }; | |
16333 | ||
16334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
16335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC, | |
16336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
16338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16339 | SWIG_fail; | |
16340 | if (arg2 == NULL) { | |
16341 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16342 | SWIG_fail; | |
16343 | } | |
16344 | { | |
16345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16346 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
16347 | ||
16348 | wxPyEndAllowThreads(__tstate); | |
16349 | if (PyErr_Occurred()) SWIG_fail; | |
16350 | } | |
16351 | Py_INCREF(Py_None); resultobj = Py_None; | |
16352 | return resultobj; | |
16353 | fail: | |
16354 | return NULL; | |
16355 | } | |
16356 | ||
16357 | ||
16358 | static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16359 | PyObject *resultobj; | |
16360 | int arg1 ; | |
16361 | PyObject * obj0 = 0 ; | |
16362 | char *kwnames[] = { | |
16363 | (char *) "ppi", NULL | |
16364 | }; | |
16365 | ||
16366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail; | |
16367 | arg1 = (int) SWIG_AsInt(obj0); | |
16368 | if (PyErr_Occurred()) SWIG_fail; | |
16369 | { | |
16370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16371 | wxPostScriptDC::SetResolution(arg1); | |
16372 | ||
16373 | wxPyEndAllowThreads(__tstate); | |
16374 | if (PyErr_Occurred()) SWIG_fail; | |
16375 | } | |
16376 | Py_INCREF(Py_None); resultobj = Py_None; | |
16377 | return resultobj; | |
16378 | fail: | |
16379 | return NULL; | |
16380 | } | |
16381 | ||
16382 | ||
16383 | static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16384 | PyObject *resultobj; | |
16385 | int result; | |
16386 | char *kwnames[] = { | |
16387 | NULL | |
16388 | }; | |
16389 | ||
16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail; | |
16391 | { | |
16392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16393 | result = (int)wxPostScriptDC::GetResolution(); | |
16394 | ||
16395 | wxPyEndAllowThreads(__tstate); | |
16396 | if (PyErr_Occurred()) SWIG_fail; | |
16397 | } | |
16398 | resultobj = SWIG_FromInt((int)result); | |
16399 | return resultobj; | |
16400 | fail: | |
16401 | return NULL; | |
16402 | } | |
16403 | ||
16404 | ||
16405 | static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) { | |
16406 | PyObject *obj; | |
16407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16408 | SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj); | |
16409 | Py_INCREF(obj); | |
16410 | return Py_BuildValue((char *)""); | |
16411 | } | |
16412 | static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16413 | PyObject *resultobj; | |
16414 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16415 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16416 | wxMetaFile *result; | |
16417 | bool temp1 = False ; | |
16418 | PyObject * obj0 = 0 ; | |
16419 | char *kwnames[] = { | |
16420 | (char *) "filename", NULL | |
16421 | }; | |
16422 | ||
16423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail; | |
16424 | if (obj0) { | |
16425 | { | |
16426 | arg1 = wxString_in_helper(obj0); | |
16427 | if (arg1 == NULL) SWIG_fail; | |
16428 | temp1 = True; | |
16429 | } | |
16430 | } | |
16431 | { | |
0439c23b | 16432 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16434 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
16435 | ||
16436 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16437 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16438 | } |
16439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1); | |
16440 | { | |
16441 | if (temp1) | |
16442 | delete arg1; | |
16443 | } | |
16444 | return resultobj; | |
16445 | fail: | |
16446 | { | |
16447 | if (temp1) | |
16448 | delete arg1; | |
16449 | } | |
16450 | return NULL; | |
16451 | } | |
16452 | ||
16453 | ||
16454 | static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16455 | PyObject *resultobj; | |
16456 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16457 | PyObject * obj0 = 0 ; | |
16458 | char *kwnames[] = { | |
16459 | (char *) "self", NULL | |
16460 | }; | |
16461 | ||
16462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail; | |
16463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16465 | { | |
16466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16467 | delete arg1; | |
16468 | ||
16469 | wxPyEndAllowThreads(__tstate); | |
16470 | if (PyErr_Occurred()) SWIG_fail; | |
16471 | } | |
16472 | Py_INCREF(Py_None); resultobj = Py_None; | |
16473 | return resultobj; | |
16474 | fail: | |
16475 | return NULL; | |
16476 | } | |
16477 | ||
16478 | ||
16479 | static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16480 | PyObject *resultobj; | |
16481 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16482 | bool result; | |
16483 | PyObject * obj0 = 0 ; | |
16484 | char *kwnames[] = { | |
16485 | (char *) "self", NULL | |
16486 | }; | |
16487 | ||
16488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail; | |
16489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | result = (bool)(arg1)->Ok(); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
16507 | static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16508 | PyObject *resultobj; | |
16509 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16510 | int arg2 = (int) 0 ; | |
16511 | int arg3 = (int) 0 ; | |
16512 | bool result; | |
16513 | PyObject * obj0 = 0 ; | |
16514 | PyObject * obj1 = 0 ; | |
16515 | PyObject * obj2 = 0 ; | |
16516 | char *kwnames[] = { | |
16517 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16518 | }; | |
16519 | ||
16520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16523 | if (obj1) { | |
16524 | arg2 = (int) SWIG_AsInt(obj1); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
16526 | } | |
16527 | if (obj2) { | |
16528 | arg3 = (int) SWIG_AsInt(obj2); | |
16529 | if (PyErr_Occurred()) SWIG_fail; | |
16530 | } | |
16531 | { | |
16532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16533 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
16534 | ||
16535 | wxPyEndAllowThreads(__tstate); | |
16536 | if (PyErr_Occurred()) SWIG_fail; | |
16537 | } | |
16538 | { | |
16539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16540 | } | |
16541 | return resultobj; | |
16542 | fail: | |
16543 | return NULL; | |
16544 | } | |
16545 | ||
16546 | ||
16547 | static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16548 | PyObject *resultobj; | |
16549 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16550 | wxSize result; | |
16551 | PyObject * obj0 = 0 ; | |
16552 | char *kwnames[] = { | |
16553 | (char *) "self", NULL | |
16554 | }; | |
16555 | ||
16556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail; | |
16557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16559 | { | |
16560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16561 | result = (arg1)->GetSize(); | |
16562 | ||
16563 | wxPyEndAllowThreads(__tstate); | |
16564 | if (PyErr_Occurred()) SWIG_fail; | |
16565 | } | |
16566 | { | |
16567 | wxSize * resultptr; | |
16568 | resultptr = new wxSize((wxSize &) result); | |
16569 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16570 | } | |
16571 | return resultobj; | |
16572 | fail: | |
16573 | return NULL; | |
16574 | } | |
16575 | ||
16576 | ||
16577 | static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16578 | PyObject *resultobj; | |
16579 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16580 | int result; | |
16581 | PyObject * obj0 = 0 ; | |
16582 | char *kwnames[] = { | |
16583 | (char *) "self", NULL | |
16584 | }; | |
16585 | ||
16586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail; | |
16587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16589 | { | |
16590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16591 | result = (int)(arg1)->GetWidth(); | |
16592 | ||
16593 | wxPyEndAllowThreads(__tstate); | |
16594 | if (PyErr_Occurred()) SWIG_fail; | |
16595 | } | |
16596 | resultobj = SWIG_FromInt((int)result); | |
16597 | return resultobj; | |
16598 | fail: | |
16599 | return NULL; | |
16600 | } | |
16601 | ||
16602 | ||
16603 | static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16604 | PyObject *resultobj; | |
16605 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16606 | int result; | |
16607 | PyObject * obj0 = 0 ; | |
16608 | char *kwnames[] = { | |
16609 | (char *) "self", NULL | |
16610 | }; | |
16611 | ||
16612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail; | |
16613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16615 | { | |
16616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16617 | result = (int)(arg1)->GetHeight(); | |
16618 | ||
16619 | wxPyEndAllowThreads(__tstate); | |
16620 | if (PyErr_Occurred()) SWIG_fail; | |
16621 | } | |
16622 | resultobj = SWIG_FromInt((int)result); | |
16623 | return resultobj; | |
16624 | fail: | |
16625 | return NULL; | |
16626 | } | |
16627 | ||
16628 | ||
16629 | static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16630 | PyObject *resultobj; | |
16631 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
16632 | wxString *result; | |
16633 | PyObject * obj0 = 0 ; | |
16634 | char *kwnames[] = { | |
16635 | (char *) "self", NULL | |
16636 | }; | |
16637 | ||
16638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail; | |
16639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile, | |
16640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16641 | { | |
16642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16643 | { | |
16644 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); | |
16645 | result = (wxString *) &_result_ref; | |
16646 | } | |
16647 | ||
16648 | wxPyEndAllowThreads(__tstate); | |
16649 | if (PyErr_Occurred()) SWIG_fail; | |
16650 | } | |
16651 | { | |
16652 | #if wxUSE_UNICODE | |
16653 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16654 | #else | |
16655 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16656 | #endif | |
16657 | } | |
16658 | return resultobj; | |
16659 | fail: | |
16660 | return NULL; | |
16661 | } | |
16662 | ||
16663 | ||
16664 | static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) { | |
16665 | PyObject *obj; | |
16666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16667 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj); | |
16668 | Py_INCREF(obj); | |
16669 | return Py_BuildValue((char *)""); | |
16670 | } | |
16671 | static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16672 | PyObject *resultobj; | |
16673 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
16674 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
16675 | int arg2 = (int) 0 ; | |
16676 | int arg3 = (int) 0 ; | |
16677 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16678 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16679 | wxMetaFileDC *result; | |
16680 | bool temp1 = False ; | |
16681 | bool temp4 = False ; | |
16682 | PyObject * obj0 = 0 ; | |
16683 | PyObject * obj1 = 0 ; | |
16684 | PyObject * obj2 = 0 ; | |
16685 | PyObject * obj3 = 0 ; | |
16686 | char *kwnames[] = { | |
16687 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
16688 | }; | |
16689 | ||
16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16691 | if (obj0) { | |
16692 | { | |
16693 | arg1 = wxString_in_helper(obj0); | |
16694 | if (arg1 == NULL) SWIG_fail; | |
16695 | temp1 = True; | |
16696 | } | |
16697 | } | |
16698 | if (obj1) { | |
16699 | arg2 = (int) SWIG_AsInt(obj1); | |
16700 | if (PyErr_Occurred()) SWIG_fail; | |
16701 | } | |
16702 | if (obj2) { | |
16703 | arg3 = (int) SWIG_AsInt(obj2); | |
16704 | if (PyErr_Occurred()) SWIG_fail; | |
16705 | } | |
16706 | if (obj3) { | |
16707 | { | |
16708 | arg4 = wxString_in_helper(obj3); | |
16709 | if (arg4 == NULL) SWIG_fail; | |
16710 | temp4 = True; | |
16711 | } | |
16712 | } | |
16713 | { | |
0439c23b | 16714 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16716 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
16717 | ||
16718 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16719 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16720 | } |
16721 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1); | |
16722 | { | |
16723 | if (temp1) | |
16724 | delete arg1; | |
16725 | } | |
16726 | { | |
16727 | if (temp4) | |
16728 | delete arg4; | |
16729 | } | |
16730 | return resultobj; | |
16731 | fail: | |
16732 | { | |
16733 | if (temp1) | |
16734 | delete arg1; | |
16735 | } | |
16736 | { | |
16737 | if (temp4) | |
16738 | delete arg4; | |
16739 | } | |
16740 | return NULL; | |
16741 | } | |
16742 | ||
16743 | ||
16744 | static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16745 | PyObject *resultobj; | |
16746 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
16747 | wxMetaFile *result; | |
16748 | PyObject * obj0 = 0 ; | |
16749 | char *kwnames[] = { | |
16750 | (char *) "self", NULL | |
16751 | }; | |
16752 | ||
16753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail; | |
16754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC, | |
16755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16756 | { | |
16757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16758 | result = (wxMetaFile *)(arg1)->Close(); | |
16759 | ||
16760 | wxPyEndAllowThreads(__tstate); | |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
16762 | } | |
16763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0); | |
16764 | return resultobj; | |
16765 | fail: | |
16766 | return NULL; | |
16767 | } | |
16768 | ||
16769 | ||
16770 | static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) { | |
16771 | PyObject *obj; | |
16772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16773 | SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj); | |
16774 | Py_INCREF(obj); | |
16775 | return Py_BuildValue((char *)""); | |
16776 | } | |
16777 | static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16778 | PyObject *resultobj; | |
16779 | wxPrintData *arg1 = 0 ; | |
16780 | wxPrinterDC *result; | |
16781 | PyObject * obj0 = 0 ; | |
16782 | char *kwnames[] = { | |
16783 | (char *) "printData", NULL | |
16784 | }; | |
16785 | ||
16786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail; | |
16787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
16788 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16789 | SWIG_fail; | |
16790 | if (arg1 == NULL) { | |
16791 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16792 | SWIG_fail; | |
16793 | } | |
16794 | { | |
0439c23b | 16795 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16797 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
16798 | ||
16799 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16800 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16801 | } |
16802 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1); | |
16803 | return resultobj; | |
16804 | fail: | |
16805 | return NULL; | |
16806 | } | |
16807 | ||
16808 | ||
16809 | static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) { | |
16810 | PyObject *obj; | |
16811 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16812 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj); | |
16813 | Py_INCREF(obj); | |
16814 | return Py_BuildValue((char *)""); | |
16815 | } | |
16816 | static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16817 | PyObject *resultobj; | |
16818 | int arg1 ; | |
16819 | int arg2 ; | |
16820 | int arg3 = (int) True ; | |
16821 | int arg4 = (int) 1 ; | |
16822 | wxImageList *result; | |
16823 | PyObject * obj0 = 0 ; | |
16824 | PyObject * obj1 = 0 ; | |
16825 | PyObject * obj2 = 0 ; | |
16826 | PyObject * obj3 = 0 ; | |
16827 | char *kwnames[] = { | |
16828 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
16829 | }; | |
16830 | ||
16831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
16832 | arg1 = (int) SWIG_AsInt(obj0); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
16834 | arg2 = (int) SWIG_AsInt(obj1); | |
16835 | if (PyErr_Occurred()) SWIG_fail; | |
16836 | if (obj2) { | |
16837 | arg3 = (int) SWIG_AsInt(obj2); | |
16838 | if (PyErr_Occurred()) SWIG_fail; | |
16839 | } | |
16840 | if (obj3) { | |
16841 | arg4 = (int) SWIG_AsInt(obj3); | |
16842 | if (PyErr_Occurred()) SWIG_fail; | |
16843 | } | |
16844 | { | |
0439c23b | 16845 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16847 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
16848 | ||
16849 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 16850 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16851 | } |
16852 | { | |
16853 | resultobj = wxPyMake_wxObject(result); | |
16854 | } | |
16855 | return resultobj; | |
16856 | fail: | |
16857 | return NULL; | |
16858 | } | |
16859 | ||
16860 | ||
16861 | static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16862 | PyObject *resultobj; | |
16863 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16864 | PyObject * obj0 = 0 ; | |
16865 | char *kwnames[] = { | |
16866 | (char *) "self", NULL | |
16867 | }; | |
16868 | ||
16869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail; | |
16870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16872 | { | |
16873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16874 | delete arg1; | |
16875 | ||
16876 | wxPyEndAllowThreads(__tstate); | |
16877 | if (PyErr_Occurred()) SWIG_fail; | |
16878 | } | |
16879 | Py_INCREF(Py_None); resultobj = Py_None; | |
16880 | return resultobj; | |
16881 | fail: | |
16882 | return NULL; | |
16883 | } | |
16884 | ||
16885 | ||
16886 | static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16887 | PyObject *resultobj; | |
16888 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16889 | wxBitmap *arg2 = 0 ; | |
16890 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
16891 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
16892 | int result; | |
16893 | PyObject * obj0 = 0 ; | |
16894 | PyObject * obj1 = 0 ; | |
16895 | PyObject * obj2 = 0 ; | |
16896 | char *kwnames[] = { | |
16897 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
16898 | }; | |
16899 | ||
16900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16904 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16905 | SWIG_fail; | |
16906 | if (arg2 == NULL) { | |
16907 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16908 | SWIG_fail; | |
16909 | } | |
16910 | if (obj2) { | |
16911 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
16912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16913 | SWIG_fail; | |
16914 | if (arg3 == NULL) { | |
16915 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16916 | SWIG_fail; | |
16917 | } | |
16918 | } | |
16919 | { | |
16920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16921 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
16922 | ||
16923 | wxPyEndAllowThreads(__tstate); | |
16924 | if (PyErr_Occurred()) SWIG_fail; | |
16925 | } | |
16926 | resultobj = SWIG_FromInt((int)result); | |
16927 | return resultobj; | |
16928 | fail: | |
16929 | return NULL; | |
16930 | } | |
16931 | ||
16932 | ||
16933 | static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16934 | PyObject *resultobj; | |
16935 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16936 | wxBitmap *arg2 = 0 ; | |
16937 | wxColour *arg3 = 0 ; | |
16938 | int result; | |
16939 | wxColour temp3 ; | |
16940 | PyObject * obj0 = 0 ; | |
16941 | PyObject * obj1 = 0 ; | |
16942 | PyObject * obj2 = 0 ; | |
16943 | char *kwnames[] = { | |
16944 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
16945 | }; | |
16946 | ||
16947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16952 | SWIG_fail; | |
16953 | if (arg2 == NULL) { | |
16954 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16955 | SWIG_fail; | |
16956 | } | |
16957 | { | |
16958 | arg3 = &temp3; | |
16959 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
16960 | } | |
16961 | { | |
16962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16963 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
16964 | ||
16965 | wxPyEndAllowThreads(__tstate); | |
16966 | if (PyErr_Occurred()) SWIG_fail; | |
16967 | } | |
16968 | resultobj = SWIG_FromInt((int)result); | |
16969 | return resultobj; | |
16970 | fail: | |
16971 | return NULL; | |
16972 | } | |
16973 | ||
16974 | ||
16975 | static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16976 | PyObject *resultobj; | |
16977 | wxImageList *arg1 = (wxImageList *) 0 ; | |
16978 | wxIcon *arg2 = 0 ; | |
16979 | int result; | |
16980 | PyObject * obj0 = 0 ; | |
16981 | PyObject * obj1 = 0 ; | |
16982 | char *kwnames[] = { | |
16983 | (char *) "self",(char *) "icon", NULL | |
16984 | }; | |
16985 | ||
16986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail; | |
16987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
16988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
16990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16991 | SWIG_fail; | |
16992 | if (arg2 == NULL) { | |
16993 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16994 | SWIG_fail; | |
16995 | } | |
16996 | { | |
16997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16998 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
16999 | ||
17000 | wxPyEndAllowThreads(__tstate); | |
17001 | if (PyErr_Occurred()) SWIG_fail; | |
17002 | } | |
17003 | resultobj = SWIG_FromInt((int)result); | |
17004 | return resultobj; | |
17005 | fail: | |
17006 | return NULL; | |
17007 | } | |
17008 | ||
17009 | ||
17010 | static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17011 | PyObject *resultobj; | |
17012 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17013 | int arg2 ; | |
17014 | wxBitmap *arg3 = 0 ; | |
17015 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
17016 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
17017 | bool result; | |
17018 | PyObject * obj0 = 0 ; | |
17019 | PyObject * obj1 = 0 ; | |
17020 | PyObject * obj2 = 0 ; | |
17021 | PyObject * obj3 = 0 ; | |
17022 | char *kwnames[] = { | |
17023 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
17024 | }; | |
17025 | ||
17026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17029 | arg2 = (int) SWIG_AsInt(obj1); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
17031 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
17032 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17033 | SWIG_fail; | |
17034 | if (arg3 == NULL) { | |
17035 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17036 | SWIG_fail; | |
17037 | } | |
17038 | if (obj3) { | |
17039 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
17040 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17041 | SWIG_fail; | |
17042 | if (arg4 == NULL) { | |
17043 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17044 | SWIG_fail; | |
17045 | } | |
17046 | } | |
17047 | { | |
17048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17049 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
17050 | ||
17051 | wxPyEndAllowThreads(__tstate); | |
17052 | if (PyErr_Occurred()) SWIG_fail; | |
17053 | } | |
17054 | { | |
17055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17056 | } | |
17057 | return resultobj; | |
17058 | fail: | |
17059 | return NULL; | |
17060 | } | |
17061 | ||
17062 | ||
17063 | static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17064 | PyObject *resultobj; | |
17065 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17066 | int arg2 ; | |
17067 | wxDC *arg3 = 0 ; | |
17068 | int arg4 ; | |
17069 | int arg5 ; | |
17070 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
17071 | bool arg7 = (bool) (bool)False ; | |
17072 | bool result; | |
17073 | PyObject * obj0 = 0 ; | |
17074 | PyObject * obj1 = 0 ; | |
17075 | PyObject * obj2 = 0 ; | |
17076 | PyObject * obj3 = 0 ; | |
17077 | PyObject * obj4 = 0 ; | |
17078 | PyObject * obj5 = 0 ; | |
17079 | PyObject * obj6 = 0 ; | |
17080 | char *kwnames[] = { | |
17081 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
17082 | }; | |
17083 | ||
17084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17087 | arg2 = (int) SWIG_AsInt(obj1); | |
17088 | if (PyErr_Occurred()) SWIG_fail; | |
17089 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
17090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17091 | SWIG_fail; | |
17092 | if (arg3 == NULL) { | |
17093 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17094 | SWIG_fail; | |
17095 | } | |
17096 | arg4 = (int) SWIG_AsInt(obj3); | |
17097 | if (PyErr_Occurred()) SWIG_fail; | |
17098 | arg5 = (int) SWIG_AsInt(obj4); | |
17099 | if (PyErr_Occurred()) SWIG_fail; | |
17100 | if (obj5) { | |
17101 | arg6 = (int) SWIG_AsInt(obj5); | |
17102 | if (PyErr_Occurred()) SWIG_fail; | |
17103 | } | |
17104 | if (obj6) { | |
17105 | arg7 = (bool const) SWIG_AsBool(obj6); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | } | |
17108 | { | |
17109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17110 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
17111 | ||
17112 | wxPyEndAllowThreads(__tstate); | |
17113 | if (PyErr_Occurred()) SWIG_fail; | |
17114 | } | |
17115 | { | |
17116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17117 | } | |
17118 | return resultobj; | |
17119 | fail: | |
17120 | return NULL; | |
17121 | } | |
17122 | ||
17123 | ||
17124 | static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17125 | PyObject *resultobj; | |
17126 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17127 | int result; | |
17128 | PyObject * obj0 = 0 ; | |
17129 | char *kwnames[] = { | |
17130 | (char *) "self", NULL | |
17131 | }; | |
17132 | ||
17133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail; | |
17134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17136 | { | |
17137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17138 | result = (int)(arg1)->GetImageCount(); | |
17139 | ||
17140 | wxPyEndAllowThreads(__tstate); | |
17141 | if (PyErr_Occurred()) SWIG_fail; | |
17142 | } | |
17143 | resultobj = SWIG_FromInt((int)result); | |
17144 | return resultobj; | |
17145 | fail: | |
17146 | return NULL; | |
17147 | } | |
17148 | ||
17149 | ||
17150 | static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17151 | PyObject *resultobj; | |
17152 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17153 | int arg2 ; | |
17154 | bool result; | |
17155 | PyObject * obj0 = 0 ; | |
17156 | PyObject * obj1 = 0 ; | |
17157 | char *kwnames[] = { | |
17158 | (char *) "self",(char *) "index", NULL | |
17159 | }; | |
17160 | ||
17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail; | |
17162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17164 | arg2 = (int) SWIG_AsInt(obj1); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | { | |
17167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17168 | result = (bool)(arg1)->Remove(arg2); | |
17169 | ||
17170 | wxPyEndAllowThreads(__tstate); | |
17171 | if (PyErr_Occurred()) SWIG_fail; | |
17172 | } | |
17173 | { | |
17174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17175 | } | |
17176 | return resultobj; | |
17177 | fail: | |
17178 | return NULL; | |
17179 | } | |
17180 | ||
17181 | ||
17182 | static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17183 | PyObject *resultobj; | |
17184 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17185 | bool result; | |
17186 | PyObject * obj0 = 0 ; | |
17187 | char *kwnames[] = { | |
17188 | (char *) "self", NULL | |
17189 | }; | |
17190 | ||
17191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail; | |
17192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17194 | { | |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | result = (bool)(arg1)->RemoveAll(); | |
17197 | ||
17198 | wxPyEndAllowThreads(__tstate); | |
17199 | if (PyErr_Occurred()) SWIG_fail; | |
17200 | } | |
17201 | { | |
17202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17203 | } | |
17204 | return resultobj; | |
17205 | fail: | |
17206 | return NULL; | |
17207 | } | |
17208 | ||
17209 | ||
17210 | static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17211 | PyObject *resultobj; | |
17212 | wxImageList *arg1 = (wxImageList *) 0 ; | |
17213 | int arg2 ; | |
17214 | int *arg3 = 0 ; | |
17215 | int *arg4 = 0 ; | |
17216 | int temp3 ; | |
17217 | int temp4 ; | |
17218 | PyObject * obj0 = 0 ; | |
17219 | PyObject * obj1 = 0 ; | |
17220 | char *kwnames[] = { | |
17221 | (char *) "self",(char *) "index", NULL | |
17222 | }; | |
17223 | ||
17224 | arg3 = &temp3; | |
17225 | arg4 = &temp4; | |
17226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail; | |
17227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList, | |
17228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17229 | arg2 = (int) SWIG_AsInt(obj1); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | { | |
17232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17233 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
17234 | ||
17235 | wxPyEndAllowThreads(__tstate); | |
17236 | if (PyErr_Occurred()) SWIG_fail; | |
17237 | } | |
17238 | Py_INCREF(Py_None); resultobj = Py_None; | |
17239 | { | |
17240 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17241 | resultobj = t_output_helper(resultobj,o); | |
17242 | } | |
17243 | { | |
17244 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
17245 | resultobj = t_output_helper(resultobj,o); | |
17246 | } | |
17247 | return resultobj; | |
17248 | fail: | |
17249 | return NULL; | |
17250 | } | |
17251 | ||
17252 | ||
17253 | static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) { | |
17254 | PyObject *obj; | |
17255 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17256 | SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj); | |
17257 | Py_INCREF(obj); | |
17258 | return Py_BuildValue((char *)""); | |
17259 | } | |
17260 | static int _wrap_NORMAL_FONT_set(PyObject *_val) { | |
17261 | PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only."); | |
17262 | return 1; | |
17263 | } | |
17264 | ||
17265 | ||
17266 | static PyObject *_wrap_NORMAL_FONT_get() { | |
17267 | PyObject *pyobj; | |
17268 | ||
17269 | pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0); | |
17270 | return pyobj; | |
17271 | } | |
17272 | ||
17273 | ||
17274 | static int _wrap_SMALL_FONT_set(PyObject *_val) { | |
17275 | PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only."); | |
17276 | return 1; | |
17277 | } | |
17278 | ||
17279 | ||
17280 | static PyObject *_wrap_SMALL_FONT_get() { | |
17281 | PyObject *pyobj; | |
17282 | ||
17283 | pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0); | |
17284 | return pyobj; | |
17285 | } | |
17286 | ||
17287 | ||
17288 | static int _wrap_ITALIC_FONT_set(PyObject *_val) { | |
17289 | PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only."); | |
17290 | return 1; | |
17291 | } | |
17292 | ||
17293 | ||
17294 | static PyObject *_wrap_ITALIC_FONT_get() { | |
17295 | PyObject *pyobj; | |
17296 | ||
17297 | pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0); | |
17298 | return pyobj; | |
17299 | } | |
17300 | ||
17301 | ||
17302 | static int _wrap_SWISS_FONT_set(PyObject *_val) { | |
17303 | PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only."); | |
17304 | return 1; | |
17305 | } | |
17306 | ||
17307 | ||
17308 | static PyObject *_wrap_SWISS_FONT_get() { | |
17309 | PyObject *pyobj; | |
17310 | ||
17311 | pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0); | |
17312 | return pyobj; | |
17313 | } | |
17314 | ||
17315 | ||
17316 | static int _wrap_RED_PEN_set(PyObject *_val) { | |
17317 | PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only."); | |
17318 | return 1; | |
17319 | } | |
17320 | ||
17321 | ||
17322 | static PyObject *_wrap_RED_PEN_get() { | |
17323 | PyObject *pyobj; | |
17324 | ||
17325 | pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0); | |
17326 | return pyobj; | |
17327 | } | |
17328 | ||
17329 | ||
17330 | static int _wrap_CYAN_PEN_set(PyObject *_val) { | |
17331 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only."); | |
17332 | return 1; | |
17333 | } | |
17334 | ||
17335 | ||
17336 | static PyObject *_wrap_CYAN_PEN_get() { | |
17337 | PyObject *pyobj; | |
17338 | ||
17339 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0); | |
17340 | return pyobj; | |
17341 | } | |
17342 | ||
17343 | ||
17344 | static int _wrap_GREEN_PEN_set(PyObject *_val) { | |
17345 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only."); | |
17346 | return 1; | |
17347 | } | |
17348 | ||
17349 | ||
17350 | static PyObject *_wrap_GREEN_PEN_get() { | |
17351 | PyObject *pyobj; | |
17352 | ||
17353 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0); | |
17354 | return pyobj; | |
17355 | } | |
17356 | ||
17357 | ||
17358 | static int _wrap_BLACK_PEN_set(PyObject *_val) { | |
17359 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only."); | |
17360 | return 1; | |
17361 | } | |
17362 | ||
17363 | ||
17364 | static PyObject *_wrap_BLACK_PEN_get() { | |
17365 | PyObject *pyobj; | |
17366 | ||
17367 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0); | |
17368 | return pyobj; | |
17369 | } | |
17370 | ||
17371 | ||
17372 | static int _wrap_WHITE_PEN_set(PyObject *_val) { | |
17373 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only."); | |
17374 | return 1; | |
17375 | } | |
17376 | ||
17377 | ||
17378 | static PyObject *_wrap_WHITE_PEN_get() { | |
17379 | PyObject *pyobj; | |
17380 | ||
17381 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0); | |
17382 | return pyobj; | |
17383 | } | |
17384 | ||
17385 | ||
17386 | static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) { | |
17387 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only."); | |
17388 | return 1; | |
17389 | } | |
17390 | ||
17391 | ||
17392 | static PyObject *_wrap_TRANSPARENT_PEN_get() { | |
17393 | PyObject *pyobj; | |
17394 | ||
17395 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0); | |
17396 | return pyobj; | |
17397 | } | |
17398 | ||
17399 | ||
17400 | static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) { | |
17401 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only."); | |
17402 | return 1; | |
17403 | } | |
17404 | ||
17405 | ||
17406 | static PyObject *_wrap_BLACK_DASHED_PEN_get() { | |
17407 | PyObject *pyobj; | |
17408 | ||
17409 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0); | |
17410 | return pyobj; | |
17411 | } | |
17412 | ||
17413 | ||
17414 | static int _wrap_GREY_PEN_set(PyObject *_val) { | |
17415 | PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only."); | |
17416 | return 1; | |
17417 | } | |
17418 | ||
17419 | ||
17420 | static PyObject *_wrap_GREY_PEN_get() { | |
17421 | PyObject *pyobj; | |
17422 | ||
17423 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17424 | return pyobj; | |
17425 | } | |
17426 | ||
17427 | ||
17428 | static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) { | |
17429 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only."); | |
17430 | return 1; | |
17431 | } | |
17432 | ||
17433 | ||
17434 | static PyObject *_wrap_MEDIUM_GREY_PEN_get() { | |
17435 | PyObject *pyobj; | |
17436 | ||
17437 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17438 | return pyobj; | |
17439 | } | |
17440 | ||
17441 | ||
17442 | static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) { | |
17443 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only."); | |
17444 | return 1; | |
17445 | } | |
17446 | ||
17447 | ||
17448 | static PyObject *_wrap_LIGHT_GREY_PEN_get() { | |
17449 | PyObject *pyobj; | |
17450 | ||
17451 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0); | |
17452 | return pyobj; | |
17453 | } | |
17454 | ||
17455 | ||
17456 | static int _wrap_BLUE_BRUSH_set(PyObject *_val) { | |
17457 | PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only."); | |
17458 | return 1; | |
17459 | } | |
17460 | ||
17461 | ||
17462 | static PyObject *_wrap_BLUE_BRUSH_get() { | |
17463 | PyObject *pyobj; | |
17464 | ||
17465 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17466 | return pyobj; | |
17467 | } | |
17468 | ||
17469 | ||
17470 | static int _wrap_GREEN_BRUSH_set(PyObject *_val) { | |
17471 | PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only."); | |
17472 | return 1; | |
17473 | } | |
17474 | ||
17475 | ||
17476 | static PyObject *_wrap_GREEN_BRUSH_get() { | |
17477 | PyObject *pyobj; | |
17478 | ||
17479 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17480 | return pyobj; | |
17481 | } | |
17482 | ||
17483 | ||
17484 | static int _wrap_WHITE_BRUSH_set(PyObject *_val) { | |
17485 | PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only."); | |
17486 | return 1; | |
17487 | } | |
17488 | ||
17489 | ||
17490 | static PyObject *_wrap_WHITE_BRUSH_get() { | |
17491 | PyObject *pyobj; | |
17492 | ||
17493 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17494 | return pyobj; | |
17495 | } | |
17496 | ||
17497 | ||
17498 | static int _wrap_BLACK_BRUSH_set(PyObject *_val) { | |
17499 | PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only."); | |
17500 | return 1; | |
17501 | } | |
17502 | ||
17503 | ||
17504 | static PyObject *_wrap_BLACK_BRUSH_get() { | |
17505 | PyObject *pyobj; | |
17506 | ||
17507 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17508 | return pyobj; | |
17509 | } | |
17510 | ||
17511 | ||
17512 | static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) { | |
17513 | PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only."); | |
17514 | return 1; | |
17515 | } | |
17516 | ||
17517 | ||
17518 | static PyObject *_wrap_TRANSPARENT_BRUSH_get() { | |
17519 | PyObject *pyobj; | |
17520 | ||
17521 | pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17522 | return pyobj; | |
17523 | } | |
17524 | ||
17525 | ||
17526 | static int _wrap_CYAN_BRUSH_set(PyObject *_val) { | |
17527 | PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only."); | |
17528 | return 1; | |
17529 | } | |
17530 | ||
17531 | ||
17532 | static PyObject *_wrap_CYAN_BRUSH_get() { | |
17533 | PyObject *pyobj; | |
17534 | ||
17535 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17536 | return pyobj; | |
17537 | } | |
17538 | ||
17539 | ||
17540 | static int _wrap_RED_BRUSH_set(PyObject *_val) { | |
17541 | PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only."); | |
17542 | return 1; | |
17543 | } | |
17544 | ||
17545 | ||
17546 | static PyObject *_wrap_RED_BRUSH_get() { | |
17547 | PyObject *pyobj; | |
17548 | ||
17549 | pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17550 | return pyobj; | |
17551 | } | |
17552 | ||
17553 | ||
17554 | static int _wrap_GREY_BRUSH_set(PyObject *_val) { | |
17555 | PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only."); | |
17556 | return 1; | |
17557 | } | |
17558 | ||
17559 | ||
17560 | static PyObject *_wrap_GREY_BRUSH_get() { | |
17561 | PyObject *pyobj; | |
17562 | ||
17563 | pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17564 | return pyobj; | |
17565 | } | |
17566 | ||
17567 | ||
17568 | static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) { | |
17569 | PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only."); | |
17570 | return 1; | |
17571 | } | |
17572 | ||
17573 | ||
17574 | static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() { | |
17575 | PyObject *pyobj; | |
17576 | ||
17577 | pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17578 | return pyobj; | |
17579 | } | |
17580 | ||
17581 | ||
17582 | static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) { | |
17583 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only."); | |
17584 | return 1; | |
17585 | } | |
17586 | ||
17587 | ||
17588 | static PyObject *_wrap_LIGHT_GREY_BRUSH_get() { | |
17589 | PyObject *pyobj; | |
17590 | ||
17591 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0); | |
17592 | return pyobj; | |
17593 | } | |
17594 | ||
17595 | ||
17596 | static int _wrap_BLACK_set(PyObject *_val) { | |
17597 | PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only."); | |
17598 | return 1; | |
17599 | } | |
17600 | ||
17601 | ||
17602 | static PyObject *_wrap_BLACK_get() { | |
17603 | PyObject *pyobj; | |
17604 | ||
17605 | pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0); | |
17606 | return pyobj; | |
17607 | } | |
17608 | ||
17609 | ||
17610 | static int _wrap_WHITE_set(PyObject *_val) { | |
17611 | PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only."); | |
17612 | return 1; | |
17613 | } | |
17614 | ||
17615 | ||
17616 | static PyObject *_wrap_WHITE_get() { | |
17617 | PyObject *pyobj; | |
17618 | ||
17619 | pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0); | |
17620 | return pyobj; | |
17621 | } | |
17622 | ||
17623 | ||
17624 | static int _wrap_RED_set(PyObject *_val) { | |
17625 | PyErr_SetString(PyExc_TypeError,"Variable RED is read-only."); | |
17626 | return 1; | |
17627 | } | |
17628 | ||
17629 | ||
17630 | static PyObject *_wrap_RED_get() { | |
17631 | PyObject *pyobj; | |
17632 | ||
17633 | pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0); | |
17634 | return pyobj; | |
17635 | } | |
17636 | ||
17637 | ||
17638 | static int _wrap_BLUE_set(PyObject *_val) { | |
17639 | PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only."); | |
17640 | return 1; | |
17641 | } | |
17642 | ||
17643 | ||
17644 | static PyObject *_wrap_BLUE_get() { | |
17645 | PyObject *pyobj; | |
17646 | ||
17647 | pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0); | |
17648 | return pyobj; | |
17649 | } | |
17650 | ||
17651 | ||
17652 | static int _wrap_GREEN_set(PyObject *_val) { | |
17653 | PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only."); | |
17654 | return 1; | |
17655 | } | |
17656 | ||
17657 | ||
17658 | static PyObject *_wrap_GREEN_get() { | |
17659 | PyObject *pyobj; | |
17660 | ||
17661 | pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0); | |
17662 | return pyobj; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | static int _wrap_CYAN_set(PyObject *_val) { | |
17667 | PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only."); | |
17668 | return 1; | |
17669 | } | |
17670 | ||
17671 | ||
17672 | static PyObject *_wrap_CYAN_get() { | |
17673 | PyObject *pyobj; | |
17674 | ||
17675 | pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0); | |
17676 | return pyobj; | |
17677 | } | |
17678 | ||
17679 | ||
17680 | static int _wrap_LIGHT_GREY_set(PyObject *_val) { | |
17681 | PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only."); | |
17682 | return 1; | |
17683 | } | |
17684 | ||
17685 | ||
17686 | static PyObject *_wrap_LIGHT_GREY_get() { | |
17687 | PyObject *pyobj; | |
17688 | ||
17689 | pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0); | |
17690 | return pyobj; | |
17691 | } | |
17692 | ||
17693 | ||
17694 | static int _wrap_STANDARD_CURSOR_set(PyObject *_val) { | |
17695 | PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only."); | |
17696 | return 1; | |
17697 | } | |
17698 | ||
17699 | ||
17700 | static PyObject *_wrap_STANDARD_CURSOR_get() { | |
17701 | PyObject *pyobj; | |
17702 | ||
17703 | pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17704 | return pyobj; | |
17705 | } | |
17706 | ||
17707 | ||
17708 | static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) { | |
17709 | PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only."); | |
17710 | return 1; | |
17711 | } | |
17712 | ||
17713 | ||
17714 | static PyObject *_wrap_HOURGLASS_CURSOR_get() { | |
17715 | PyObject *pyobj; | |
17716 | ||
17717 | pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17718 | return pyobj; | |
17719 | } | |
17720 | ||
17721 | ||
17722 | static int _wrap_CROSS_CURSOR_set(PyObject *_val) { | |
17723 | PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only."); | |
17724 | return 1; | |
17725 | } | |
17726 | ||
17727 | ||
17728 | static PyObject *_wrap_CROSS_CURSOR_get() { | |
17729 | PyObject *pyobj; | |
17730 | ||
17731 | pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0); | |
17732 | return pyobj; | |
17733 | } | |
17734 | ||
17735 | ||
17736 | static int _wrap_NullBitmap_set(PyObject *_val) { | |
17737 | PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only."); | |
17738 | return 1; | |
17739 | } | |
17740 | ||
17741 | ||
17742 | static PyObject *_wrap_NullBitmap_get() { | |
17743 | PyObject *pyobj; | |
17744 | ||
17745 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0); | |
17746 | return pyobj; | |
17747 | } | |
17748 | ||
17749 | ||
17750 | static int _wrap_NullIcon_set(PyObject *_val) { | |
17751 | PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only."); | |
17752 | return 1; | |
17753 | } | |
17754 | ||
17755 | ||
17756 | static PyObject *_wrap_NullIcon_get() { | |
17757 | PyObject *pyobj; | |
17758 | ||
17759 | pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0); | |
17760 | return pyobj; | |
17761 | } | |
17762 | ||
17763 | ||
17764 | static int _wrap_NullCursor_set(PyObject *_val) { | |
17765 | PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only."); | |
17766 | return 1; | |
17767 | } | |
17768 | ||
17769 | ||
17770 | static PyObject *_wrap_NullCursor_get() { | |
17771 | PyObject *pyobj; | |
17772 | ||
17773 | pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0); | |
17774 | return pyobj; | |
17775 | } | |
17776 | ||
17777 | ||
17778 | static int _wrap_NullPen_set(PyObject *_val) { | |
17779 | PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only."); | |
17780 | return 1; | |
17781 | } | |
17782 | ||
17783 | ||
17784 | static PyObject *_wrap_NullPen_get() { | |
17785 | PyObject *pyobj; | |
17786 | ||
17787 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0); | |
17788 | return pyobj; | |
17789 | } | |
17790 | ||
17791 | ||
17792 | static int _wrap_NullBrush_set(PyObject *_val) { | |
17793 | PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only."); | |
17794 | return 1; | |
17795 | } | |
17796 | ||
17797 | ||
17798 | static PyObject *_wrap_NullBrush_get() { | |
17799 | PyObject *pyobj; | |
17800 | ||
17801 | pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0); | |
17802 | return pyobj; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | static int _wrap_NullPalette_set(PyObject *_val) { | |
17807 | PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only."); | |
17808 | return 1; | |
17809 | } | |
17810 | ||
17811 | ||
17812 | static PyObject *_wrap_NullPalette_get() { | |
17813 | PyObject *pyobj; | |
17814 | ||
17815 | pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0); | |
17816 | return pyobj; | |
17817 | } | |
17818 | ||
17819 | ||
17820 | static int _wrap_NullFont_set(PyObject *_val) { | |
17821 | PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only."); | |
17822 | return 1; | |
17823 | } | |
17824 | ||
17825 | ||
17826 | static PyObject *_wrap_NullFont_get() { | |
17827 | PyObject *pyobj; | |
17828 | ||
17829 | pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0); | |
17830 | return pyobj; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | static int _wrap_NullColour_set(PyObject *_val) { | |
17835 | PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only."); | |
17836 | return 1; | |
17837 | } | |
17838 | ||
17839 | ||
17840 | static PyObject *_wrap_NullColour_get() { | |
17841 | PyObject *pyobj; | |
17842 | ||
17843 | pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0); | |
17844 | return pyobj; | |
17845 | } | |
17846 | ||
17847 | ||
17848 | static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17849 | PyObject *resultobj; | |
17850 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17851 | wxPen *arg2 = (wxPen *) 0 ; | |
17852 | PyObject * obj0 = 0 ; | |
17853 | PyObject * obj1 = 0 ; | |
17854 | char *kwnames[] = { | |
17855 | (char *) "self",(char *) "pen", NULL | |
17856 | }; | |
17857 | ||
17858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail; | |
17859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17861 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17863 | { | |
17864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17865 | (arg1)->AddPen(arg2); | |
17866 | ||
17867 | wxPyEndAllowThreads(__tstate); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
17869 | } | |
17870 | Py_INCREF(Py_None); resultobj = Py_None; | |
17871 | return resultobj; | |
17872 | fail: | |
17873 | return NULL; | |
17874 | } | |
17875 | ||
17876 | ||
17877 | static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17878 | PyObject *resultobj; | |
17879 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17880 | wxColour *arg2 = 0 ; | |
17881 | int arg3 ; | |
17882 | int arg4 ; | |
17883 | wxPen *result; | |
17884 | wxColour temp2 ; | |
17885 | PyObject * obj0 = 0 ; | |
17886 | PyObject * obj1 = 0 ; | |
17887 | PyObject * obj2 = 0 ; | |
17888 | PyObject * obj3 = 0 ; | |
17889 | char *kwnames[] = { | |
17890 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
17891 | }; | |
17892 | ||
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
17894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17896 | { | |
17897 | arg2 = &temp2; | |
17898 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17899 | } | |
17900 | arg3 = (int) SWIG_AsInt(obj2); | |
17901 | if (PyErr_Occurred()) SWIG_fail; | |
17902 | arg4 = (int) SWIG_AsInt(obj3); | |
17903 | if (PyErr_Occurred()) SWIG_fail; | |
17904 | { | |
17905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17906 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
17907 | ||
17908 | wxPyEndAllowThreads(__tstate); | |
17909 | if (PyErr_Occurred()) SWIG_fail; | |
17910 | } | |
17911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0); | |
17912 | return resultobj; | |
17913 | fail: | |
17914 | return NULL; | |
17915 | } | |
17916 | ||
17917 | ||
17918 | static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17919 | PyObject *resultobj; | |
17920 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17921 | wxPen *arg2 = (wxPen *) 0 ; | |
17922 | PyObject * obj0 = 0 ; | |
17923 | PyObject * obj1 = 0 ; | |
17924 | char *kwnames[] = { | |
17925 | (char *) "self",(char *) "pen", NULL | |
17926 | }; | |
17927 | ||
17928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail; | |
17929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17931 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen, | |
17932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17933 | { | |
17934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17935 | (arg1)->RemovePen(arg2); | |
17936 | ||
17937 | wxPyEndAllowThreads(__tstate); | |
17938 | if (PyErr_Occurred()) SWIG_fail; | |
17939 | } | |
17940 | Py_INCREF(Py_None); resultobj = Py_None; | |
17941 | return resultobj; | |
17942 | fail: | |
17943 | return NULL; | |
17944 | } | |
17945 | ||
17946 | ||
17947 | static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17948 | PyObject *resultobj; | |
17949 | wxPenList *arg1 = (wxPenList *) 0 ; | |
17950 | int result; | |
17951 | PyObject * obj0 = 0 ; | |
17952 | char *kwnames[] = { | |
17953 | (char *) "self", NULL | |
17954 | }; | |
17955 | ||
17956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail; | |
17957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList, | |
17958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17959 | { | |
17960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17961 | result = (int)(arg1)->GetCount(); | |
17962 | ||
17963 | wxPyEndAllowThreads(__tstate); | |
17964 | if (PyErr_Occurred()) SWIG_fail; | |
17965 | } | |
17966 | resultobj = SWIG_FromInt((int)result); | |
17967 | return resultobj; | |
17968 | fail: | |
17969 | return NULL; | |
17970 | } | |
17971 | ||
17972 | ||
17973 | static PyObject * PenList_swigregister(PyObject *self, PyObject *args) { | |
17974 | PyObject *obj; | |
17975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17976 | SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj); | |
17977 | Py_INCREF(obj); | |
17978 | return Py_BuildValue((char *)""); | |
17979 | } | |
17980 | static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17981 | PyObject *resultobj; | |
17982 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
17983 | wxBrush *arg2 = (wxBrush *) 0 ; | |
17984 | PyObject * obj0 = 0 ; | |
17985 | PyObject * obj1 = 0 ; | |
17986 | char *kwnames[] = { | |
17987 | (char *) "self",(char *) "brush", NULL | |
17988 | }; | |
17989 | ||
17990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail; | |
17991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
17992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17993 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
17994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17995 | { | |
17996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17997 | (arg1)->AddBrush(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_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18012 | wxColour *arg2 = 0 ; | |
18013 | int arg3 ; | |
18014 | wxBrush *result; | |
18015 | wxColour temp2 ; | |
18016 | PyObject * obj0 = 0 ; | |
18017 | PyObject * obj1 = 0 ; | |
18018 | PyObject * obj2 = 0 ; | |
18019 | char *kwnames[] = { | |
18020 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
18021 | }; | |
18022 | ||
18023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18026 | { | |
18027 | arg2 = &temp2; | |
18028 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18029 | } | |
18030 | arg3 = (int) SWIG_AsInt(obj2); | |
18031 | if (PyErr_Occurred()) SWIG_fail; | |
18032 | { | |
18033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18034 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
18035 | ||
18036 | wxPyEndAllowThreads(__tstate); | |
18037 | if (PyErr_Occurred()) SWIG_fail; | |
18038 | } | |
18039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0); | |
18040 | return resultobj; | |
18041 | fail: | |
18042 | return NULL; | |
18043 | } | |
18044 | ||
18045 | ||
18046 | static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18047 | PyObject *resultobj; | |
18048 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18049 | wxBrush *arg2 = (wxBrush *) 0 ; | |
18050 | PyObject * obj0 = 0 ; | |
18051 | PyObject * obj1 = 0 ; | |
18052 | char *kwnames[] = { | |
18053 | (char *) "self",(char *) "brush", NULL | |
18054 | }; | |
18055 | ||
18056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail; | |
18057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush, | |
18060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18061 | { | |
18062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18063 | (arg1)->RemoveBrush(arg2); | |
18064 | ||
18065 | wxPyEndAllowThreads(__tstate); | |
18066 | if (PyErr_Occurred()) SWIG_fail; | |
18067 | } | |
18068 | Py_INCREF(Py_None); resultobj = Py_None; | |
18069 | return resultobj; | |
18070 | fail: | |
18071 | return NULL; | |
18072 | } | |
18073 | ||
18074 | ||
18075 | static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18076 | PyObject *resultobj; | |
18077 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
18078 | int result; | |
18079 | PyObject * obj0 = 0 ; | |
18080 | char *kwnames[] = { | |
18081 | (char *) "self", NULL | |
18082 | }; | |
18083 | ||
18084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail; | |
18085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList, | |
18086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18087 | { | |
18088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18089 | result = (int)(arg1)->GetCount(); | |
18090 | ||
18091 | wxPyEndAllowThreads(__tstate); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
18093 | } | |
18094 | resultobj = SWIG_FromInt((int)result); | |
18095 | return resultobj; | |
18096 | fail: | |
18097 | return NULL; | |
18098 | } | |
18099 | ||
18100 | ||
18101 | static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) { | |
18102 | PyObject *obj; | |
18103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18104 | SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj); | |
18105 | Py_INCREF(obj); | |
18106 | return Py_BuildValue((char *)""); | |
18107 | } | |
18108 | static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18109 | PyObject *resultobj; | |
18110 | wxColourDatabase *result; | |
18111 | char *kwnames[] = { | |
18112 | NULL | |
18113 | }; | |
18114 | ||
18115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail; | |
18116 | { | |
0439c23b | 18117 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18119 | result = (wxColourDatabase *)new wxColourDatabase(); | |
18120 | ||
18121 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 18122 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18123 | } |
18124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1); | |
18125 | return resultobj; | |
18126 | fail: | |
18127 | return NULL; | |
18128 | } | |
18129 | ||
18130 | ||
18131 | static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18132 | PyObject *resultobj; | |
18133 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18134 | PyObject * obj0 = 0 ; | |
18135 | char *kwnames[] = { | |
18136 | (char *) "self", NULL | |
18137 | }; | |
18138 | ||
18139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail; | |
18140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18142 | { | |
18143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18144 | delete arg1; | |
18145 | ||
18146 | wxPyEndAllowThreads(__tstate); | |
18147 | if (PyErr_Occurred()) SWIG_fail; | |
18148 | } | |
18149 | Py_INCREF(Py_None); resultobj = Py_None; | |
18150 | return resultobj; | |
18151 | fail: | |
18152 | return NULL; | |
18153 | } | |
18154 | ||
18155 | ||
18156 | static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18157 | PyObject *resultobj; | |
18158 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18159 | wxString *arg2 = 0 ; | |
18160 | wxColour result; | |
18161 | bool temp2 = False ; | |
18162 | PyObject * obj0 = 0 ; | |
18163 | PyObject * obj1 = 0 ; | |
18164 | char *kwnames[] = { | |
18165 | (char *) "self",(char *) "name", NULL | |
18166 | }; | |
18167 | ||
18168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail; | |
18169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18171 | { | |
18172 | arg2 = wxString_in_helper(obj1); | |
18173 | if (arg2 == NULL) SWIG_fail; | |
18174 | temp2 = True; | |
18175 | } | |
18176 | { | |
18177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18178 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
18179 | ||
18180 | wxPyEndAllowThreads(__tstate); | |
18181 | if (PyErr_Occurred()) SWIG_fail; | |
18182 | } | |
18183 | { | |
18184 | wxColour * resultptr; | |
18185 | resultptr = new wxColour((wxColour &) result); | |
18186 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18187 | } | |
18188 | { | |
18189 | if (temp2) | |
18190 | delete arg2; | |
18191 | } | |
18192 | return resultobj; | |
18193 | fail: | |
18194 | { | |
18195 | if (temp2) | |
18196 | delete arg2; | |
18197 | } | |
18198 | return NULL; | |
18199 | } | |
18200 | ||
18201 | ||
18202 | static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18203 | PyObject *resultobj; | |
18204 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18205 | wxColour *arg2 = 0 ; | |
18206 | wxString result; | |
18207 | wxColour temp2 ; | |
18208 | PyObject * obj0 = 0 ; | |
18209 | PyObject * obj1 = 0 ; | |
18210 | char *kwnames[] = { | |
18211 | (char *) "self",(char *) "colour", NULL | |
18212 | }; | |
18213 | ||
18214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail; | |
18215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18217 | { | |
18218 | arg2 = &temp2; | |
18219 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18220 | } | |
18221 | { | |
18222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18223 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
18224 | ||
18225 | wxPyEndAllowThreads(__tstate); | |
18226 | if (PyErr_Occurred()) SWIG_fail; | |
18227 | } | |
18228 | { | |
18229 | #if wxUSE_UNICODE | |
18230 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18231 | #else | |
18232 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18233 | #endif | |
18234 | } | |
18235 | return resultobj; | |
18236 | fail: | |
18237 | return NULL; | |
18238 | } | |
18239 | ||
18240 | ||
18241 | static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18242 | PyObject *resultobj; | |
18243 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18244 | wxString *arg2 = 0 ; | |
18245 | wxColour *arg3 = 0 ; | |
18246 | bool temp2 = False ; | |
18247 | wxColour temp3 ; | |
18248 | PyObject * obj0 = 0 ; | |
18249 | PyObject * obj1 = 0 ; | |
18250 | PyObject * obj2 = 0 ; | |
18251 | char *kwnames[] = { | |
18252 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
18253 | }; | |
18254 | ||
18255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18258 | { | |
18259 | arg2 = wxString_in_helper(obj1); | |
18260 | if (arg2 == NULL) SWIG_fail; | |
18261 | temp2 = True; | |
18262 | } | |
18263 | { | |
18264 | arg3 = &temp3; | |
18265 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18266 | } | |
18267 | { | |
18268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18269 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
18270 | ||
18271 | wxPyEndAllowThreads(__tstate); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
18273 | } | |
18274 | Py_INCREF(Py_None); resultobj = Py_None; | |
18275 | { | |
18276 | if (temp2) | |
18277 | delete arg2; | |
18278 | } | |
18279 | return resultobj; | |
18280 | fail: | |
18281 | { | |
18282 | if (temp2) | |
18283 | delete arg2; | |
18284 | } | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
18289 | static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj; | |
18291 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
18292 | wxString *arg2 = 0 ; | |
18293 | int arg3 ; | |
18294 | int arg4 ; | |
18295 | int arg5 ; | |
18296 | bool temp2 = False ; | |
18297 | PyObject * obj0 = 0 ; | |
18298 | PyObject * obj1 = 0 ; | |
18299 | PyObject * obj2 = 0 ; | |
18300 | PyObject * obj3 = 0 ; | |
18301 | PyObject * obj4 = 0 ; | |
18302 | char *kwnames[] = { | |
18303 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL | |
18304 | }; | |
18305 | ||
18306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
18307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase, | |
18308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18309 | { | |
18310 | arg2 = wxString_in_helper(obj1); | |
18311 | if (arg2 == NULL) SWIG_fail; | |
18312 | temp2 = True; | |
18313 | } | |
18314 | arg3 = (int) SWIG_AsInt(obj2); | |
18315 | if (PyErr_Occurred()) SWIG_fail; | |
18316 | arg4 = (int) SWIG_AsInt(obj3); | |
18317 | if (PyErr_Occurred()) SWIG_fail; | |
18318 | arg5 = (int) SWIG_AsInt(obj4); | |
18319 | if (PyErr_Occurred()) SWIG_fail; | |
18320 | { | |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
18327 | Py_INCREF(Py_None); resultobj = Py_None; | |
18328 | { | |
18329 | if (temp2) | |
18330 | delete arg2; | |
18331 | } | |
18332 | return resultobj; | |
18333 | fail: | |
18334 | { | |
18335 | if (temp2) | |
18336 | delete arg2; | |
18337 | } | |
18338 | return NULL; | |
18339 | } | |
18340 | ||
18341 | ||
18342 | static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) { | |
18343 | PyObject *obj; | |
18344 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18345 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj); | |
18346 | Py_INCREF(obj); | |
18347 | return Py_BuildValue((char *)""); | |
18348 | } | |
18349 | static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18350 | PyObject *resultobj; | |
18351 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18352 | wxFont *arg2 = (wxFont *) 0 ; | |
18353 | PyObject * obj0 = 0 ; | |
18354 | PyObject * obj1 = 0 ; | |
18355 | char *kwnames[] = { | |
18356 | (char *) "self",(char *) "font", NULL | |
18357 | }; | |
18358 | ||
18359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail; | |
18360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18362 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18364 | { | |
18365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18366 | (arg1)->AddFont(arg2); | |
18367 | ||
18368 | wxPyEndAllowThreads(__tstate); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
18371 | Py_INCREF(Py_None); resultobj = Py_None; | |
18372 | return resultobj; | |
18373 | fail: | |
18374 | return NULL; | |
18375 | } | |
18376 | ||
18377 | ||
18378 | static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18379 | PyObject *resultobj; | |
18380 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18381 | int arg2 ; | |
18382 | int arg3 ; | |
18383 | int arg4 ; | |
18384 | int arg5 ; | |
18385 | bool arg6 = (bool) False ; | |
18386 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
18387 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18388 | int arg8 = (int) wxFONTENCODING_DEFAULT ; | |
18389 | wxFont *result; | |
18390 | bool temp7 = False ; | |
18391 | PyObject * obj0 = 0 ; | |
18392 | PyObject * obj1 = 0 ; | |
18393 | PyObject * obj2 = 0 ; | |
18394 | PyObject * obj3 = 0 ; | |
18395 | PyObject * obj4 = 0 ; | |
18396 | PyObject * obj5 = 0 ; | |
18397 | PyObject * obj6 = 0 ; | |
18398 | PyObject * obj7 = 0 ; | |
18399 | char *kwnames[] = { | |
18400 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL | |
18401 | }; | |
18402 | ||
18403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
18404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18406 | arg2 = (int) SWIG_AsInt(obj1); | |
18407 | if (PyErr_Occurred()) SWIG_fail; | |
18408 | arg3 = (int) SWIG_AsInt(obj2); | |
18409 | if (PyErr_Occurred()) SWIG_fail; | |
18410 | arg4 = (int) SWIG_AsInt(obj3); | |
18411 | if (PyErr_Occurred()) SWIG_fail; | |
18412 | arg5 = (int) SWIG_AsInt(obj4); | |
18413 | if (PyErr_Occurred()) SWIG_fail; | |
18414 | if (obj5) { | |
18415 | arg6 = (bool) SWIG_AsBool(obj5); | |
18416 | if (PyErr_Occurred()) SWIG_fail; | |
18417 | } | |
18418 | if (obj6) { | |
18419 | { | |
18420 | arg7 = wxString_in_helper(obj6); | |
18421 | if (arg7 == NULL) SWIG_fail; | |
18422 | temp7 = True; | |
18423 | } | |
18424 | } | |
18425 | if (obj7) { | |
18426 | arg8 = (wxFontEncoding) SWIG_AsInt(obj7); | |
18427 | if (PyErr_Occurred()) SWIG_fail; | |
18428 | } | |
18429 | { | |
18430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18431 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8); | |
18432 | ||
18433 | wxPyEndAllowThreads(__tstate); | |
18434 | if (PyErr_Occurred()) SWIG_fail; | |
18435 | } | |
18436 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
18437 | { | |
18438 | if (temp7) | |
18439 | delete arg7; | |
18440 | } | |
18441 | return resultobj; | |
18442 | fail: | |
18443 | { | |
18444 | if (temp7) | |
18445 | delete arg7; | |
18446 | } | |
18447 | return NULL; | |
18448 | } | |
18449 | ||
18450 | ||
18451 | static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18452 | PyObject *resultobj; | |
18453 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18454 | wxFont *arg2 = (wxFont *) 0 ; | |
18455 | PyObject * obj0 = 0 ; | |
18456 | PyObject * obj1 = 0 ; | |
18457 | char *kwnames[] = { | |
18458 | (char *) "self",(char *) "font", NULL | |
18459 | }; | |
18460 | ||
18461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail; | |
18462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18466 | { | |
18467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18468 | (arg1)->RemoveFont(arg2); | |
18469 | ||
18470 | wxPyEndAllowThreads(__tstate); | |
18471 | if (PyErr_Occurred()) SWIG_fail; | |
18472 | } | |
18473 | Py_INCREF(Py_None); resultobj = Py_None; | |
18474 | return resultobj; | |
18475 | fail: | |
18476 | return NULL; | |
18477 | } | |
18478 | ||
18479 | ||
18480 | static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18481 | PyObject *resultobj; | |
18482 | wxFontList *arg1 = (wxFontList *) 0 ; | |
18483 | int result; | |
18484 | PyObject * obj0 = 0 ; | |
18485 | char *kwnames[] = { | |
18486 | (char *) "self", NULL | |
18487 | }; | |
18488 | ||
18489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail; | |
18490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList, | |
18491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18492 | { | |
18493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18494 | result = (int)(arg1)->GetCount(); | |
18495 | ||
18496 | wxPyEndAllowThreads(__tstate); | |
18497 | if (PyErr_Occurred()) SWIG_fail; | |
18498 | } | |
18499 | resultobj = SWIG_FromInt((int)result); | |
18500 | return resultobj; | |
18501 | fail: | |
18502 | return NULL; | |
18503 | } | |
18504 | ||
18505 | ||
18506 | static PyObject * FontList_swigregister(PyObject *self, PyObject *args) { | |
18507 | PyObject *obj; | |
18508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18509 | SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj); | |
18510 | Py_INCREF(obj); | |
18511 | return Py_BuildValue((char *)""); | |
18512 | } | |
18513 | static int _wrap_TheFontList_set(PyObject *_val) { | |
18514 | PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only."); | |
18515 | return 1; | |
18516 | } | |
18517 | ||
18518 | ||
18519 | static PyObject *_wrap_TheFontList_get() { | |
18520 | PyObject *pyobj; | |
18521 | ||
18522 | pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0); | |
18523 | return pyobj; | |
18524 | } | |
18525 | ||
18526 | ||
18527 | static int _wrap_ThePenList_set(PyObject *_val) { | |
18528 | PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only."); | |
18529 | return 1; | |
18530 | } | |
18531 | ||
18532 | ||
18533 | static PyObject *_wrap_ThePenList_get() { | |
18534 | PyObject *pyobj; | |
18535 | ||
18536 | pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0); | |
18537 | return pyobj; | |
18538 | } | |
18539 | ||
18540 | ||
18541 | static int _wrap_TheBrushList_set(PyObject *_val) { | |
18542 | PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only."); | |
18543 | return 1; | |
18544 | } | |
18545 | ||
18546 | ||
18547 | static PyObject *_wrap_TheBrushList_get() { | |
18548 | PyObject *pyobj; | |
18549 | ||
18550 | pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0); | |
18551 | return pyobj; | |
18552 | } | |
18553 | ||
18554 | ||
18555 | static int _wrap_TheColourDatabase_set(PyObject *_val) { | |
18556 | PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only."); | |
18557 | return 1; | |
18558 | } | |
18559 | ||
18560 | ||
18561 | static PyObject *_wrap_TheColourDatabase_get() { | |
18562 | PyObject *pyobj; | |
18563 | ||
18564 | pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0); | |
18565 | return pyobj; | |
18566 | } | |
18567 | ||
18568 | ||
18569 | static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18570 | PyObject *resultobj; | |
18571 | wxEffects *result; | |
18572 | char *kwnames[] = { | |
18573 | NULL | |
18574 | }; | |
18575 | ||
18576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail; | |
18577 | { | |
18578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18579 | result = (wxEffects *)new wxEffects(); | |
18580 | ||
18581 | wxPyEndAllowThreads(__tstate); | |
18582 | if (PyErr_Occurred()) SWIG_fail; | |
18583 | } | |
18584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1); | |
18585 | return resultobj; | |
18586 | fail: | |
18587 | return NULL; | |
18588 | } | |
18589 | ||
18590 | ||
18591 | static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18592 | PyObject *resultobj; | |
18593 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18594 | wxColour result; | |
18595 | PyObject * obj0 = 0 ; | |
18596 | char *kwnames[] = { | |
18597 | (char *) "self", NULL | |
18598 | }; | |
18599 | ||
18600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail; | |
18601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18603 | { | |
18604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18605 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
18606 | ||
18607 | wxPyEndAllowThreads(__tstate); | |
18608 | if (PyErr_Occurred()) SWIG_fail; | |
18609 | } | |
18610 | { | |
18611 | wxColour * resultptr; | |
18612 | resultptr = new wxColour((wxColour &) result); | |
18613 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18614 | } | |
18615 | return resultobj; | |
18616 | fail: | |
18617 | return NULL; | |
18618 | } | |
18619 | ||
18620 | ||
18621 | static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18622 | PyObject *resultobj; | |
18623 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18624 | wxColour result; | |
18625 | PyObject * obj0 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail; | |
18631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18633 | { | |
18634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18635 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
18636 | ||
18637 | wxPyEndAllowThreads(__tstate); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
18640 | { | |
18641 | wxColour * resultptr; | |
18642 | resultptr = new wxColour((wxColour &) result); | |
18643 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18644 | } | |
18645 | return resultobj; | |
18646 | fail: | |
18647 | return NULL; | |
18648 | } | |
18649 | ||
18650 | ||
18651 | static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18652 | PyObject *resultobj; | |
18653 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18654 | wxColour result; | |
18655 | PyObject * obj0 = 0 ; | |
18656 | char *kwnames[] = { | |
18657 | (char *) "self", NULL | |
18658 | }; | |
18659 | ||
18660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail; | |
18661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18663 | { | |
18664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18665 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
18666 | ||
18667 | wxPyEndAllowThreads(__tstate); | |
18668 | if (PyErr_Occurred()) SWIG_fail; | |
18669 | } | |
18670 | { | |
18671 | wxColour * resultptr; | |
18672 | resultptr = new wxColour((wxColour &) result); | |
18673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18674 | } | |
18675 | return resultobj; | |
18676 | fail: | |
18677 | return NULL; | |
18678 | } | |
18679 | ||
18680 | ||
18681 | static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18682 | PyObject *resultobj; | |
18683 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18684 | wxColour result; | |
18685 | PyObject * obj0 = 0 ; | |
18686 | char *kwnames[] = { | |
18687 | (char *) "self", NULL | |
18688 | }; | |
18689 | ||
18690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail; | |
18691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18693 | { | |
18694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18695 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
18696 | ||
18697 | wxPyEndAllowThreads(__tstate); | |
18698 | if (PyErr_Occurred()) SWIG_fail; | |
18699 | } | |
18700 | { | |
18701 | wxColour * resultptr; | |
18702 | resultptr = new wxColour((wxColour &) result); | |
18703 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18704 | } | |
18705 | return resultobj; | |
18706 | fail: | |
18707 | return NULL; | |
18708 | } | |
18709 | ||
18710 | ||
18711 | static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18712 | PyObject *resultobj; | |
18713 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18714 | wxColour result; | |
18715 | PyObject * obj0 = 0 ; | |
18716 | char *kwnames[] = { | |
18717 | (char *) "self", NULL | |
18718 | }; | |
18719 | ||
18720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail; | |
18721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18723 | { | |
18724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18725 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
18726 | ||
18727 | wxPyEndAllowThreads(__tstate); | |
18728 | if (PyErr_Occurred()) SWIG_fail; | |
18729 | } | |
18730 | { | |
18731 | wxColour * resultptr; | |
18732 | resultptr = new wxColour((wxColour &) result); | |
18733 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18734 | } | |
18735 | return resultobj; | |
18736 | fail: | |
18737 | return NULL; | |
18738 | } | |
18739 | ||
18740 | ||
18741 | static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18742 | PyObject *resultobj; | |
18743 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18744 | wxColour *arg2 = 0 ; | |
18745 | wxColour temp2 ; | |
18746 | PyObject * obj0 = 0 ; | |
18747 | PyObject * obj1 = 0 ; | |
18748 | char *kwnames[] = { | |
18749 | (char *) "self",(char *) "c", NULL | |
18750 | }; | |
18751 | ||
18752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail; | |
18753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18755 | { | |
18756 | arg2 = &temp2; | |
18757 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18758 | } | |
18759 | { | |
18760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18761 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
18762 | ||
18763 | wxPyEndAllowThreads(__tstate); | |
18764 | if (PyErr_Occurred()) SWIG_fail; | |
18765 | } | |
18766 | Py_INCREF(Py_None); resultobj = Py_None; | |
18767 | return resultobj; | |
18768 | fail: | |
18769 | return NULL; | |
18770 | } | |
18771 | ||
18772 | ||
18773 | static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18774 | PyObject *resultobj; | |
18775 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18776 | wxColour *arg2 = 0 ; | |
18777 | wxColour temp2 ; | |
18778 | PyObject * obj0 = 0 ; | |
18779 | PyObject * obj1 = 0 ; | |
18780 | char *kwnames[] = { | |
18781 | (char *) "self",(char *) "c", NULL | |
18782 | }; | |
18783 | ||
18784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail; | |
18785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18787 | { | |
18788 | arg2 = &temp2; | |
18789 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18790 | } | |
18791 | { | |
18792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18793 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
18794 | ||
18795 | wxPyEndAllowThreads(__tstate); | |
18796 | if (PyErr_Occurred()) SWIG_fail; | |
18797 | } | |
18798 | Py_INCREF(Py_None); resultobj = Py_None; | |
18799 | return resultobj; | |
18800 | fail: | |
18801 | return NULL; | |
18802 | } | |
18803 | ||
18804 | ||
18805 | static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18806 | PyObject *resultobj; | |
18807 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18808 | wxColour *arg2 = 0 ; | |
18809 | wxColour temp2 ; | |
18810 | PyObject * obj0 = 0 ; | |
18811 | PyObject * obj1 = 0 ; | |
18812 | char *kwnames[] = { | |
18813 | (char *) "self",(char *) "c", NULL | |
18814 | }; | |
18815 | ||
18816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail; | |
18817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18819 | { | |
18820 | arg2 = &temp2; | |
18821 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18822 | } | |
18823 | { | |
18824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18825 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
18826 | ||
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | Py_INCREF(Py_None); resultobj = Py_None; | |
18831 | return resultobj; | |
18832 | fail: | |
18833 | return NULL; | |
18834 | } | |
18835 | ||
18836 | ||
18837 | static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18838 | PyObject *resultobj; | |
18839 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18840 | wxColour *arg2 = 0 ; | |
18841 | wxColour temp2 ; | |
18842 | PyObject * obj0 = 0 ; | |
18843 | PyObject * obj1 = 0 ; | |
18844 | char *kwnames[] = { | |
18845 | (char *) "self",(char *) "c", NULL | |
18846 | }; | |
18847 | ||
18848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail; | |
18849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18851 | { | |
18852 | arg2 = &temp2; | |
18853 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18854 | } | |
18855 | { | |
18856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18857 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
18858 | ||
18859 | wxPyEndAllowThreads(__tstate); | |
18860 | if (PyErr_Occurred()) SWIG_fail; | |
18861 | } | |
18862 | Py_INCREF(Py_None); resultobj = Py_None; | |
18863 | return resultobj; | |
18864 | fail: | |
18865 | return NULL; | |
18866 | } | |
18867 | ||
18868 | ||
18869 | static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18870 | PyObject *resultobj; | |
18871 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18872 | wxColour *arg2 = 0 ; | |
18873 | wxColour temp2 ; | |
18874 | PyObject * obj0 = 0 ; | |
18875 | PyObject * obj1 = 0 ; | |
18876 | char *kwnames[] = { | |
18877 | (char *) "self",(char *) "c", NULL | |
18878 | }; | |
18879 | ||
18880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail; | |
18881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18883 | { | |
18884 | arg2 = &temp2; | |
18885 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18886 | } | |
18887 | { | |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
18890 | ||
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | Py_INCREF(Py_None); resultobj = Py_None; | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18904 | wxColour *arg2 = 0 ; | |
18905 | wxColour *arg3 = 0 ; | |
18906 | wxColour *arg4 = 0 ; | |
18907 | wxColour *arg5 = 0 ; | |
18908 | wxColour *arg6 = 0 ; | |
18909 | wxColour temp2 ; | |
18910 | wxColour temp3 ; | |
18911 | wxColour temp4 ; | |
18912 | wxColour temp5 ; | |
18913 | wxColour temp6 ; | |
18914 | PyObject * obj0 = 0 ; | |
18915 | PyObject * obj1 = 0 ; | |
18916 | PyObject * obj2 = 0 ; | |
18917 | PyObject * obj3 = 0 ; | |
18918 | PyObject * obj4 = 0 ; | |
18919 | PyObject * obj5 = 0 ; | |
18920 | char *kwnames[] = { | |
18921 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
18922 | }; | |
18923 | ||
18924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
18925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18927 | { | |
18928 | arg2 = &temp2; | |
18929 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18930 | } | |
18931 | { | |
18932 | arg3 = &temp3; | |
18933 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18934 | } | |
18935 | { | |
18936 | arg4 = &temp4; | |
18937 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18938 | } | |
18939 | { | |
18940 | arg5 = &temp5; | |
18941 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
18942 | } | |
18943 | { | |
18944 | arg6 = &temp6; | |
18945 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
18946 | } | |
18947 | { | |
18948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18949 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
18950 | ||
18951 | wxPyEndAllowThreads(__tstate); | |
18952 | if (PyErr_Occurred()) SWIG_fail; | |
18953 | } | |
18954 | Py_INCREF(Py_None); resultobj = Py_None; | |
18955 | return resultobj; | |
18956 | fail: | |
18957 | return NULL; | |
18958 | } | |
18959 | ||
18960 | ||
18961 | static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18962 | PyObject *resultobj; | |
18963 | wxEffects *arg1 = (wxEffects *) 0 ; | |
18964 | wxDC *arg2 = 0 ; | |
18965 | wxRect *arg3 = 0 ; | |
18966 | int arg4 = (int) 1 ; | |
18967 | wxRect temp3 ; | |
18968 | PyObject * obj0 = 0 ; | |
18969 | PyObject * obj1 = 0 ; | |
18970 | PyObject * obj2 = 0 ; | |
18971 | PyObject * obj3 = 0 ; | |
18972 | char *kwnames[] = { | |
18973 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
18974 | }; | |
18975 | ||
18976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
18977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
18978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18979 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
18980 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18981 | SWIG_fail; | |
18982 | if (arg2 == NULL) { | |
18983 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18984 | SWIG_fail; | |
18985 | } | |
18986 | { | |
18987 | arg3 = &temp3; | |
18988 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
18989 | } | |
18990 | if (obj3) { | |
18991 | arg4 = (int) SWIG_AsInt(obj3); | |
18992 | if (PyErr_Occurred()) SWIG_fail; | |
18993 | } | |
18994 | { | |
18995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18996 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
18997 | ||
18998 | wxPyEndAllowThreads(__tstate); | |
18999 | if (PyErr_Occurred()) SWIG_fail; | |
19000 | } | |
19001 | Py_INCREF(Py_None); resultobj = Py_None; | |
19002 | return resultobj; | |
19003 | fail: | |
19004 | return NULL; | |
19005 | } | |
19006 | ||
19007 | ||
19008 | static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19009 | PyObject *resultobj; | |
19010 | wxEffects *arg1 = (wxEffects *) 0 ; | |
19011 | wxRect *arg2 = 0 ; | |
19012 | wxDC *arg3 = 0 ; | |
19013 | wxBitmap *arg4 = 0 ; | |
19014 | bool result; | |
19015 | wxRect temp2 ; | |
19016 | PyObject * obj0 = 0 ; | |
19017 | PyObject * obj1 = 0 ; | |
19018 | PyObject * obj2 = 0 ; | |
19019 | PyObject * obj3 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects, | |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19027 | { | |
19028 | arg2 = &temp2; | |
19029 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19030 | } | |
19031 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
19032 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19033 | SWIG_fail; | |
19034 | if (arg3 == NULL) { | |
19035 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19036 | SWIG_fail; | |
19037 | } | |
19038 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
19039 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19040 | SWIG_fail; | |
19041 | if (arg4 == NULL) { | |
19042 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19043 | SWIG_fail; | |
19044 | } | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19047 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
19048 | ||
19049 | wxPyEndAllowThreads(__tstate); | |
19050 | if (PyErr_Occurred()) SWIG_fail; | |
19051 | } | |
19052 | { | |
19053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19054 | } | |
19055 | return resultobj; | |
19056 | fail: | |
19057 | return NULL; | |
19058 | } | |
19059 | ||
19060 | ||
19061 | static PyObject * Effects_swigregister(PyObject *self, PyObject *args) { | |
19062 | PyObject *obj; | |
19063 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19064 | SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj); | |
19065 | Py_INCREF(obj); | |
19066 | return Py_BuildValue((char *)""); | |
19067 | } | |
19068 | static PyMethodDef SwigMethods[] = { | |
19069 | { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
19070 | { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS }, | |
19071 | { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
19072 | { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
19073 | { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
19074 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS }, | |
19075 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS }, | |
19076 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS }, | |
19077 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS }, | |
19078 | { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS }, | |
19079 | { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS }, | |
19080 | { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS }, | |
19081 | { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
19082 | { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19083 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS }, | |
19084 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
19085 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS }, | |
19086 | { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
19087 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
19088 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS }, | |
19089 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS }, | |
19090 | { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
19091 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS }, | |
19092 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS }, | |
19093 | { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS }, | |
19094 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
19095 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
19096 | { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19097 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS }, | |
19098 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS }, | |
19099 | { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS }, | |
19100 | { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
19101 | { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
19102 | { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
19103 | { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19104 | { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19105 | { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19106 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
19107 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
19108 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
19109 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19110 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19111 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
19112 | { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19113 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19114 | { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS }, |
19115 | { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
19116 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 RD |
19117 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS }, |
19118 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 19119 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS }, |
d55e5bfc RD |
19120 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS }, |
19121 | { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS }, | |
19122 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
19123 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19124 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
19125 | { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
19126 | { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19127 | { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
19128 | { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19129 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS }, | |
19130 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
19131 | { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19132 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19133 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
19134 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS }, | |
19135 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
19136 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
19137 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
19138 | { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19139 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19140 | { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19141 | { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19142 | { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19143 | { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19144 | { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19145 | { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS }, | |
19146 | { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
19147 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
19148 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
19149 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19150 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
19151 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
19152 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
19153 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19154 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19155 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19156 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
19157 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
19158 | { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
19159 | { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
19160 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS }, | |
19161 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS }, | |
19162 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS }, | |
19163 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS }, | |
19164 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS }, | |
19165 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS }, | |
19166 | { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS }, | |
19167 | { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
19168 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS }, | |
19169 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19170 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
19171 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
19172 | { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19173 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19174 | { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19175 | { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19176 | { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19177 | { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19178 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19179 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19180 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19181 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
19182 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19183 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS }, | |
19184 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
19185 | { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS }, | |
19186 | { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
19187 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19188 | { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19189 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS }, | |
19190 | { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
19191 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS }, | |
19192 | { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
19193 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
19194 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
19195 | { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS }, | |
19196 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
19197 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
19198 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
19199 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS }, | |
19200 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
19201 | { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS }, | |
19202 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS }, | |
19203 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS }, | |
19204 | { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19205 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
19206 | { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19207 | { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19208 | { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19209 | { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19210 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19211 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19212 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19213 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
19214 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS }, | |
19215 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS }, | |
19216 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
a2569024 | 19217 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19218 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS }, |
19219 | { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS }, | |
19220 | { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS }, | |
19221 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS }, | |
19222 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS }, | |
19223 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
19224 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
19225 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
19226 | { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
19227 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
19228 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
19229 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
19230 | { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
19231 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS }, | |
19232 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
19233 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
19234 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
19235 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
19236 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
19237 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS }, | |
19238 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
19239 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
19240 | { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19241 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS }, | |
a2569024 | 19242 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19243 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS }, |
19244 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
19245 | { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
19246 | { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
19247 | { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
19248 | { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
19249 | { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19250 | { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
19251 | { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19252 | { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
19253 | { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
19254 | { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
19255 | { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
19256 | { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS }, | |
19257 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS }, | |
19258 | { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19259 | { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19260 | { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
19261 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS }, | |
19262 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19263 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19264 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19265 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19266 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19267 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19268 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19269 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19270 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19271 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19272 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19273 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19274 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19275 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19276 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
19277 | { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
19278 | { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, | |
19279 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
19280 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, | |
19281 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS }, | |
19282 | { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS }, | |
19283 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS }, | |
19284 | { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS }, | |
19285 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS }, | |
19286 | { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
19287 | { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS }, | |
19288 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
19289 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
19290 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS }, | |
19291 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19292 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19293 | { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
19294 | { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS }, | |
19295 | { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS }, | |
19296 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS }, | |
19297 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19298 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS }, | |
19299 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19300 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
19301 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
19302 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS }, | |
19303 | { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
19304 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
19305 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
19306 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19307 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
19308 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
19309 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
19310 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS }, | |
19311 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS }, | |
19312 | { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS }, | |
19313 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
19314 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS }, | |
19315 | { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS }, | |
19316 | { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19317 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS }, | |
19318 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS }, | |
19319 | { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19320 | { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19321 | { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19322 | { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19323 | { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19324 | { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19325 | { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19326 | { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19327 | { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, | |
19328 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
19329 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
19330 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19331 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
19332 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
19333 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
19334 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
19335 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
19336 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19337 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
19338 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS }, | |
19339 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, | |
19340 | { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
19341 | { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
19342 | { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
19343 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
19344 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS }, | |
19345 | { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19346 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19347 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS }, | |
19348 | { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
19349 | { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
19350 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
19351 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
19352 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
19353 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
19354 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
19355 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS }, | |
19356 | { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS }, | |
19357 | { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS }, | |
19358 | { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS }, | |
19359 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS }, | |
19360 | { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS }, | |
19361 | { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS }, | |
19362 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS }, | |
19363 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS }, | |
19364 | { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS }, | |
19365 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS }, | |
19366 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS }, | |
19367 | { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19368 | { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS }, | |
19369 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
19370 | { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
19371 | { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
19372 | { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19373 | { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS }, | |
19374 | { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS }, | |
19375 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS }, | |
19376 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS }, | |
19377 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS }, | |
19378 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
19379 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS }, | |
19380 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS }, | |
19381 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS }, | |
19382 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS }, | |
19383 | { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS }, | |
19384 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS }, | |
19385 | { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS }, | |
19386 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS }, | |
19387 | { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
19388 | { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS }, | |
19389 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS }, | |
19390 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS }, | |
19391 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
19392 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS }, | |
19393 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS }, | |
19394 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS }, | |
19395 | { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS }, | |
19396 | { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
19397 | { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc | 19398 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19399 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19400 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19401 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19402 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19403 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19404 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19405 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19406 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19407 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19408 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19409 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19410 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19411 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19412 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19413 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19414 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
19415 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19416 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19417 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, |
19418 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19419 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19420 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19421 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19422 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, |
19423 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19424 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19425 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19426 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19427 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19428 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19429 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19430 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19431 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 | 19432 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 19433 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS }, |
c24da6d6 RD |
19434 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS }, |
19435 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
19436 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS }, | |
19437 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
19438 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
19439 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS }, |
19440 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
19441 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
19442 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, | |
19443 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
19444 | { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
19445 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
19446 | { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
19447 | { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
19448 | { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
19449 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
19450 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
19451 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
19452 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
19453 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
19454 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
19455 | { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
19456 | { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
19457 | { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS }, | |
19458 | { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
19459 | { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
19460 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19461 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19462 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19463 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS }, | |
19464 | { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19465 | { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
19466 | { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
19467 | { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS }, | |
19468 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
19469 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
19470 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
19471 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
19472 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
19473 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
19474 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
19475 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
19476 | { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19477 | { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
19478 | { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
19479 | { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
19480 | { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19481 | { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
19482 | { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
19483 | { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
19484 | { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
19485 | { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
19486 | { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
19487 | { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
19488 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
19489 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
19490 | { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
19491 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
19492 | { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
19493 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
19494 | { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
19495 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
19496 | { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
19497 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
19498 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19499 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19500 | { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, |
19501 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS }, | |
19502 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19503 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19504 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
19505 | { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
19506 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
19507 | { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
19508 | { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
19509 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 19510 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19511 | { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
19512 | { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
19513 | { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
19514 | { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
19515 | { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
19516 | { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
0439c23b | 19517 | { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
19518 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, |
19519 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
19520 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
19521 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
19522 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
19523 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, | |
19524 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS }, | |
19525 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
19526 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
19527 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
19528 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS }, | |
19529 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS }, | |
19530 | { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS }, | |
19531 | { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
19532 | { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, | |
19533 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS }, | |
19534 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
19535 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS }, | |
19536 | { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
19537 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
19538 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19539 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
19540 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS }, | |
19541 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS }, | |
19542 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS }, | |
19543 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS }, | |
19544 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS }, | |
19545 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS }, | |
19546 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS }, | |
19547 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS }, | |
19548 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS }, | |
19549 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS }, | |
19550 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19551 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
19552 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19553 | { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, | |
19554 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS }, | |
19555 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19556 | { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS }, | |
19557 | { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
19558 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
19559 | { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19560 | { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
19561 | { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
19562 | { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, | |
19563 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS }, | |
19564 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
19565 | { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
19566 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS }, | |
19567 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS }, | |
19568 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS }, | |
19569 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19570 | { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS }, | |
19571 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
19572 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
19573 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
19574 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
19575 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
19576 | { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
19577 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
19578 | { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
19579 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
19580 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS }, | |
19581 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
19582 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
19583 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, | |
19584 | { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19585 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS }, | |
19586 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
19587 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
19588 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, | |
19589 | { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19590 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS }, | |
19591 | { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19592 | { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS }, | |
19593 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS }, | |
19594 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
19595 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS }, | |
19596 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
19597 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS }, | |
19598 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
19599 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
19600 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, | |
19601 | { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
19602 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS }, | |
19603 | { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS }, | |
19604 | { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19605 | { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19606 | { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19607 | { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19608 | { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19609 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
19610 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
19611 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
19612 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
19613 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
19614 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS }, | |
19615 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
19616 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
19617 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS }, | |
19618 | { NULL, NULL } | |
19619 | }; | |
19620 | ||
19621 | ||
19622 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
19623 | ||
19624 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
19625 | return (void *)((wxWindow *) ((wxControl *) x)); | |
19626 | } | |
19627 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
19628 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
19629 | } | |
19630 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
19631 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
19632 | } | |
19633 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
19634 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
19635 | } | |
19636 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
19637 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19638 | } | |
19639 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
19640 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
19641 | } | |
19642 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
19643 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
19644 | } | |
19645 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
19646 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
19647 | } | |
19648 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
19649 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
19650 | } | |
19651 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
19652 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
19653 | } | |
19654 | static void *_p_wxColourDatabaseTo_p_wxObject(void *x) { | |
19655 | return (void *)((wxObject *) ((wxColourDatabase *) x)); | |
19656 | } | |
19657 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
19658 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
19659 | } | |
19660 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
19661 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
19662 | } | |
19663 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
19664 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
19665 | } | |
19666 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
19667 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
19668 | } | |
19669 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
19670 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
19671 | } | |
19672 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
19673 | return (void *)((wxObject *) ((wxSizer *) x)); | |
19674 | } | |
19675 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
19676 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
19677 | } | |
19678 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
19679 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
19680 | } | |
19681 | static void *_p_wxPenListTo_p_wxObject(void *x) { | |
19682 | return (void *)((wxObject *) ((wxPenList *) x)); | |
19683 | } | |
19684 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
19685 | return (void *)((wxObject *) ((wxEvent *) x)); | |
19686 | } | |
19687 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
19688 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
19689 | } | |
19690 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
19691 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
19692 | } | |
19693 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
19694 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
19695 | } | |
19696 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
19697 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
19698 | } | |
19699 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
19700 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
19701 | } | |
19702 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
19703 | return (void *)((wxObject *) ((wxDC *) x)); | |
19704 | } | |
19705 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
19706 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
19707 | } | |
19708 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
19709 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
19710 | } | |
19711 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
19712 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
19713 | } | |
19714 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
19715 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
19716 | } | |
19717 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
19718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
19719 | } | |
19720 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
19721 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
19722 | } | |
19723 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
19724 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
19725 | } | |
19726 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
19727 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
19728 | } | |
19729 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
19730 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
19731 | } | |
19732 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
19733 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
19734 | } | |
19735 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
19736 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
19737 | } | |
19738 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
19739 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
19740 | } | |
19741 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
19742 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
19743 | } | |
19744 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
19745 | return (void *)((wxObject *) ((wxEffects *) x)); | |
19746 | } | |
19747 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
19748 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
19749 | } | |
19750 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
19751 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
19752 | } | |
19753 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
19754 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
19755 | } | |
19756 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
19757 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
19758 | } | |
19759 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
19760 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
19761 | } | |
19762 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
19763 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
19764 | } | |
19765 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
19766 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
19767 | } | |
19768 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
19769 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
19770 | } | |
19771 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
19772 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
19773 | } | |
19774 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
19775 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
19776 | } | |
19777 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
19778 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
19779 | } | |
19780 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
19781 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
19782 | } | |
19783 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
19784 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
19785 | } | |
19786 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
19787 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
19788 | } | |
19789 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
19790 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
19791 | } | |
19792 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
19793 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
19794 | } | |
19795 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
19796 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
19797 | } | |
19798 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
19799 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
19800 | } | |
19801 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
19802 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
19803 | } | |
19804 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
19805 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
19806 | } | |
19807 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
19808 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
19809 | } | |
19810 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
19811 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
19812 | } | |
19813 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
19814 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
19815 | } | |
19816 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
19817 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
19818 | } | |
19819 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
19820 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
19821 | } | |
19822 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
19823 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
19824 | } | |
19825 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { | |
19826 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19827 | } | |
19828 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
19829 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
19830 | } | |
19831 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
19832 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
19833 | } | |
19834 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
19835 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
19836 | } | |
19837 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
19838 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
19839 | } | |
19840 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
19841 | return (void *)((wxObject *) ((wxImage *) x)); | |
19842 | } | |
19843 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
19844 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
19845 | } | |
19846 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
19847 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
19848 | } | |
19849 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
19850 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
19851 | } | |
19852 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
19853 | return (void *)((wxObject *) ((wxImageList *) x)); | |
19854 | } | |
19855 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
19856 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
19857 | } | |
19858 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
19859 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
19860 | } | |
19861 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
19862 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
19863 | } | |
19864 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
19865 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
19866 | } | |
19867 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
19868 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
19869 | } | |
19870 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
19871 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
19872 | } | |
19873 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
19874 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
19875 | } | |
19876 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
19877 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
19878 | } | |
19879 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
19880 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
19881 | } | |
19882 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
19883 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
19884 | } | |
19885 | static void *_p_wxBrushListTo_p_wxObject(void *x) { | |
19886 | return (void *)((wxObject *) ((wxBrushList *) x)); | |
19887 | } | |
d55e5bfc RD |
19888 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
19889 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
19890 | } | |
19891 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
19892 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
19893 | } | |
19894 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
19895 | return (void *)((wxObject *) ((wxMask *) x)); | |
19896 | } | |
19897 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
19898 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
19899 | } | |
19900 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
19901 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
19902 | } | |
19903 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
19904 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
19905 | } | |
19906 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
19907 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
19908 | } | |
19909 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
19910 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
19911 | } | |
19912 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
19913 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
19914 | } | |
19915 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
19916 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
19917 | } | |
19918 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
19919 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
19920 | } | |
19921 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
19922 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
19923 | } | |
19924 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
19925 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
19926 | } | |
19927 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
19928 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
19929 | } | |
19930 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
19931 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
19932 | } | |
19933 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
19934 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
19935 | } | |
19936 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
19937 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
19938 | } | |
19939 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
19940 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
19941 | } | |
19942 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
19943 | return (void *)((wxObject *) ((wxColour *) x)); | |
19944 | } | |
19945 | static void *_p_wxFontListTo_p_wxObject(void *x) { | |
19946 | return (void *)((wxObject *) ((wxFontList *) x)); | |
19947 | } | |
19948 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
19949 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
19950 | } | |
19951 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
19952 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
19953 | } | |
19954 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { | |
19955 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19956 | } | |
19957 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
19958 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
19959 | } | |
19960 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
19961 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
19962 | } | |
19963 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
19964 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
19965 | } | |
19966 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
19967 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
19968 | } | |
19969 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
19970 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
19971 | } | |
19972 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
19973 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
19974 | } | |
19975 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
19976 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
19977 | } | |
19978 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
19979 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
19980 | } | |
19981 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
19982 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
19983 | } | |
19984 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
19985 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
19986 | } | |
19987 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
19988 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
19989 | } | |
d55e5bfc RD |
19990 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
19991 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
19992 | } | |
19993 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
19994 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
19995 | } | |
19996 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
19997 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
19998 | } | |
19999 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
20000 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
20001 | } | |
20002 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
20003 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
20004 | } | |
20005 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
20006 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
20007 | } | |
20008 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
20009 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
20010 | } | |
20011 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
20012 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
20013 | } | |
d55e5bfc RD |
20014 | 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}}; |
20015 | 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}}; | |
20016 | 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}}; | |
20017 | 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}}; | |
20018 | 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}}; | |
20019 | 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}}; | |
20020 | 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}}; | |
20021 | 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}}; | |
20022 | 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}}; | |
20023 | 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}}; | |
20024 | 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}}; | |
20025 | 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}}; | |
20026 | 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}}; | |
20027 | 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}}; | |
20028 | 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}}; | |
20029 | 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}}; | |
20030 | 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}}; | |
20031 | 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}}; | |
20032 | 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}}; | |
20033 | 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}}; | |
20034 | 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}}; | |
20035 | 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}}; | |
c24da6d6 | 20036 | 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 |
20037 | 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}}; |
20038 | 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}}; | |
20039 | 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}}; | |
20040 | 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}}; | |
20041 | 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}}; | |
20042 | 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}}; | |
20043 | 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}}; | |
20044 | 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}}; | |
20045 | 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}}; | |
20046 | 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}}; | |
20047 | 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}}; | |
20048 | 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}}; | |
20049 | 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}}; | |
c24da6d6 | 20050 | 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 |
20051 | 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}}; |
20052 | 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}}; | |
20053 | 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 | 20054 | 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}}; |
c24da6d6 | 20055 | 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 |
20056 | 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}}; |
20057 | 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}}; | |
20058 | 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}}; | |
20059 | 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}}; | |
c24da6d6 | 20060 | 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 |
20061 | 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}}; |
20062 | 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}}; | |
20063 | 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 |
20064 | 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}}; |
20065 | 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}}; | |
20066 | 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}}; | |
20067 | 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}}; | |
20068 | 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}}; | |
20069 | ||
20070 | static swig_type_info *swig_types_initial[] = { | |
20071 | _swigt__p_wxPostScriptDC, | |
20072 | _swigt__p_wxBrush, | |
20073 | _swigt__p_wxColour, | |
20074 | _swigt__p_wxDC, | |
20075 | _swigt__p_wxMirrorDC, | |
20076 | _swigt__p_byte, | |
20077 | _swigt__p_wxPyFontEnumerator, | |
20078 | _swigt__p_char, | |
20079 | _swigt__p_wxIconLocation, | |
20080 | _swigt__p_wxImage, | |
20081 | _swigt__p_wxMetaFileDC, | |
20082 | _swigt__p_wxMask, | |
20083 | _swigt__p_wxSize, | |
20084 | _swigt__p_wxFont, | |
20085 | _swigt__p_wxWindow, | |
20086 | _swigt__p_double, | |
20087 | _swigt__p_wxMemoryDC, | |
20088 | _swigt__p_wxFontMapper, | |
20089 | _swigt__p_wxEffects, | |
20090 | _swigt__p_wxNativeEncodingInfo, | |
20091 | _swigt__p_wxPalette, | |
20092 | _swigt__p_wxBitmap, | |
20093 | _swigt__p_wxObject, | |
20094 | _swigt__p_wxRegionIterator, | |
20095 | _swigt__p_wxRect, | |
20096 | _swigt__p_wxString, | |
20097 | _swigt__p_wxPrinterDC, | |
20098 | _swigt__p_wxIconBundle, | |
20099 | _swigt__p_wxPoint, | |
20100 | _swigt__p_wxDash, | |
20101 | _swigt__p_wxScreenDC, | |
20102 | _swigt__p_wxCursor, | |
20103 | _swigt__p_wxClientDC, | |
20104 | _swigt__p_wxBufferedDC, | |
20105 | _swigt__p_wxImageList, | |
20106 | _swigt__p_unsigned_char, | |
20107 | _swigt__p_wxGDIObject, | |
20108 | _swigt__p_wxIcon, | |
20109 | _swigt__p_wxLocale, | |
20110 | _swigt__p_wxRegion, | |
d55e5bfc | 20111 | _swigt__p_wxLanguageInfo, |
c24da6d6 | 20112 | _swigt__p_wxConfigBase, |
d55e5bfc RD |
20113 | _swigt__p_wxWindowDC, |
20114 | _swigt__p_wxPrintData, | |
20115 | _swigt__p_wxBrushList, | |
20116 | _swigt__p_wxFontList, | |
20117 | _swigt__p_wxPen, | |
20118 | _swigt__p_wxBufferedPaintDC, | |
20119 | _swigt__p_wxPaintDC, | |
20120 | _swigt__p_wxPenList, | |
d55e5bfc RD |
20121 | _swigt__p_int, |
20122 | _swigt__p_wxMetaFile, | |
20123 | _swigt__p_wxNativeFontInfo, | |
20124 | _swigt__p_wxEncodingConverter, | |
20125 | _swigt__p_wxColourDatabase, | |
20126 | 0 | |
20127 | }; | |
20128 | ||
20129 | ||
20130 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
20131 | ||
20132 | static swig_const_info swig_const_table[] = { | |
20133 | {0}}; | |
20134 | ||
20135 | #ifdef __cplusplus | |
20136 | } | |
20137 | #endif | |
20138 | ||
20139 | #ifdef __cplusplus | |
20140 | extern "C" | |
20141 | #endif | |
20142 | SWIGEXPORT(void) SWIG_init(void) { | |
20143 | static PyObject *SWIG_globals = 0; | |
20144 | static int typeinit = 0; | |
20145 | PyObject *m, *d; | |
20146 | int i; | |
20147 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
20148 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
20149 | d = PyModule_GetDict(m); | |
20150 | ||
20151 | if (!typeinit) { | |
20152 | for (i = 0; swig_types_initial[i]; i++) { | |
20153 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
20154 | } | |
20155 | typeinit = 1; | |
20156 | } | |
20157 | SWIG_InstallConstants(d,swig_const_table); | |
20158 | ||
20159 | PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion)); | |
20160 | PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion)); | |
20161 | PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion)); | |
20162 | PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT)); | |
20163 | PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE)); | |
20164 | PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN)); | |
20165 | PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT)); | |
20166 | PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS)); | |
20167 | PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN)); | |
20168 | PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE)); | |
20169 | PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX)); | |
20170 | PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN)); | |
20171 | PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL)); | |
20172 | PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC)); | |
20173 | PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT)); | |
20174 | PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX)); | |
20175 | PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL)); | |
20176 | PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT)); | |
20177 | PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD)); | |
20178 | PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX)); | |
20179 | PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT)); | |
20180 | PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC)); | |
20181 | PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT)); | |
20182 | PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT)); | |
20183 | PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD)); | |
20184 | PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED)); | |
20185 | PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED)); | |
20186 | PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED)); | |
20187 | PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH)); | |
20188 | PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK)); | |
20189 | PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM)); | |
20190 | PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT)); | |
20191 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1)); | |
20192 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2)); | |
20193 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3)); | |
20194 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4)); | |
20195 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5)); | |
20196 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6)); | |
20197 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7)); | |
20198 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8)); | |
20199 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9)); | |
20200 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10)); | |
20201 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11)); | |
20202 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12)); | |
20203 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13)); | |
20204 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14)); | |
20205 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15)); | |
20206 | PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX)); | |
20207 | PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8)); | |
20208 | PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U)); | |
20209 | PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE)); | |
20210 | PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN)); | |
20211 | PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437)); | |
20212 | PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850)); | |
20213 | PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852)); | |
20214 | PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855)); | |
20215 | PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866)); | |
20216 | PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874)); | |
20217 | PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932)); | |
20218 | PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936)); | |
20219 | PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949)); | |
20220 | PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950)); | |
20221 | PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250)); | |
20222 | PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251)); | |
20223 | PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252)); | |
20224 | PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253)); | |
20225 | PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254)); | |
20226 | PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255)); | |
20227 | PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256)); | |
20228 | PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257)); | |
20229 | PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX)); | |
20230 | PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7)); | |
20231 | PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8)); | |
20232 | PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP)); | |
20233 | PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE)); | |
20234 | PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE)); | |
20235 | PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE)); | |
20236 | PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE)); | |
20237 | PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN)); | |
20238 | PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE)); | |
20239 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD)); | |
20240 | PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN)); | |
20241 | PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC)); | |
20242 | PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW)); | |
20243 | PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK)); | |
20244 | PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC)); | |
20245 | PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI)); | |
20246 | PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI)); | |
20247 | PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI)); | |
20248 | PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA)); | |
20249 | PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI)); | |
20250 | PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL)); | |
20251 | PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU)); | |
20252 | PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA)); | |
20253 | PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM)); | |
20254 | PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE)); | |
20255 | PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE)); | |
20256 | PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER)); | |
20257 | PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI)); | |
20258 | PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN)); | |
20259 | PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN)); | |
20260 | PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN)); | |
20261 | PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP)); | |
20262 | PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN)); | |
20263 | PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN)); | |
20264 | PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC)); | |
20265 | PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR)); | |
20266 | PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE)); | |
20267 | PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT)); | |
20268 | PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL)); | |
20269 | PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS)); | |
20270 | PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH)); | |
20271 | PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN)); | |
20272 | PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC)); | |
20273 | PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN)); | |
20274 | PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC)); | |
20275 | PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC)); | |
20276 | PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD)); | |
20277 | PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN)); | |
20278 | PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX)); | |
20279 | PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX)); | |
20280 | PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16)); | |
20281 | PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32)); | |
20282 | PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE)); | |
20283 | PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312)); | |
20284 | PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5)); | |
20285 | PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS)); | |
20286 | ||
20287 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
20288 | ||
20289 | PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT)); | |
20290 | PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN)); | |
20291 | PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN)); | |
20292 | PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR)); | |
20293 | PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS)); | |
20294 | PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN)); | |
20295 | PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC)); | |
20296 | PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC)); | |
20297 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA)); | |
20298 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN)); | |
20299 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT)); | |
20300 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ)); | |
20301 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN)); | |
20302 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT)); | |
20303 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON)); | |
20304 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA)); | |
20305 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO)); | |
20306 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN)); | |
20307 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR)); | |
20308 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA)); | |
20309 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN)); | |
20310 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA)); | |
20311 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA)); | |
20312 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE)); | |
20313 | PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN)); | |
20314 | PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN)); | |
20315 | PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE)); | |
20316 | PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA)); | |
20317 | PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI)); | |
20318 | PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC)); | |
20319 | PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN)); | |
20320 | PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR)); | |
20321 | PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE)); | |
20322 | PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN)); | |
20323 | PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI)); | |
20324 | PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI)); | |
20325 | PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI)); | |
20326 | PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA)); | |
20327 | PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON)); | |
20328 | PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN)); | |
20329 | PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE)); | |
20330 | PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN)); | |
20331 | PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN)); | |
20332 | PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE)); | |
20333 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED)); | |
20334 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL)); | |
20335 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG)); | |
20336 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU)); | |
20337 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE)); | |
20338 | PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN)); | |
20339 | PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN)); | |
20340 | PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN)); | |
20341 | PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH)); | |
20342 | PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH)); | |
20343 | PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH)); | |
20344 | PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN)); | |
20345 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH)); | |
20346 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK)); | |
20347 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US)); | |
20348 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA)); | |
20349 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE)); | |
20350 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA)); | |
20351 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA)); | |
20352 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN)); | |
20353 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK)); | |
20354 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE)); | |
20355 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA)); | |
20356 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND)); | |
20357 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES)); | |
20358 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA)); | |
20359 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD)); | |
20360 | PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE)); | |
20361 | PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO)); | |
20362 | PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN)); | |
20363 | PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE)); | |
20364 | PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI)); | |
20365 | PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI)); | |
20366 | PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH)); | |
20367 | PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH)); | |
20368 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN)); | |
20369 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN)); | |
20370 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG)); | |
20371 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO)); | |
20372 | PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS)); | |
20373 | PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN)); | |
20374 | PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN)); | |
20375 | PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN)); | |
20376 | PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN)); | |
20377 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN)); | |
20378 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM)); | |
20379 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN)); | |
20380 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG)); | |
20381 | PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS)); | |
20382 | PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK)); | |
20383 | PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC)); | |
20384 | PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI)); | |
20385 | PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI)); | |
20386 | PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA)); | |
20387 | PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW)); | |
20388 | PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI)); | |
20389 | PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN)); | |
20390 | PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC)); | |
20391 | PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN)); | |
20392 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA)); | |
20393 | PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE)); | |
20394 | PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT)); | |
20395 | PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK)); | |
20396 | PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH)); | |
20397 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN)); | |
20398 | PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS)); | |
20399 | PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE)); | |
20400 | PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE)); | |
20401 | PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA)); | |
20402 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI)); | |
20403 | PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA)); | |
20404 | PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH)); | |
20405 | PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK)); | |
20406 | PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA)); | |
20407 | PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ)); | |
20408 | PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI)); | |
20409 | PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI)); | |
20410 | PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN)); | |
20411 | PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH)); | |
20412 | PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN)); | |
20413 | PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN)); | |
20414 | PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN)); | |
20415 | PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA)); | |
20416 | PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN)); | |
20417 | PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN)); | |
20418 | PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY)); | |
20419 | PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY)); | |
20420 | PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM)); | |
20421 | PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)); | |
20422 | PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA)); | |
20423 | PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE)); | |
20424 | PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI)); | |
20425 | PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI)); | |
20426 | PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI)); | |
20427 | PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN)); | |
20428 | PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN)); | |
20429 | PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU)); | |
20430 | PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI)); | |
20431 | PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA)); | |
20432 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL)); | |
20433 | PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK)); | |
20434 | PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN)); | |
20435 | PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA)); | |
20436 | PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO)); | |
20437 | PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO)); | |
20438 | PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH)); | |
20439 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE)); | |
20440 | PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN)); | |
20441 | PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI)); | |
20442 | PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA)); | |
20443 | PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE)); | |
20444 | PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN)); | |
20445 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN)); | |
20446 | PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE)); | |
20447 | PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN)); | |
20448 | PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO)); | |
20449 | PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT)); | |
20450 | PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC)); | |
20451 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN)); | |
20452 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC)); | |
20453 | PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN)); | |
20454 | PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN)); | |
20455 | PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO)); | |
20456 | PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA)); | |
20457 | PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA)); | |
20458 | PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI)); | |
20459 | PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE)); | |
20460 | PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI)); | |
20461 | PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK)); | |
20462 | PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN)); | |
20463 | PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI)); | |
20464 | PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH)); | |
20465 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA)); | |
20466 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA)); | |
20467 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE)); | |
20468 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA)); | |
20469 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA)); | |
20470 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)); | |
20471 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR)); | |
20472 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR)); | |
20473 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA)); | |
20474 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS)); | |
20475 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN)); | |
20476 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN)); | |
20477 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA)); | |
20478 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA)); | |
20479 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY)); | |
20480 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU)); | |
20481 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO)); | |
20482 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY)); | |
20483 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US)); | |
20484 | PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA)); | |
20485 | PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE)); | |
20486 | PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI)); | |
20487 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH)); | |
20488 | PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND)); | |
20489 | PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG)); | |
20490 | PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK)); | |
20491 | PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL)); | |
20492 | PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR)); | |
20493 | PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU)); | |
20494 | PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI)); | |
20495 | PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN)); | |
20496 | PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA)); | |
20497 | PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA)); | |
20498 | PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA)); | |
20499 | PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH)); | |
20500 | PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN)); | |
20501 | PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI)); | |
20502 | PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR)); | |
20503 | PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN)); | |
20504 | PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU)); | |
20505 | PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA)); | |
20506 | PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN)); | |
20507 | PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK)); | |
20508 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC)); | |
20509 | PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN)); | |
20510 | PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE)); | |
20511 | PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK)); | |
20512 | PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH)); | |
20513 | PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF)); | |
20514 | PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA)); | |
20515 | PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH)); | |
20516 | PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA)); | |
20517 | PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG)); | |
20518 | PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU)); | |
20519 | PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED)); | |
20520 | PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER)); | |
20521 | PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE)); | |
20522 | PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY)); | |
20523 | PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX)); | |
20524 | PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP)); | |
20525 | PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT)); | |
20526 | PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT)); | |
20527 | PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING)); | |
20528 | PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT)); | |
20529 | PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE)); | |
20530 | PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT)); | |
20531 | PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX)); | |
20532 | PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS)); | |
20533 | PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2)); | |
20534 | PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC)); | |
20535 | PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL)); | |
20536 | PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT)); | |
20537 | PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED)); | |
20538 | PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED)); | |
20539 | PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL)); | |
20540 | PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL)); | |
20541 | PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE)); | |
20542 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
20543 | SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set); | |
20544 | SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set); | |
20545 | SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set); | |
20546 | SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set); | |
20547 | SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set); | |
20548 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set); | |
20549 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set); | |
20550 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set); | |
20551 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set); | |
20552 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set); | |
20553 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set); | |
20554 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set); | |
20555 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set); | |
20556 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set); | |
20557 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set); | |
20558 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set); | |
20559 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set); | |
20560 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set); | |
20561 | SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set); | |
20562 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set); | |
20563 | SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set); | |
20564 | SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set); | |
20565 | SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set); | |
20566 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set); | |
20567 | SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set); | |
20568 | SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set); | |
20569 | SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set); | |
20570 | SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set); | |
20571 | SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set); | |
20572 | SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set); | |
20573 | SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set); | |
20574 | SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set); | |
20575 | SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set); | |
20576 | SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set); | |
20577 | SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set); | |
20578 | SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set); | |
20579 | SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set); | |
20580 | SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set); | |
20581 | SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set); | |
20582 | SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set); | |
20583 | SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set); | |
20584 | SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set); | |
20585 | SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set); | |
20586 | SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set); | |
20587 | SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set); | |
20588 | SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set); | |
20589 | ||
20590 | // Work around a chicken/egg problem in drawlist.cpp | |
20591 | wxPyDrawList_SetAPIPtr(); | |
20592 | ||
20593 | } | |
20594 |